-
Notifications
You must be signed in to change notification settings - Fork 302
Merge main
into release/6.0
#1213
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
ahoppen
merged 39 commits into
swiftlang:release/6.0
from
ahoppen:6.0/merge-main-2024-05-01
May 3, 2024
Merged
Merge main
into release/6.0
#1213
ahoppen
merged 39 commits into
swiftlang:release/6.0
from
ahoppen:6.0/merge-main-2024-05-01
May 3, 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
…tore `.swiftmodule` files in a subdirectory This fixes a test failure when running tests using Xcode 15.3.
…ed for a document This is some fairly essential information for troubleshooting and should be logged at the same level as the build settings for a file.
…ndex `SwiftPMBuildSystem.testFiles()` returned all source files in the package, including files of package dependencies. This caused us to index those files for tests in the syntactic test index, which we should not. Make `SwiftPMBuildSystem.testFiles` only return files from the root package. Also add test infrastructure to be able to test cross-package functionality. rdar://126965614
Currently tags are only recognized when the tag is specified by string literal, i.e: @tag("foo"). Support Tags added via the staticMember Tag.Kind.
When a tag is declared within a nested type on Tag include the types name in the tags string representation.
Add a `components` property to MemberAccessExprSyntax that provides all the base names and the member's name as an array. When resolving swift-testing Tags check if they start with Tag or Testing.Tag and drop that from the name.
One that tests string tags, and the other that tests static tags.
To remove namespacing ambiguity, support statically defined tags only.
Add a `components` property to MemberAccessExprSyntax that provides all the base names and the member's name as an array. When resolving swift-testing Tags check if they start with Tag or Testing.Tag and drop that from the name.
One that tests string tags, and the other that tests static tags.
Skip new tests that use Swift modules if the host’s SwiftPM doesn’t store `.swiftmodule` files in a subdirectory
…ction-log-level Elevate the log level for messages that record which toolchain was used for a document
Leverage the newly-introduced package manifest editing tools in SwiftPM to create a package editing refactoring operation. This operation can be triggered from the a target in the manifest itself, e.g., .target(name: "MyLib") and will add a test target to the package manifest that depends on this target, i.e., .testTarget( name: "MyLibTests", dependencies: [ "MyLib" ] ) It will also create a new source file `Tests/MyLibTests/MyLibTests.swift` that that imports both MyLib and XCTest, and contains an XCTestCase subclass with one test to get you started.
[SwiftPM PR](swiftlang/swift-package-manager#7496) consolidates use of provided libraries around Workspace and PubGrub dependency resolver.
…es-parameter Remove obsolete `availableLibraries` argument from `loadPackageGraph`
…actor Add refactoring actions for adding a test targets and products to a package manifest
…syntax Support member access in tags
Test specified with anonymous arguments would produce an id with extra whitespace, i.e: `funcWithArgument(_ x: Int)` would produce a TestItem id of `funcWithArgument(_ :)` This patch trims this extra whitespace to produce IDs that are consistent with Swift's function ids, i.e: `funcWithArgument(_:)`
…trivia-trimming Trim parameter names in SwiftTestingScanner
…dependencies Don’t include files from package dependencies in the syntactic test index
bnbarham
approved these changes
May 1, 2024
@swift-ci Please test |
…geGraph`" This reverts commit bde432b.
@swift-ci Please test Windows |
swiftlang/swift-syntax#2637 @swift-ci Please test Windows |
ahoppen
added a commit
to swiftlang/swift-package-manager
that referenced
this pull request
May 3, 2024
- **Explanation**: Cherry-pick the following to PRs which are companions of swiftlang/sourcekit-lsp#1213 - #7505 - #7492 - **Scope**: CMake build and SourceKit-LSP API - **Risk**: Low, the SourceKit-LSP API is only used by SourceKit-LSP and the CMake build changes will all be caught at build-time - **Testing**: n/a - **Issue**: n/a - **Reviewer**: @DougGregor and @MaxDesiatov on #7505 and #7492 --------- Co-authored-by: Ben Barham <[email protected]>
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.
Cherry-pick the following PRs to
release/6.0
.swiftmodule
files in a subdirectory #1203