k1LoW / runn

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

Fix a significant deviation in verbose output. #944

Closed k1LoW closed 1 month ago

k1LoW commented 1 month ago

SSIA.

ref: https://zenn.dev/link/comments/f8d58f31a2204d

github-actions[bot] commented 1 month ago

BenchmarkManyRunbooks-4

main (-) #944 (29b1421) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 3,760,349,964 ns/op 4,029,780,099 ns/op 269,430,135 ns/op
Bytes allocated per iteration 1,793,973,320 B/op 1,793,945,520 B/op -27,800 B/op
Allocs per iteration 21,427,709 allocs/op 21,427,968 allocs/op 259 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#944](https://github.com/k1LoW/runn/pull/944) ([29b1421](https://github.com/k1LoW/runn/commit/29b1421a5c331ec487aca68396d87a5b9d3d0cde)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #944 (29b1421) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 5,302,571,172 ns/op 5,148,740,190 ns/op -153,830,982 ns/op
Bytes allocated per iteration 2,952,374,520 B/op 2,952,810,936 B/op 436,416 B/op
Allocs per iteration 29,385,370 allocs/op 29,386,360 allocs/op 990 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#944](https://github.com/k1LoW/runn/pull/944) ([29b1421](https://github.com/k1LoW/runn/commit/29b1421a5c331ec487aca68396d87a5b9d3d0cde)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #944 (29b1421) +/-
Number of iterations 18 18 0
Nanoseconds per iteration 63,787,041 ns/op 64,052,300 ns/op 265,259 ns/op
Bytes allocated per iteration 60,320,519 B/op 60,300,573 B/op -19,946 B/op
Allocs per iteration 205,908 allocs/op 205,897 allocs/op -11 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#944](https://github.com/k1LoW/runn/pull/944) ([29b1421](https://github.com/k1LoW/runn/commit/29b1421a5c331ec487aca68396d87a5b9d3d0cde)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 1 month ago

Code Metrics Report

main (01d041d) #944 (29b1421) +/-
Coverage 64.1% 64.1% -0.1%
Code to Test Ratio 1:0.4 1:0.4 -0.1
Test Execution Time 5m27s 5m38s +11s
Details ``` diff | | main (01d041d) | #944 (29b1421) | +/- | |---------------------|----------------|----------------|-------| - | Coverage | 64.1% | 64.1% | -0.1% | | Files | 75 | 75 | 0 | | Lines | 8216 | 8227 | +11 | + | Covered | 5274 | 5281 | +7 | - | Code to Test Ratio | 1:0.4 | 1:0.4 | -0.1 | | Code | 23606 | 23626 | +20 | + | Test | 11198 | 11203 | +5 | - | Test Execution Time | 5m27s | 5m38s | +11s | ```

Code coverage of files in pull request scope (77.9% → 77.7%)

Files Coverage +/-
cmdout.go 57.1% +1.3%
operator.go 80.1% 0.0%
result.go 70.6% 0.0%

Reported by octocov