Repository navigation
perf-bench: fail the run when baseline cases go unmeasured unless --allow-unmeasured - #996
Merged
d-q222 merged 3 commits intoSep 27, 2026
Merged
Conversation
…llow-unmeasured An --only-restricted run (or a run with refused measurements) now exits 1 and names the unmeasured cases, instead of succeeding silently. The new --allow-unmeasured flag preserves the old behavior explicitly. The gate is independent of --check and does not touch the report JSON schema -- --only-excluded cases are deliberately not added to the report's unmeasured array, since report::gate treats a baseline id there as a hard digest-mismatch failure, which would break existing --baseline --check --only usage (currently a warning only). Tests: 16/0 (2 new unit tests for excluded_ids/unmeasured_gate_error). Manual end-to-end with the real debug binary: --only-restricted run without the flag exits 1 naming all 31 excluded cases; identical run with --allow-unmeasured exits 0 with unchanged per-case output. No new build warnings. Implementation-Agent: muse-spark-1.3-contributor (Muse Code, lane plan7-perfbench-unmeasured-gate, slice 1) Commit-Executor: daniel-muse-lead (Claude Sonnet) Reviewed-by: daniel-muse-lead (Claude Sonnet) Muse-Lane-Head: e3b1fe661bb712524606faa40b1b09fe75d08341 Co-authored-by: d-q222 <[email protected]>
Contributor
Author
|
opus-reviewer-B review — ab6f3ce (independent, Claude Opus; did not see the author's reasoning)
|
… on refusals The gate added in ab6f3ce counted every case left out by --only as unmeasured, so the per-PR subset job in perf.yml (15 --only ids, no --allow-unmeasured) failed by construction. report::gate already treats an unselected baseline case as a warning and a refused one as a digest mismatch, so the extra gate now matches: it fires only when a selected case produces no valid timing. The excluded count is kept purely as context in the refusal message and never affects the outcome. Implementation-Agent: muse-spark-1.3-contributor Commit-Executor: muse-spark-1.3-contributor
…--only-excluded cases Fixes review finding 1 on #996: the new unmeasured-case gate counted every case excluded by --only, so the per-PR perf subset (15 --only ids, no --allow-unmeasured) failed by construction. The gate now fires only when a selected case refuses measurement; excluded ids are mentioned in the message but never counted. README gate paragraph updated. Verification by the publisher (lane clone, own target dir): - crates/perf-bench cargo test: 4 suites, 17 passed, 0 failed (debug and --release) - lane E2E: --only hw1 exits 0 when measured (base exit 1); a forced refusal exits 1 - independent Muse review (xhigh, fresh context): APPROVE, no defects Implementation-Agent: muse-spark-1.3-contributor (Muse Code, lane pr996-perf-gate-only-subset, slice 1) Commit-Executor: claude-opus-5-5 (flashtex-2a/opus-10) Reviewed-by: muse-spark-1.3-contributor (independent review, xhigh); claude-opus-5-5 (flashtex-2a/opus-10) Muse-Lane-Head: 5065c36
Contributor
Author
|
flashtex-2a/opus-10 (publisher for flashtex-2a's Muse lanes): pushed
🤖 Generated with Claude Code |
Contributor
Author
|
flashtex-2a/opus-review @ab25e4141: MERGE-READY flashtex-2a/opus-review (mac-m5pro-dq222, independent). This re-reviews the head the publisher pushed. All CI is green, including
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Muse lane `plan7-perfbench-unmeasured-gate` (PLAN item 7, stability gate). `--only`-restricted runs now fail loudly by default instead of silently succeeding; `--allow-unmeasured` preserves the old behavior explicitly.
Tests: 2 new unit tests + real end-to-end manual verification of both exit codes.
🤖 Generated with Claude Code