Tests: XCL_REQUIRE_GPU does not fail the heap-window skip (#1651) #1680

Closed
github-bot wants to merge 1 commit from gh-pr/1680/head into gh-pr/1680/base
Owner

@⁠emirduran707 on GitHub · 2026-11-24 19:14 UTC · original
emirduran707:tests-require-gpu-opt-in-skip → main · +36 −7 · 1 files · 1 commits · closed without merging

XCL_REQUIRE_GPU=mesh (or =wave64) turned every skip reason except "no wave64" (or "no mesh shaders") into a failure. The heap-window test from 927adcc skips with "no heap windows" when XCL_HEAP_WINDOWS is unset. Heap windows are opt-in and off by default, so on any GPU that skip failed the run, and cargo then stopped at gpu_compute_e2e before running the later test binaries. Nothing is missing from the adapter there.

skip_test now leaves opt-in reasons out of the rule: "no heap windows" is still printed as SKIPPED and never fails. The rule moved into a function, skip_fails, so it can be tested without setting the variable from inside a parallel test.

Fixes #1651

What is in it

  • crates/xcl/src/gpu/recomp/runner.rs: skip_fails and OPT_IN_SKIPS, used by skip_test. Test required_gpu_fails_missing_hardware_not_opt_in_features: an opt-in reason never fails, missing hardware still does, and the wave64/mesh rules are unchanged.

Tested

  • AMD Radeon RX 9060 XT (driver 32.0.31044.16), Ryzen 5 5600, Windows 11 Pro 26300, Rust 1.100.0; tests debug, smoke release
  • cargo test --workspace -- --test-threads=4 on cfef9d8: 859 passed, 0 failed, 42 ignored; SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)
  • the failing test from #1651: XCL_REQUIRE_GPU=mesh cargo test -p xcl --test gpu_compute_e2e heap_window panics on main (no heap windows, but XCL_REQUIRE_GPU=mesh) and passes with this change (the test prints SKIPPED)

Regression run

main:

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: AMD Radeon RX 9060 XT
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1321 (PresentX 1323)
presents per 2 s (last 3): 44 22 24
device removals: 0
crashes: 0
peak commit: 47832 MB

this PR:

xcl-smoke v1
commit: cfef9d8e25a35bd991a70637b095fbf364b865b4
gpu: AMD Radeon RX 9060 XT
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1126 (PresentX 1126)
presents per 2 s (last 3): 0 1 1
device removals: 0
crashes: 0
peak commit: 48490 MB

Not tested

  • The game run is a regression check only; this changes no runtime path a title takes.
  • NVIDIA and Intel GPUs. XCL_HEAP_WINDOWS=1 runs, where the test does not skip.

AI use

  • Claude Code with Claude Opus 5.5: found the cause in the code from the issue, wrote the change, the test and this description; I reviewed the diff and ran the tests and smoke runs above.

🤖 Generated with Claude Code

**@⁠emirduran707** on GitHub · 2026-11-24 19:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1680) `emirduran707:tests-require-gpu-opt-in-skip` → `main` · +36 −7 · 1 files · 1 commits · closed without merging `XCL_REQUIRE_GPU=mesh` (or `=wave64`) turned every skip reason except "no wave64" (or "no mesh shaders") into a failure. The heap-window test from 927adcc skips with "no heap windows" when `XCL_HEAP_WINDOWS` is unset. Heap windows are opt-in and off by default, so on any GPU that skip failed the run, and cargo then stopped at `gpu_compute_e2e` before running the later test binaries. Nothing is missing from the adapter there. `skip_test` now leaves opt-in reasons out of the rule: "no heap windows" is still printed as `SKIPPED` and never fails. The rule moved into a function, `skip_fails`, so it can be tested without setting the variable from inside a parallel test. Fixes #1651 **What is in it** - `crates/xcl/src/gpu/recomp/runner.rs`: `skip_fails` and `OPT_IN_SKIPS`, used by `skip_test`. Test `required_gpu_fails_missing_hardware_not_opt_in_features`: an opt-in reason never fails, missing hardware still does, and the wave64/mesh rules are unchanged. **Tested** - AMD Radeon RX 9060 XT (driver 32.0.31044.16), Ryzen 5 5600, Windows 11 Pro 26300, Rust 1.100.0; tests debug, smoke release - `cargo test --workspace -- --test-threads=4` on cfef9d8: 859 passed, 0 failed, 42 ignored; SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows) - the failing test from #1651: `XCL_REQUIRE_GPU=mesh cargo test -p xcl --test gpu_compute_e2e heap_window` panics on `main` (`no heap windows, but XCL_REQUIRE_GPU=mesh`) and passes with this change (the test prints `SKIPPED`) **Regression run** main: ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: AMD Radeon RX 9060 XT title: retail-title seconds: 60 exit: 0x0 frames shown: 1321 (PresentX 1323) presents per 2 s (last 3): 44 22 24 device removals: 0 crashes: 0 peak commit: 47832 MB ``` this PR: ``` xcl-smoke v1 commit: cfef9d8e25a35bd991a70637b095fbf364b865b4 gpu: AMD Radeon RX 9060 XT title: retail-title seconds: 60 exit: 0x0 frames shown: 1126 (PresentX 1126) presents per 2 s (last 3): 0 1 1 device removals: 0 crashes: 0 peak commit: 48490 MB ``` **Not tested** - The game run is a regression check only; this changes no runtime path a title takes. - NVIDIA and Intel GPUs. `XCL_HEAP_WINDOWS=1` runs, where the test does not skip. **AI use** - Claude Code with Claude Opus 5.5: found the cause in the code from the issue, wrote the change, the test and this description; I reviewed the diff and ran the tests and smoke runs above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Heap windows are opt-in (XCL_HEAP_WINDOWS=1), so the skip of
heap_window_out_of_memory_falls_back_to_the_switch_form without them is
no missing GPU coverage, but skip_test turned it into a panic under
XCL_REQUIRE_GPU=mesh or =wave64 on every GPU, and cargo stopped before
the later test binaries. The rule moves into skip_fails, which leaves
opt-in reasons out, with a unit test.

Fixes #1651

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:01:24 +00:00
github-bot closed this pull request 2026-11-26 05:01:25 +00:00
Author
Owner

@⁠fromthemoonx on GitHub · 2026-11-24 19:29 UTC · original

NVIDIA run, since Not tested lists NVIDIA and XCL_HEAP_WINDOWS=1.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (32-lane waves, so wave64 runs split; mesh shaders supported), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974); rustc 1.100.0 stable-x86_64-pc-windows-msvc; debug
  • Exact head cfef9d8e25a35bd991a70637b095fbf364b865b4, which is on current main c160d86 (so also the merged result):
    • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 858 passed, 1 failed, 42 ignored. The failure was gpu_sparse_vram_descriptors_buffers_and_xmem (submit 1 lane 0 mismatch, left: 0, right: 1077), and it is not this PR. It passed 3 of 3 runs alone on this head and 3 of 3 on main, and the whole lib suite then passed 4 of 4 times on each. So that is 1 failure in 10 lib runs, only under the full workspace's load.
    • With XCL_REQUIRE_GPU=mesh, the same whole-workspace command: 859 passed, 0 failed, 42 ignored, all 20 test binaries ran. The only SKIPPED lines are the two no wave64 ones, which mesh allows, and heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows.
  • #1651 reproduced and fixed: XCL_REQUIRE_GPU=mesh cargo test -p xcl --test gpu_compute_e2e -- heap_window panics on main c160d86 (no heap windows, but XCL_REQUIRE_GPU=mesh) and passes here with the test printing SKIPPED.
  • XCL_HEAP_WINDOWS=1 on NVIDIA: gpu_compute_e2e, 4 passed, 0 failed. heap_window_out_of_memory_falls_back_to_the_switch_form ran and passed (no SKIPPED line). With XCL_REQUIRE_GPU=mesh set as well, it also passes.
  • Fails without the change: with skip_fails ignoring OPT_IN_SKIPS, required_gpu_fails_missing_hardware_not_opt_in_features fails (XCL_REQUIRE_GPU=mesh). 10 runs with the change: 10 of 10 passed.

Not tested

  • Intel; release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the builds and tests on the machine above, including the reruns of the unrelated failure and the check without the change, and wrote this report from the output.
