Tests: return early without runner::skip_test on unset XCL_HEAP_WINDOWS (#1651) #1656
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1666"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by heditrigui on 2026-11-24T18:59:48Z.
In
tests/gpu_compute_e2e.rs,heap_window_out_of_memory_falls_back_to_the_switch_formtests fallback to the switch form when heap-window builds refuse with OOM (#1651).When
XCL_HEAP_WINDOWS=1is not set (the default), the test callsrunner::skip_test("no heap windows"). UnderXCL_REQUIRE_GPU=meshorXCL_REQUIRE_GPU=wave64,skip_testchecks whether the skip reason is one of the missing adapter capabilities and turns unrecognized skip strings into panics:Because heap windows are an opt-in software configuration (similar to
XCL_ASYNC_PSOon line 350), an unset environment flag should not be treated as missing GPU hardware support. Return early with the existing informational message instead of invokingrunner::skip_test.Fixes #1651.
Tested
Not tested
AI use
Antigravity (Gemini 3.8 Flash (High)) investigated issue #1651, identified the opt-in skip mismatch with
unner::skip_test, aligned the return behavior with XCL_ASYNC_PSO, and verified PR conventions.
Imported from ivall/xcl. Originally posted by broccolize on 2026-11-24T19:10:03Z.
Tested
4405f0d079273735b98266d45d2fe33811c08f05on a GTX 1650 (driver 617.14), i5-10300H, Windows 11 build 26300.9974, and Rust 1.100.0 MSVC in debug mode.XCL_REQUIRE_GPU=meshandXCL_HEAP_WINDOWSunset, the focused test failed on basec160d86and passed on this PR.XCL_HEAP_WINDOWS=1, the focused test exercised the injected out-of-memory retry and verified the switch-form dispatch output.cargo build --workspacepassed.cargo test --workspace -- --test-threads=4passed with and withoutXCL_REQUIRE_GPU=mesh. Each run reported 858 passed, 0 failed, 42 ignored, and twono wave64skip diagnostics. No retail files were used.One review point from the diff: if
XCL_HEAP_WINDOWS=1is set and the shared heap is unavailable, this change also returns success in strict mode. Could the test check the opt-in before GPU setup and retainrunner::skip_testfor the opted-in path when heap setup fails? I did not reproduce shared-heap allocation failure on this adapter.AI use: OpenAI Codex (GPT-6) ran the tests and reviewed the diff.
Imported from ivall/xcl. Originally posted by heditrigui on 2026-11-24T19:15:09Z.
Great catch and suggestion @broccolize! Updated in
bf6459dto check theXCL_HEAP_WINDOWSopt-in before GPU setup/locking: unopted-in runs return early without invokingrunner::skip_test, while runs explicitly opted in viaXCL_HEAP_WINDOWS=1proceed to device setup and retainrunner::skip_test("no heap windows")if shared-heap creation or window views fail.Imported from ivall/xcl. Originally posted by throny on 2026-11-24T20:15:33Z.
Two contributors checked independently and found that #1670 #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.
upstream-sync referenced this pull request2026-11-24 23:06:49 +00:00
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:44:31Z.
XCL PR #1666 verification
Tested clean detached head
bf6459dc1dcaebb2adfb68b40dda81226799ffe7on STOR-WINLAB. Windows 11 Enterprise Evaluation x64 build 26200, AMD64 Family 23 Model 113 CPU, Intel Arc A770 (driver 32.0.101.9175), DXC 1.9.2609.5, and rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Build and test profiles were unoptimized with debug info and incremental compilation disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runboth exited 0 outside the Arc mutex. The latter built 19 test binaries.cargo test -p xcl --test gpu_compute_e2e heap_window_out_of_memory_falls_back_to_the_switch_form -- --exact --nocaptureran underInvoke-ArcTest.ps1withXCL_ADAPTER=A770andXCL_HEAP_WINDOWSunset. Each of theXCL_REQUIRE_GPU=wave64andXCL_REQUIRE_GPU=1runs had 1 passed, 0 failed, 0 ignored and 0SKIPPEDlines. Both printed the opt-in diagnostic and returned without a panic. The diff changes onlycrates/xcl/tests/gpu_compute_e2e.rsand places the guard before GPU setup. The runner recognizeswave64as a strict setting.cargo test --workspace --no-fail-fast -- --test-threads=4ran once under the same mutex withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. Exit 1. All 20 result lines inpr1666-suite.logtotal 840 passed, 18 failed, 42 ignored across 19 test binaries and one doctest run. The heap-window test also took the early return in this run.Workspace failures and skips
xcl --libhad 17 failures: 13 compute pipeline creation errors (0x80070057) and four assertion failures covering FMA, implicit LOD, f16 writes and wave64 pixel reductions. Thee2etarget had one failure in the test title's dynamic depth-bias check.SKIPPED: two for no wave64, one for tiled resources tier below 2, and two for missing D3D12 debug-layer support. These skips and the heap-window early return provide no GPU coverage for those paths.Not tested
The opt-in heap-window OOM path, a matched
mainbaseline, retail-title smoke, AMD or NVIDIA GPUs.AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification and wrote this report. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1666-suite.logand published.Imported from ivall/xcl. Originally posted by CalvyPZ on 2026-11-25T22:42:50Z.
This PR has been marked as a duplicate and closed after multiple agreeing checks in #1607. If you believe this is incorrect please re-open with why.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:44:36Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:27:11Z.
Triage (#1607) – head
bf6459d#1690 fixes the same #1651 failure in a different way. #1690 writes the
SKIPPED ...line itself instead of calling runner::skip_test. This PR returns before the test does anything when XCL_HEAP_WINDOWS is not 1, and prints a plain message. #1670 and #1680, which exempted "no heap windows" inside runner::skip_test, are closed. The bug is still on main.The plain message is not a
SKIPPED <test>:line, so scripts/test.ps1 no longer counts this skip. With XCL_HEAP_WINDOWS=1 set but no shared heap, the test still reaches skip_test("no heap windows") and still panics under XCL_REQUIRE_GPU. That narrower case may be acceptable.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.