-
-
Notifications
You must be signed in to change notification settings - Fork 417
Fix broken pipe during test and gracefully exit the server #4701
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
base: master
Are you sure you want to change the base?
Conversation
gracefully exit the server
…te to use new lsp revision
…111-hputbuf-resource-vanished-broken-pipe---test-option-j1-workaround
…t and progress reporting
|
Key idea:
|
…ith a more flexible flaky-test-loop script, update test patterns handling, and improve logging and exit code interpretation.
The worker thread checks this flag before dequeuing each job; if set, it exits immediately, ensuring that no new work is started after shutdown is requested. This mechanism is necessary because some downstream code may swallow async exceptions, making 'cancel' unreliable for stopping the thread in all cases. If 'cancel' does interrupt the thread (e.g., while blocked in STM or in a cooperative job), the thread exits immediately and never checks the TMVar; in such cases, the stop flag is redundant.
…ly-fail-with-exception-fd111-hputbuf-resource-vanished-broken-pipe---test-option-j1-workaround
eb5356d to
773bfee
Compare
…ly-fail-with-exception-fd111-hputbuf-resource-vanished-broken-pipe---test-option-j1-workaround
This reverts commit 773bfee.
|
What's been done
|
|
@soulomoon Is this ready for review? |
yes, it is. thanks. |
|
odd 9.10 windows failing for |
|
@soulomoon Probably just needs to rebased on top of #4768 |
* Use 9.10.2 instead of 9.10.3 for CI on windows 9.10.2 is currently broken with TH on windows. See https://gitlab.haskell.org/ghc/ghc/-/issues/26613 * Use 9.10.2 instead of 9.10.3 for CI on windows 9.10.2 is currently broken with TH on windows. See https://gitlab.haskell.org/ghc/ghc/-/issues/26613
…111-hputbuf-resource-vanished-broken-pipe---test-option-j1-workaround
|
ci have been fixed except circleci. now waiting for new lsp version to be released. |
gracefully exit the server