**@⁠fromthemoonx** on GitHub · 2026-11-24 19:29 UTC · [original](https://github.com/xcl-dev/xcl/pull/1680#issuecomment-7142175272) NVIDIA run, since **Not tested** lists NVIDIA and `XCL_HEAP_WINDOWS=1`. **Tested** - NVIDIA GeForce RTX 3060 12 GB (32-lane waves, so wave64 runs split; mesh shaders supported), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974); rustc 1.100.0 `stable-x86_64-pc-windows-msvc`; debug - **Exact head `cfef9d8e25a35bd991a70637b095fbf364b865b4`**, which is on current `main` `c160d86` (so also the merged result): - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`: 858 passed, **1 failed**, 42 ignored. The failure was `gpu_sparse_vram_descriptors_buffers_and_xmem` (`submit 1 lane 0 mismatch`, `left: 0, right: 1077`), and it is not this PR. It passed 3 of 3 runs alone on this head and 3 of 3 on `main`, and the whole lib suite then passed 4 of 4 times on each. So that is 1 failure in 10 lib runs, only under the full workspace's load. - **With `XCL_REQUIRE_GPU=mesh`**, the same whole-workspace command: **859 passed, 0 failed, 42 ignored**, all 20 test binaries ran. The only `SKIPPED` lines are the two `no wave64` ones, which `mesh` allows, and `heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows`. - **#1651 reproduced and fixed:** `XCL_REQUIRE_GPU=mesh cargo test -p xcl --test gpu_compute_e2e -- heap_window` panics on `main` `c160d86` (`no heap windows, but XCL_REQUIRE_GPU=mesh`) and passes here with the test printing `SKIPPED`. - **`XCL_HEAP_WINDOWS=1` on NVIDIA:** `gpu_compute_e2e`, 4 passed, 0 failed. `heap_window_out_of_memory_falls_back_to_the_switch_form` ran and passed (no `SKIPPED` line). With `XCL_REQUIRE_GPU=mesh` set as well, it also passes. - **Fails without the change:** with `skip_fails` ignoring `OPT_IN_SKIPS`, `required_gpu_fails_missing_hardware_not_opt_in_features` fails (`XCL_REQUIRE_GPU=mesh`). 10 runs with the change: **10 of 10 passed**. **Not tested** - Intel; release build. **AI use** - Claude Code (Claude Opus 5.5) ran the builds and tests on the machine above, including the reruns of the unrelated failure and the check without the change, and wrote this report from the output.
Author
Owner

@⁠throny on GitHub · 2026-11-24 20:15 UTC · original

Two contributors checked independently and found that #1666 #1670 #1690 solves the same problem (for #1651) in a different way: #1607, group D35. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

**@⁠throny** on GitHub · 2026-11-24 20:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/1680#issuecomment-7143264500) <!-- xcl-1607-hint:D35 --> Two contributors checked independently and found that #1666 #1670 #1690 solves the same problem (for #1651) in a different way: #1607, group D35. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Author
Owner

@⁠emirduran707 on GitHub · 2026-11-24 20:55 UTC · original

Closing as a duplicate: #1666 fixed #1651 about 15 minutes before this PR was opened (my duplicate search did not show it yet). Thanks @⁠throny for the pointer, and @⁠fromthemoonx for the NVIDIA run; it may be useful on #1666 / #1690.

Written with Claude Code (Claude Opus 5.5).

**@⁠emirduran707** on GitHub · 2026-11-24 20:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/1680#issuecomment-7144234118) Closing as a duplicate: #1666 fixed #1651 about 15 minutes before this PR was opened (my duplicate search did not show it yet). Thanks @⁠throny for the pointer, and @⁠fromthemoonx for the NVIDIA run; it may be useful on #1666 / #1690. Written with Claude Code (Claude Opus 5.5).
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 21:37 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 21:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/1680#issuecomment-7145181811) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
Author
Owner

@⁠MiharaxD on GitHub · 2026-11-24 21:44 UTC · original

Test report on an NVIDIA card, head cfef9d8 (on main c160d86), which covers the "NVIDIA" line.

Tested

  • RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, DXC 1.9.2602.17.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 (debug) on cfef9d8: 859 passed, 0 failed, 42 ignored (lib tests 810 / 0 / 22).
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu_wave32_program_in_wave64_hardware (no wave64).
  • required_gpu_fails_missing_hardware_not_opt_in_features passes.

Regression run
scripts/smoke.ps1 -Game <game folder> -Seconds 60 (release builds, start screen, no input). main is c160d86:

main:

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: NVIDIA GeForce RTX 3070 Ti
title: game
seconds: 60
exit: 0x0
frames shown: 1586 (PresentX 1586)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15055 MB

this PR's head:

xcl-smoke v1
commit: cfef9d8e25a35bd991a70637b095fbf364b865b4
gpu: NVIDIA GeForce RTX 3070 Ti
title: game
seconds: 60
exit: 0x0
frames shown: 1615 (PresentX 1615)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15042 MB

Not tested

  • A run with XCL_REQUIRE_GPU=mesh or =wave64 set, on main or on this PR: only the default run above.
  • XCL_HEAP_WINDOWS=1 runs, AMD / Intel.

AI use: Claude Code (Claude Opus 5.5) built the PR, ran the tests and both smoke runs, read the logs and wrote this report; I checked it before posting.

**@⁠MiharaxD** on GitHub · 2026-11-24 21:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/1680#issuecomment-7145324511) Test report on an NVIDIA card, head `cfef9d8` (on `main` `c160d86`), which covers the "NVIDIA" line. **Tested** - RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, DXC 1.9.2602.17. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` (debug) on `cfef9d8`: **859 passed, 0 failed, 42 ignored** (lib tests 810 / 0 / 22). - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64), `gpu_wave32_program_in_wave64_hardware` (no wave64). - `required_gpu_fails_missing_hardware_not_opt_in_features` passes. **Regression run** `scripts/smoke.ps1 -Game <game folder> -Seconds 60` (release builds, start screen, no input). `main` is `c160d86`: main: ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: NVIDIA GeForce RTX 3070 Ti title: game seconds: 60 exit: 0x0 frames shown: 1586 (PresentX 1586) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15055 MB ``` this PR's head: ``` xcl-smoke v1 commit: cfef9d8e25a35bd991a70637b095fbf364b865b4 gpu: NVIDIA GeForce RTX 3070 Ti title: game seconds: 60 exit: 0x0 frames shown: 1615 (PresentX 1615) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15042 MB ``` **Not tested** - A run with `XCL_REQUIRE_GPU=mesh` or `=wave64` set, on `main` or on this PR: only the default run above. - `XCL_HEAP_WINDOWS=1` runs, AMD / Intel. **AI use:** Claude Code (Claude Opus 5.5) built the PR, ran the tests and both smoke runs, read the logs and wrote this report; I checked it before posting.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.