Skip to content

Tests: an opt-in skip passes under XCL_REQUIRE_GPU (#1651) - #1670

Closed
DeerSilver wants to merge 1 commit into
xcl-dev:mainfrom
DeerSilver:tests/opt-in-skip-1651
Closed

DeerSilver wants to merge 1 commit into
xcl-dev:mainfrom
DeerSilver:tests/opt-in-skip-1651

Conversation

@DeerSilver

Copy link
Copy Markdown

skip_test turned every skip reason except the one that matches the required feature into a panic under XCL_REQUIRE_GPU, so heap_window_out_of_memory_falls_back_to_the_switch_form failed whenever the opt-in XCL_HEAP_WINDOWS was off, and cargo stopped before the later test binaries. "no heap windows" is about an opt-in feature, not the adapter, so it now never fails. Fixes #1651.

What is in it

  • crates/xcl/src/gpu/recomp/runner.rs: the fail decision moves to skip_fails, which passes "no heap windows" through; two unit tests

Tested

  • NVIDIA GeForce RTX 5060 Laptop GPU (driver 621.24), i7-13700HX, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug
  • Before: XCL_REQUIRE_GPU=mesh cargo test -p xcl --test gpu_compute_e2e heap_window_out_of_memory panicked as in the issue; after: passes, prints SKIPPED … no heap windows
  • cargo test --workspace -- --test-threads=4: 860 passed, 0 failed, 42 ignored
  • Same with XCL_REQUIRE_GPU=mesh: 860 passed, 0 failed, 42 ignored
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)

Regression run

  • None: test-only change, but runner.rs is a test helper under crates/xcl/src, so this needs the test-only label.

Not tested

  • AMD / wave64 GPUs, XCL_REQUIRE_GPU=wave64 on a full run, XCL_HEAP_WINDOWS=1

AI use

  • Claude Code (Claude Opus 5.5) wrote the fix, the tests and this description, and ran the tests.

🤖 Generated with Claude Code

skip_test turned every reason but the one matching the required feature
into a panic, so the heap-window test failed whenever the opt-in
XCL_HEAP_WINDOWS was off. "no heap windows" says nothing about the
adapter; it now never fails. The decision moves to skip_fails, with
unit tests.

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

Copy link
Copy Markdown

Tested: 94ce38d2bd82b078ba5715b6efe043746e0533b9, Apple M3 Pro, macOS 15.7.3 arm64, rustc 1.100.0. Extracted skip_fails and its existing test module verbatim from runner.rs and ran rustc --edition=2021 --test policy.rs -o policy-tests && ./policy-tests --nocapture: 2 passed, 0 failed, 0 ignored. A separate probe calling the head's skip_test("no heap windows") exited 0 and printed SKIPPED main: no heap windows with XCL_REQUIRE_GPU empty, mesh, wave64, and wave64,mesh.

That confirms the skip stays visible in the count. One distinction the helper can't make: the caller uses that same reason both when heap windows are off and when XCL_HEAP_WINDOWS=1 was requested but the shared heap/views couldn't be set up.

Not tested: Windows/D3D12 or the workspace suite. The distinguishing Windows check would be XCL_HEAP_WINDOWS=1, XCL_REQUIRE_GPU=mesh, and a confirmed shared-heap/view setup failure, running cargo test -p xcl --test gpu_compute_e2e heap_window_out_of_memory_falls_back_to_the_switch_form -- --exact --nocapture in a fresh process. The test's injected pipeline-build OOM happens after setup succeeds, so it doesn't exercise that case.

AI use: OpenCode (GPT-6.2 Astra) traced the caller, ran the isolated probes and wrote this report.

@throny

throny commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Two contributors checked independently and found that #1666 #1680 #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.

@ivall

ivall commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Closing this in favour of #1680 (group D35 in #1607): both exempt "no heap windows" in runner::skip_fails, with unit tests. This one was opened a few minutes earlier; #1680 is ready and has both checks green.

This says nothing about the quality of the code here. If this PR covers a case the other one does not, or #1680 is closed without being merged, say so and I'll reopen it.

Thank you for the work.

AI use: Claude Code (Claude Opus 5.5) read the diffs and the checks in #1607 and wrote this comment, on the maintainer's behalf.

@ivall ivall closed this Nov 24, 2026
@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.

Thanks!

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