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

Closed
emirduran707 wants to merge 1 commit from upstream-pr/1680 into main
emirduran707 commented 2026-11-24 19:14:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-24T19:14:45Z.


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

<!-- greyfinch-sync:ivall/xcl:issue:6589468163 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1680). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-24T19:14:45Z. --- `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)
upstream-sync closed this pull request 2026-11-24 21:07:32 +00:00
fromthemoonx commented 2026-11-24 21:08:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-24T19:29:38Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7142175272 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1680#issuecomment-7142175272). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-24T19:29:38Z. --- 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.
throny commented 2026-11-24 21:09:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-24T20:15:36Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7143264500 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1680#issuecomment-7143264500). Originally posted by [throny](https://github.com/throny) on 2026-11-24T20:15:36Z. --- <!-- 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.
emirduran707 commented 2026-11-24 21:09:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-24T20:55:18Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7144234118 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1680#issuecomment-7144234118). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-24T20:55:18Z. --- 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).
DavidM1911 commented 2026-11-24 22:06:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T21:37:45Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7145181811 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1680#issuecomment-7145181811). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T21:37:45Z. --- 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!
MiharaxD commented 2026-11-24 22:06:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MiharaxD on 2026-11-24T21:44:23Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7145324511 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1680#issuecomment-7145324511). Originally posted by [MiharaxD](https://github.com/MiharaxD) on 2026-11-24T21:44:23Z. --- 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

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!1670
No description provided.