Skip to content

Fix integration test for Xcode 13 #3686

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
Aug 24, 2021
Merged

Conversation

neonichu
Copy link
Contributor

This fixes Found multiple targets named 'FooLib' which is happening in this test when using the XCBuild from Xcode 13. We should figure out separately what to do about that case, but for now it seems most practical to change the test in order to not block other work in SwiftPM.

See #3684 for more context.

@neonichu
Copy link
Contributor Author

@swift-ci please smoke test

@tomerd
Copy link
Contributor

tomerd commented Aug 23, 2021

feels more like this is something we should XFail rather than fix by changing the manifest? manifest seems legit afaict?

@neonichu
Copy link
Contributor Author

Looks like the same issue exists in the BarLib example as well.

@neonichu
Copy link
Contributor Author

@tomerd not sure about xfail, that would mean we won't test this functionality at all anymore until we fix this which might take a while if we decide the fix ends up being in XCBuild. I think we should change the manifest back once we figured out the issue, though.

@neonichu neonichu force-pushed the fix-integration-test-for-xcode13 branch from 3fd937b to 9c7ad94 Compare August 23, 2021 21:09
@neonichu
Copy link
Contributor Author

@swift-ci please smoke test

This fixes `Found multiple targets named 'FooLib'` which is happening in this test when using the XCBuild from Xcode 13. We should figure out separately what to do about that case, but for now it seems most practical to change the test in order to not block other work in SwiftPM.
@neonichu neonichu force-pushed the fix-integration-test-for-xcode13 branch from 9c7ad94 to 28dfd8b Compare August 23, 2021 23:57
@neonichu
Copy link
Contributor Author

@swift-ci please smoke test

.library(name: "BarLib", type: .dynamic, targets: ["BarLib"]),
.library(name: "BarLibProduct", type: .dynamic, targets: ["BarLib"]),
Copy link
Contributor

@WowbaggersLiquidLunch WowbaggersLiquidLunch Aug 24, 2021

Choose a reason for hiding this comment

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

Just a nitpick: Would it be valuable to add a FIXME comment to each of these changes? Just in case they get lost. And I think it helps other code readers understand that some cases are not covered in the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, that's a good idea. I think I'll do that in a follow up, just to avoid having CI broken for longer.

@neonichu neonichu merged commit 376fd15 into main Aug 24, 2021
@neonichu neonichu deleted the fix-integration-test-for-xcode13 branch August 24, 2021 02:27
neonichu added a commit that referenced this pull request Sep 3, 2021
neonichu added a commit that referenced this pull request Sep 9, 2021
neonichu added a commit that referenced this pull request Sep 10, 2021
* Revert "Fix integration test for Xcode 13 (#3686)"

This reverts commit 376fd15.

* Disambiguate PIF target names

A product can have the same name as a target in SwiftPM, but since we create a PIF target for each, we need to come up with a unique name for products.

rdar://82744792
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.

4 participants