Skip to content

[Incremental Builds][Explicit Module Builds] Treat Binary-only Swift module dependencies as up-to-date #1674

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
Jul 31, 2024

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Jul 31, 2024

Instead of conservatively assuming them to be new/updated in order to invalidate their dependents. This behavior is no longer necessary since the implementation of #1628 (adce133) which will ensure that if a binary module dependnecy is newer than any of its dependents they will get invalidated and re-built.

…module dependencies as up-to-date

Instead of conservatively assuming them to be new/updated in order to invalidate their dependents. This behavior is no longer necessary since the implementation of swiftlang#1628 (adce133) which will ensure that if a binary module dependnecy is newer than any of its dependents they will get invalidated and re-built.
@artemcm artemcm requested review from owenv and cachemeifyoucan July 31, 2024 16:09
@artemcm
Copy link
Contributor Author

artemcm commented Jul 31, 2024

@swift-ci test

Copy link
Contributor

@cachemeifyoucan cachemeifyoucan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@artemcm artemcm merged commit ffbae26 into swiftlang:main Jul 31, 2024
3 checks passed
@artemcm artemcm deleted the UpToDateBinaryModuleDeps branch July 31, 2024 20:44
artemcm added a commit to artemcm/swift-driver that referenced this pull request Nov 19, 2024
…ies as always up-to-date

The driver does not have the capability to rebuild them, so there is no point to invalidating these dependency nodes. Crucially, if these dependencies are newer than some other dependency between the source module and it, it will still cause invalidation of dependencies which can and must be re-built.

This change fixes the remaining case left by the initial attempt at this in swiftlang#1674.
artemcm added a commit to artemcm/swift-driver that referenced this pull request Nov 19, 2024
…ies as always up-to-date

The driver does not have the capability to rebuild them, so there is no point to invalidating these dependency nodes. Crucially, if these dependencies are newer than some other dependency between the source module and it, it will still cause invalidation of dependencies which can and must be re-built.

This change fixes the remaining case left by the initial attempt at this in swiftlang#1674.
artemcm added a commit that referenced this pull request Nov 20, 2024
…ies as always up-to-date

The driver does not have the capability to rebuild them, so there is no point to invalidating these dependency nodes. Crucially, if these dependencies are newer than some other dependency between the source module and it, it will still cause invalidation of dependencies which can and must be re-built.

This change fixes the remaining case left by the initial attempt at this in #1674.
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