Tests: isolate synthetic title fixtures per process #1072

Closed
broccolize wants to merge 1 commit from upstream-pr/1081 into main
broccolize commented 2026-11-24 11:23:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by broccolize on 2026-11-24T11:23:49Z.


Two invocations of the regular synthetic-title integration test can race on the same fixture directory. Give each process its own game and data directories under Cargo’s scratch directory.

What is in it

  • Use the process ID and a timestamp in the synthetic fixture directory name and keep the individual reports.

Tested

Clean head 9d32382c4cd78c185c3b1e6b3e592486013696a7. Windows 11 build 26300, Intel Core i5-10300H, NVIDIA GeForce GTX 1650 driver 32.0.16.1714, Rust 1.100.0 MSVC, debug.

  • cargo build --locked --workspace passed.
  • cargo test --locked --workspace -- --test-threads=4 --show-output reported 741 passed, 0 failed, 41 ignored.
  • Ran two instances of test_title_runs_and_game_folder_is_untouched concurrently against one Cargo target directory. Both passed and wrote separate report.json files.
  • Runtime skips reported by the suite
    • SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
    • SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
    • SKIPPED placed_title_textures_share_vram_and_preserve_pixels: this adapter makes no reserved cube with mips
    • mklink /J unavailable – link case skipped
    • SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll
    • SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))

Not tested

Retail-title execution and the debug-layer test path on this host. The workspace suite reported the missing debug layer.

AI use

Codex (GPT-6, exact variant unavailable) implemented the change, ran verification.

<!-- greyfinch-sync:ivall/xcl:issue:6580673460 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1081). Originally posted by [broccolize](https://github.com/broccolize) on 2026-11-24T11:23:49Z. --- Two invocations of the regular synthetic-title integration test can race on the same fixture directory. Give each process its own game and data directories under Cargo’s scratch directory. **What is in it** - Use the process ID and a timestamp in the synthetic fixture directory name and keep the individual reports. **Tested** Clean head `9d32382c4cd78c185c3b1e6b3e592486013696a7`. Windows 11 build 26300, Intel Core i5-10300H, NVIDIA GeForce GTX 1650 driver 32.0.16.1714, Rust 1.100.0 MSVC, debug. - `cargo build --locked --workspace` passed. - `cargo test --locked --workspace -- --test-threads=4 --show-output` reported **741 passed, 0 failed, 41 ignored**. - Ran two instances of `test_title_runs_and_game_folder_is_untouched` concurrently against one Cargo target directory. Both passed and wrote separate `report.json` files. - Runtime skips reported by the suite - SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64 - SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64 - SKIPPED placed_title_textures_share_vram_and_preserve_pixels: this adapter makes no reserved cube with mips - mklink /J unavailable – link case skipped - SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll - SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)) **Not tested** Retail-title execution and the debug-layer test path on this host. The workspace suite reported the missing debug layer. **AI use** Codex (GPT-6, exact variant unavailable) implemented the change, ran verification.
futurepro62 commented 2026-11-24 15:05:52 +00:00 (Migrated from github.com)

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


Full-suite run, since this PR has no test report yet. Tested exact head 9d32382 (on its base 47efa2e).

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: 741 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 and passed: test_title_runs_and_game_folder_is_untouched.

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:7134344138 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1081#issuecomment-7134344138). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T14:25:13Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `9d32382` (on its base `47efa2e`). **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`: **741 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 and passed: `test_title_runs_and_game_folder_is_untouched`. **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.
DavidM1911 commented 2026-11-25 09:08:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:36:52Z.


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:7157255535 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1081#issuecomment-7157255535). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T08:36:52Z. --- 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-26 06:04:04 +00:00

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!1072
No description provided.