k1LoW / runn

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

Add `exec.background:` for executing commands in the background. #943

Closed k1LoW closed 4 months ago

k1LoW commented 4 months ago

SSIA.

github-actions[bot] commented 4 months ago

BenchmarkManyRunbooks-4

main (-) #943 (fe96330) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 3,749,183,204 ns/op 3,810,067,991 ns/op 60,884,787 ns/op
Bytes allocated per iteration 1,794,208,480 B/op 1,793,920,056 B/op -288,424 B/op
Allocs per iteration 21,439,365 allocs/op 21,439,074 allocs/op -291 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#943](https://github.com/k1LoW/runn/pull/943) ([fe96330](https://github.com/k1LoW/runn/commit/fe963309a17652b3e91b4f2a1d656981d3d39a53)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #943 (fe96330) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 5,095,741,862 ns/op 5,117,442,122 ns/op 21,700,260 ns/op
Bytes allocated per iteration 2,952,221,968 B/op 2,952,282,512 B/op 60,544 B/op
Allocs per iteration 29,384,807 allocs/op 29,384,347 allocs/op -460 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#943](https://github.com/k1LoW/runn/pull/943) ([fe96330](https://github.com/k1LoW/runn/commit/fe963309a17652b3e91b4f2a1d656981d3d39a53)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (-) #943 (fe96330) +/-
Number of iterations 18 18 0
Nanoseconds per iteration 65,074,188 ns/op 64,434,824 ns/op -639,364 ns/op
Bytes allocated per iteration 60,306,551 B/op 60,302,009 B/op -4,542 B/op
Allocs per iteration 205,993 allocs/op 205,981 allocs/op -12 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#943](https://github.com/k1LoW/runn/pull/943) ([fe96330](https://github.com/k1LoW/runn/commit/fe963309a17652b3e91b4f2a1d656981d3d39a53)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **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 (fb1ea8b) #943 (fe96330) +/-
Coverage 64.1% 64.2% +0.0%
Code to Test Ratio 1:0.4 1:0.4 -0.1
Test Execution Time 5m8s 6m7s +59s
Details ``` diff | | main (fb1ea8b) | #943 (fe96330) | +/- | |---------------------|----------------|----------------|-------| + | Coverage | 64.1% | 64.2% | +0.0% | | Files | 75 | 75 | 0 | | Lines | 8196 | 8216 | +20 | + | Covered | 5259 | 5275 | +16 | - | Code to Test Ratio | 1:0.4 | 1:0.4 | -0.1 | | Code | 23574 | 23606 | +32 | + | Test | 11191 | 11198 | +7 | - | Test Execution Time | 5m8s | 6m7s | +59s | ```

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

Files Coverage +/-
capture/runbook.go 77.7% +0.2%
capturer.go 94.8% 0.0%
cmdout.go 55.7% 0.0%
debugger.go 94.5% 0.0%
exec.go 78.0% -4.1%
parse.go 73.1% +0.2%

Reported by octocov