-
Notifications
You must be signed in to change notification settings - Fork 314
Do not block initialization of the build server when build server is unresponsive in returning the list of test files #1999
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
Do not block initialization of the build server when build server is unresponsive in returning the list of test files #1999
Conversation
await body(element) | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this need either a wait on each of the tasks or a taskGroup.waitForAll()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, from the documentation of withTaskGroup
. I only learned this now, which is why I had waitForAll
in older implementations.
A group waits for all of its child tasks to complete or be canceled before it returns.
@swift-ci Please test |
9b6fb11
to
2dca820
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
…element in a collection This is simpler to reason about than creating a `TaskGroup`.
…unresponsive in returning the list of test files We were blocking the initialization response on `self.buildSystemManager.testFiles`, which requires the list of test files to be determined. Make that operation asynchronous so that a slow build server can’t take down all of SourceKit-LSP.
2dca820
to
bd6fb5d
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
1 similar comment
@swift-ci Please test Windows |
We were blocking the initialization response on
self.buildSystemManager.testFiles
, which requires the list of test files to be determined. Make that operation asynchronous so that a slow build server can’t take down all of SourceKit-LSP.