Skip to content

Fix nondeterministic failure in testSyntacticOrIndexBasedXCTestsBasedOnWhetherFileIsIndexed #2037

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
Mar 6, 2025

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Mar 5, 2025

If we were indexing the modified file too fast, we would get semantic tests to the workspace/tests request while we were expecting syntactic results.

Add semaphores to ensure that indexing doesn’t finish until we have received the syntactic result.

rdar://146331921

…dOnWhetherFileIsIndexed`

If we were indexing the modified file too fast, we would get semantic tests to the `workspace/tests` request while we were expecting syntactic results.

Add semaphores to ensure that indexing doesn’t finish until we have received the syntactic result.

rdar://146331921
@ahoppen ahoppen requested review from bnbarham and hamishknight March 5, 2025 23:28
@ahoppen
Copy link
Member Author

ahoppen commented Mar 5, 2025

@swift-ci Please test

@ahoppen ahoppen merged commit 375f9e5 into swiftlang:main Mar 6, 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.

2 participants