Tests: XCL_REQUIRE_GPU does not fail the heap-window opt-in skip (#1651) #1690
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!1690
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1690"
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?
@crastinator on GitHub · 2026-11-24 19:19 UTC · original
crastinator:tests-heap-windows-opt-in-skip→main· +4 −1 · 1 files · 1 commits · openheap_window_out_of_memory_falls_back_to_the_switch_form(crates/xcl/tests/gpu_compute_e2e.rs, from927adcc) fails in everyXCL_REQUIRE_GPUrun with the default config. It skips throughrunner::skip_test("no heap windows"), andskip_testturns every reason except the other hardware one into a panic underXCL_REQUIRE_GPU. Heap windows are opt-in (XCL_HEAP_WINDOWS=1), and even with the setting on, a setup without the shared heap's window views has none. Neither is a missing GPU feature. So the test now printsskip_test'sSKIPPED <test>: <reason>line itself and returns. Fixes #1651.What is in it
crates/xcl/tests/gpu_compute_e2e.rs: the no-heap-windows skip writesSKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows (opt-in: XCL_HEAP_WINDOWS=1; or no shared heap)to uncaptured stderr (the linescripts/test.ps1counts), not throughskip_test. +4 / −1.Tested
-Db_ndebug=true, dxil-spirv53aac418), DXVK v3.1.1-209dxgi, DXC 1.9.2609.5. Cross-built forx86_64-pc-windows-msvc, Rust 1.99.1, debug. The test binaries ran under Wine.cargo test -p xcl --test gpu_compute_e2e -- --exact heap_window_out_of_memory_falls_back_to_the_switch_form:mainc160d86XCL_REQUIRE_GPU=wave64,meshno heap windows, but XCL_REQUIRE_GPU=wave64,meshSKIPPEDlineXCL_REQUIRE_GPU=meshSKIPPEDlineXCL_REQUIRE_GPUSKIPPEDlineXCL_HEAP_WINDOWS=1 XCL_REQUIRE_GPU=wave64,meshthe driver ran out of memory on a pipeline with heap windows – building it in the switch form) and passesXCL_REQUIRE_GPU=wave64,mesh cargo test --workspace --no-fail-fast -- --test-threads=4: 840 passed, 18 failed, 42 ignored, the same totals asmainc160d86in two runs here.main's 18 include this test. Here it passes with itsSKIPPEDline, andhle::acphal::tests::xapu_connect_returns_oom_and_cleans_up_on_failurefailed once in its place. That's a parallel-only failure in the lib binary, which this PR does not change, and it passes with--test-threads=1. The rest are the known Wine-lane set plus the #1246 parallel cascade (fixed by #1520).--test-threads=1, compared withmainc160d86: 849 passed, 9 failed, 42 ignored, againstmain's 848 / 10 / 42. The only difference is this test, FAILED → ok.Regression run
crates/xcl/tests).Not tested
XCL_REQUIRE_GPU, which the table above covers. A shared "config skip" helper inrunner.rs, or a change toskip_test's reason handling (its doc lists four reasons; any other fails underXCL_REQUIRE_GPU), would touchcrates/xcl/srcand need a regression run, so I left both out.XCL_SAMPLE_*set.Notes
runner::skip_test'sSKIPPED <test>: <reason>format and names the test as a literal, so it has to follow any change to that format (or a rename of the test).XCL_HEAP_WINDOWS=1but no shared heap / UMA windows".XCL_REQUIRE_GPUis about lost wave64 / mesh coverage, which this is not. Telling the two cases apart would need a getter fromcrates/xcl/src.skip_test("no UMA")/("no GPU UMA")inpredication_e2e.rsandsparse_reinit.rs, and("no GPU with 32- or 64-lane waves")here underXCL_REQUIRE_GPU=mesh, all panic for reasons that are not the required feature.async_compute_pso_registers_real_pso_and_not_standinskips onXCL_ASYNC_PSO=0without aSKIPPEDline.AI use
heap_window_out_of_memory_falls_back_to_the_switch_form skips when there are no heap windows: they are opt-in (XCL_HEAP_WINDOWS=1), and even then a setup without the shared heap's window views has none. It skipped through runner::skip_test("no heap windows"), and skip_test turns every reason but the hardware one it is not asked about into a panic under XCL_REQUIRE_GPU, so the test failed in every XCL_REQUIRE_GPU run with the default config. Neither case is a missing GPU feature, so the test now prints skip_test's "SKIPPED <test>: <reason>" line itself (uncaptured stderr, the line scripts/test.ps1 counts) and returns.@throny on GitHub · 2026-11-24 20:15 UTC · original
Two contributors checked independently and found that #1666 #1670 #1680 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.
@crastinator on GitHub · 2026-11-24 20:35 UTC · original
I saw #1666, #1670 and #1680 only after opening this. They came in between my search and this PR, so this is the fourth fix for #1651. Thanks @mantavisual for running all four side by side. For whoever picks one:
skip_test'sSKIPPED <test>: <reason>line to uncaptured stderr, soscripts/test.ps1still counts the skip. #1666 returns without a line.runner::skip_testitself, with unit tests. That's broader and would also cover the next non-hardware reason, but it touchescrates/xcl/src.pso_measurement_compiles_an_exact_synthetic_recordwithout Developer Mode). Askip_testchange could, if it treats every reason that isn't a requirement as a plain skip.I'm happy to close this in favour of whichever you prefer.
@DavidM1911 on GitHub · 2026-11-24 22:02 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
@JJAutoCompare on GitHub · 2026-11-25 04:31 UTC · original
XCL PR #1690 — Arc A770 verification
Clean detached head
cfb4730f07eb4975807257493c1bb5b8c678cbaaon STOR-WINLAB. The diff changes onlycrates/xcl/tests/gpu_compute_e2e.rs.Windows 11 Enterprise Evaluation x64 build 26200, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, DXC 1.9.2609.5, and rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Dev 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 executables.cargo test -p xcl --test gpu_compute_e2e heap_window_out_of_memory_falls_back_to_the_switch_form -- --exact --nocaptureran under the Arc mutex withXCL_ADAPTER=A770andXCL_HEAP_WINDOWSunset. Each run (XCL_REQUIRE_GPU=1andwave64) initialized the real A770 backend, emitted one namedSKIPPEDmarker, and exited 0. Each libtest result was 1 passed, 0 failed, 0 ignored, 3 filtered out.wave64is the setting that would make the old skip call panic. The runner ignores1.cargo test --workspace --no-fail-fast -- --test-threads=4ran once under the Arc mutex withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. Exit 1. The 20 result lines inpr1690-suite.log(19 binaries and one doctest target) total 840 passed, 18 failed, and 42 ignored.Workspace failures and skips
CreateComputePipelineStatereturning0x80070057. Four had assertion failures involving FMA contraction, mip sampling, f16 high-half preservation, or wave reductions.e2etarget had one failure intest_title_runs_and_game_folder_is_untouched. TheRSSetDepthBiasXcheck read blue where it expected green.SKIPPED, including two for wave64, two for missing debug-layer support, one for tiled resources tier below 2, and the heap-window opt-in skip. These six are included in libtest's pass total and provide no coverage.Not tested
Matched
mainbaseline, heap-window OOM fallback withXCL_HEAP_WINDOWS=1, retail game data or smoke run, and other GPU vendors.AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1690-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.