Skip to content

[6.0] Fix a nondeterministic test failure of testDontStackTargetPreparationForEditorFunctionality #1504

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 22, 2024

@ahoppen ahoppen requested a review from bnbarham June 22, 2024 13:57
@ahoppen ahoppen requested a review from benlangmuir as a code owner June 22, 2024 13:57
@ahoppen ahoppen changed the title Fix a nondeterministic test failure of testDontStackTargetPreparationForEditorFunctionality [6.0] Fix a nondeterministic test failure of testDontStackTargetPreparationForEditorFunctionality Jun 22, 2024
…nForEditorFunctionality`

We fulfilled the `allDocumentsOpened` expectation directly after dispatching the notification to open LibD.swift. This left a very short window in which LibB’s preparation could finish and LibC’s expectation could start before the open notification for LibD.swift was handled, causing an unexpected preparation of LibC.

This fixes the issue first reported as rdar://129698768 and for which I added logging in swiftlang#1478.
@ahoppen ahoppen force-pushed the 6.0/fix-dont-stack-preparation-test branch from b5296dc to 59f6264 Compare June 26, 2024 04:35
@ahoppen
Copy link
Member Author

ahoppen commented Jun 26, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jun 26, 2024

@swift-ci Please test Windows

@ahoppen ahoppen merged commit e0f3a55 into swiftlang:release/6.0 Jun 26, 2024
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