Skip to content

Scripts: validate DXIL in coverage gate sweeps - #2204

Open
luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/coverage-validate
Open

luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/coverage-validate

Conversation

@luckyteagirl

Copy link
Copy Markdown
Contributor

Fixes #2196. The coverage gate checked validator_failed but never asked the direct shader sweep to validate DXIL, leaving that regression check ineffective.

What is in it

  • scripts/coverage_gate.py passes --validate to the complete direct sweep and documents the validated command.
  • scripts/test_coverage_gate.py checks the command the gate launches. It failed before the flag was added and passes now.

Tested

  • Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M driver 30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. Debug workspace and release xcl builds 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. Regenerating tests/data/coverage-baseline.json produced no diff. The main binary was built from 6020a33b, whose crates/xcl tree is identical to current main 568e7db (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 2 then cargo test --locked --workspace --no-fail-fast -j 2 -- --test-threads=4 --show-output with XCL_ADAPTER=6800M: 992 passed, 161 failed, 46 ignored; 23 explicit SKIPPED messages. The library GPU failures followed RX 6800M device suspension 0x887A0005; all three e2e tests passed. The whole GPU suite is not green.

Not tested

  • A real validator failure from the owned pack: all 22,445 programs validated. The existing comparison unit test covers an increased validator_failed count. 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.

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.
@luckyteagirl
luckyteagirl marked this pull request as ready for review November 25, 2026 09:32
@raylitebull

Copy link
Copy Markdown
Member

Code review on 17f5284:

  • Adding --validate to scripts/coverage_gate.py's xcl shaders invocation alongside GateCommandTests::test_gate_sweep_enables_validation cleanly enforces DXIL validation during baseline sweeps.
  • Note overlap with #2202 (9b834ce), which modifies the same coverage_gate.py command.
  • Diff audited and CI workflow approved (running).

Remaining before merge: Build and test finishing green plus independent verification on 17f5284.

@RavenCurseBurg

RavenCurseBurg commented Nov 25, 2026 •

Copy link
Copy Markdown

Tested 17f52840413fe857ff604d762cf91886a4a5e2ca on Windows 11 24H2 (26100.9711), Python 3.14.3, i7-13700.

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.

@jennydeth

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@throny throny added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scripts: coverage_gate.py never runs the validator, so its validator_failed check can't fire

6 participants