Repository navigation
Scripts: validate DXIL in coverage gate sweeps - #2204
luckyteagirl wants to merge 1 commit into
Conversation
The gate compared validator_failed counts without asking the direct sweep to run the validator. Pass --validate and cover the spawned command with a regression test. A full 22,445-program sweep on the owned shader pack confirmed the baseline counts remain unchanged.
|
Code review on
Remaining before merge: |
|
Tested Tested
Not tested DXIL validation by a real DXC, the Rust/GPU suite or retail shader packs. AI use OpenAI Codex (GPT-6) ran the checks, prepared the one-line fixture change and drafted this report. |
|
NVIDIA / Windows run. Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head 17f5284. Result: cargo test --workspace -- --test-threads=4: 1154 passed, 0 failed, 46 ignored. SKIPPED: 18 GPU tests for no wave64 (expected on this card) and the usual per-lane / heap-window / driver-cache skips. Not tested: the coverage gate script itself on a shader pack (no pack used). AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Fixes #2196. The coverage gate checked
validator_failedbut never asked the direct shader sweep to validate DXIL, leaving that regression check ineffective.What is in it
scripts/coverage_gate.pypasses--validateto the complete direct sweep and documents the validated command.scripts/test_coverage_gate.pychecks the command the gate launches. It failed before the flag was added and passes now.Tested
30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. Debug workspace and releasexclbuilds passed.python -m pytest scripts/ -q: 26 passed.git diff --check: clean.python scripts/coverage_gate.py --update --xcl <main-release-xcl> --rpf <owned-shader-pack> --threads 4: completed against all 22,445 programs. CS 1,636; GS 390; MS 8,724; PS 9,511; VS 2,184. All translated and validated, with 0 validator failures, panics or timeouts. Regeneratingtests/data/coverage-baseline.jsonproduced no diff. The main binary was built from6020a33b, whosecrates/xcltree is identical to current main568e7db(only README and SVG changed).python scripts/coverage_gate.py --xcl <this-head-release-xcl> --rpf <same-owned-shader-pack> --threads 4: coverage gate: no regressions.cargo build --locked --workspace -j 2thencargo test --locked --workspace --no-fail-fast -j 2 -- --test-threads=4 --show-outputwithXCL_ADAPTER=6800M: 992 passed, 161 failed, 46 ignored; 23 explicit SKIPPED messages. The library GPU failures followed RX 6800M device suspension0x887A0005; all three e2e tests passed. The whole GPU suite is not green.Not tested
validator_failedcount. Other GPUs and newer drivers were not tested. This changes a script only, so no title smoke was needed.AI use
OpenAI Codex (GPT-6; exact variant not exposed in this session) wrote the script change and regression test, ran the Windows builds, Python tests, full owned-pack sweeps and GPU suite, and drafted this description. No game data was committed.