Skip to content

[upstream #1015] e2e: the debug-layer test keeps its files in the target's tmp folder - #119

Closed
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1015
Closed

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1015

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

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, xcl-dev#434, xcl-dev#512, xcl-dev#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


Mirror of xcl-dev#1015 (auto-synced, do not edit).

test_title_draws_with_a_root_signature_under_the_debug_layer built 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 made a `target` folder in the source tree
and left the test's files outside the place `cargo clean` empties. It
uses CARGO_TARGET_TMPDIR now, as test_title_runs_and_game_folder_is_untouched
beside it does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@ufoptg

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#1015 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/1015 branch November 25, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants