-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Bug]: processChild fails to initialize under certain conditions when a custom ESM loader is present #12060
Comments
This seems to be a known issue in Node.js nodejs/node#39140 / nodejs/node#37782 with a solution in nodejs/node#37782 (comment) |
Looks like nodejs/node#41221 will fix the issue in Node.js itself |
nodejs/node#41221 has shipped in Node.js v16.14 and v17.4 |
I'm closing this since I've confirmed that everything behaves properly with Node v16.14. |
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
27.3.1
Steps to reproduce
Expected behavior
The worker should initialize and run the procedure.
Actual behavior
The worker misses the initialization message and hangs until something requests for it to be killed.
Additional context
This appears to be a timing-sensitive issue. I'll try to test this on some other platforms when I have time. Also, since this uses
--experimental-loader
, I suspect this might be a Node.js bug/quirk. However, the current use ofChildProcess.send
feels unsound.I've also written up some more context in the reproduction repo readme:
https://github.com/kherock/jest-worker-spawn-bug/blob/main/README.md
Environment
The text was updated successfully, but these errors were encountered: