Tests: report skipped GPU comparisons in DXIL fuzzing #2875
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2875"
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 andrewDoing on 2026-11-26T20:32:49Z.
DXIL fuzz batches can validate all seeds and pass while making zero GPU comparisons on an adapter without wave32 support. Report the missing GPU coverage through the existing skip mechanism, including its strict GPU-required behavior.
What is in it
crates/xcl/src/gpu/dxil/fuzz_tests.rs: preserve CPU validation and report an unavailable GPU or wave32 support after each fuzz batch. This changes test code only.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4, with a writable workspace DXIL cache: 1,441 passed, 5 failed, 47 ignored. The failures also occurred on clean main8b957bec: four DXIL fuzz shards at seeds 70, 545, 1019, 1507 (CreateComputePipelineState0x8007000E, #1905) andtest_title_runs_under_the_debug_layer_with_dred(access violation). The latter passed 4/4 when the unchanged patch from #1156 was applied separately to main; the precise cause is unconfirmed.no wave32skips. Before the change, one 500-seed batch passed without reporting a skip. WithXCL_REQUIRE_GPU=mesh, the same WARP batch now fails as expected after validating the seeds, rather than passing with no comparisons.Regression run
scripts/pr_check.py.Not tested
AI use
Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T07:30:30Z.
merge-check claim
head:
7876a7f699Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T07:47:09Z.
merge-check
base:
493dbd3dd0head:
7876a7f699merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2900 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache).
review: no blocking finding; one file (+7/-2, test code), every line read.
run_seedskeeps the result ofwave32_supported()and, after its loop, printsSKIPPED ...: no wave32orno GPUwhen the GPU comparisons were left out, where it said nothing before. On this adapter wave32 is supported, so the comparisons ran and no new SKIPPED line appears. Not tested here: an adapter without wave32, or no GPU, where the new line is printed (and whereXCL_REQUIRE_GPUwould now turn it into a failure).performance: none: test code only.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:06:12Z.
Triage (#1607) – head
7876a7fNo open or merged PR makes the same change. On main, run_seeds in gpu/dxil/fuzz_tests.rs still drops the GPU comparison without reporting it.
No problems found in the diff. It uses the same skip reasons as core_tests.rs ('no wave32', 'no GPU'). Note that wave32_supported() also returns Err when DXC is missing, which this PR reports as 'no GPU'.
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 fromthemoonx on 2026-12-01T17:31:13Z.
merge-check
base:
6bfb5c5153head:
7876a7f699merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2904 passed, 0 failed, 51 ignored (base: 2904 passed, 0 failed, 51 ignored); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: none
review: read the whole diff (
fuzz_tests.rs, +7 -2, test code). No findings.run_seedsstill validates every seed on the CPU, then callsskip_test("no wave32")orskip_test("no GPU")when no GPU comparison could run.gpu::dxil::fuzz_tests::(5 run, 2 ignored),--test-threads=4:XCL_ADAPTERunset (RTX 3060)XCL_ADAPTER=warpSKIPPED ...: no wave32, 0 GPU comparisonsXCL_ADAPTER=nosuchgpuSKIPPED ...: no GPUXCL_ADAPTER=warp,XCL_REQUIRE_GPU=meshno wave32, but XCL_REQUIRE_GPU=meshXCL_ADAPTER=warp,XCL_REQUIRE_GPU=wave64no wave32, but XCL_REQUIRE_GPU=wave64Main's binary with
XCL_ADAPTER=warp: 5 passed, 0 SKIPPED, 0 GPU comparisons, and also passes withXCL_REQUIRE_GPU=mesh. That is the silent gap the PR closes.performance: none: test code only.
verdict: safe to merge
hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)