Skip to content

Don’t include files from package dependencies in the syntactic test index #1201

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 1, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Apr 24, 2024

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

@ahoppen ahoppen requested a review from benlangmuir as a code owner April 24, 2024 05:20
@ahoppen ahoppen force-pushed the no-tests-from-package-dependencies branch from abf31a8 to 93cb305 Compare April 24, 2024 15:56
@ahoppen ahoppen changed the title Don’t include files from package dependencies in the syntactic test index 🚥 #1175 Don’t include files from package dependencies in the syntactic test index Apr 24, 2024
@ahoppen
Copy link
Member Author

ahoppen commented Apr 24, 2024

…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
@ahoppen ahoppen force-pushed the no-tests-from-package-dependencies branch from 93cb305 to 1d9b67b Compare April 24, 2024 18:13
@ahoppen
Copy link
Member Author

ahoppen commented Apr 24, 2024

@ahoppen
Copy link
Member Author

ahoppen commented Apr 24, 2024

swiftlang/swift-package-manager#7492

@swift-ci Please test Windows

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Apr 24, 2024

swiftlang/swift-package-manager#7492

@swift-ci Please test Windows

@ahoppen ahoppen requested a review from bnbarham April 24, 2024 22:32
@ahoppen ahoppen merged commit ab68dc5 into swiftlang:main May 1, 2024
3 checks passed
@ahoppen ahoppen deleted the no-tests-from-package-dependencies branch May 1, 2024 21:42
ahoppen added a commit to swiftlang/swift-package-manager that referenced this pull request May 1, 2024
…lsp API (#7492)

This is used so we don’t search for tests in targets of package
dependencies.

Companion of swiftlang/sourcekit-lsp#1201

rdar://126965614
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
…lsp API (swiftlang#7492)

This is used so we don’t search for tests in targets of package
dependencies.

Companion of swiftlang/sourcekit-lsp#1201

rdar://126965614
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
…lsp API (swiftlang#7492)

This is used so we don’t search for tests in targets of package
dependencies.

Companion of swiftlang/sourcekit-lsp#1201

rdar://126965614
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