k1LoW / runn

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

Fix lint warn #1035

Closed k1LoW closed 1 month ago

k1LoW commented 1 month ago

SSIA.

github-actions[bot] commented 1 month ago

BenchmarkManyRunbooks-4

main (-) #1035 (2ec18f6) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 3,925,549,407 ns/op 3,893,573,692 ns/op -31,975,715 ns/op
Bytes allocated per iteration 1,786,555,504 B/op 1,786,346,568 B/op -208,936 B/op
Allocs per iteration 21,145,219 allocs/op 21,145,380 allocs/op 161 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#1035](https://github.com/k1LoW/runn/pull/1035) ([2ec18f6](https://github.com/k1LoW/runn/commit/2ec18f6de3e6bfa69d7400a2c0615207a8062f2c)) | |------------|----------------------------------------------------:|--------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #1035 (2ec18f6) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 4,678,985,126 ns/op 4,687,829,957 ns/op 8,844,831 ns/op
Bytes allocated per iteration 2,217,774,376 B/op 2,217,539,488 B/op -234,888 B/op
Allocs per iteration 30,841,807 allocs/op 30,841,749 allocs/op -58 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#1035](https://github.com/k1LoW/runn/pull/1035) ([2ec18f6](https://github.com/k1LoW/runn/commit/2ec18f6de3e6bfa69d7400a2c0615207a8062f2c)) | |------------|----------------------------------------------------:|--------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #1035 (2ec18f6) +/-
Number of iterations 16 18 2
Nanoseconds per iteration 68,767,661 ns/op 65,705,958 ns/op -3,061,703 ns/op
Bytes allocated per iteration 60,112,951 B/op 60,165,292 B/op 52,341 B/op
Allocs per iteration 205,501 allocs/op 205,515 allocs/op 14 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#1035](https://github.com/k1LoW/runn/pull/1035) ([2ec18f6](https://github.com/k1LoW/runn/commit/2ec18f6de3e6bfa69d7400a2c0615207a8062f2c)) | |------------|----------------------------------------------------:|--------------------------------------------------------------------------------------------------------------------------------------------:| | **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

BenchmarkManyRunbooks-4

main (-) #1035 (ec66bbd) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 3,913,047,759 ns/op 3,976,509,937 ns/op 63,462,178 ns/op
Bytes allocated per iteration 1,786,484,728 B/op 1,786,247,888 B/op -236,840 B/op
Allocs per iteration 21,145,277 allocs/op 21,145,209 allocs/op -68 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#1035](https://github.com/k1LoW/runn/pull/1035) ([ec66bbd](https://github.com/k1LoW/runn/commit/ec66bbd83e0a779fbd380611223963ac5bbe1355)) | |------------|----------------------------------------------------:|--------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #1035 (ec66bbd) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 4,803,664,377 ns/op 4,683,411,764 ns/op -120,252,613 ns/op
Bytes allocated per iteration 2,217,880,728 B/op 2,217,853,312 B/op -27,416 B/op
Allocs per iteration 30,847,296 allocs/op 30,844,022 allocs/op -3,274 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#1035](https://github.com/k1LoW/runn/pull/1035) ([ec66bbd](https://github.com/k1LoW/runn/commit/ec66bbd83e0a779fbd380611223963ac5bbe1355)) | |------------|----------------------------------------------------:|--------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #1035 (ec66bbd) +/-
Number of iterations 16 16 0
Nanoseconds per iteration 65,794,038 ns/op 66,572,295 ns/op 778,257 ns/op
Bytes allocated per iteration 60,133,295 B/op 60,134,446 B/op 1,151 B/op
Allocs per iteration 205,509 allocs/op 205,501 allocs/op -8 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#1035](https://github.com/k1LoW/runn/pull/1035) ([ec66bbd](https://github.com/k1LoW/runn/commit/ec66bbd83e0a779fbd380611223963ac5bbe1355)) | |------------|----------------------------------------------------:|--------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (fc8d555) #1035 (ec66bbd) +/-
Coverage 64.4% 64.4% -0.1%
Code to Test Ratio 1:0.7 1:0.7 +0.0
Test Execution Time 6m29s 4m4s -2m25s
Details ``` diff | | main (fc8d555) | #1035 (ec66bbd) | +/- | |---------------------|----------------|-----------------|--------| - | Coverage | 64.4% | 64.4% | -0.1% | | Files | 78 | 78 | 0 | | Lines | 8694 | 8697 | +3 | + | Covered | 5602 | 5603 | +1 | + | Code to Test Ratio | 1:0.7 | 1:0.7 | +0.0 | | Code | 15989 | 15995 | +6 | + | Test | 11617 | 11629 | +12 | + | Test Execution Time | 6m29s | 4m4s | -2m25s | ```

