Tests: report failures when replaying a single DXIL fuzz seed #2124
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!2124
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2124"
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?
@mokkamokacaffe on GitHub · 2026-11-25 05:24 UTC · original
mokkamokacaffe:tests/dxil-debug-seed-verdict→main· +22 −18 · 1 files · 1 commits · draftPart of #2115. Replaying a failing seed with the existing ignored
debug_seedtest can print a validator error, a driver error, or a count of mismatches and still exit successfully. Make a single-seed run return the same failure as the batch when it reaches that check.What is in it
crates/xcl/src/gpu/dxil/fuzz_tests.rs, reuse the batch's validator and GPU comparison in the single-seed diagnostic. Both paths identify the first mismatching output index and the GPU and CPU values. The diagnostic still prints the disassembly and honorsFUZZ_WATCH. Validation-only seeds and unavailable wave32 hardware get a skip message.$env:FUZZ_SEED='722'and runcargo test -p xcl --lib gpu::dxil::fuzz_tests::debug_seed -- --exact --ignored --nocapture.Tested
git diff --checkpassed. Checked the shared comparison against the original batch loop, including its result indexing and dispatch arguments.Regression run
Test harness only.
Not tested
lib.exeis unavailable. The AMD compiler issue remains open.AI use
@luckyteagirl on GitHub · 2026-11-25 05:31 UTC · original
Windows/RX 6800M verification on exact head
ced97c2af0c5cca480b4aa926681896cfa9cf3b9(clean detached worktree). Main control wasf5c5bdf0e91035f8f1404f46f4f2f7aedc259e7f.Tested: Windows 11 build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (RDNA2), driver
30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5. Debug test profile,XCL_ADAPTER=6800M,XCL_REQUIRE_GPU=1,XCL_DIRECT_DXIL=0. For each seed I setFUZZ_SEEDand rancargo test --locked -p xcl --lib -j 2 gpu::dxil::fuzz_tests::debug_seed -- --exact --ignored --test-threads=1 --show-output.CreateComputePipelineStatedevice suspension0x887A0005but exited 0 (1 passed)SKIPPED ... seed is validation-onlyThis verifies the new diagnostic propagates a real Windows GPU pipeline failure while a GPU-safe success still passes. It does not explain the driver suspension or verify the seed 722 result mismatch from issue #2115. I did not run the full workspace suite, other adapters, or a retail title.
AI use: OpenAI Codex (GPT-6, exact variant not exposed in this session) built the PR head, ran and compared the seed probes, reviewed the diff, and drafted this report.
@upipibi on GitHub · 2026-11-25 05:36 UTC · original
Checked on an RTX 3070 (Ampere, driver 616.56), Windows 11, debug, at
ced97c2, with seeds whose outcome on this card is known:FUZZ_SEED=56927(wrong results on NVIDIA):debug_seednow fails (exit 101).FUZZ_SEED=6286(the driver refuses the pipeline:CreateComputePipelineStatereturnsE_OUTOFMEMORY): fails and reports the driver error.FUZZ_SEED=1599(clean): passes.cargo test -p xcl --lib -- fuzz_: 5 passed, 2 ignored.Both failing seeds are NVIDIA driver issues, not translator bugs. 56927 is an i64 multiply of a zero-extended
0x80000000by a sign-extended value, with the wrong sign. 6286 is an i32uremby a constant ≥ 2^31 of aWaveReadLaneFirstvalue inside a loop, which the driver refuses to compile. Neither form comes out of XCL's translators.AI-assisted (Claude Code). Synthetic tests only.
@DavidM1911 on GitHub · 2026-11-25 06:17 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!
@ettehn on GitHub · 2026-11-25 09:24 UTC · original
One remaining diagnostic edge on
ced97c2:debug_seedunwraps disassembly beforecheck_valid. If the emitter produces a container that both reject, the replay exits with a generic unwrap panic and no seed, while the batch names the seed and validator error. A local test using an empty container (rejected by XCL’s length check before DXC) reproduced that discrepancy. Movingcheck_validahead of disassembly made it pass withseed 314: validator rejected the module. A disassembly-only error can also include the seed.Native Windows with WARP: seed 722 still prints
FUZZ_WATCH=30with CPU0x7fffffffand explicitly skipsno wave32. Seed 500 reportsseed is validation-only. WithXCL_REQUIRE_GPU=wave64, the missing wave32 result on seed 722 exits 101, as directed by the existing strict skip policy. No hardware adapter was exercised.AI use — OpenAI Codex (GPT-6) ran the checks and wrote the local diagnostic patch.
@Lum7nt on GitHub · 2026-11-25 12:47 UTC · original
Windows hardware check on clean head
ced97c2af0c5cca480b4aa926681896cfa9cf3b9: Radeon RX 9070 XT, driver32.0.32029.2010, DXC 1.9.2609.5. For each seed I setFUZZ_SEEDand ran:cargo test --offline --locked --release -p xcl --lib gpu::dxil::fuzz_tests::debug_seed -- --exact --ignored --nocapture --test-threads=10x7fffffff).These are synthetic diagnostic runs, not a full workspace or retail test. The corresponding batch failures also reproduced on the tested main control; this report does not establish their cause.
AI use: OpenAI Codex (GPT-6; exact variant unavailable) ran the checks and drafted this report.
@anes66 on GitHub · 2026-11-25 15:29 UTC · original
Native Windows CPU-only verification of exact head
ced97c2af0c5cca480b4aa926681896cfa9cf3b9passed, using optional test-only companion 0a5cdfb. It addsXCL_FUZZ_CPU_ONLY=1to avoid capability queries as well as dispatch, including single-seed diagnostics. The normal GPU path remains selected when unset.Tested
XCL_FUZZ_CPU_ONLY=1 cargo test --locked -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_ -j 2 -- --nocapture --test-threads=1: 4 passed / 0 failed / 0 ignored; 2,000 validated, 0 GPU-compared. The same corpus also passed on the combined local optimizer tree based on main06c9f55(another 4/0/0, 0 GPU comparisons).FUZZ_SEED=722,FUZZ_WATCH=0, CPU-only mode,debug_seed --exact --ignored --nocapture: 1 passed / 0 failed, with one explicit GPU-comparison skip. Disassembly and the CPU watch output were produced.Container part 'Feature Info' does not match expected for module; this PR's diagnostic exits 101. Restoring only the old print-the-Result behavior on the same invalid container exits 0, demonstrating the false success the PR fixes. All temporary mutations were removed before the final passing runs and commit.Not tested
GPU comparison/error/mismatch paths, AMD seed 722 execution, full workspace or a title. The two 2,000-seed results are validator coverage, not shader-output parity.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.