Skip to content

[Caching] Invalidate built module if missing from CAS #1789

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

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

cachemeifyoucan
Copy link
Contributor

@cachemeifyoucan cachemeifyoucan commented Jan 31, 2025

For swift caching build, swift-frontend only reads from CAS for inputs for full build reproducibility. In this case, if the CAS is removed, we need to treat the modules as missing from CAS and rebuild them, even if the version on disk appears to pass the up-to-date check.

rdar://135718227

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan cachemeifyoucan changed the title [Caching] Invalid built module if missing from CAS [Caching] Invalidate built module if missing from CAS Jan 31, 2025
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test windows platform

For swift caching build, swift-frontend only reads from CAS for inputs
for full build reproducibility. In this case, if the CAS is removed, we
need to treat the modules as missing from CAS and rebuild them, even if
the version on disk appears to pass the up-to-date check.

rdar://135718227
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test windows platform

@cachemeifyoucan cachemeifyoucan merged commit 43bcf89 into swiftlang:main Feb 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants