diff options
| -rw-r--r-- | AGENTS.md | 1 | ||||
| -rw-r--r-- | Magefile.go | 9 |
2 files changed, 10 insertions, 0 deletions
@@ -16,6 +16,7 @@ mage integrationTest # Build + run integration tests (defa INTEGRATION_PARALLEL=1 mage integrationTest # Force serial integration tests mage generate # Generate code (required after modifying tracepoint definitions) mage bench # Run benchmarks +mage prReview # Run PR review baseline: world + benchProf mage clean # Clean build artifacts mage world # Clean + generate + test + build (recommended reset path) ``` diff --git a/Magefile.go b/Magefile.go index e2f5b69..42981f5 100644 --- a/Magefile.go +++ b/Magefile.go @@ -127,6 +127,15 @@ func Bench() error { return sh.RunWithV(goEnv(), "go", "test", "./...", "-v", "-bench=.", "-run", "xxx") } +// PrReview runs a reproducible baseline for Codex-assisted PR reviews. +func PrReview() error { + fmt.Println("Running PR review baseline: world + benchProf") + if err := World(); err != nil { + return err + } + return BenchProf() +} + // BenchProf runs pipeline benchmarks and writes timestamped pprof artifacts. func BenchProf() error { if err := ensureBenchProfilesDir(); err != nil { |
