Tests: the debug-layer tests' SKIPPED lines go straight to stderr #264
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!264
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/264/head"
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?
@PHeitor1 on GitHub · 2026-11-23 22:07 UTC · original
PHeitor1:tests-show-hidden-skips→main· +13 −4 · 2 files · 1 commits · closed without mergingTwo tests print their
SKIPPED <test>: <reason>line witheprintln!/println!. libtest captures both, so without--nocapturethe test shows plainok, nothing says it did not run, andscripts/test.ps1does not count it.runner::skip_testalready writes straight tostd::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 stderrcrates/xcl/tests/texture_states.rs: askippedhelper for the three skip paths ofuploads_start_from_each_subresources_stateNo other change: the tests still pass when they skip.
Tested
52ad073(rebased onmainc160d86, same diff as the earlier head84e6e3e):cargo build --workspace, thencargo 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 windowscargo 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 hereSystemRootpointing at an empty folder and default capture: stderr hasSKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll, then... ok84e6e3e, 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)). Onmainthey showed onlyok.Regression run
crates/xcl/srcchangesNot tested
texture_statesskip lines on the rebased head (seen on84e6e3e)hle::kernelx::tests::set_thread_affinity_mask_takes_console_maskshas the sameprintln!skip line; left out because the file is undercrates/xcl/srcand would need a regression run on a retail title, which I cannot makeAI use
🤖 Generated with Claude Code
@requiemsnkrp on GitHub · 2026-11-23 23:15 UTC · original
Tested
0684daaon 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 ignoredSKIPPED(no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwareSystemRootat an empty folder (cargo test -p xcl --test e2e -- test_title_draws_with_a_root_signature_under_the_debug_layer, no--nocapture): on0684daathe output hasSKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dllbefore... ok; onmain4017f8fonly... ok.uploads_start_from_each_subresources_state ... okon both: Graphics Tools are installed here, so it runs instead of skipping.main4017f8f, same command: 650 passed, 0 failed, 40 ignored, same 2 SKIPPED (one test more onmainsince this PR's base9ab7d76).main4017f8f(git merge-tree), the merge result was not tested.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
AI use: Claude Code with Claude Opus 5.5 (ran the tests and wrote this report).
@Rednaxeh on GitHub · 2026-11-24 00:00 UTC · original
AMD RDNA3 (RX 7800 XT), Graphics Tools installed –
84e6e3emerged ontomain85bdf21: 665 passed, 0 failed, the two debug-layer tests run their real pathTested the merge commit
eb70c92=main85bdf21+ this PR's head84e6e3e(clean merge, no uncommitted changes). NoXCL_SAMPLE_*variables set.System32\d3d12SDKLayers.dll) andSystem32\xgameruntime.dllpresent · Toolchain: rustc 1.100.0 msvc, debug, DXC 1.9.2602.17.\scripts\test.ps1(cargo test --workspace -- --test-threads=4) withXCL_REQUIRE_GPU=wave64,mesh: 665 passed, 0 failed, 41 ignored, 0 SKIPPED – the same counts asmain85bdf21on 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_layeranduploads_start_from_each_subresources_statetake 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/srcchanges).Report written with Claude Code (Claude Fable 5.1) from the runs above; the commands and counts are from this machine.
@Mayzkl on GitHub · 2026-11-24 00:40 UTC · original
The same problem is in two more files on
main2997c9a. They print their skip line withprintln!("SKIPPED …"), so libtest captures it andscripts/test.ps1does not count the test as skipped:crates/xcl/src/hle/d3d12x/title_textures.rs: 7 skip paths ofplaced_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.rsone 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 plaincargo testortest.ps1run shows that test only asokthere.These are in
src/(unit tests), socrate::gpu::recomp::runner::skip_testis in reach. It fits the GPU skips intitle_textures.rs. For thekernelx.rsone it does not fit: underXCL_REQUIRE_GPU=wave64it panics on any reason other thanno mesh shaders, so a CPU-affinity skip would fail there. That one needs a plain write tostd::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
grepon a clean checkout ofmainand wrote this comment. The line numbers were checked against the file.@requiemsnkrp on GitHub · 2026-11-24 00:45 UTC · original
Checked on
main2997c9a: the eightprintln!("SKIPPED …")lines are where you say (title_textures.rs1378–1418,kernelx.rs:1789).skip_test(gpu/recomp/runner.rs:428-442) panics underXCL_REQUIRE_GPU=wave64for any reason butno 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 undercrates/xcl/src/as a runtime change unless its path has/testsor ends intests.rs. A follow-up that touchestitle_textures.rsorkernelx.rswill therefore be asked for anxcl-smokeregression run, even if only#[cfg(test)]code changes. That is why this PR leftkernelx.rsout, and folding the two files in here would put the same requirement on #264.skip_testintitle_textures.rs, a run withXCL_REQUIRE_GPU=wave64(ormesh) 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.main2997c9a.cargo test -p xcl --lib -- placed_title_textures_share_vram_and_preserve_pixels set_thread_affinity_mask_takes_console_masks --nocaptureprints 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 on GitHub · 2026-11-24 00:46 UTC · original
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), Rust1.100.0, DXC1.9.2602.17. Tested base4017f8ff8faaae6007fd83910d230a027dd85a33and PR head84e6e3e8732965f78ea66a9c424152c9c590f8af.cargo build --release --locked --workspaceandcargo test --release --locked -p xcl --test e2e --test texture_states --no-run. Ran the two test binaries with--test-threads=1, filtering e2e totest_title_draws_with_a_root_signature_under_the_debug_layerwith--exact. The two selected tests passed on both commits with the normal environment and no skip reported.SystemRootpointing to a temporary directory containing an emptySystem32, only for the test process. With libtest capture enabled, the base reported onlyok. The PR reportedSKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dlland 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 on GitHub · 2026-11-24 00:47 UTC · original
@Mayzkl thanks, good catch on the
title_textures.rsprobe. 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/srcoutside atestspath, soscripts/pr_check.pytreats them as runtime changes and asks for twoxcl-smokeblocks, 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 tocrates/xcl/tests/lets it go in as it is.For
kernelx.rsI agree with you thatrunner::skip_testdoes not fit: a CPU-affinity reason would panic underXCL_REQUIRE_GPU=wave64. This is the change I had and dropped from this PR for the reason above; take it if it helps:(same reason string as now). For
title_textures.rs,skip_testlooks right to me for the adapter and tiled-tier probes.Written with Claude Code (Claude Opus 5.5).
@wbnm77 on GitHub · 2026-11-24 14:19 UTC · original
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
930e8b49c1c2ec683d22c724a398b39111cd0e56with PR head84e6e3e8732965f78ea66a9c424152c9c590f8afmerged into that revision locally (tree081885d9cee7d5dd67f9299d2d2bc39410110ac8).I ran
test_title_draws_with_a_root_signature_under_the_debug_layeranduploads_start_from_each_subresources_stateas exact filters. Both exited successfully but skipped on this configuration. Main hid bothSKIPPEDlines 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.
@humsterbumster on GitHub · 2026-11-24 21:41 UTC · original · edited 2026-11-24 21:44 UTC
Test report for head
52ad073aa29c1ee73dbc11a046c5f3ab9d0ff3a(last push 2026-11-24), baseb9b6ea6(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):e2erc=101,xcl(lib tests) rc=3,predication_e2erc=101,pls_quotarc=101 — the same four non-zero binaries (same tests, same panic sites) also fail on baseb9b6ea6on this machine (e2e failstest_title_runs_and_game_folder_is_untouched; the lib binary dies mid-run insidegpu::dxil::ops_testswith no Rust panic; predication panicpredication_e2e.rs:360— #1272; pls_quota panicpls_quota.rs:37— #810). No test fails on this head that does not also fail on base on this machine.passed=46 failed=3 ignored=20(the lib binary dies before printing a summary, as on base).Smoke: not run from this machine. The repo's own
tests/testtitlepresents no frames in this Wine environment, so noxcl-smokeblock is posted here; a retail-title smoke pair (base vs head, 60 s) is not producible from this machine.Tested
VKD3D_CONFIG=ignore_shared_fence), DXVK, DXC 1.9.2609, Rust 1.100.0,x86_64-pc-windows-gnucross buildNot tested
XCL_SHORT_MOVIES/ movie-related paths: unset in these runsReport written with pi (Qwen3.8-27B) from runs on this machine; all values above are measured, base
b9b6ea6and head with the same command line.@PHeitor1 on GitHub · 2026-11-25 11:52 UTC · original
Closing: #2153 and #2154 made the same change on
main, so nothing is left here. Thanks to everyone who tested it.@DavidM1911 on GitHub · 2026-11-25 15:14 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Pull request closed