Skip to content

Fix a nondeterministic test failure of testDontStackTargetPreparationForEditorFunctionality #1499

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
Jun 21, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 20, 2024

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 #1478.

…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
Copy link
Member Author

ahoppen commented Jun 20, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit b8d4c62 into swiftlang:main Jun 21, 2024
3 checks passed
@ahoppen ahoppen deleted the fix-dont-stack-preparation-test branch June 21, 2024 14:49
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