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

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

@⁠DeerSilver on GitHub · 2026-11-24 19:04 UTC · original
DeerSilver:tests/opt-in-skip-1651 → main · +38 −7 · 1 files · 1 commits · closed without merging

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

**@⁠DeerSilver** on GitHub · 2026-11-24 19:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/1670) `DeerSilver:tests/opt-in-skip-1651` → `main` · +38 −7 · 1 files · 1 commits · closed without merging `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](https://claude.com/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 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:01:05 +00:00
github-bot closed this pull request 2026-11-26 05:01:05 +00:00
Author
Owner

@⁠RobertAndreiGit on GitHub · 2026-11-24 19:15 UTC · original

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.

**@⁠RobertAndreiGit** on GitHub · 2026-11-24 19:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/1670#issuecomment-7141829766) **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.
Author
Owner

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

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.

**@⁠throny** on GitHub · 2026-11-24 20:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/1670#issuecomment-7143263857) <!-- xcl-1607-hint:D35 --> 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.
Author
Owner

@⁠ivall on GitHub · 2026-11-24 20:50 UTC · original

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** on GitHub · 2026-11-24 20:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/1670#issuecomment-7144120648) 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 21:26 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.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 21:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/1670#issuecomment-7144935646) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. Thanks!

Pull request closed

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