e2e: the debug-layer test keeps its files in the target's tmp folder #1015
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!1015
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1015/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?
@upipibi on GitHub · 2026-11-24 10:23 UTC · original
upipibi:e2e-debug-layer-tmpdir→main· +1 −1 · 1 files · 1 commits · closed without mergingtest_title_draws_with_a_root_signature_under_the_debug_layer(crates/xcl/tests/e2e.rs) builds its game and data folders under<repository>/target/e2e-debug-layer, whatever the target directory is. WithCARGO_TARGET_DIR(orbuild.target-dir) set, that makes atargetfolder in the source tree and leaves the test's files outside whatcargo cleanempties. It usesCARGO_TARGET_TMPDIRnow, astest_title_runs_and_game_folder_is_untouchedbeside it does. No open PR that changese2e.rs(#150, #157, #264, #434, #512, #632) touches this line.What is in it
crates/xcl/tests/e2e.rs: one line, the test's root folder.Tested
CARGO_TARGET_DIRset to a folder outside the repository.d3d12SDKLayers.dlltaken out locally so that it gets that far (it then fails at "the debug layer did not come up", as it must here): onmain's line<worktree>\target\e2e-debug-layeris made and nothing under the target directory; with the change<CARGO_TARGET_DIR>\tmp\e2e-debug-layeris made and nothing in the worktree.cargo test --workspace --no-fail-fast -- --test-threads=4oned405e8: 704 passed, 0 failed, 41 ignored (xcl lib: 663 passed, 0 failed, 21 ignored).no wave64:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.Regression run
Not needed: tests only.
Not tested
d3d12SDKLayers.dllcheck taken out locally (not part of this PR).XCL_SAMPLE_*data.AI use
🤖 Generated with Claude Code
@futurepro62 on GitHub · 2026-11-24 14:24 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
ed405e8(on its basee50836b).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 704 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.test_title_draws_with_a_root_signature_under_the_debug_layer.Not tested
AI use
@Darkkandadr on GitHub · 2026-11-24 16:06 UTC · original
A second reason for this change: on
mainthe test fails in a deep checkout. The..path it builds pushes the title's overlay writes pastMAX_PATH. With this PR the test passes in the same folder.Tested
LongPathsEnabled=1; Rust 1.96.0 MSVC, debug; DXC 1.9.2609.5; D3D12 debug layer installed. The checkout path is 185 characters long, withCARGO_TARGET_DIRset to a short folder.mainat930e8b4:test_title_draws_with_a_root_signature_under_the_debug_layerfails. The test title reports[FAIL] files: writes go to the overlay, game folder untouched: … (os error 3)and[FAIL] files: directory listing merges overlay and hides deleted files: missing renamed.bin. The data root<checkout>\crates\xcl\..\..\target\e2e-debug-layer\datamakes the overlay path ofnew_save.binabout 271 characters long, and the write of that file is never redirected to the overlay (xcl.log).xcl runby hand on the same game folder. TheXCL_D3D12_DEBUGsetting makes no difference. Only the total length matters: the same data root without..(≈ 253 characters) gives 0 failures, and with..(≈ 271 characters) it gives 2, with or without the debug layer.ed405e8, in the same folder:cargo test -p xcl --test e2e: 3 passed, 0 failed. The changed test ran under the debug layer.Not tested
ed405e8(the full suite onmainand on #1348's head fails only this test, here).The overlay itself still fails past 260 characters even with
LongPathsEnabled=1. A title's real data root under%LOCALAPPDATA%\XCLis far shorter, so this PR only changes the test.Run and written with Claude Code (Claude Opus 5.5).
@JJAutoCompare on GitHub · 2026-11-25 05:31 UTC · original
Empirical test report (
ed405e86)PR #1015, commit
ed405e86129f804e64f4c53bfe1b25d30fb7d490. The diff changes thee2eintegration test so the debug-layer fixture createse2e-debug-layerunder Cargo'sCARGO_TARGET_TMPDIR.Hardware / environment
XCL_ADAPTER=A770. The fixture exited before initializing the adapter.rustc 1.100.0 (0ef1bc386 2026-11-09). DXC reporteddxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47).CARGO_TARGET_DIRset to a dedicated test directory.Commands and results
cargo test --workspace --no-runcompleted outsideInvoke-ArcTest.ps1with exit code 0. Cargo built the workspace test executables.Invoke-ArcTest.ps1 -Test { e2e-ccc4cc0d1608c862.exe test_title_draws_with_a_root_signature_under_the_debug_layer --exact }ran the prebuilt executable from Cargo's build output withRUST_TEST_NOCAPTURE=1and exited 0.Observed behavior
SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dllThe DLL check returns before the fixture computes its scratch path or launches the test title. The reported Rust pass is the early return from that check.
Not tested
The full GPU workspace suite, game smoke runs, and the debug-layer fixture body.
d3d12SDKLayers.dllwas absent fromSystem32. Scratch directory creation underCARGO_TARGET_TMPDIRand the root-signature assertions were unverified.AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1015-focused.logand published.@DavidM1911 on GitHub · 2026-11-25 09:17 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!
@upipibi on GitHub · 2026-11-25 11:49 UTC · original
Closing this as superseded. #2153 (HumanlyDev, merged 10:51Z,
45b6e18e) gives this test a folder underCARGO_TARGET_TMPDIRthrough the newtemp_dir("e2e-debug-layer")helper, which also makes the name unique per run. That covers this PR's one line and the deep-checkout failure Darkkandadr described, so a rebase would only re-create the conflict. Thanks to futurepro62, Darkkandadr, JJAutoCompare and DavidM1911 for testing it.AI-assisted (Claude Code).
Pull request closed