Skip to content

Conversation

@grynspan
Copy link
Contributor

@grynspan grynspan commented Dec 4, 2023

Currently, SwiftPM is using the same path to build swift-testing and XCTest content. This works about 90% of the time because we only need one or the other at any given moment, but it causes some workflows to fail on Linux because the build system sees the existing build product and assumes the build has already completed, which is incorrect. Darwin doesn't seem to be affected (because the XCTest build product is a bundle rather than an executable.)

This PR selects a different path extension, ".swift-testing", for swift-testing's build product.

@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

@swift-ci please test

@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

Looks like this is blocked on #7123.

@grynspan grynspan requested a review from MaxDesiatov December 4, 2023 15:53
@MaxDesiatov
Copy link
Contributor

@swift-ci test

@grynspan grynspan force-pushed the jgrynspan/different-extension-for-swift-testing-builds branch from ccb4847 to f409f06 Compare December 4, 2023 16:06
@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

@swift-ci please test

@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

@swift-ci please test Windows

@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

@swift-ci please test

1 similar comment
@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

@swift-ci please test

@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

Today is not off to a great start! 🥲

@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

@swift-ci please test

@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

@swift-ci please test Windows

@MaxDesiatov MaxDesiatov changed the title Use a different path extension for swift-testing builds. Use a different path extension for swift-testing builds Dec 4, 2023
@grynspan grynspan force-pushed the jgrynspan/different-extension-for-swift-testing-builds branch from 473bf33 to 01867a7 Compare December 4, 2023 20:41
@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

@swift-ci please test

@grynspan grynspan enabled auto-merge (squash) December 4, 2023 20:42
@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

@swift-ci please test Windows

@grynspan grynspan force-pushed the jgrynspan/different-extension-for-swift-testing-builds branch from 01867a7 to 473bf33 Compare December 4, 2023 20:47
Currently, SwiftPM is using the same path to build swift-testing and XCTest content. This works about 90% of the time because we only need one or the other at any given moment, but it causes some workflows to fail on Linux because the build system sees the existing build product and assumes the build has already completed, which is incorrect. Darwin doesn't seem to be affected (because the XCTest build product is a bundle rather than an executable.)

This PR selects a different path extension, ".swift-testing", for swift-testing's build product.
@grynspan grynspan force-pushed the jgrynspan/different-extension-for-swift-testing-builds branch from 473bf33 to 78b9041 Compare December 4, 2023 20:48
@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

@swift-ci please test

@grynspan
Copy link
Contributor Author

grynspan commented Dec 4, 2023

@swift-ci please test Windows

@grynspan grynspan merged commit a54dd3b into main Dec 4, 2023
@grynspan grynspan deleted the jgrynspan/different-extension-for-swift-testing-builds branch December 4, 2023 23:18
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