Tests: report failures when replaying a single DXIL fuzz seed #2114
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-25T05:24:14Z.
Review follow-up
On
dfff5714, the source review found that the merge preserved the wave32 guard around GPU comparison and requested a rebase. One diagnostic issue remains: if disassembly fails,debug_seedcan panic before validation reports the seed and validator message. The reviewer suggested validating first or handling the disassembly error explicitly. AI-assisted source reviewPart 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.Independent Windows tests on head
ced97c2af0c5cca480b4aa926681896cfa9cf3b9:0x887A0005) on mainf5c5bdf0e91035f8f1404f46f4f2f7aedc259e7fand the PR. Main exited 0 and the PR correctly exited 101. Seed 503 passed on the GPU and seed 500 reported a validation-only skip. luckyteagirl's paired runRegression run
Test harness only.
Not tested
AI use
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T05:31:02Z.
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.
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T05:36:49Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T06:17:50Z.
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!
Imported from ivall/xcl. Originally posted by ettehn on 2026-11-25T09:24:04Z.
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.
Imported from ivall/xcl. Originally posted by Lum7nt on 2026-11-25T12:47:36Z.
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.
Imported from ivall/xcl. Originally posted by anes66 on 2026-11-25T15:29:09Z.
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.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:00Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:25:35Z.
Triage (#1607) – head
ced97c2No open PR makes the same change. #2875 also edits
fuzz_tests.rsbut onlyrun_seeds' skip reporting, so the two will conflict on text but do not overlap in behaviour. #2231 (same issue #2115) changes the Countbits folding inops.rsand is unrelated.debug_seedstill callsvalidate::disassemble(&c).unwrap()beforecheck_valid, so a container that fails to disassemble panics without the seed or the validator error. The description already lists this gap.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T13:50:29Z.
Follow-up review of
dfff5714, sinceced97c2(code reading only, not a merge-check) · 1 medium, 1 nitIn short: The only new commit since
ced97c2isdfff5714, which mergesmaininto the branch.mainnow gates the GPU comparison inrun_seedsonwave32_supported, and the merge resolves the conflict by keeping that gate around the newcompare_seed_on_gpu, which is right. The branch should be rebased rather than merged withmain, and one small earlier point is still open.Medium
mainis merged into the branch instead of rebased. CONTRIBUTING.md asks to keep a PR up to date "by rebasing ontomain, not by mergingmaininto it". Because history is merged with merge commits,dfff5714would land inmainas is, with its conflict resolution hidden inside it. Rebaseced97c2ontomainand force-push. The resolution can stay as it is:if matches!(wave32, Ok(true)) && p.gpu_safe && seed % gpu_every == 0 { compare_seed_on_gpu(…) }.Nit
debug_seedstill disassembles before it validates (still open).validate::disassemble(&c).unwrap()(fuzz_tests.rs~1221) runs beforecheck_valid(seed, &c), so a container that does not disassemble panics without the seed or the validator's message. Callcheck_validfirst, or print the disassembly error the waycompare_seed_on_gpudoes (unwrap_or_else(|d| d)).Checked and fine
run_seedsstill compares a seed on the GPU only when wave32 is supported. Without wave32 it only validates, as onmain.debug_seedcallsskip_testfor a validation-only seed, for no wave32 and for a wave32 query error. The signatures match:wave32_supported() -> Result<bool, String>,skip_test(&str). A GPU mismatch now panics, so the test fails, as the PR intends.compare_seed_on_gpukeepsmain's panic messages unchanged, sorun_seedsreports a failure as before.Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.