-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Build] BuildPlan: Always discover test modules through their aggrega… #7879
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
xedin
merged 1 commit into
swiftlang:main
from
xedin:too-many-test-modules-too-little-time
Aug 14, 2024
Merged
[Build] BuildPlan: Always discover test modules through their aggrega… #7879
xedin
merged 1 commit into
swiftlang:main
from
xedin:too-many-test-modules-too-little-time
Aug 14, 2024
Conversation
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
@swift-ci please test |
…te products Fixes a situation when tests were build for both host and target even though they should have been built only for the host (i.e. when one of the modules depends on a macro).
f2e7318
to
7c2ef8b
Compare
@swift-ci please test |
@swift-ci please test Windows platform |
@swift-ci please test Linux platform |
MaxDesiatov
approved these changes
Aug 14, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch 👍
xedin
added a commit
to xedin/swift-package-manager
that referenced
this pull request
Aug 15, 2024
swiftlang#7879) …te products ### Motivation: Fixes a situation when tests were build for both host and target even though they should have been built only for the host (i.e. when one of the modules depends on a macro). ### Modifications: - Adjusted `BuildPlan.computeDestinations` to never add `test` modules to successor list of a package and allow `test` products to always iterate their module dependencies instead. ### Result: If one of the test targets depends on a macro we'd never attempt to build others for "target".
xedin
added a commit
to swiftlang/swift-foundation
that referenced
this pull request
Aug 15, 2024
SwiftPM used to incorrectly build tests for both host and target. That has been fixed by swiftlang/swift-package-manager#7879. The fix makes sure that if there are any direct macro dependencies in test targets xctest bundle is only built for "host". This means that the hard-coded resources path needs to be updated to include "-tool" suffix.
xedin
added a commit
to swiftlang/swift-foundation
that referenced
this pull request
Aug 15, 2024
SwiftPM used to incorrectly build tests for both host and target. That has been fixed by swiftlang/swift-package-manager#7879. The fix makes sure that if there are any direct macro dependencies in test targets xctest bundle is only built for "host". This means that the hard-coded resources path needs to be updated to include "-tool" suffix.
jmschonfeld
pushed a commit
to swiftlang/swift-foundation
that referenced
this pull request
Aug 15, 2024
SwiftPM used to incorrectly build tests for both host and target. That has been fixed by swiftlang/swift-package-manager#7879. The fix makes sure that if there are any direct macro dependencies in test targets xctest bundle is only built for "host". This means that the hard-coded resources path needs to be updated to include "-tool" suffix.
xedin
added a commit
to swiftlang/swift-foundation
that referenced
this pull request
Aug 27, 2024
SwiftPM used to incorrectly build tests for both host and target. That has been fixed by swiftlang/swift-package-manager#7879. The fix makes sure that if there are any direct macro dependencies in test targets xctest bundle is only built for "host". This means that the hard-coded resources path needs to be updated to include "-tool" suffix. (cherry picked from commit d14ceaf)
xedin
added a commit
to swiftlang/swift-foundation
that referenced
this pull request
Aug 28, 2024
SwiftPM used to incorrectly build tests for both host and target. That has been fixed by swiftlang/swift-package-manager#7879. The fix makes sure that if there are any direct macro dependencies in test targets xctest bundle is only built for "host". This means that the hard-coded resources path needs to be updated to include "-tool" suffix. (cherry picked from commit d14ceaf)
jmschonfeld
pushed a commit
to jmschonfeld/swift-foundation
that referenced
this pull request
Sep 4, 2024
…ng#855) SwiftPM used to incorrectly build tests for both host and target. That has been fixed by swiftlang/swift-package-manager#7879. The fix makes sure that if there are any direct macro dependencies in test targets xctest bundle is only built for "host". This means that the hard-coded resources path needs to be updated to include "-tool" suffix.
parkera
pushed a commit
to swiftlang/swift-foundation
that referenced
this pull request
Sep 5, 2024
…901) SwiftPM used to incorrectly build tests for both host and target. That has been fixed by swiftlang/swift-package-manager#7879. The fix makes sure that if there are any direct macro dependencies in test targets xctest bundle is only built for "host". This means that the hard-coded resources path needs to be updated to include "-tool" suffix. Co-authored-by: Pavel Yaskevich <[email protected]>
cthielen
pushed a commit
to cthielen/swift-foundation
that referenced
this pull request
Nov 8, 2024
…ng#855) SwiftPM used to incorrectly build tests for both host and target. That has been fixed by swiftlang/swift-package-manager#7879. The fix makes sure that if there are any direct macro dependencies in test targets xctest bundle is only built for "host". This means that the hard-coded resources path needs to be updated to include "-tool" suffix.
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.
…te products
Motivation:
Fixes a situation when tests were build for both host and target even though they should have been built only for the host (i.e. when one of the modules depends on a macro).
Modifications:
BuildPlan.computeDestinations
to never addtest
modules to successor list of a package and allowtest
products to always iterate their module dependencies instead.Result:
If one of the test targets depends on a macro we'd never attempt to build others for "target".