Skip to content

Tests: isolate the console mesh cache probe from parallel tests - #2986

Closed
thehollowedone wants to merge 1 commit into
xcl-dev:mainfrom
thehollowedone:tests/isolate-mesh-cache-probe
Closed

thehollowedone wants to merge 1 commit into
xcl-dev:mainfrom
thehollowedone:tests/isolate-mesh-cache-probe

Conversation

@thehollowedone

Copy link
Copy Markdown
Contributor

The four-thread GPU suite on current main fails console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk at its cached-only assertion, while the same test passes alone. Its public calls use process-wide shader caches shared with other tests. Run this test in a child process with a private DXC cache so its existing memory and disk cache assertions observe only their own work. This was found while testing #2977; it changes no runtime behavior.

What is in it

  • crates/xcl/src/gpu/recomp/pso.rs: isolate the existing test in a child process, with a unique temporary cache directory and fixed HLSL/cache settings. Keep all original assertions.

Tested

  • Windows 11 build 26300, RTX 3080 Ti (NVIDIA 621.35), Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug.
  • cargo build --offline --locked -j 4 --workspace: passed.
  • cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4: 1,457 passed, 0 failed, 47 ignored across 38 binaries; 43 GPU skip notices, excluded from GPU coverage.
  • Unchanged main 83b00818 on the same machine, after cargo build --offline --locked --workspace: cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 gave 1,456 passed, 1 failed, 47 ignored; the sole failure was this test (DXIL not compiled yet). It failed in the parallel suite and passed alone.
  • git diff --check: passed.

Regression run

  • This changes only a test inside a runtime source file. No title smoke blocks were produced. A maintainer needs to review the diff and apply the test-only label to waive the smoke check under CONTRIBUTING.md.

Not tested

  • AMD, a retail title, and the cause of the shared-cache miss within the parallel run. The isolation removes that interference without attributing it to one cache layer.

AI use

  • Codex (GPT-6.2 Sol) investigated the failure, wrote and reviewed the test-only change, ran the tests above, and drafted this description.

The test assumes a process-wide shader cache entry survives between its public compile and cached-only probe. Parallel library tests can change those shared caches, causing a DXIL-not-compiled failure on main while the isolated test passes.

Run the existing assertions in a child test process with a private DXC cache. On the RTX 3080 Ti, the four-thread workspace suite changed from 1456 passed / 1 failed to 1457 passed / 0 failed, with 47 ignored in both runs.

Assisted-by: Codex (GPT-6.2 Sol)
@thehollowedone

Copy link
Copy Markdown
Contributor Author

Closing this draft to avoid duplicating the already-posted tested solution in #2977. The test-only diff and exact parent/head results remain available in that thread.

@thehollowedone
thehollowedone deleted the tests/isolate-mesh-cache-probe branch November 27, 2026 07:37
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.

1 participant