k1LoW / runn

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

Use gprc.NewClient instead of grpc.DialContext. #948

Open k1LoW opened 1 month ago

k1LoW commented 1 month ago

NOTICE: This implementation changes the global resolver.defaultSchema

github-actions[bot] commented 1 month ago

BenchmarkManyRunbooks-4

main (-) #948 (0388b44) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 3,787,815,026 ns/op 3,783,786,672 ns/op -4,028,354 ns/op
Bytes allocated per iteration 1,793,324,912 B/op 1,793,918,776 B/op 593,864 B/op
Allocs per iteration 21,426,873 allocs/op 21,427,717 allocs/op 844 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#948](https://github.com/k1LoW/runn/pull/948) ([0388b44](https://github.com/k1LoW/runn/commit/0388b44f1c5bec720db68bfef0bbabe20d3663b3)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #948 (0388b44) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 5,301,003,929 ns/op 5,310,869,523 ns/op 9,865,594 ns/op
Bytes allocated per iteration 2,952,373,080 B/op 2,952,504,416 B/op 131,336 B/op
Allocs per iteration 29,383,148 allocs/op 29,385,381 allocs/op 2,233 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#948](https://github.com/k1LoW/runn/pull/948) ([0388b44](https://github.com/k1LoW/runn/commit/0388b44f1c5bec720db68bfef0bbabe20d3663b3)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #948 (0388b44) +/-
Number of iterations 18 18 0
Nanoseconds per iteration 64,371,741 ns/op 65,506,714 ns/op 1,134,973 ns/op
Bytes allocated per iteration 60,288,019 B/op 60,319,049 B/op 31,030 B/op
Allocs per iteration 205,879 allocs/op 205,898 allocs/op 19 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#948](https://github.com/k1LoW/runn/pull/948) ([0388b44](https://github.com/k1LoW/runn/commit/0388b44f1c5bec720db68bfef0bbabe20d3663b3)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (a1ccd4e) #948 (0388b44) +/-
Coverage 64.1% 64.1% -0.1%
Code to Test Ratio 1:0.4 1:0.4 -0.1
Test Execution Time 5m24s 5m47s +23s
Details ``` diff | | main (a1ccd4e) | #948 (0388b44) | +/- | |---------------------|----------------|----------------|-------| - | Coverage | 64.1% | 64.1% | -0.1% | | Files | 75 | 75 | 0 | | Lines | 8227 | 8226 | -1 | - | Covered | 5281 | 5280 | -1 | - | Code to Test Ratio | 1:0.4 | 1:0.4 | -0.1 | | Code | 23627 | 23628 | +1 | | Test | 11203 | 11203 | 0 | - | Test Execution Time | 5m24s | 5m47s | +23s | ```

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

Files Coverage +/-
grpc.go 77.3% -0.1%

Reported by octocov