k1LoW / runn

runn is a package/tool for running operations following a scenario.
https://runn.run
MIT License
425 stars 31 forks source link

Fix to cancel context per runbook execution ( per root loop ) unit. #942

Closed k1LoW closed 4 months ago

k1LoW commented 4 months ago

SSIA.

github-actions[bot] commented 4 months ago

BenchmarkManyRunbooks-4

main (-) #942 (a9b31b4) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 3,820,588,232 ns/op 3,813,358,953 ns/op -7,229,279 ns/op
Bytes allocated per iteration 1,793,057,072 B/op 1,793,484,816 B/op 427,744 B/op
Allocs per iteration 21,412,270 allocs/op 21,427,225 allocs/op 14,955 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#942](https://github.com/k1LoW/runn/pull/942) ([a9b31b4](https://github.com/k1LoW/runn/commit/a9b31b472e60a30edc20ef231bc72ae0c32be0d3)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **goos** | linux | linux | | **goarch** | amd64 | amd64 | | **pkg** | github.com/k1LoW/runn | github.com/k1LoW/runn | | **cpu** | AMD EPYC 7763 64-Core Processor | AMD EPYC 7763 64-Core Processor |

BenchmarkOpenAPI3-4

main (-) #942 (a9b31b4) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 5,131,148,447 ns/op 5,215,526,869 ns/op 84,378,422 ns/op
Bytes allocated per iteration 2,952,136,824 B/op 2,952,738,032 B/op 601,208 B/op
Allocs per iteration 29,381,516 allocs/op 29,390,259 allocs/op 8,743 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#942](https://github.com/k1LoW/runn/pull/942) ([a9b31b4](https://github.com/k1LoW/runn/commit/a9b31b472e60a30edc20ef231bc72ae0c32be0d3)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **goos** | linux | linux | | **goarch** | amd64 | amd64 | | **pkg** | github.com/k1LoW/runn | github.com/k1LoW/runn | | **cpu** | AMD EPYC 7763 64-Core Processor | AMD EPYC 7763 64-Core Processor |

BenchmarkSingleRunbook-4

main (-) #942 (a9b31b4) +/-
Number of iterations 16 18 2
Nanoseconds per iteration 66,316,743 ns/op 65,541,773 ns/op -774,970 ns/op
Bytes allocated per iteration 60,275,373 B/op 60,296,617 B/op 21,244 B/op
Allocs per iteration 205,854 allocs/op 205,892 allocs/op 38 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#942](https://github.com/k1LoW/runn/pull/942) ([a9b31b4](https://github.com/k1LoW/runn/commit/a9b31b472e60a30edc20ef231bc72ae0c32be0d3)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **goos** | linux | linux | | **goarch** | amd64 | amd64 | | **pkg** | github.com/k1LoW/runn | github.com/k1LoW/runn | | **cpu** | AMD EPYC 7763 64-Core Processor | AMD EPYC 7763 64-Core Processor |

Reported by octocov

github-actions[bot] commented 4 months ago

Code Metrics Report

main (db79646) #942 (a9b31b4) +/-
Coverage 64.1% 64.1% +0.0%
Code to Test Ratio 1:0.4 1:0.4 -0.1
Test Execution Time 5m40s 6m23s +43s
Details ``` diff | | main (db79646) | #942 (a9b31b4) | +/- | |---------------------|----------------|----------------|-------| + | Coverage | 64.1% | 64.1% | +0.0% | | Files | 75 | 75 | 0 | | Lines | 8190 | 8197 | +7 | + | Covered | 5251 | 5259 | +8 | - | Code to Test Ratio | 1:0.4 | 1:0.4 | -0.1 | | Code | 23565 | 23575 | +10 | | Test | 11191 | 11191 | 0 | - | Test Execution Time | 5m40s | 6m23s | +43s | ```

Code coverage of files in pull request scope (79.9% → 80.0%)

Files Coverage +/-
loop.go 91.1% +0.2%
operator.go 80.0% +0.1%
store.go 76.5% 0.0%

Reported by octocov