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

Closed
github-bot wants to merge 1 commit from github-bot/gh-2986 into main AGit
Owner

@⁠thehollowedone on GitHub · 2026-11-27 07:32 UTC · original
thehollowedone:tests/isolate-mesh-cache-probe → main · +17 −0 · 1 files · 1 commits · closed without merging

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.
**@⁠thehollowedone** on GitHub · 2026-11-27 07:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/2986) `thehollowedone:tests/isolate-mesh-cache-probe` → `main` · +17 −0 · 1 files · 1 commits · closed without merging 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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 07:34:58 +00:00
github-bot closed this pull request 2026-11-27 07:43:02 +00:00
Author
Owner

@⁠thehollowedone on GitHub · 2026-11-27 07:36 UTC · original

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** on GitHub · 2026-11-27 07:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/2986#issuecomment-7212641340) 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.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.