Repository navigation
Scripts: the coverage gate's sweep runs the validator - #2202
NWProgramming00 wants to merge 1 commit into
Conversation
coverage_gate.py ran `xcl shaders <pack> --direct --sample 0 --json` without `--validate`. A release xcl only runs DXC's validator on a direct translation when `--validate` is given (direct_sweep -> coverage::translate_mode), so `validator_failed` was 0 in every sweep and the gate could never report the validator regressions it checks for (xcl-dev#2196). The command is built by `sweep_command` and passes `--validate`; a unit test pins it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Code review on
Remaining before merge: |
|
Independent Windows verification for #2196. I downloaded the gate, its tests and the baseline at exact #2202 head The exact #2202 script ran live against a complete local shader pack using 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 AI use — OpenAI Codex (GPT-6.2 Sol) ran the checks and wrote this report. |
Fixes #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