Tests: a panicking title-texture test no longer poisons the others #673
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!673
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/673/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?
@iggyvilla on GitHub · 2026-11-24 03:16 UTC · original
iggyvilla:xcl-test-lock-poison→main· +6 −6 · 2 files · 1 commits · merged 2026-11-25 19:18 UTCThe title-texture and VRAM tests serialise on
TEST_LOCK(title_textures.rs) andVRAM_TEST_LOCK(vram.rs) and take them with.lock().unwrap(). When one holder panics, the mutex is poisoned and every later test that takes it fails withPoisonError, though each passes alone. Onmainon RDNA2,placed_title_textures_share_vram_and_preserve_pixelsfails (the packed-mip case open PR #470 fixes), and it takestransitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memorydown with it. The locks guard no data, so they are now taken the way the crate's other test locks already are (ASYNC_TEST_LOCK,READING_CB_TEST_LOCK):unwrap_or_else(|e| e.into_inner()).What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs,crates/xcl/src/hle/d3d12x/vram.rs: the sixlock().unwrap()calls on these two test locks, all in#[cfg(test)]code. No runtime code changes; 6 lines changed.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4, whole workspace:maindd2ae9a: 687 passed, 3 failed, 41 ignored. The 3 failures are the #470 test and the twoPoisonErrorfailures named above.placed_title_textures_share_vram_and_preserve_pixelsstill fails, the #470 case.SKIPPEDGPU tests on this adapter.Regression run
The diff is test-only (
#[cfg(test)]code in two runtime files); these runs are there so the check passes without atest-onlylabel. 60 s each,XCL_NETWORK=0, the same retail title.main:This PR:
Not tested
AI use
🤖 Generated with Claude Code
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@lordon1a on GitHub · 2026-11-24 03:28 UTC · original
Independent test report on
84b6645:Tested
616.64, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200),rustc 1.100.0(x86_64-pc-windows-gnullvm), debug build, DXC1.9.2609.5(01b62ad4)cargo test -p xcl --lib title_textures -- --test-threads=41.53s(includingplaced_title_textures_share_vram_and_preserve_pixelsandgpu_mirror_upload_follows_cpu_writes_and_later_mapping_changeson real D3D12.X backend)Not tested
AI use
84b6645in a detached worktree, audited the diff, ran the test suite, and posted this report.@relativespace2K on GitHub · 2026-11-24 03:31 UTC · original
Tested — independent validation of
84b664514f979b6d3bab76b807c0023f5fef008fon AMD RDNA2Windows 11 IoT Enterprise LTSC 26100; Rust 1.100.0
stable-x86_64-pc-windows-msvc;DXC 1.9.2602.17 (Windows SDK 10.0.26100.0); debug; no
XCL_SAMPLE_*.dd2ae9a(mainhas since advanced to91f9a5e).cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4,once on the parent and once on the PR head.
dd2ae9a84b6645placed_title_textures_share_vram_and_preserve_pixelsfails with3D 64x64x64 4 mips: subresource 2 mismatch; thentransitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memoryfail withPoisonError.tests pass in the same parallel run. Both also pass alone on the parent.
SKIPPEDGPU tests on this adapter.Not tested: retail title /
smoke.ps1(the diff is#[cfg(test)]code only),release build, NVIDIA / Intel.
AI use: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests and drafted this report.
@CryingLaughing on GitHub · 2026-11-24 03:32 UTC · original
Tested
84b664514f979b6d3bab76b807c0023f5fef008fand its exact parentdd2ae9a70af5eb5aad60f02d86e386b72abe1e95, with the same scratch-only test intitle_textures.rs. NVIDIA GeForce RTX 4080, driver 621.01, Intel Core i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC x64, Windows SDK DXC 1.8.2502.11, debug.XCL_ADAPTER=4080,XCL_REQUIRE_GPU=1, allXCL_SAMPLE_*variables unset.cargo test -p xcl --lib --locked -j 4 --no-run --message-format=jsonand ran the executable withhle::d3d12x::title_textures::tests::gpu_title_texture_fixtures_reacquire_poisoned_locks --exact --test-threads=1 --nocapture. In each fresh process a worker acquired both test mutexes and intentionally panicked before any GPU activity. The fixture confirmed both mutexes were poisoned, then invoked the existing transitions, mirror-upload and placed-texture tests individually undercatch_unwind.PoisonError. The wrapper failed 0/1. On the PR head all three completed and the wrapper passed 1/1, with zero skips. The backend logged the RTX 4080, and the mirror and placed fixtures completed their normal GPU readback assertions.Not tested
AI use
@MesshM on GitHub · 2026-11-24 03:33 UTC · original
Test run of
84b664514f979b6d3bab76b807c0023f5fef008fon AMD RDNA4. I merged it onto currentmain91f9a5elocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 692 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 652 passed, 0 failed, 21 ignoredSKIPPED; the title-texture and VRAM tests pass (none panicked here, so the poisoned-lock path itself was not exercised).Review: Taking the guard with
unwrap_or_else(|e| e.into_inner())lets the later tests run after one panics, so a failure shows as one failed test instead of a cascade ofPoisonErrors. Test-only. I found nothing to change.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@fladit123 on GitHub · 2026-11-24 03:52 UTC · original
Independent release-mode validation on NVIDIA.
Tested
84b664514f979b6d3bab76b807c0023f5fef008fXCL_ADAPTER=4060Commands
All four directly affected tests passed in both the focused and full workspace runs. The real D3D12.X backend selected the RTX 4060. No hangs or cascading PoisonError failures were observed.
Two explicit GPU capability skips, included in the passed count:
gpu_geometry_wave32_prefix_count_over_a_maskgpu_wave32_program_in_wave64_hardwareTen additional sample-dependent tests explicitly skipped because their sample variables were unset.
Both test commands exited with code 0. The worktree remained clean.
Not tested: deliberately poisoned mutexes (already covered independently by CryingLaughing), recovery after GPU state corruption, baseline comparison, AMD/Intel GPUs, native wave64 or retail titles.
No blocking findings within the tested scope.
AI use: ChatGPT (GPT-6.2) assisted with diff review, test planning, log analysis and reporting. All commands were executed locally by me.
@gutersohn on GitHub · 2026-11-24 10:16 UTC · original
Test run of
84b664514f979b6d3bab76b807c0023f5fef008fon an AMD Radeon RX 6600 (RDNA2, Navi 23, gfx1032), as is and merged onto currentmain02bfd1d: the twoPoisonErrorfollow-on failures are gone and only the #470 case is left; with #470 merged as well, 0 failed. (Currentmain6efdabcchanges onlyscripts/pr_check.pyand its test since then.)Tested
XCL_ADAPTER=radeon; noXCL_SAMPLE_*setcargo build --workspace+cargo test --workspace --no-fail-fast -- --test-threads=4, one worktree per tree:84b6645(basedd2ae9a)placed_title_textures_share_vram_and_preserve_pixelsmain02bfd1dtransitions_apply_when_their_list_is_submitted,d32s8_targets_take_their_own_size_of_video_memory(PoisonError)02bfd1d+ this PR (local merge, clean)placed_title_textures_share_vram_and_preserve_pixels02bfd1d+ this PR + #4703896e4f(local merges, clean)3D 64x64x64 4 mips: subresource 2 mismatch, the case #470 fixes.transitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memorypass 3/3 in every tree;placed_title_textures_share_vram_and_preserve_pixelsfails 3/3 except with #470 (3/3 pass).SKIPPEDGPU tests on this adapter in any tree.Not tested
scripts/smoke.ps1(no game data); release buildAI-assisted: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
d32s8_targets_take_their_own_size_of_video_memoryon adapters with under 8 GB of dedicated video memory. Fixes #42. #1089@JJAutoCompare on GitHub · 2026-11-25 06:24 UTC · original
Empirical test report (
84b66451)Hardware / environment
84b664514f979b6d3bab76b807c0023f5fef008f, clean detached checkout.Commands and results
cargo test --workspace --no-runoutside the Arc lock, exit 0 after adding Cargo to PATH. Build only.XCL_ADAPTER=NONE_CPU_ONLY, exit 0, 1 passed / 0 failed / 0 ignored / 0 skipped.XCL_ADAPTER=A770insideInvoke-ArcTest.ps1, exit 0, 3 passed / 0 failed / 0 ignored as reported by libtest. The first wrapper invocation was blocked by PowerShell execution policy. The retry used a process-scoped bypass.RUST_TEST_NOCAPTURE=1. Zero case-sensitive^SKIPPEDlines, one inline skip counted as a pass by libtest.Observed behavior
The CPU transition test and the GPU mirror test passed. The mirror test logged the real Arc A770 backend. The placed-texture test printed
SKIPPED ... tiled tier < 2. The D32S8 test returnedokand can silently return early at its adapter and heap-tier checks.Not tested
Full GPU workspace suite, game smoke runs, and recovery after an intentionally poisoned mutex. The placed-texture assertions were skipped, and D32S8 assertion coverage was unconfirmed.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr673-focused.log and published.
@DavidM1911 on GitHub · 2026-11-25 12:10 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
@ivall on GitHub · 2026-11-25 19:18 UTC · original
Merging: a panicking test no longer takes the next ones down through a poisoned lock.
Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug,
main2898511with 27 test PRs merged locally, this one included: the whole suite 3 times, 1419 passed, 2 failed, 46 ignored each time (fuzz_validate_and_gpu_1and_3, which fail the same way onmain);hle::d3d12xon 16 threads 5 times, no failure.AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf.