You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But this is just because the heap size seems not to be limited to 2 GB.
Like you can see if you add --logHeapUsage to the jest test call.
Or even change the call to cross-env NODE_ENV=test node --expose-gc ./node_modules/.bin/jest --runInBand --logHeapUsage.
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
FATAL ERROR in backend tests, because we run out of memory.
Same happens often in GitHub Actions.
See screen shot:
Locale:
GitHub Actions:
Additional Informations
Possible Reasons
Show Memory Usage
https://stackoverflow.com/questions/62885390/my-jests-tests-are-leaking-memory-how-can-i-fix-this
Solutions
We solved this now temporarily by increasing the JS memory from 2 GB to 8 GB done here feat: 🍰 Implement Group GQL Model And CRUD Resolvers – First Step #5139 .
A possible additional solution can be to split the backend tests in two parts.
A Node versions upgrade to v14.20.0 or 16.16.0 seems to help, see:
issue 🐛 [Bug] On Upgrade Node Version In Backend Image Upload Is Not Working #5175
PR chore: [WIP] 🍰 Upgrade Node Version #5176
But this is just because the heap size seems not to be limited to 2 GB.
Like you can see if you add
--logHeapUsage
to the jest test call.Or even change the call to
cross-env NODE_ENV=test node --expose-gc ./node_modules/.bin/jest --runInBand --logHeapUsage
.The text was updated successfully, but these errors were encountered: