Scripts: coverage_gate fails new stages that panic or fail validation #2354
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!2354
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2354"
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?
@safesearch77 on GitHub · 2026-11-25 16:27 UTC · original
safesearch77:scripts/coverage-gate-new-stage-failures→main· +26 −1 · 2 files · 1 commits · openscripts/coverage_gate.pyreported shader stages absent fromtests/data/coverage-baseline.json(which currently tracksCS,GS,MS,PSandVSonly) as a note without checkingvalidator_failed,panickedortimeout. A sweep introducing a new stage such asHS,DS,ASorLIBwith panics, timeouts or validator failures therefore exited0withcoverage gate: no regressions.Check
WORSENcounts against0on new stages too while preserving the note when a new stage is clean.What is in it
scripts/coverage_gate.py: checkvalidator_failed,panickedandtimeout> 0 for stages inrun["stages"]that are not yet inbaseline["stages"].scripts/test_coverage_gate.py: addtest_new_stage_with_validator_failure_panic_or_timeout_is_a_regressioncoveringcompare()andmain()exit status1.Tested
7.3.5-2-cachyosx86_64), Intel Core i9-13900HX, NVIDIA GeForce RTX 4070 Laptop GPU (driver620.73.04), Python 3.14.10, commitd32f6dfonmain0829441.python3 -B -m unittest discover -s scripts -p 'test_*.py' -v: 26 passed, 0 failed (test_coverage_gate.py: 10 passed; verifiedtest_new_stage_with_validator_failure_panic_or_timeout_is_a_regressionfails againstmain'sscripts/coverage_gate.py).python3 scripts/pr_check.py --local:description ok.Not tested
cargo test --workspace, andscripts/smoke.ps1(Python coverage gate and unit tests underscripts/only).AI use
WORSENcheck on new stages, wrote the fix, unit test, and PR description; reviewed with Claude Opus 5.5 and verified locally withunittestandpr_check.py --local.compare() reported shader stages absent from the baseline only as a note ("new stage in the sweep") without checking WORSEN counts. Because tests/data/coverage-baseline.json currently lists only CS, GS, MS, PS and VS, a sweep introducing HS, DS, AS or LIB with non-zero validator_failed, panicked or timeout counts exited 0 with "coverage gate: no regressions". Check WORSEN > 0 on stages not yet in the baseline while keeping the note when a new stage is clean. Assisted-by: Antigravity (Gemini 4 Carbon)@RavenCurseBurg on GitHub · 2026-11-25 16:35 UTC · original · edited 2026-11-25 16:40 UTC
Windows check of
d32f6df910b1ba31fc942009ea8e2bf3dbf848f4against its parent082944135cd2b96288470a595861fa608eee08dc. The script test suite passed all 26 tests withpython -B -m unittest discover -s scripts -p "test_*.py".I ran seven saved-sweep fixtures through
python -I scripts/coverage_gate.py --run-json <sweep.json> --baseline <baseline.json>on each revision (14 CLI executions). The temporary baseline contained just CS.Windows 11 26100.9711, i7-13700, RTX 4060, Python 3.14.3. These were comparison-mode checks with synthetic JSON; no shader compilation, real pack, GPU or baseline update. OpenAI Codex (GPT-6) ran the checks and prepared this report.
@DavidM1911 on GitHub · 2026-11-25 18:37 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.