Skip to content

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

Closed
emirduran707 wants to merge 1 commit into
xcl-dev:mainfrom
emirduran707:tests-require-gpu-opt-in-skip
Closed

emirduran707 wants to merge 1 commit into
xcl-dev:mainfrom
emirduran707:tests-require-gpu-opt-in-skip

Conversation

@emirduran707

Copy link
Copy Markdown
Contributor

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

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

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 xcl-dev#1651

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fromthemoonx

Copy link
Copy Markdown

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.
  • Tests: heap_window_out_of_memory_falls_back_to_the_switch_form fails under XCL_REQUIRE_GPU=mesh (opt-in skip counted as missing coverage) #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

throny commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests: heap_window_out_of_memory_falls_back_to_the_switch_form fails under XCL_REQUIRE_GPU=mesh (opt-in skip counted as missing coverage)

5 participants