Repository navigation
ci(benchmarks): treat a blank baseline_branch.txt as no baseline in check-big-regressions - #4559
Conversation
…heck-big-regressions Without a PR, bp-runner writes baseline_branch.txt as a single newline, so the [ -s ] test from #4545 required baseline results that never ran and the gate failed on every full benchmark run of a branch with no PR yet. Check for a non-whitespace character instead, matching how fail-on-regression.sh reads the file ($(cat) strips the newline, so it warns and exits 0).
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 17a47e2 | Docs | View more details | Give us feedback! |
There was a problem hiding this comment.
More details
Newline-only baseline files no longer require nonexistent baseline reports; nonblank branch names still require baseline artifacts. The static reviewer found no actionable regressions.
🤖 Bits Code Review · Commit 17a47e2
Benchmarks [ tracer ]Benchmark execution time: 2026-11-25 17:51:50 Comparing candidate commit 17a47e2 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 217 metrics, 1 unstable metrics.
|
Description
check-big-regressionsfails on every full benchmark run of a branch that has no PR yet.#4545 made the gate require baseline
.converted.jsonfiles wheneverreports/baseline_branch.txtis non-empty ([ -s ... ]). Without a PR, bp-runner finds no baseline branch but still writes the file, as a single\n.-sis true for that file, so the gate asks forreports/baseline-*.converted.jsonfiles that were never produced and exits 1:This change sets the baseline side only when the file contains a non-whitespace character (
grep -q '[^[:space:]]'). bp-runner'sfail-on-regression.shalready reads the file asBASELINE_BRANCH=$(cat ...), which strips the newline, so with no PR it prints "BASELINE_BRANCH was not found" and exits 0. The gate now agrees with it.Testing: I extracted the job's
script:from the YAML and ran it under bash, withbp-runnerstubbed:baseline_branch.txt\nmaster\nI also ran
fail-on-regression.shagainst a newline-only file: it warns and exits 0.#4560 (benchmark reporting job speedup) also edits
.gitlab/benchmarks.yml. The two PRs don't depend on each other and both branch from master. In this job, that PR only changescheck-big-regressions'image:line, 10 lines above this one. I cherry-picked the two onto master in both orders and both applied without conflicts, so whichever merges second should rebase cleanly.Reviewer checklist