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

Closed
DeerSilver wants to merge 1 commit from upstream-pr/1670 into main
DeerSilver commented 2026-11-24 19:04:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DeerSilver on 2026-11-24T19:04:28Z.


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

<!-- greyfinch-sync:ivall/xcl:issue:6589281780 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1670). Originally posted by [DeerSilver](https://github.com/DeerSilver) on 2026-11-24T19:04:28Z. --- `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)
upstream-sync closed this pull request 2026-11-24 21:07:27 +00:00
RobertAndreiGit commented 2026-11-24 21:08:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by RobertAndreiGit on 2026-11-24T19:15:20Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7141829766 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1670#issuecomment-7141829766). Originally posted by [RobertAndreiGit](https://github.com/RobertAndreiGit) on 2026-11-24T19:15:20Z. --- **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 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:34Z.


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.

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

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


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.

<!-- greyfinch-sync:ivall/xcl:comment:7144120648 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1670#issuecomment-7144120648). Originally posted by [ivall](https://github.com/ivall) on 2026-11-24T20:50:11Z. --- 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.
DavidM1911 commented 2026-11-24 21:30:07 +00:00 (Migrated from github.com)

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


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7144935646 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1670#issuecomment-7144935646). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T21:26:35Z. --- 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

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