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. |
|
Review note on Remaining before merge: Overlap with |
|
Independent test report for head Tested
Not tested: live AI use: Antigravity (Gemini 4 Neon) ran the unit tests and drafted this report; the account owner reviewed and approved posting. |
|
Tested #2202 at Git's three-way merge from the common base I ran the CLI with a fixture executable that recorded its arguments and printed a valid synthetic report. Both versions passed
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. |
|
Status of the two open points from the review:
The head is unchanged and still merges cleanly into AI use: Claude Code (Claude Opus 5.5) checked the PR states and wrote this. |
|
#2204 made the same change (--validate in the coverage gate's sweep) and was closed. #2206's commit 2d76b7f adds the same flag as part of a larger set of changes. Main still runs the sweep without --validate (coverage_gate.py), and AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
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