Scripts: reject failed live coverage sweeps #2732
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2732
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2732/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@luckyteagirl on GitHub · 2026-11-26 09:10 UTC · original
luckyteagirl:codex/coverage-gate-live-exit→main· +40 −1 · 2 files · 1 commits · closed without mergingThe coverage gate could accept a live shader sweep that exited nonzero if it printed valid JSON first. In update mode that output could replace the baseline. Check the child’s exit status before reading its report. A successful sweep still reaches the existing comparison, which reports regressions in the stage counts.
What is in it
scripts/coverage_gate.pyexits 2 on a failed live sweep and prints the child’s exit status and the tail of both output streams.scripts/test_coverage_gate.pycovers comparison and update with a nonzero child that prints valid JSON. A rejected update preserves the baseline bytes. Exit-zero fixtures cover a matching report and a translation regression.Tested
b49be183:python -B -m unittest discover -s scripts -p test_coverage_gate.py -vreported two failing subtests. Compare and update both returned 0 instead of 2.python -B -m unittest discover -s scripts -p 'test_*.py'passed all 27 tests, andgit diff --checkpassed.Regression run
Not tested
AI use
@luckyteagirl on GitHub · 2026-11-26 09:11 UTC · original
Closing this draft in favor of #2265. Independent review found that #2265 already checks a nonzero live sweep before parsing valid-looking JSON and covers both comparison and baseline update. The extra diagnostic tail and exit-zero controls here do not justify a competing PR. Thanks to the author of #2265 for covering the issue first. AI-assisted duplicate check (OpenAI Codex, GPT-6).
Pull request closed