Skip to content

Tests: XCL_REQUIRE_GPU lets a part of a test skip for its own hardware reason - #3231

Open
CharlyRien wants to merge 1 commit into
xcl-dev:mainfrom
CharlyRien:pr/skip-test-reason-suffix
Open

CharlyRien wants to merge 1 commit into
xcl-dev:mainfrom
CharlyRien:pr/skip-test-reason-suffix

Conversation

@CharlyRien

@CharlyRien CharlyRien commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Under XCL_REQUIRE_GPU=mesh, runner::skip_test turns every skip into a failure unless its reason is exactly "no wave64"; under =wave64, unless it is exactly "no mesh shaders". Six GPU tests in gpu::recomp::lower_dxil skip 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 with XCL_REQUIRE_GPU=mesh therefore 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 of skip_test, with the suffix case (after ": ", the whole hardware reason).
    • skip_test calls it; the doc comment names the <part>: <reason> form.
    • Test skip_tests::a_required_gpu_lets_through_its_hardware_reason_also_for_a_part: the six reasons' form under mesh, other reasons and lookalikes ("xno wave64", "f32: no wave64 and no GPU") still failing, wave64 and wave64,mesh, an unknown setting.
  • +45 / −10 in one file.

Why

Tested

  • Head a04dcd5 on main 7a649b0 (rebased 29/11, no conflict; runner.rs and the "{name}, wave64: no wave64" reasons of lower_dxil.rs unchanged on main). 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.
  • Measured on this head, CPU only (XCL_ADAPTER=warp; XCL_REQUIRE_GPU unset):
    • 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_part passed. The 7 failures are 6 shaders::pipeline_library::tests and shaders::warm_library::tests::cold_publish_makes_an_unchanged_corpus_reusable: CreateComputePipelineState returns 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).
    • The same filters on main 7a649b0: 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).
    • The build has the same 18 compiler warnings as main 7a649b0 (no new one).
  • Measured on this head, on the RTX 3090 machine (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).
  • Read, CI: "Build and test (Windows, no GPU)" passed on the previous head cc6e27b. On main 7a649b0 main's own CI fails 8 tests, all in hle::d3d12x::title_textures::tests (run 46261846646): a red Build and test on this head with those 8 is main's.
  • Not rerun on this head: the GPU half, on the previous head cc6e27b on main 7db2f39, XCL_REQUIRE_GPU=mesh: gpu::recomp::lower_dxil::tests:: and skip_tests::, 24 passed, 0 failed; on main 7db2f39, same setting, the six tests named above failed; there they passed and printed their 17 SKIPPED lines (13 wave64 parts, 1 "no wave64", 3 per-lane refusals of f16 operations that print without skip_test, as on main).

Regression run
Same machine as under Tested, same title, 60 s each (the scripts/smoke.ps1 default), both through main d52ff48's scripts/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 another main commit, so cold for both. The head is on main 7a649b0; the main run is of main d52ff48 (the newest main today, 244 commits later), not of the head's base: the check asks for a commit of main. 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 as main does.

main d52ff48:

xcl-smoke v1
commit: d52ff48caade1f5350d513bfffd370396dadfeb6
gpu: NVIDIA GeForce RTX 3090
title: 16b5e5d4
seconds: 60
exit: 0x0
frames shown: 517 (PresentX 517)
presents per 2 s (last 3): 61 60 61
device removals: 0
crashes: 0
peak commit: 15968 MB

this head a04dcd5 (main 7a649b0 + this commit):

xcl-smoke v1
commit: a04dcd5ca6535844e49a74c9f39a104e3708efeb
gpu: NVIDIA GeForce RTX 3090
title: 16b5e5d4
seconds: 60
exit: 0x0
frames shown: 587 (PresentX 587)
presents per 2 s (last 3): 61 61 60
device removals: 0
crashes: 0
peak commit: 15630 MB
  • Measured: no device removal and no crash in either run, both ended by themselves (exit 0x0). The head shows 587 frames against 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, main 61 60 61 presents. 60 s covers the start of the title, not a long stay in its world.
  • Deduced: the head's base is 244 commits behind main d52ff48, so the difference between the two runs includes those commits, not only this PR.

Not tested

  • A GPU with wave64 (AMD), where these tests run both halves and do not skip; the wave64 side of the rule only by the unit test.
  • The whole suite with this change, and the GPU half on this head.
  • Clarify required GPU skip modes in README #2675 (README on the skip modes) describes the old exact-match rule; if both land, its wording could name the <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

@github-actions github-actions Bot added area:recompiler RDNA2 decoder, HLSL/direct-DXIL recompiler, wave64/wave32 gpu:both Code affects both AMD and NVIDIA GPUs (scope tag; see needs:*-test for remaining checks) labels Nov 28, 2026
…e reason

