-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug]: Worker exits but jest process never finishes (continuation) #13976
Comments
Hey @juan-fernandez — This is a fantastic bug report. I was able to reproduce easily after cloning your repo. Is this a new problem?I was a bit worried I made things worse with my bug fix, but I do think this is an existing bug that the fix in #13566 simply uncovered. Before the bug fix, the worker pool coordinator didn't recognize when child processes were killed at all. Early hypothesisThe coordinator now does recognize killed workers and prints an error message, but I think it's not performing any followup actions as a result. Specifically, I have a feeling it's not reassigning jobs that were delegated to the killed worker. Setting
|
seeing the exact same problem. In our scenario, the SIGKILL is sent by the linux OOMKiller, killing one of the jest child workers and jest will just hang forever |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Not stale! Still on my list, but wouldn't mind if anyone wants to take over. |
#14015 fixes this, and seems like folks are okay with the approach. I'll try to get it merged soon. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
29.4.3
Steps to reproduce
git@github.com:juan-fernandez/test-jest-worker-killed-repro.git
(thanks @gluxon for the inspiration!). See repo at https://github.com/juan-fernandez/test-jest-worker-killed-repro.npm install
npm run test
Expected behavior
The process ends.
Actual behavior
The process hangs indefinitely
Additional context
This seems to be related to the bug described in #13183 and fixed (maybe only partially) in #13566. Also probably related to #13864
The difference between https://github.com/juan-fernandez/test-jest-worker-killed-repro and https://github.com/gluxon/test-jest-worker-killed-repro (the original reproduction scenario) is that there are now more than one worker suddenly being killed.
From the looks of it, jest "runs out of workers" to run the suites and it just hangs forever:
Environment
The text was updated successfully, but these errors were encountered: