Scripts: the coverage gate's sweep runs the validator #2202
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!2202
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2202"
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?
@NWProgramming00 on GitHub · 2026-11-25 09:23 UTC · original
NWProgramming00:fix/coverage-gate-validate→main· +25 −7 · 2 files · 1 commits · openFixes #2196.
scripts/coverage_gate.pyranxcl shaders <pack> --direct --sample 0 --jsonwithout--validate. In a release builddirect_sweep(crates/xcl/src/shaders.rs) passesvalidatetocoverage::translate_modeonly when--validateis given, and only then does DXC's validator run on the direct DXIL. Sovalidator_failedwas 0 in every sweep the gate ran, and its check for stages that gained validator failures (#1999) could never fire.What is in it
scripts/coverage_gate.py: the sweep command is built by a newsweep_command(), which passes--validate. The docstring says why.scripts/test_coverage_gate.py: two unit tests that pin the command,--validateincluded, and the--threadspass-through.Tested
py -m unittest test_coverage_gate -vinscripts/: 11 passed (9 existing, 2 new).--validateremoved fromsweep_command,test_sweep_validates_every_programfails. With it back, all 11 pass.target\release\xcl.exe shaders tests\data\testgame\data --direct --sample 0 --validate --json(release build of568e7db) exits 0 and prints the JSON report thatsweep_jsonreads. That folder holds no console shaders, so this shows only that xcl accepts the gate's new command line.Not tested
tests/data/coverage-baseline.json. Itsvalidator_failedcounts are 0 because the validator never ran when it was made. If the validator rejects programs today, the next gate run will report them against that baseline, and--updateon a known-good build rewrites it.AI use
🤖 Generated with Claude Code
@raylitebull on GitHub · 2026-11-25 10:46 UTC · original
Code review on
9b834ce:sweep_command(xcl, rpf, threads)inscripts/coverage_gate.pywith--validateandSweepCommandTestscleanly ensures release coverage sweeps run DXC validation.#2204(17f5284), which adds--validateto the samecoverage_gate.pycommand.Remaining before merge:
Build and testfinishing green plus independent verification on9b834ce.@ettehn on GitHub · 2026-11-25 11:02 UTC · original
Independent Windows verification for #2196. I downloaded the gate, its tests and the baseline at exact #2202 head
9b834ceand checked the files against their Git blob IDs.python -B -m unittest discover -s scripts -p test_coverage_gate.pypassed 11/11.The exact #2202 script ran live against a complete local shader pack using
xcl.exefrommain629a30b(Windows 11 build 26200.9974, DXC/DXIL 1.8.2502.11, four threads).python scripts/coverage_gate.py --xcl <bin> --rpf <pack> --threads 4exited 0 and printedcoverage gate: no regressions. CPU only, 541.6 MiB peak job commit.A separate validated sweep with the same binary and input returned 22,445 translated programs (CS 1,636, GS 390, MS 8,724, PS 9,511, VS 2,184), zero validator failures, panics or timeouts. Its regenerated baseline was byte-identical to the committed one. I also checked #2204’s exact gate and tests at
17f5284: 10/10 unit tests passed, the saved validated report passed the gate, and its live single-record sweep validated successfully.AI use — OpenAI Codex (GPT-6.2 Sol) ran the checks and wrote this report.
@raylitebull on GitHub · 2026-11-25 18:28 UTC · original
Review note on
9b834ce:sweep_command(xcl, rpf, threads)cleanly extracts and tests--validatewithout anyMagicMock.returncodefragility.Remaining before merge: Overlap with
#2204(both fix#2196inscripts/coverage_gate.py) should be coordinated, and#2202still needs an AMD verification pass on9b834ce.@thiagocalile on GitHub · 2026-11-25 19:11 UTC · original
Independent test report for head
9b834ce6f85cdd1cc62b311dd075f6c3cd468fb2on a Windows 11 host with an AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64).Tested
32.0.21045.29003), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Python 3.14.python -m unittest discover -s scripts -p "test_coverage_gate.py" -v: 11 passed, 0 failed (0.001 s,OK).Not tested: live
scripts/coverage_gate.pysweep against a retail shader pack, Linux/Wine, orcargo test(Python-only PR).AI use: Antigravity (Gemini 4 Neon) ran the unit tests and drafted this report; the account owner reviewed and approved posting.
@RavenCurseBurg on GitHub · 2026-11-25 21:07 UTC · original · edited 2026-11-25 21:15 UTC
Tested #2202 at
9b834ce6f85cdd1cc62b311dd075f6c3cd468fb2together with #2265 atcc2f28a60f5ef079af7b9f359e5887a9f22f793a. Windows 11 build 26100.9711, Core i7-13700, Python 3.14.3.Git's three-way merge from the common base
568e7dbhas two text conflicts: the subprocess call inscripts/coverage_gate.pyand one import inscripts/test_coverage_gate.py. The resolved #2265 change on top of #2202 retains the original author, the validator-enabled command, the child status check and both test classes.I ran the CLI with a fixture executable that recorded its arguments and printed a valid synthetic report. Both versions passed
--direct --sample 0 --validate --json --threads 3. With #2202 alone, an exit-7 child could still update a baseline. With the combined change, comparison and--updateboth returned 2, included the child's diagnostic and preserved the original baseline bytes. A clean report returned 0, a validator regression returned 1, and a successful update wrote the new counts.python -B -m unittest discover -s scripts -p test_coverage_gate.pypassed 11/11 on #2202 and 12/12 on the candidate. The complete Python script suite passed 28/28 on the resolved combined scripts.Not tested — A real shader pack, DXC validation, the Rust workspace or GPU execution. OpenAI Codex (GPT-6) resolved the two edits, prepared and ran the fixtures, and wrote this report.
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.