-
-
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
Updating to Jest 22 causes coverage to run out of memory #5239
Comments
Did it work with coverage on either Jest 21 or the 22 betas? I'm not really sure how to start debugging it, as the test run is 15 minutes before blowing up from what I can see in circle logs, but bisecting jest releases (if applicable) can just run while I sleep or something. |
Yes, we had no issues with |
@mjesun may have more background on that. We were hitting memory problems coming from Also, if your CircleCI has multiple cores available, you can try running e.g. |
Is this the same as removing |
yup, removing |
As I mentioned in the past it only made things worse. But I can try! |
I can reproduce the crash using React's code base on my own machine, FWIW |
The changes related to fixing memory leaks with Running without I'm not sure at all on what could be causing the leak, but we use the |
I can try to bisect 21.3.0-beta.4 to 22.0.4 (6 steps, apparently), but I'm not sure how conclusive it will be. Obvious candidate is jsdom 11, might be an idea to just test with jsdom 9 and see if it still crashes |
@SimenB That would actually make sense, in relation to how we use the |
Wait no! It blames e00529d (I didn't anticipate the test suite not crashing on that commit)... I'll test some more. This is my bisect log, if anybody wanna see if they agree:
|
What I do to test is clone the react repo, run EDIT: I think it was a fluke, I've gotten 5 crashes in a row for ef55e89 now. I think somehow the revert wasn't clean enough. I'm not sure how to best dig into it, though. |
I tried the workaround of aliasing |
@gaearon there's a bug in Circle builds where running jest without So for React, you should be able to use |
Setting |
Maybe this memory leak issue isn't tied to the use of Heap grows to |
Probably related: #5157 |
Thanks for explaining, this makes total sense. Should we file a bug with Circle or something? Since it affects all Jest consumers who run CI on Circle and the fix isn't obvious.
That was my thought as well. Our |
I'm also seeing this bug, without using |
Ok I think I figured this out (see above PR) Some notes:
|
Still getting this on VSTS hosted agents. |
I am also still seeing memory leak issues on GitLab pipelines with |
Possible to setup a repro? It's likely that the leak is in your own code, but if you can set up a minimal repro we could take a look |
My tests were growing a little encumbered so I refactored quite a bit and now they are working. I still find it strange the update from |
I'm seeing the same leaks with |
I've also been experiencing issues with |
The original problem reported in this issue is fixed, can you create a new issue with a reproduction? |
I also ran into an OOM test failure in CircleCI 2.0 using Jest I might be the odd duck here, but this leads me to believe that either this issue has not been resolved in Jest or this issue represents a problem with CircleCI (which I think is more likely).
@gaearon, do you know if such a bug was filed with CircleCI? I could not find one. Thanks! |
The latest discussion is here: #5989. tl;dr - it's not possible to accurately detect how many cpus are available on the different CIs, with CircleCI being the hardest |
on CircleCI platform, it's a more or less official recommandation, cf. jestjs/jest#1524 (comment) and jestjs/jest#5239 (comment)
on CircleCI platform, it's a more or less official recommandation, cf. jestjs/jest#1524 (comment) and jestjs/jest#5239 (comment)
on CircleCI platform, it's a more or less official recommandation, cf. jestjs/jest#1524 (comment) and jestjs/jest#5239 (comment)
on CircleCI platform, it's a more or less official recommandation, cf. jestjs/jest#1524 (comment) and jestjs/jest#5239 (comment)
on CircleCI platform, it's a more or less official recommandation, cf. jestjs/jest#1524 (comment) and jestjs/jest#5239 (comment)
on CircleCI platform, it's a more or less official recommandation, cf. jestjs/jest#1524 (comment) and jestjs/jest#5239 (comment)
Hopefully fixes OOM exceptions Refer to [jest issue 5239](jestjs/jest#5239)
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. |
Since updating to Jest 22 in facebook/react#11956, all React test runs with coverage fail:
A failure looks like this:
Not sure if this is a Jest issue but figured it's worth asking.
The text was updated successfully, but these errors were encountered: