Skip to content

[rush] Fix build cache ids when "enableSubpathScan" is enabled#5045

Merged
dmichon-msft merged 1 commit intomicrosoft:mainfrom
dmichon-msft:git-filter-fixes
Dec 14, 2024
Merged

[rush] Fix build cache ids when "enableSubpathScan" is enabled#5045
dmichon-msft merged 1 commit intomicrosoft:mainfrom
dmichon-msft:git-filter-fixes

Conversation

@dmichon-msft
Copy link
Contributor

Summary

Fixes an issue with the "enableSubpathScan" experiment where the --only and --impacted-by selection operators would compute incorrect build cache ids and therefore cause cache misses.

Details

Computation of build cache ids always requires the file hashes of all dependencies of selected projects, because the cache id is a function of the cache ids of the operation dependencies (approximately).

How it was tested

Enabled the experiment and verified that running rush build -o worker-pool --verbose was a cache hit.
For comparison, reverted this change and did the same and verified a cache miss.

Impacted documentation

Since the experiment description doesn't specify exactly what filtering is applied, none.

@dmichon-msft dmichon-msft merged commit 4f94865 into microsoft:main Dec 14, 2024
5 checks passed
@dmichon-msft dmichon-msft deleted the git-filter-fixes branch December 14, 2024 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants