Replies: 3 comments 4 replies
-
We're also experiencing this. I don't have the telemetry to describe it as well as the OP. Will try to gather some, but in the meantime is there anything else we can look at? |
Beta Was this translation helpful? Give feedback.
-
I think the problem is that native node binaries are not a good fit for nodejs worker threads |
Beta Was this translation helpful? Give feedback.
-
Worth check maximum memory for the current instance and if jest hits upper bounds of available memory. Actually, increasing heap size can affect this negatively. Say max heap size is 4gb for each process, total maximum memory can be 4 * (N + 1) where N is count of workers and 1 for the host process. If instance is 16 vCPU + 32GB, using 50% (8 vCPU) can hit 4 * 9 = 36, which can exceeds 32. Not saying every case of sigbus will be this, but I recently hit similar case on 16 vCPU + 32GB only 6 max worker was working reliably, turned out 6 worker can hit 28GB for max, so gives 4GB of buffer to not hitting upper limit and having just 1 more worker can cause the issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello 👋🏼
We're experiencing an intermittent issue with
@swc/jest
that's causing our CI builds to fail. We switched frombabel-jest
to@swc/jest
for transpiling our TypeScript project in unit tests, and since then, we've been seeing errors of this format:A few notable points:-
@swc/jest
, the very first occurrence was on a feature branch introducing this change.maxWorkers=50%
on a 16 core machine). The remaining workers seem to be able to run normally, ie is run the remaining tests.I'm primarily looking for help reproducing this issue as without it, it's going to be impossible to debug 😓
We've tried increasing the old space memory for the Node process from 4GB to 8GB and this problem still occurs. We've measured the memory usage of all our tests with jest's
--logHeapUsage
and--expose-gc
but the tests do not exceed usage of 1500MB.Has anyone else encountered similar issues or have any suggestions for further investigation or potential fixes?
Thank you for your help!
Setup / Env details
Dependency Versions
@swc/jest
– 0.2.37@swc/core
– 1.7.35jest
– 29.7.0CPU / Memory details of the container running the build
Linux with 64GB, 16 cores
swc config
Beta Was this translation helpful? Give feedback.
All reactions