Tests: XCL_REQUIRE_GPU lets a part of a test skip for its own hardware reason #3231
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3231"
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 CharlyRien on 2026-11-28T23:27:36Z.
Under
XCL_REQUIRE_GPU=mesh,runner::skip_testturns every skip into a failure unless its reason is exactly"no wave64"; under=wave64, unless it is exactly"no mesh shaders". Six GPU tests ingpu::recomp::lower_dxilskip only their wave64 half, and name that part in the reason:"f32 arithmetic, wave64: no wave64","const_mask, wave64: no wave64", and so on. On a GPU without wave64 (every NVIDIA card) a suite run withXCL_REQUIRE_GPU=meshtherefore fails those six, although their only skip is the one that setting allows.This PR counts
"<part>: no wave64"as"no wave64"(and"<part>: no mesh shaders"as"no mesh shaders"). Any other reason still fails, and so does a part skipped for another reason. Only the test runner's skip rule changes; nothing a title runs.What is in it
crates/xcl/src/gpu/recomp/runner.rs:skip_fails(required, reason): the rule, out ofskip_test, with the suffix case (after": ", the whole hardware reason).skip_testcalls it; the doc comment names the<part>: <reason>form.skip_tests::a_required_gpu_lets_through_its_hardware_reason_also_for_a_part: the six reasons' form undermesh, other reasons and lookalikes ("xno wave64","f32: no wave64 and no GPU") still failing,wave64andwave64,mesh, an unknown setting.Why
XCL_REQUIRE_GPU=meshhad 7 failures that are skips. 6 are these (lower_dxil::tests::{const_and_null_mask_operands_agree_with_hlsl_on_the_gpu, f16_programs_on_the_gpu, f32_programs_on_the_gpu, f64_programs_on_the_gpu, integer_programs_on_the_gpu, mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu}, each "…, wave64: no wave64, but XCL_REQUIRE_GPU=mesh").heap_window_out_of_memory_falls_back_to_the_switch_form("no heap windows"): not a hardware reason, left to #1690 / #1666, which handle it.lower_dxil.rs(format!("{name}, wave64: no wave64")and two literals);skip_testcompares with!=.Tested
a04dcd5onmain7a649b0(rebased 29/11, no conflict;runner.rsand the"{name}, wave64: no wave64"reasons oflower_dxil.rsunchanged onmain). RTX 3090 24 GB (Resizable BAR off), driver 616.56, Ryzen 9 5950X, 32 GB RAM, Windows 11 22631; Rust 1.100.0, release tests.XCL_ADAPTER=warp;XCL_REQUIRE_GPUunset):cargo test --release -p xcl --lib -- gpu::recomp::runner shaders::pipeline_library::tests shaders::warm_library::tests --test-threads=4: 4 passed, 7 failed:skip_tests::a_required_gpu_lets_through_its_hardware_reason_also_for_a_partpassed. The 7 failures are 6shaders::pipeline_library::testsandshaders::warm_library::tests::cold_publish_makes_an_unchanged_corpus_reusable:CreateComputePipelineStatereturns E_INVALIDARG on this machine's WARP, which has no SM 6.6 (the other 6 then fail on the poisoned lock or the same error). That is a local artefact of a WARP run here, not the CI failure (an entry count, 3 against 2).main7a649b0: the same 7 failures with the same errors, nothing else failed (408 passed, 7 failed, 19 ignored for the union of the filters of our five PRs).main7a649b0(no new one).XCL_REQUIRE_GPU=mesh, release):cargo test --release -p xcl --lib -- skip_tests:: --test-threads=1: 1 passed, 0 failed, 0 ignored (skip_tests::a_required_gpu_lets_through_its_hardware_reason_also_for_a_part).cc6e27b. Onmain7a649b0main's own CI fails 8 tests, all inhle::d3d12x::title_textures::tests(run 46261846646): a red Build and test on this head with those 8 ismain's.cc6e27bonmain7db2f39,XCL_REQUIRE_GPU=mesh:gpu::recomp::lower_dxil::tests::andskip_tests::, 24 passed, 0 failed; onmain7db2f39, same setting, the six tests named above failed; there they passed and printed their 17SKIPPEDlines (13 wave64 parts, 1 "no wave64", 3 per-lane refusals of f16 operations that print withoutskip_test, as onmain).Regression run
Same machine as under Tested, same title, 60 s each (the
scripts/smoke.ps1default), both throughmaind52ff48'sscripts/smoke.ps1,XCL_PREPARE=0, the same scripted A presses (XCL_PRESS_A_AT). Each run started from its own copy of the same shader cache, made by anothermaincommit, so cold for both. The head is onmain7a649b0; themainrun is ofmaind52ff48(the newestmaintoday, 244 commits later), not of the head's base: the check asks for a commit ofmain. The diff changes only the test runner's skip rule (gpu/recomp/runner.rs, which the check counts as runtime code by its path), so this pair only checks that the binary still runs the title asmaindoes.maind52ff48:this head
a04dcd5(main7a649b0+ this commit):main's 517 (113.5 %; the check wants at least 80 %), peak commit 15,630 MB against 15,968 MB (97.9 %; at most 125 %). Last three 2 s slices: head 61 61 60,main61 60 61 presents. 60 s covers the start of the title, not a long stay in its world.maind52ff48, so the difference between the two runs includes those commits, not only this PR.Not tested
wave64side of the rule only by the unit test.<part>:form.AI use
AI use: finding the failures in our suite runs, the change and its test, the rebase, the test and smoke runs and this description were done with Claude Code (Claude Opus 5.5), checked and posted by me.
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by CharlyRien on 2026-11-29T13:57:38Z.
Rebased on
main7a649b0; heada04dcd5(no conflict). Measured, CPU only (cargo test --release -p xcl --lib -- gpu::recomp::runner+ the library tests): 4 passed, 7 failed;skip_tests::a_required_gpu_lets_through_its_hardware_reason_also_for_a_partpassed. The 7 failures are the 6shaders::pipeline_library::testsandwarm_library::tests::cold_publish_makes_an_unchanged_corpus_reusable, the same 7 with the same errors onmain7a649b0here: E_INVALIDARG fromCreateComputePipelineStateon this machine's WARP (no SM 6.6). Deduced: a local artefact of WARP here, not the CI failure mode. No title run.Read, CI: the 4
pipeline_library/warm_libraryfailures of our previous CI runs weremain's own on227d2cb(run 46201186646) and passed onmainsincefa20459;main7a649b0now fails 8hle::d3d12x::title_textures::testsin CI (run 46261846646), so a red Build and test with those 8 ismain's. "PR description" stays red only for thexcl-smokepair of the new head, which needs a title run (not made: CPU only this time).Description refreshed (Tested, Regression run, AI use). The diff only touches the test runner: a
test-onlylabel would be the fitting route for the smoke rule, if a maintainer agrees.Stack: RTX 3090 24 GB (Resizable BAR off), driver 616.56, Ryzen 9 5950X, 32 GB RAM, Windows 11 22631; Rust 1.100.0, release tests,
XCL_ADAPTER=warp,XCL_REQUIRE_GPUunset.AI use: rebase, test runs and this comment done with Claude Code (Claude Opus 5.5), checked by me.
Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T07:30:27Z.
merge-check claim
head:
a04dcd5ca6Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T07:47:08Z.
merge-check
base:
493dbd3dd0head:
a04dcd5ca6merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). The new test
a_required_gpu_lets_through_its_hardware_reason_also_for_a_partran and passed.review: no blocking finding; one file (+45/-10), every line read.
skip_testmoves itsXCL_REQUIRE_GPUdecision intoskip_fails, which also accepts a reason of the form<part>: no wave64/<part>: no mesh shadersas that hardware reason; a reason that only ends in the words without:before them still fails. WithoutXCL_REQUIRE_GPUnothing changes: the 28 SKIPPED lines here are the same as on the base. Not tested here: a run withXCL_REQUIRE_GPU=meshor=wave64set.performance: none: test support code only.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:45:57Z.
Triage (#1607) – head
a04dcd5No open or merged PR makes the same change: the closed #1670 / #1680 also pulled the rule out of
skip_testintoskip_fails, but for the "no heap windows" skip, not for the"<part>: no wave64"reasons thatgpu/recomp/lower_dxil.rsbuilds (format!("{name}, wave64: no wave64")).The suffix match in
runner.rs:skip_failsneeds the whole hardware reason after": ", so lookalikes such as"xno wave64"and"f32: no wave64 and no GPU"still fail, and the test covers them. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T10:21:23Z.
merge-check
base:
493dbd3dd0head:
a04dcd5ca6merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read the whole diff (+45/-10). On main,
skip_testunderXCL_REQUIRE_GPU=meshaccepts only the exact reason"no wave64". The PR moves that rule intoskip_fails(runner.rs~667) and also accepts"<part>: no wave64"(~668), the form the fourlower_dxil.rstests (~906, ~1230, ~1362, ~1419) use when they skip their wave64 half and still assert their wave32 half. Findings (nits): the suffix match accepts any reason ending in: no wave64, including an empty part; noskip_testcall on main builds one by accident (I checked the free-formskip_test(&e)sites too). Reasons like"no GPU / DXC / wave64"(core_tests.rs~804, ~948) still fail under=mesh, as on main. Fine: theSKIPPEDline is still printed and counted, nothing else gets looser,wave64,meshstill refuses part skips, CI is unaffected (no workflow setsXCL_REQUIRE_GPU), and the unit test covers lookalike reasons and both modes. The run below doesn't setXCL_REQUIRE_GPU, so on this card it only runs that unit test; the meaningful check isXCL_REQUIRE_GPU=mesh cargo test -p xcl --lib gpu::recomp::lower_dxil, not run here.performance: no smoke run (the default path doesn't reach this change); not measured. Test infrastructure only: no runtime path changes.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5
AI-written and posted by Foniass without a human check of each point.