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
During #534 we discovered some potential memory leaks. The Ci job for the tests/client domain was running out of memory and core dumping. There seems to be a problem here.
Running the client domain tests with npm run test -- --runInBand --logHeapUsage tests/client shows a steady increase of heap usage between tests totalling 1.2GB of heap used by the end.
A stopgap measure has been taken by running jest with the node option --expose-cg allowing jest to trigger garbage collection between tests. 52 test files have been combined into 7 files, one for each domain. This is enough to solve the problem for now.
Given that reducing the number of files significantly reduced the memory usage, this suggests that the main memory leak is related to the global scope and imports in some fashion.
Further work needs to be done to discover these leaks and resolve them.
I'm going to close this for now, because this issue needs to be a bit more specific about what exactly is running out of memory. And #551 will be the one looking into this. I'll just roll this into the general testing required there.
Specification
During #534 we discovered some potential memory leaks. The Ci job for the
tests/client
domain was running out of memory and core dumping. There seems to be a problem here.Running the client domain tests with
npm run test -- --runInBand --logHeapUsage tests/client
shows a steady increase of heap usage between tests totalling 1.2GB of heap used by the end.A stopgap measure has been taken by running jest with the node option
--expose-cg
allowing jest to trigger garbage collection between tests. 52 test files have been combined into 7 files, one for each domain. This is enough to solve the problem for now.Given that reducing the number of files significantly reduced the memory usage, this suggests that the main memory leak is related to the global scope and imports in some fashion.
Further work needs to be done to discover these leaks and resolve them.
Additional context
Tasks
The text was updated successfully, but these errors were encountered: