Scripts: coverage_gate fails new stages that panic or fail validation #2344
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by safesearch77 on 2026-11-25T16:27:39Z.
scripts/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.Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T16:35:49Z.
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.
upstream-sync referenced this pull request2026-11-25 18:03:20 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T18:37:30Z.
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!
Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T21:06:46Z.
Review: COMMENTED
No concrete defect found. The coverage gate correctly fails newly observed validation failures, panics, and timeouts while retaining new-stage diagnostics; tests and current Windows CI are green. The assumed complete WORSEN-key schema is pre-existing and fine if report schema guarantees it. I found no blocker.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:41:13Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:54:12Z.
Triage (#1607) – head
d32f6dfNo open or merged PR makes the same change. #2099 also touches
coverage_gate.py, but only its argument and file validation inmain(), notcompare().In
compare(), a stage that is new to the baseline now counts as a regression when it has validator failures, panics or timeouts, as if its baseline counts were 0. The test exercises bothcompare()and the CLI exit code. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.