e2e: the debug-layer test keeps its files in the target's tmp folder #1008

Closed
upipibi wants to merge 1 commit from upstream-pr/1015 into main
upipibi commented 2026-11-24 10:23:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T10:23:54Z.


test_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. With CARGO_TARGET_DIR (or build.target-dir) set, that makes a target folder in the source tree and leaves the test's files outside what cargo clean empties. It uses CARGO_TARGET_TMPDIR now, as test_title_runs_and_game_folder_is_untouched beside it does. No open PR that changes e2e.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

  • NVIDIA GeForce RTX 3070 8 GB, driver 616.56 (32.0.16.1656), 32-lane waves only; Ryzen 9 5950X; Windows 11 Pro 26100; Rust 1.100.0 MSVC, debug; CARGO_TARGET_DIR set to a folder outside the repository.
  • Where the folders go, with the test's check for d3d12SDKLayers.dll taken out locally so that it gets that far (it then fails at "the debug layer did not come up", as it must here): on main's line <worktree>\target\e2e-debug-layer is made and nothing under the target directory; with the change <CARGO_TARGET_DIR>\tmp\e2e-debug-layer is made and nothing in the worktree.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on ed405e8: 704 passed, 0 failed, 41 ignored (xcl lib: 663 passed, 0 failed, 21 ignored).
  • SKIPPED GPU tests: 2, both no wave64: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.

Regression run

Not needed: tests only.

Not tested

  • The test itself to its end: this machine has no D3D12 debug layer (Graphics Tools not installed), so it returns early. Where its folders go was checked with the d3d12SDKLayers.dll check taken out locally (not part of this PR).
  • AMD / Intel GPUs, wave64 hardware; no retail title, no XCL_SAMPLE_* data.

AI use

  • Claude Code with Claude Fable 5.2 (Anthropic): noticed the folder while running the suite with a target directory outside the repository, wrote the change and this description, and ran the tests.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:6579663143 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1015). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-24T10:23:54Z. --- `test_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. With `CARGO_TARGET_DIR` (or `build.target-dir`) set, that makes a `target` folder in the source tree and leaves the test's files outside what `cargo clean` empties. It uses `CARGO_TARGET_TMPDIR` now, as `test_title_runs_and_game_folder_is_untouched` beside it does. No open PR that changes `e2e.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** - NVIDIA GeForce RTX 3070 8 GB, driver 616.56 (32.0.16.1656), 32-lane waves only; Ryzen 9 5950X; Windows 11 Pro 26100; Rust 1.100.0 MSVC, debug; `CARGO_TARGET_DIR` set to a folder outside the repository. - Where the folders go, with the test's check for `d3d12SDKLayers.dll` taken out locally so that it gets that far (it then fails at "the debug layer did not come up", as it must here): on `main`'s line `<worktree>\target\e2e-debug-layer` is made and nothing under the target directory; with the change `<CARGO_TARGET_DIR>\tmp\e2e-debug-layer` is made and nothing in the worktree. - `cargo test --workspace --no-fail-fast -- --test-threads=4` on ed405e8: 704 passed, 0 failed, 41 ignored (xcl lib: 663 passed, 0 failed, 21 ignored). - SKIPPED GPU tests: 2, both `no wave64`: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. **Regression run** Not needed: tests only. **Not tested** - The test itself to its end: this machine has no D3D12 debug layer (Graphics Tools not installed), so it returns early. Where its folders go was checked with the `d3d12SDKLayers.dll` check taken out locally (not part of this PR). - AMD / Intel GPUs, wave64 hardware; no retail title, no `XCL_SAMPLE_*` data. **AI use** - Claude Code with Claude Fable 5.2 (Anthropic): noticed the folder while running the suite with a target directory outside the repository, wrote the change and this description, and ran the tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
futurepro62 commented 2026-11-24 15:05:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:24:52Z.


Full-suite run, since this PR has no test report yet. Tested exact head ed405e8 (on its base e50836b).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_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.
  • The changed test ran with the D3D12 debug layer installed and passed: test_title_draws_with_a_root_signature_under_the_debug_layer.

Not tested

  • AMD, a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7134334480 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1015#issuecomment-7134334480). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T14:24:52Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `ed405e8` (on its base `e50836b`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_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`. - The changed test ran with the D3D12 debug layer installed and passed: `test_title_draws_with_a_root_signature_under_the_debug_layer`. **Not tested** - AMD, a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Darkkandadr commented 2026-11-24 16:07:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Darkkandadr on 2026-11-24T16:06:59Z.


A second reason for this change: on main the test fails in a deep checkout. The .. path it builds pushes the title's overlay writes past MAX_PATH. With this PR the test passes in the same folder.

