Repository navigation
Keep the shader cache warm across emitter test edits - #1908
Open
necrobytes wants to merge 2 commits into
Open
necrobytes wants to merge 2 commits into
necrobytes wants to merge 2 commits into
Conversation
Author
|
I updated this branch to include upstream’s Windows test change,
The hosted workspace run stopped before the new integration test. I ran that test separately on the final PR head on Linux and as a Windows executable under Wine 11.21. It passed on both. I also repeated the release cache probe on that head. The test-only change kept both cache hits, and the production edit recompiled both shaders. PR run · Base run |
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.
Editing one of the Windows emitter tests sends the next build to an empty shader cache. I reproduced this on
mainby warming the cache with two synthetic compute shaders, applying only the test additions from #1877, and rebuilding. Both shaders missed, and both compiled to exactly the same DXIL as before.This marks the nine standalone emitter test modules with a leading
#![cfg(test)]. The translator fingerprint skips Rust sources with that explicit guard. Removing the guard puts the file back in the fingerprint, including when its name still ends in_tests.rs. Adopting this change causes one cache rebuild because the build script itself is part of the fingerprint.I repeated the check in separate release processes on Linux with Rust 1.98.1.
The new regression edits a copy of the real
valu_tests.rs, changes a translator source, and removes the test guard. It fails at the test-only edit assertion when the build script hashes every source as onmain.cargo test --locked -p victory-shaderon Linux passed 145 tests, including the new regression. Two existing tests were marked ignored.x86_64-pc-windows-msvcwith all targets and warnings denied, both with default features and with--all-features. The repository asset-policy check passed.Tracked as
NEW-47. Claim in #1633Implemented and tested with Codex.