Skip to content
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

Restrict directories that we search for MyDependency.swift in tests #1827

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Nov 16, 2024

It appears that moving the index-build directory to be a subdirectory of .build caused some file in the index-build directory to exceed the MAX_PATH length on the SourceKit-LSP PR testing job (but not the swift PR job because that has a shorter job name). Because of swiftlang/swift-corelibs-foundation#5135, we would stop directory iteration at that file exceeding MAX_PATH and never find MyDependency.swift, causing these tests to fail. Only searching the checkout directory works around this issue because FileManager.enumerator never sees the file with the exceeding length that way.

@ahoppen
Copy link
Member Author

ahoppen commented Nov 16, 2024

@swift-ci Please test

It appears that moving the index-build directory to be a subdirectory of `.build` caused some file in the index-build directory to exceed the `MAX_PATH` length on the SourceKit-LSP PR testing job (but not the swift PR job because that has a shorter job name). Because of https://github.com/swiftlang/swift-foundation/issues/1049, we would stop directory iteration at that file exceeding `MAX_PATH` and never find `MyDependency.swift`, causing these tests to fail.
@ahoppen ahoppen force-pushed the restrict-directory-search branch from f646f2a to a2bf954 Compare November 16, 2024 17:02
@ahoppen
Copy link
Member Author

ahoppen commented Nov 16, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Nov 16, 2024

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 380ed38 into swiftlang:main Nov 16, 2024
3 checks passed
@ahoppen ahoppen deleted the restrict-directory-search branch November 16, 2024 21:02
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.

1 participant