Scripts: validate DXIL in coverage gate sweeps #2204
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!2204
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2204/head"
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?
@luckyteagirl on GitHub · 2026-11-25 09:32 UTC · original
luckyteagirl:codex/coverage-validate→main· +20 −4 · 2 files · 1 commits · closed without mergingFixes #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.
@raylitebull on GitHub · 2026-11-25 10:45 UTC · original
Code review on
17f5284:--validatetoscripts/coverage_gate.py'sxcl shadersinvocation alongsideGateCommandTests::test_gate_sweep_enables_validationcleanly enforces DXIL validation during baseline sweeps.#2202(9b834ce), which modifies the samecoverage_gate.pycommand.Remaining before merge:
Build and testfinishing green plus independent verification on17f5284.@RavenCurseBurg on GitHub · 2026-11-25 13:05 UTC · original · edited 2026-11-25 13:09 UTC
Tested
17f52840413fe857ff604d762cf91886a4a5e2caon Windows 11 24H2 (26100.9711), Python 3.14.3, i7-13700.Tested
python -B -m unittest discover -s scripts -p test_coverage_gate.py: 10 passed, 0 failed, 0 skipped..cmdstanding in for XCL. It recorded the actual arguments and emitted stage JSON. The PR forwarded--validate,--sample 0and--threads 2. The base omitted--validate. A report increasing one stage's validator failures made the patched CLI exit 1.test_gate_sweep_enables_validationfailed: the mock'sreturncodeis aMagicMock, so the failed-sweep check returns 2 on the test's success case. Settingrun_sweep.return_value.returncode = 0fixes the fixture. One-line follow-up on this exact head.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.
@jennydeth on GitHub · 2026-11-25 14:45 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-25 15:54 UTC · original
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!
@raylitebull on GitHub · 2026-11-25 18:28 UTC · original
Review note on
17f5284: note overlap with#2202(9b834ce, same#2196fix inscripts/coverage_gate.py) and@RavenCurseBurg's finding intest_gate_sweep_enables_validation(run_sweep.return_value.returncode = 0needed for compatibility if#2265's returncode check lands).@luckyteagirl on GitHub · 2026-11-25 20:43 UTC · original
Thanks for the review and independent test runs. #2202 covers the same #2196 fix, has green CI, live shader-pack verification, and an AMD check. Its
sweep_commandtest also avoids the mocked-return-code incompatibility found when #2265 is combined with this PR.I’m closing #2204 to leave one implementation for the maintainer to review. No part of this branch needs to be merged separately.
AI use: OpenAI Codex (GPT-6; exact variant unavailable) compared the current PR discussions and drafted this coordination note.
github-bot referenced this pull request2026-11-26 06:18:31 +00:00
Pull request closed