feat(cache): fingerprint tracked getEnvs match sets#450
Open
wan9chi wants to merge 1 commit into
Open
Conversation
This was referenced Jun 13, 2026
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jun 13, 2026
2f508b0 to
e078bf2
Compare
8bf068d to
2f128bc
Compare
2f128bc to
5a8cde0
Compare
e078bf2 to
6e58a88
Compare
5a8cde0 to
4990502
Compare
6e58a88 to
01ea610
Compare
01ea610 to
399692e
Compare
9705c8f to
9477718
Compare
399692e to
25a3219
Compare
25a3219 to
97aa3f0
Compare
9477718 to
a183557
Compare
97aa3f0 to
32ac35f
Compare
de59cd5 to
eeef562
Compare
e7f2878 to
7c7745e
Compare
eeef562 to
48d54e2
Compare
7c7745e to
0eb3c8f
Compare
48d54e2 to
af162e1
Compare
af162e1 to
4b5fc3a
Compare
0eb3c8f to
ea1905d
Compare
4b5fc3a to
7c57306
Compare
ea1905d to
f5a544c
Compare
74369aa to
0ca4783
Compare
f5a544c to
d5426a1
Compare
0ca4783 to
915a5a0
Compare
d5426a1 to
c4ab894
Compare
c4ab894 to
52280ec
Compare
915a5a0 to
397dcba
Compare
52280ec to
1604709
Compare
397dcba to
983bc76
Compare
1604709 to
869ce93
Compare
Motivation: Bulk env reads are only cache-safe if the cache remembers the entire matched env set. Without match-set fingerprinting, changing a matching env value, adding a new matching name, or removing one could replay stale output. Scope: Make the getEnvs tracked option meaningful, record tracked match sets in IPC reports, store them in the post-run fingerprint, validate changed/added/removed matches during cache lookup, and render env-specific miss messages. This PR does not add the real Vite fixture. Verification: - cargo test -p vite_task_server --test integration - UPDATE_SNAPSHOTS=1 cargo test -p vite_task_bin --test e2e_snapshots fetch_envs_tracks_glob_match_set -- --ignored - cargo test -p vite_task_bin --test e2e_snapshots fetch_envs_tracks_glob_match_set -- --ignored
983bc76 to
930e359
Compare
869ce93 to
9cb33a2
Compare
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.

Motivation
Bulk env reads are only cache-safe if the cache remembers the entire matched env set. Without match-set fingerprinting, changing a matching env value, adding a new matching name, or removing one could replay stale output.
Scope
Make the
getEnvstracked option meaningful, record tracked match sets in IPC reports, store SHA-256 hashes for the matched env values in the post-run fingerprint, validate changed/added/removed matches during cache lookup, and render env-specific miss messages without exposing values. This follows the env hashing model from #455. This PR does not add the real Vite fixture.Verification
cargo check -p vite_taskcargo test -p vite_task_server --test integrationcargo test -p vite_task_bin --test e2e_snapshots fetch_envs_tracks_glob_match_set -- --ignored