Repository navigation
Tests: isolate the console mesh cache probe from parallel tests - #2986
Closed
thehollowedone wants to merge 1 commit into
Closed
thehollowedone wants to merge 1 commit into
thehollowedone wants to merge 1 commit into
Conversation
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)
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The four-thread GPU suite on current
mainfailsconsole_mesh_caches_hlsl_compute_pass_in_memory_and_on_diskat 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
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.main83b00818on the same machine, aftercargo build --offline --locked --workspace:cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4gave 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
test-onlylabel to waive the smoke check underCONTRIBUTING.md.Not tested
AI use