Code coverage of files in pull request scope (78.2% → 78.0%)

Files Coverage +/-
db.go 76.2% 0.0%
eval.go 82.6% -1.3%
grpc.go 77.5% 0.0%
http.go 78.1% 0.0%

Reported by octocov

github-actions[bot] commented 1 month ago

BenchmarkManyRunbooks-4

main (-) #1035 (3d763a1) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 3,855,829,562 ns/op 3,924,109,860 ns/op 68,280,298 ns/op
Bytes allocated per iteration 1,786,288,968 B/op 1,786,173,832 B/op -115,136 B/op
Allocs per iteration 21,135,207 allocs/op 21,134,968 allocs/op -239 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#1035](https://github.com/k1LoW/runn/pull/1035) ([3d763a1](https://github.com/k1LoW/runn/commit/3d763a101594a619a1e8b3092817b8729093ccdb)) | |------------|----------------------------------------------------:|--------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #1035 (3d763a1) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 4,694,775,364 ns/op 4,554,888,175 ns/op -139,887,189 ns/op
Bytes allocated per iteration 2,218,122,176 B/op 2,218,013,504 B/op -108,672 B/op
Allocs per iteration 30,846,682 allocs/op 30,844,131 allocs/op -2,551 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#1035](https://github.com/k1LoW/runn/pull/1035) ([3d763a1](https://github.com/k1LoW/runn/commit/3d763a101594a619a1e8b3092817b8729093ccdb)) | |------------|----------------------------------------------------:|--------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #1035 (3d763a1) +/-
Number of iterations 18 18 0
Nanoseconds per iteration 63,772,999 ns/op 71,029,249 ns/op 7,256,250 ns/op
Bytes allocated per iteration 60,114,754 B/op 60,122,182 B/op 7,428 B/op
Allocs per iteration 205,403 allocs/op 205,397 allocs/op -6 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#1035](https://github.com/k1LoW/runn/pull/1035) ([3d763a1](https://github.com/k1LoW/runn/commit/3d763a101594a619a1e8b3092817b8729093ccdb)) | |------------|----------------------------------------------------:|--------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (1f336cf) #1035 (3d763a1) +/-
Coverage 64.4% 64.4% +0.0%
Code to Test Ratio 1:0.7 1:0.7 -0.1
Test Execution Time 5m36s 4m3s -1m33s
Details ``` diff | | main (1f336cf) | #1035 (3d763a1) | +/- | |---------------------|----------------|-----------------|--------| + | Coverage | 64.4% | 64.4% | +0.0% | | Files | 78 | 78 | 0 | | Lines | 8695 | 8697 | +2 | + | Covered | 5602 | 5604 | +2 | - | Code to Test Ratio | 1:0.7 | 1:0.7 | -0.1 | | Code | 15990 | 15995 | +5 | | Test | 11629 | 11629 | 0 | + | Test Execution Time | 5m36s | 4m3s | -1m33s | ```

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

Files Coverage +/-
db.go 76.2% 0.0%
eval.go 83.3% +0.2%
grpc.go 77.5% 0.0%
http.go 78.1% 0.0%

Reported by octocov