Skip to content

Make all non-test modules except for SourceKitLSP build in Swift 6 mode #1276

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
May 14, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 13, 2024

Depends on swiftlang/swift-package-manager#7553


This would have caught a race condition in background indexing that was caused by accessing CheckedIndex from multiple threads despite it not being thread-safe.

@ahoppen ahoppen requested a review from bnbarham May 13, 2024 05:45
@ahoppen ahoppen requested a review from benlangmuir as a code owner May 13, 2024 05:45
@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2024

@swift-ci Please test

@ahoppen ahoppen requested a review from hamishknight May 13, 2024 05:51
@@ -36,36 +36,6 @@ final class ToolchainRegistryTests: XCTestCase {
await assertTrue(tr.default === tr.toolchain(identifier: "a"))
}

func testDefaultDarwin() async throws {
let prevPlatform = Platform.current
Copy link
Member Author

Choose a reason for hiding this comment

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

These tests are no longer supported because Platform.current isn’t mutable anymore. We should still have coverage fro this because we’re running tests on macOS and Linux.

@ahoppen ahoppen force-pushed the non-test-modules-in-swift-6-mode branch 2 times, most recently from c8f5933 to d6e93e8 Compare May 13, 2024 15:22
@ahoppen ahoppen changed the title Make all non-test modules except for SourceKitLSP build in Swift 6 mode Make all non-test modules except for SourceKitLSP build in Swift 6 mode 🚥 swift-package-manager#7553 May 13, 2024
@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2024

@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2024

swiftlang/swift-package-manager#7553

@swift-ci Please test Windows

This would have caught a race condition in background indexing that was caused by accessing `CheckedIndex` from multiple threads despite it not being thread-safe.
@ahoppen ahoppen force-pushed the non-test-modules-in-swift-6-mode branch from d6e93e8 to 70e373c Compare May 13, 2024 17:05
@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2024

@ahoppen ahoppen changed the title Make all non-test modules except for SourceKitLSP build in Swift 6 mode 🚥 swift-package-manager#7553 Make all non-test modules except for SourceKitLSP build in Swift 6 mode 🤝 swift-package-manager#7553 May 13, 2024
@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2024

swiftlang/swift-package-manager#7553

@swift-ci Please test Windows

@ahoppen ahoppen changed the title Make all non-test modules except for SourceKitLSP build in Swift 6 mode 🤝 swift-package-manager#7553 Make all non-test modules except for SourceKitLSP build in Swift 6 mode May 14, 2024
@ahoppen ahoppen merged commit 2f14afb into swiftlang:main May 14, 2024
3 checks passed
@ahoppen ahoppen deleted the non-test-modules-in-swift-6-mode branch May 14, 2024 03:52
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.

2 participants