-
-
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
write EPIPE when using ChildProcessWorker.js #10144
Comments
Also encountering this after upgrading from node 10 to 12, and upgrading from jest 23 to 26.
|
This has been happening to me as well randomly but as of today, it is constant. Probable cause is adding more tests. No Node or Jest updates occurred. |
I met a similar issue like this when I ran Updated: os: win10 LTSC 2019 (updated to latest)
|
I met a similar issue also when running jest --coverage, it happens randomly Test Suites: 1 failed, 16 passed, 17 total events.js:292 Error: write EPIPE npm ERR! A complete log of this run can be found in: |
I deleted the coverage folder and re-ran it and the error went away. |
Unexpected, the same without --verbose flag.
|
We're getting this error on a 3G VM but it builds successfully on a 7G VM:
|
this happens when your tests have memory leak |
One of the main cause of this error is when your code throws an error and the error isn't caught. Look for places in the code that call 'Throw new Error()' or promise.reject() or promise failures from incorrectly stubbed unit tests. Try to handle these errors in catch block somewhere higher up instead of bubbling up uncaught. |
I think the issue is related to memory leak. After closing a bulk of windows and program, the error disapear. |
Too little memory was the problem for me. My context was nest.js running in docker and I set the memory at a limit of 128mb, which was reached very fast :) |
I had same issue. I have Disabled the Memory Protection in my BIOS settings and the error gone. |
reducing workers fixed it for me too. eg |
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. |
🐛 Bug Report
We run our tests in CircleCI using maxWorker=4
For some tests
ChildProcessWorker.send
fails and break all the tests executionTo Reproduce
Try to run many tests at the same time
Expected behavior
It should not break
Link to repl or repo (highly encouraged)
our internal repo is similar to this one https://github.com/entria/entria-fullstack/tree/master/packages/server
We use a mongodb memory server to run tests.
envinfo
it can be related to #8507
not sure if this is node version specific
The text was updated successfully, but these errors were encountered: