Tests: return early without runner::skip_test on unset XCL_HEAP_WINDOWS (#1651) #1666
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1666
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@heditrigui on GitHub · 2026-11-24 18:59 UTC · original
heditrigui:tests/heap-window-oom-skip-fix→main· +5 −1 · 1 files · 2 commits · openIn
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.
@broccolize on GitHub · 2026-11-24 19:10 UTC · original
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.
@heditrigui on GitHub · 2026-11-24 19:15 UTC · original
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.@throny on GitHub · 2026-11-24 20:15 UTC · original
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.
@JJAutoCompare on GitHub · 2026-11-25 04:44 UTC · original
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.github-bot referenced this pull request2026-11-26 06:18:30 +00:00
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.