Skip to content

Merge main into release/6.2 #2110

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 10 commits into from
Apr 11, 2025
Merged

Merge main into release/6.2 #2110

merged 10 commits into from
Apr 11, 2025

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Apr 10, 2025

No description provided.

bripeticca and others added 10 commits March 27, 2025 14:42
With upcoming changes to SwiftPM's TraitConfiguration
(see #8370), PackageModel needs to be imported using
`@preconcurrency`.
…DiagnosticRequestIsCancelled` to fail

`testDontReturnEmptyDiagnosticsIfDiagnosticRequestIsCancelled` assumed that cancelling the request cancels the target preparation but that is not true. If we only handle the request cancellation after we started preparing the target, the test would time out.

The only reason why we had the target preparation wait in here was to ensure that we cannot finish the request handling before the request cancellation gets handled. We can achieve a similar result by using an example that is hard to typecheck.

rdar://148654514
…o not work

We were calling `server.handle(notification:)`, which called directly into `SourceKitLSPServer` but request handling is implemented in `QueueBasedMessageHandler.handle(_:)`. Call that to ensure that we actually cancel requests after the test timeout.
Fix a race condition that can cause `testDontReturnEmptyDiagnosticsIfDiagnosticRequestIsCancelled` to fail
Update import on SwiftPM PackageModel for `SwiftPMBuildSystem.swift`
Now that Swift 6.1 has been released, we no longer need to support building SourceKit-LSP using Swift 6.1.
After swiftlang/swift-package-manager#8468, we
no longer support wasi-sysroot embedded in the Swift toolchain, so the
test no longer makes sense.
…sysroot-test

Remove test for default Swift SDK selection for WASI
Require Swift 6.1 to build SourceKit-LSP
Fix issue that caused request cancellation after a timeout in tests to not work
@ahoppen ahoppen requested a review from a team as a code owner April 10, 2025 18:36
@ahoppen
Copy link
Member Author

ahoppen commented Apr 10, 2025

@swift-ci Please test

@ahoppen ahoppen merged commit 5df6ad1 into release/6.2 Apr 11, 2025
3 checks passed
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