Tests: report skipped GPU comparisons in DXIL fuzzing #2875

Merged
andrewDoing merged 1 commit from upstream-pr/2875 into main 2026-12-02 17:39:23 +00:00
andrewDoing commented 2026-11-26 20:32:49 +00:00 (Migrated from github.com)

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

  • NVIDIA RTX 5070, driver 616.92; Ryzen 7 5700X3D; Windows build 26300.10075; Rust 1.100.0 MSVC, debug; SDK DXC/DXIL 1.8.2502.11.
  • 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 main 8b957bec: four DXIL fuzz shards at seeds 70, 545, 1019, 1507 (CreateComputePipelineState 0x8007000E, #1905) and test_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.
  • 26 SKIPPED events: 21 no wave64, three unsupported per-lane forms, one unavailable driver-cache option, and one unavailable heap-windows feature. Multiple events can belong to the same test.
  • WARP, four fuzz batches: 4 passed, 0 failed, 0 ignored; 2,000 seeds validated, 0 GPU compared, and four explicit no wave32 skips. Before the change, one 500-seed batch passed without reporting a skip. With XCL_REQUIRE_GPU=mesh, the same WARP batch now fails as expected after validating the seeds, rather than passing with no comparisons.

Regression run

  • Not run: this test-only file is exempted from the retail smoke check by scripts/pr_check.py.

Not tested

  • A retail title, AMD or Intel hardware, or a full suite with the separate fixes from #1905/#1156 applied.

AI use

  • OpenAI Codex with GPT-6.2 Astra identified the missing skip, wrote the change, and ran the tests. A second GPT-6.2 Astra agent reviewed the diff; Codex coordinated and prepared the PR.
<!-- greyfinch-sync:ivall/xcl:issue:5516776842 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2875). Originally posted by [andrewDoing](https://github.com/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** - NVIDIA RTX 5070, driver 616.92; Ryzen 7 5700X3D; Windows build 26300.10075; Rust 1.100.0 MSVC, debug; SDK DXC/DXIL 1.8.2502.11. - `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 main `8b957bec`: four DXIL fuzz shards at seeds 70, 545, 1019, 1507 (`CreateComputePipelineState` 0x8007000E, #1905) and `test_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. - 26 SKIPPED events: 21 no wave64, three unsupported per-lane forms, one unavailable driver-cache option, and one unavailable heap-windows feature. Multiple events can belong to the same test. - WARP, four fuzz batches: 4 passed, 0 failed, 0 ignored; 2,000 seeds validated, 0 GPU compared, and four explicit `no wave32` skips. Before the change, one 500-seed batch passed without reporting a skip. With `XCL_REQUIRE_GPU=mesh`, the same WARP batch now fails as expected after validating the seeds, rather than passing with no comparisons. **Regression run** - Not run: this test-only file is exempted from the retail smoke check by `scripts/pr_check.py`. **Not tested** - A retail title, AMD or Intel hardware, or a full suite with the separate fixes from #1905/#1156 applied. **AI use** - OpenAI Codex with GPT-6.2 Astra identified the missing skip, wrote the change, and ran the tests. A second GPT-6.2 Astra agent reviewed the diff; Codex coordinated and prepared the PR.
BBareth commented 2026-12-01 07:30:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T07:30:30Z.


merge-check claim
head: 7876a7f699

<!-- greyfinch-sync:ivall/xcl:comment:7304139448 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2875#issuecomment-7304139448). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T07:30:30Z. --- merge-check claim head: 7876a7f6994fb3a9d613dc8e8004decfd3229af8
BBareth commented 2026-12-01 07:47:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T07:47:09Z.


merge-check
base: 493dbd3dd0
head: 7876a7f699
merge: 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_seeds keeps the result of wave32_supported() and, after its loop, prints SKIPPED ...: no wave32 or no GPU when 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 where XCL_REQUIRE_GPU would 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.

<!-- greyfinch-sync:ivall/xcl:comment:7304476918 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2875#issuecomment-7304476918). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T07:47:09Z. --- merge-check base: 493dbd3dd0cd50b4c3e8d28f73ab9b504fcd8158 head: 7876a7f6994fb3a9d613dc8e8004decfd3229af8 merge: 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_seeds` keeps the result of `wave32_supported()` and, after its loop, prints `SKIPPED ...: no wave32` or `no GPU` when 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 where `XCL_REQUIRE_GPU` would 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.
Foniass commented 2026-12-01 09:06:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:06:12Z.


Triage (#1607) – head 7876a7f

No 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.

<!-- greyfinch-sync:ivall/xcl:comment:7306218437 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2875#issuecomment-7306218437). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:06:12Z. --- **Triage (#1607)** – head 7876a7f No 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.
fromthemoonx commented 2026-12-01 17:31:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-01T17:31:13Z.


merge-check
base: 6bfb5c5153
head: 7876a7f699
merge: 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_seeds still validates every seed on the CPU, then calls skip_test("no wave32") or skip_test("no GPU") when no GPU comparison could run.

  • gpu::dxil::fuzz_tests:: (5 run, 2 ignored), --test-threads=4:

    Setting Result
    XCL_ADAPTER unset (RTX 3060) 5 passed, no skip, 4 batches with 1232 GPU comparisons
    XCL_ADAPTER=warp 5 passed, 4 SKIPPED ...: no wave32, 0 GPU comparisons
    XCL_ADAPTER=nosuchgpu 5 passed, 4 SKIPPED ...: no GPU
    XCL_ADAPTER=warp, XCL_REQUIRE_GPU=mesh 4 failed with no wave32, but XCL_REQUIRE_GPU=mesh
    XCL_ADAPTER=warp, XCL_REQUIRE_GPU=wave64 4 failed with no wave32, but XCL_REQUIRE_GPU=wave64
  • Main's binary with XCL_ADAPTER=warp: 5 passed, 0 SKIPPED, 0 GPU comparisons, and also passes with XCL_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)

<!-- greyfinch-sync:ivall/xcl:comment:7319427901 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2875#issuecomment-7319427901). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-12-01T17:31:13Z. --- merge-check base: 6bfb5c5153ccc23517daf30aa1071ddb0fadb53c head: 7876a7f6994fb3a9d613dc8e8004decfd3229af8 merge: 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_seeds` still validates every seed on the CPU, then calls `skip_test("no wave32")` or `skip_test("no GPU")` when no GPU comparison could run. - `gpu::dxil::fuzz_tests::` (5 run, 2 ignored), `--test-threads=4`: | Setting | Result | |---|---| | `XCL_ADAPTER` unset (RTX 3060) | 5 passed, no skip, 4 batches with 1232 GPU comparisons | | `XCL_ADAPTER=warp` | 5 passed, 4 `SKIPPED ...: no wave32`, 0 GPU comparisons | | `XCL_ADAPTER=nosuchgpu` | 5 passed, 4 `SKIPPED ...: no GPU` | | `XCL_ADAPTER=warp`, `XCL_REQUIRE_GPU=mesh` | 4 failed with `no wave32, but XCL_REQUIRE_GPU=mesh` | | `XCL_ADAPTER=warp`, `XCL_REQUIRE_GPU=wave64` | 4 failed with `no wave32, but XCL_REQUIRE_GPU=wave64` | - Main's binary with `XCL_ADAPTER=warp`: 5 passed, 0 SKIPPED, 0 GPU comparisons, and also passes with `XCL_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)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2875
No description provided.