Tested

  • NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2101; Intel Core i3-12100F; Windows 11 Pro build 26300, LongPathsEnabled=1; Rust 1.96.0 MSVC, debug; DXC 1.9.2609.5; D3D12 debug layer installed. The checkout path is 185 characters long, with CARGO_TARGET_DIR set to a short folder.
  • main at 930e8b4: test_title_draws_with_a_root_signature_under_the_debug_layer fails. 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\data makes the overlay path of new_save.bin about 271 characters long, and the write of that file is never redirected to the overlay (xcl.log).
  • I ran xcl run by hand on the same game folder. The XCL_D3D12_DEBUG setting 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.
  • This PR's head 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

  • The full suite on ed405e8 (the full suite on main and on #1348's head fails only this test, here).
  • A release build, AMD.

The overlay itself still fails past 260 characters even with LongPathsEnabled=1. A title's real data root under %LOCALAPPDATA%\XCL is far shorter, so this PR only changes the test.

Run and written with Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7137143103 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1015#issuecomment-7137143103). Originally posted by [Darkkandadr](https://github.com/Darkkandadr) on 2026-11-24T16:06:59Z. --- A second reason for this change: on `main` the test fails in a deep checkout. The `..` path it builds pushes the title's overlay writes past `MAX_PATH`. With this PR the test passes in the same folder. **Tested** - NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2101; Intel Core i3-12100F; Windows 11 Pro build 26300, `LongPathsEnabled=1`; Rust 1.96.0 MSVC, debug; DXC 1.9.2609.5; D3D12 debug layer installed. The checkout path is 185 characters long, with `CARGO_TARGET_DIR` set to a short folder. - `main` at `930e8b4`: `test_title_draws_with_a_root_signature_under_the_debug_layer` fails. 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\data` makes the overlay path of `new_save.bin` about 271 characters long, and the write of that file is never redirected to the overlay (`xcl.log`). - I ran `xcl run` by hand on the same game folder. The `XCL_D3D12_DEBUG` setting 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. - This PR's head `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** - The full suite on `ed405e8` (the full suite on `main` and on #1348's head fails only this test, here). - A release build, AMD. The overlay itself still fails past 260 characters even with `LongPathsEnabled=1`. A title's real data root under `%LOCALAPPDATA%\XCL` is far shorter, so this PR only changes the test. _Run and written with Claude Code (Claude Opus 5.5)._
JJAutoCompare commented 2026-11-25 06:05:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:31:40Z.


Empirical test report (ed405e86)

PR #1015, commit ed405e86129f804e64f4c53bfe1b25d30fb7d490. The diff changes the e2e integration test so the debug-layer fixture creates e2e-debug-layer under Cargo's CARGO_TARGET_TMPDIR.

Hardware / environment

  • STOR-WINLAB, Windows x64 build 10.0.26200.0. The test wrapper acquired the Intel Arc A770 lock with XCL_ADAPTER=A770. The fixture exited before initializing the adapter.
  • rustc 1.100.0 (0ef1bc386 2026-11-09). DXC reported dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47).
  • Cargo's test profile was unoptimized, with incremental compilation and debug info disabled and CARGO_TARGET_DIR set to a dedicated test directory.

Commands and results

  • cargo test --workspace --no-run completed outside Invoke-ArcTest.ps1 with 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 with RUST_TEST_NOCAPTURE=1 and exited 0.
  • Rust summary: 1 passed, 0 failed, 0 ignored, 2 filtered out. The log contained 1 explicit skip, leaving 0 fixtures with their assertions exercised.

Observed behavior

SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll

The 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.dll was absent from System32. Scratch directory creation under CARGO_TARGET_TMPDIR and 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.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7153860863 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1015#issuecomment-7153860863). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T05:31:40Z. --- ### Empirical test report (ed405e86) PR #1015, commit `ed405e86129f804e64f4c53bfe1b25d30fb7d490`. The diff changes the `e2e` integration test so the debug-layer fixture creates `e2e-debug-layer` under Cargo's `CARGO_TARGET_TMPDIR`. **Hardware / environment** - STOR-WINLAB, Windows x64 build 10.0.26200.0. The test wrapper acquired the Intel Arc A770 lock with `XCL_ADAPTER=A770`. The fixture exited before initializing the adapter. - `rustc 1.100.0 (0ef1bc386 2026-11-09)`. DXC reported `dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47)`. - Cargo's test profile was unoptimized, with incremental compilation and debug info disabled and `CARGO_TARGET_DIR` set to a dedicated test directory. **Commands and results** - `cargo test --workspace --no-run` completed outside `Invoke-ArcTest.ps1` with 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 with `RUST_TEST_NOCAPTURE=1` and exited 0. - Rust summary: 1 passed, 0 failed, 0 ignored, 2 filtered out. The log contained 1 explicit skip, leaving 0 fixtures with their assertions exercised. **Observed behavior** `SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll` The 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.dll` was absent from `System32`. Scratch directory creation under `CARGO_TARGET_TMPDIR` and 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.log` and published.
DavidM1911 commented 2026-11-25 10:10:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:17:08Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7158124732 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1015#issuecomment-7158124732). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T09:17:08Z. --- 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!
upstream-sync closed this pull request 2026-11-25 12:04:36 +00:00
upipibi commented 2026-11-25 12:06:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T11:49:40Z.


Closing this as superseded. #2153 (HumanlyDev, merged 10:51Z, 45b6e18e) gives this test a folder under CARGO_TARGET_TMPDIR through the new temp_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).

<!-- greyfinch-sync:ivall/xcl:comment:7161551125 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1015#issuecomment-7161551125). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T11:49:40Z. --- Closing this as superseded. #2153 (HumanlyDev, merged 10:51Z, `45b6e18e`) gives this test a folder under `CARGO_TARGET_TMPDIR` through the new `temp_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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1008
No description provided.