skip_test fails a skip under XCL_REQUIRE_GPU=mesh unless its reason is exactly
"no wave64" (and under =wave64 unless it is exactly "no mesh shaders"). lower_dxil's GPU
tests skip only their wave64 half, with the reason of that part:
"f32 arithmetic, wave64: no wave64", "const_mask, wave64: no wave64",
"mask_ff0_flbit, wave64: no wave64" and three more. On a GPU without wave64 (an RTX 3090)
the suite under XCL_REQUIRE_GPU=mesh therefore failed six tests whose only skip is the one
that setting allows.

The rule is now skip_fails, which takes "<part>: <reason>" as that reason. Nothing else
changes: any other reason, and a part skipped for another one, still fails.

Test: skip_tests::a_required_gpu_lets_through_its_hardware_reason_also_for_a_part.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CharlyRien
CharlyRien force-pushed the pr/skip-test-reason-suffix branch from cc6e27b to a04dcd5 Compare November 29, 2026 13:56
@github-actions github-actions Bot added the needs-pr-check Failing the PR description check (CONTRIBUTING.md) label Nov 29, 2026
@CharlyRien

Copy link
Copy Markdown
Contributor Author

Rebased on main 7a649b0; head a04dcd5 (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_part passed. The 7 failures are the 6 shaders::pipeline_library::tests and warm_library::tests::cold_publish_makes_an_unchanged_corpus_reusable, the same 7 with the same errors on main 7a649b0 here: E_INVALIDARG from CreateComputePipelineState on 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_library failures of our previous CI runs were main's own on 227d2cb (run 46201186646) and passed on main since fa20459; main 7a649b0 now fails 8 hle::d3d12x::title_textures::tests in CI (run 46261846646), so a red Build and test with those 8 is main's. "PR description" stays red only for the xcl-smoke pair 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-only label 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_GPU unset.

AI use: rebase, test runs and this comment done with Claude Code (Claude Opus 5.5), checked by me.

@github-actions github-actions Bot removed the needs-pr-check Failing the PR description check (CONTRIBUTING.md) label Nov 30, 2026
@CharlyRien
CharlyRien marked this pull request as ready for review November 30, 2026 09:29
@BBareth

BBareth commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

merge-check claim
head: a04dcd5

@github-actions github-actions Bot added needs-1st-check Passes gates; needs first independent merge-check (#3041) needs:amd-test Needs a test report or merge-check on an AMD GPU needs:nvidia-test Needs a test report or merge-check on an NVIDIA GPU labels Dec 1, 2026
@BBareth

BBareth commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

merge-check
base: 493dbd3
head: a04dcd5
merge: 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_part ran and passed.
review: no blocking finding; one file (+45/-10), every line read. skip_test moves its XCL_REQUIRE_GPU decision into skip_fails, which also accepts a reason of the form <part>: no wave64 / <part>: no mesh shaders as that hardware reason; a reason that only ends in the words without : before them still fails. Without XCL_REQUIRE_GPU nothing changes: the 28 SKIPPED lines here are the same as on the base. Not tested here: a run with XCL_REQUIRE_GPU=mesh or =wave64 set.
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.

@github-actions github-actions Bot added needs-2nd-check Has 1 safe merge-check; needs second independent check (#3041) and removed needs-1st-check Passes gates; needs first independent merge-check (#3041) needs:nvidia-test Needs a test report or merge-check on an NVIDIA GPU labels Dec 1, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head a04dcd5

No open or merged PR makes the same change: the closed #1670 / #1680 also pulled the rule out of skip_test into skip_fails, but for the "no heap windows" skip, not for the "<part>: no wave64" reasons that gpu/recomp/lower_dxil.rs builds (format!("{name}, wave64: no wave64")).
The suffix match in runner.rs:skip_fails needs 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.

@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

merge-check
base: 493dbd3
head: a04dcd5
merge: 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_test under XCL_REQUIRE_GPU=mesh accepts only the exact reason "no wave64". The PR moves that rule into skip_fails (runner.rs ~667) and also accepts "<part>: no wave64" (~668), the form the four lower_dxil.rs tests (~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; no skip_test call on main builds one by accident (I checked the free-form skip_test(&e) sites too). Reasons like "no GPU / DXC / wave64" (core_tests.rs ~804, ~948) still fail under =mesh, as on main. Fine: the SKIPPED line is still printed and counted, nothing else gets looser, wave64,mesh still refuses part skips, CI is unaffected (no workflow sets XCL_REQUIRE_GPU), and the unit test covers lookalike reasons and both modes. The run below doesn't set XCL_REQUIRE_GPU, so on this card it only runs that unit test; the meaningful check is XCL_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.

@github-actions github-actions Bot added ready-to-merge Has 2 independent safe merge-checks on current head (#3041) and removed needs-2nd-check Has 1 safe merge-check; needs second independent check (#3041) needs:amd-test Needs a test report or merge-check on an AMD GPU labels Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:recompiler RDNA2 decoder, HLSL/direct-DXIL recompiler, wave64/wave32 gpu:both Code affects both AMD and NVIDIA GPUs (scope tag; see needs:*-test for remaining checks) ready-to-merge Has 2 independent safe merge-checks on current head (#3041)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants