Skip to content

Tests: the debug-layer tests' SKIPPED lines go straight to stderr - #264

Closed
PHeitor1 wants to merge 1 commit into
xcl-dev:mainfrom
PHeitor1:tests-show-hidden-skips
Closed

PHeitor1 wants to merge 1 commit into
xcl-dev:mainfrom
PHeitor1:tests-show-hidden-skips

Conversation

@PHeitor1

@PHeitor1 PHeitor1 commented Nov 23, 2026 •

Copy link
Copy Markdown

Two tests print their SKIPPED <test>: <reason> line with eprintln! / println!. libtest captures both, so without --nocapture the test shows plain ok, nothing says it did not run, and scripts/test.ps1 does not count it. runner::skip_test already writes straight to std::io::stderr() for this reason; these now do the same. Part of #42 (testers' skip counts miss these two on machines without Graphics Tools / XGameRuntime).

What is in it

  • crates/xcl/tests/e2e.rs: test_title_draws_with_a_root_signature_under_the_debug_layer's skip line to stderr
  • crates/xcl/tests/texture_states.rs: a skipped helper for the three skip paths of uploads_start_from_each_subresources_state

No other change: the tests still pass when they skip.

Tested

  • NVIDIA GeForce RTX 5060 Ti 8 GB, driver 621.24; Ryzen 5 5600X; Windows 11 Pro 26300 (native, Graphics Tools and Gaming Services installed); Rust 1.100.0 msvc; debug
  • Head 52ad073 (rebased on main c160d86, same diff as the earlier head 84e6e3e): cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 858 passed, 0 failed, 42 ignored. SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask: no wave64, gpu_wave32_program_in_wave64_hardware: no wave64, heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
  • Same head, cargo test -p xcl --test e2e --test texture_states -- --test-threads=1: 4 passed, 0 failed, no SKIPPED line; both changed tests take their real path here
  • Same head, the e2e test alone with SystemRoot pointing at an empty folder and default capture: stderr has SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll, then ... ok
  • Earlier head 84e6e3e, same machine before Graphics Tools and Gaming Services were installed: both tests skipped, and both lines were visible (no d3d12SDKLayers.dll, no D3D12 debug layer (0x887A002D)). On main they showed only ok.

Regression run

  • not needed: no file under crates/xcl/src changes

Not tested

  • The texture_states skip lines on the rebased head (seen on 84e6e3e)
  • AMD / Intel GPUs
  • hle::kernelx::tests::set_thread_affinity_mask_takes_console_masks has the same println! skip line; left out because the file is under crates/xcl/src and would need a regression run on a retail title, which I cannot make

AI use

  • Claude Code with Claude Opus 5.5: found the captured skip lines while running the suite, wrote the change and this description, ran the tests; I reviewed the diff.

🤖 Generated with Claude Code

@requiemsnkrp

Copy link
Copy Markdown
Contributor

Tested 0684daa on NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.1714 / 617.14, 32-lane waves), Ryzen 5 5600X, Windows 11 Pro 25H2 (26200.9974), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17 (Windows SDK), debug: pass.

Tested

  • cargo test --workspace -j 4 --no-fail-fast -- --test-threads=4 --skip test_title_runs_and_game_folder_is_untouched --skip test_title_draws_with_a_root_signature_under_the_debug_layer: 649 passed, 0 failed, 40 ignored
  • SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware
  • The changed e2e skip path, forced without opening a window by pointing SystemRoot at an empty folder (cargo test -p xcl --test e2e -- test_title_draws_with_a_root_signature_under_the_debug_layer, no --nocapture): on 0684daa the output has SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll before ... ok; on main 4017f8f only ... ok.
  • uploads_start_from_each_subresources_state ... ok on both: Graphics Tools are installed here, so it runs instead of skipping.
  • main 4017f8f, same command: 650 passed, 0 failed, 40 ignored, same 2 SKIPPED (one test more on main since this PR's base 9ab7d76).
  • Tested the head itself; it merges cleanly into main 4017f8f (git merge-tree), the merge result was not tested.
  • Not run here: the two e2e tests that run the test title (test_title_runs_and_game_folder_is_untouched, test_title_draws_with_a_root_signature_under_the_debug_layer): they open the XCL game window and this PC was in use (the 2 "filtered out").

Not tested

  • The texture_states skip lines (that test does not skip on this machine).
  • Retail title regression run (not needed for a test-only change; no game copy here).

AI use: Claude Code with Claude Opus 5.5 (ran the tests and wrote this report).

@Rednaxeh

Copy link
Copy Markdown
Contributor

AMD RDNA3 (RX 7800 XT), Graphics Tools installed – 84e6e3e merged onto main 85bdf21: 665 passed, 0 failed, the two debug-layer tests run their real path

Tested the merge commit eb70c92 = main 85bdf21 + this PR's head 84e6e3e (clean merge, no uncommitted changes). No XCL_SAMPLE_* variables set.

  • GPU / driver: AMD Radeon RX 7800 XT (16 GB, RDNA3), driver 32.0.32029.2010 · CPU / RAM: Ryzen 7 7800X3D, 32 GB · OS: Windows 11 Pro 26300 (native), with Graphics Tools (System32\d3d12SDKLayers.dll) and System32\xgameruntime.dll present · Toolchain: rustc 1.100.0 msvc, debug, DXC 1.9.2602.17
  • .\scripts\test.ps1 (cargo test --workspace -- --test-threads=4) with XCL_REQUIRE_GPU=wave64,mesh: 665 passed, 0 failed, 41 ignored, 0 SKIPPED – the same counts as main 85bdf21 on this machine, as expected for a change that moves two skip lines.
  • cargo test -p xcl --test e2e --test texture_states -- --test-threads=1: 3 + 1 passed, 0 failed, no SKIPPED line – with the debug layer and the system runtime installed, test_title_draws_with_a_root_signature_under_the_debug_layer and uploads_start_from_each_subresources_state take their real path here (the e2e debug-layer test takes ~17 s), so this run checks the "not skipped" side of the change on AMD; the visible-SKIPPED side is the RTX 5060 Ti run in the description.

Not tested: the skip path itself (nothing is missing on this machine); no title (none needed: no file under crates/xcl/src changes).

Report written with Claude Code (Claude Fable 5.1) from the runs above; the commands and counts are from this machine.

@Mayzkl

Mayzkl commented Nov 24, 2026

Copy link
Copy Markdown

The same problem is in two more files on main 2997c9a. They print their skip line with println!("SKIPPED …"), so libtest captures it and scripts/test.ps1 does not count the test as skipped:

  • crates/xcl/src/hle/d3d12x/title_textures.rs: 7 skip paths of placed_title_textures_share_vram_and_preserve_pixels, at lines 1378, 1382, 1388, 1396, 1406, 1413 and 1418.
  • crates/xcl/src/hle/kernelx.rs:1789: set_thread_affinity_mask_takes_console_masks ("every processor bit is taken").

The title_textures.rs one matters in practice. Its probe at line 1406 ("this adapter makes no reserved cube with mips") is the skip @regiumlepidi found on an RTX 5070 Ti in #42. A plain cargo test or test.ps1 run shows that test only as ok there.

These are in src/ (unit tests), so crate::gpu::recomp::runner::skip_test is in reach. It fits the GPU skips in title_textures.rs. For the kernelx.rs one it does not fit: under XCL_REQUIRE_GPU=wave64 it panics on any reason other than no mesh shaders, so a CPU-affinity skip would fail there. That one needs a plain write to std::io::stderr(), as this PR does.

Would you like to fold these into this PR, or should I open a small follow-up stacked on it once it is merged?

AI use: Claude Code with Claude Opus 5.5 found these with grep on a clean checkout of main and wrote this comment. The line numbers were checked against the file.

@requiemsnkrp

Copy link
Copy Markdown
Contributor

Checked on main 2997c9a: the eight println!("SKIPPED …") lines are where you say (title_textures.rs 1378–1418, kernelx.rs:1789). skip_test (gpu/recomp/runner.rs:428-442) panics under XCL_REQUIRE_GPU=wave64 for any reason but no mesh shaders, so a plain stderr write is the right fit for the affinity test.

Three things for whoever takes it:

  • scripts/pr_check.py (runtime(), l. 45-46) treats every file under crates/xcl/src/ as a runtime change unless its path has /tests or ends in tests.rs. A follow-up that touches title_textures.rs or kernelx.rs will therefore be asked for an xcl-smoke regression run, even if only #[cfg(test)] code changes. That is why this PR left kernelx.rs out, and folding the two files in here would put the same requirement on Tests: the debug-layer tests' SKIPPED lines go straight to stderr #264.
  • With skip_test in title_textures.rs, a run with XCL_REQUIRE_GPU=wave64 (or mesh) fails on an adapter that hits one of those probes (tiled tier < 2, no reserved cube with mips…) instead of skipping. That is probably what the variable is for, but it changes behaviour on those adapters.
  • On an RTX 3060 12 GB (Ampere, driver 621.24, Windows 11 26200) both tests take their real path on main 2997c9a. cargo test -p xcl --lib -- placed_title_textures_share_vram_and_preserve_pixels set_thread_affinity_mask_takes_console_masks --nocapture prints no SKIPPED line: 2 passed. So not every NVIDIA card has the line-1406 skip.

AI use: checked and written with Claude Code (Claude Opus 5.5); the test run is from this machine.

@AGInformatique81

Copy link
Copy Markdown

Independent RTX 2060 check of PR #264, with Graphics Tools and Gaming Services present.

Tested — Windows 11 Pro build 26300, Core i7-9700K, RTX 2060 (driver 32.0.16.2124), Rust 1.100.0, DXC 1.9.2602.17. Tested base 4017f8ff8faaae6007fd83910d230a027dd85a33 and PR head 84e6e3e8732965f78ea66a9c424152c9c590f8af.

  • Built with cargo build --release --locked --workspace and cargo test --release --locked -p xcl --test e2e --test texture_states --no-run. Ran the two test binaries with --test-threads=1, filtering e2e to test_title_draws_with_a_root_signature_under_the_debug_layer with --exact. The two selected tests passed on both commits with the normal environment and no skip reported.
  • Ran the filtered e2e test again with SystemRoot pointing to a temporary directory containing an empty System32, only for the test process. With libtest capture enabled, the base reported only ok. The PR reported SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll and still exited successfully. No Windows components were removed.

Not tested — The missing-debug-layer branches of texture_states, the full workspace suite, and other GPUs.

AI use — Codex (GPT-6) ran the tests and drafted this report.

@PHeitor1

Copy link
Copy Markdown
Author

@Mayzkl thanks, good catch on the title_textures.rs probe. That ties this to the RTX 5070 Ti skip in #42.

Please open the follow-up. I'd rather not fold them in here: both files are under crates/xcl/src outside a tests path, so scripts/pr_check.py treats them as runtime changes and asks for two xcl-smoke blocks, even though the edits are only #[cfg(test)] code. I have no title I can make a regression run with, so this PR would stop being mergeable. Keeping this one to crates/xcl/tests/ lets it go in as it is.

For kernelx.rs I agree with you that runner::skip_test does not fit: a CPU-affinity reason would panic under XCL_REQUIRE_GPU=wave64. This is the change I had and dropped from this PR for the reason above; take it if it helps:

// straight to stderr: libtest captures println!, and scripts/test.ps1 counts this line
use std::io::Write;
let _ = writeln!(std::io::stderr(), "SKIPPED set_thread_affinity_mask_takes_console_masks: ...");

(same reason string as now). For title_textures.rs, skip_test looks right to me for the adapter and tiled-tier probes.

Written with Claude Code (Claude Opus 5.5).

@wbnm77

wbnm77 commented Nov 24, 2026

Copy link
Copy Markdown

Tested

Native Windows 10 Pro 22H2 build 19045.6466, RTX 5060 Ti driver 621.24, Rust 1.98.1 MSVC, and app-local Agility SDK 1.620.2. I compared main 930e8b49c1c2ec683d22c724a398b39111cd0e56 with PR head 84e6e3e8732965f78ea66a9c424152c9c590f8af merged into that revision locally (tree 081885d9cee7d5dd67f9299d2d2bc39410110ac8).

I ran test_title_draws_with_a_root_signature_under_the_debug_layer and uploads_start_from_each_subresources_state as exact filters. Both exited successfully but skipped on this configuration. Main hid both SKIPPED lines with default libtest capture and showed them with --nocapture. The local merge showed both lines with default capture, as intended.

Not tested

Debug-layer rendering and texture-state assertions, because the system layer file was absent and the debug interface returned 0x887A002D. Retail titles and assets were outside this test.

AI use

Codex (GPT-6) assisted with reviewing the diff, building, running the checks and writing this report.

e2e's test_title_draws_with_a_root_signature_under_the_debug_layer and
texture_states' uploads_start_from_each_subresources_state printed their
skip line with eprintln!/println!, which libtest captures: without Graphics
Tools or System32\xgameruntime.dll they showed plain ok and
scripts/test.ps1 did not count them. They now write to std::io::stderr() as
runner::skip_test does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@PHeitor1
PHeitor1 force-pushed the tests-show-hidden-skips branch from 84e6e3e to 52ad073 Compare November 24, 2026 19:10
@ivall ivall added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 24, 2026
@humsterbumster

humsterbumster commented Nov 24, 2026 •

Copy link
Copy Markdown

Test report for head 52ad073aa29c1ee73dbc11a046c5f3ab9d0ff3a (last push 2026-11-24), base b9b6ea6 (current main). class: nv-linux (Wine on Linux; no native-Windows runs).

Unit suite (cargo build --workspace --release --target x86_64-pc-windows-gnu, then the 19 test binaries run under Wine, --test-threads=4):

Smoke: not run from this machine. The repo's own tests/testtitle presents no frames in this Wine environment, so no xcl-smoke block is posted here; a retail-title smoke pair (base vs head, 60 s) is not producible from this machine.

Tested

  • RTX 5090 (wave32), Proton 11 Wine + vkd3d-proton (asserts off, VKD3D_CONFIG=ignore_shared_fence), DXVK, DXC 1.9.2609, Rust 1.100.0, x86_64-pc-windows-gnu cross build

Not tested

  • native Windows
  • a retail title run
  • XCL_SHORT_MOVIES / movie-related paths: unset in these runs

Report written with pi (Qwen3.8-27B) from runs on this machine; all values above are measured, base b9b6ea6 and head with the same command line.

@PHeitor1

Copy link
Copy Markdown
Author

Closing: #2153 and #2154 made the same change on main, so nothing is left here. Thanks to everyone who tested it.

@PHeitor1 PHeitor1 closed this Nov 25, 2026
@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants