k1LoW / runn

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

Add Store for re-use of stored data #867

Closed k1LoW closed 6 months ago

k1LoW commented 6 months ago

Allows to retrieve the value of a scenario run so that it can be reused externally.

github-actions[bot] commented 6 months ago

BenchmarkManyRunbooks-4

main (-) #867 (27a3cf8) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 3,749,019,449 ns/op 3,820,740,179 ns/op 71,720,730 ns/op
Bytes allocated per iteration 1,792,473,160 B/op 1,792,708,792 B/op 235,632 B/op
Allocs per iteration 21,419,950 allocs/op 21,420,470 allocs/op 520 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#867](https://github.com/k1LoW/runn/pull/867) ([27a3cf8](https://github.com/k1LoW/runn/commit/27a3cf8394cec2701a398e46f485c1e1f1c8ca68)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #867 (27a3cf8) +/-
Number of iterations 18 18 0
Nanoseconds per iteration 64,047,825 ns/op 73,157,577 ns/op 9,109,752 ns/op
Bytes allocated per iteration 60,168,626 B/op 60,189,440 B/op 20,814 B/op
Allocs per iteration 205,758 allocs/op 205,758 allocs/op 0 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#867](https://github.com/k1LoW/runn/pull/867) ([27a3cf8](https://github.com/k1LoW/runn/commit/27a3cf8394cec2701a398e46f485c1e1f1c8ca68)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 6 months ago

BenchmarkManyRunbooks-4

main (-) #867 (e93488f) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 3,781,835,587 ns/op 3,738,514,357 ns/op -43,321,230 ns/op
Bytes allocated per iteration 1,792,462,416 B/op 1,791,779,824 B/op -682,592 B/op
Allocs per iteration 21,408,610 allocs/op 21,408,054 allocs/op -556 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#867](https://github.com/k1LoW/runn/pull/867) ([e93488f](https://github.com/k1LoW/runn/commit/e93488fd0eeef156845b7132cb00feb84a656e76)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #867 (e93488f) +/-
Number of iterations 18 16 -2
Nanoseconds per iteration 65,527,478 ns/op 65,523,142 ns/op -4,336 ns/op
Bytes allocated per iteration 60,195,560 B/op 60,188,493 B/op -7,067 B/op
Allocs per iteration 205,685 allocs/op 205,673 allocs/op -12 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#867](https://github.com/k1LoW/runn/pull/867) ([e93488f](https://github.com/k1LoW/runn/commit/e93488fd0eeef156845b7132cb00feb84a656e76)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 6 months ago

Code Metrics Report

main (fad1156) #867 (e93488f) +/-
Coverage 66.0% 66.0% -0.0%
Code to Test Ratio 1:0.7 1:0.7 -0.0
Test Execution Time 3m39s 4m1s +22s
Details ``` diff | | main (fad1156) | #867 (e93488f) | +/- | |---------------------|----------------|----------------|-------| - | Coverage | 66.0% | 66.0% | -0.0% | | Files | 71 | 71 | 0 | | Lines | 7479 | 7480 | +1 | | Covered | 4935 | 4935 | 0 | - | Code to Test Ratio | 1:0.7 | 1:0.7 | -0.0 | | Code | 13566 | 13569 | +3 | | Test | 9745 | 9745 | 0 | - | Test Execution Time | 3m39s | 4m1s | +22s | ```

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

Files Coverage +/-
operator.go 79.7% -0.1%

Reported by octocov