Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 14, 2024

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