-
Notifications
You must be signed in to change notification settings - Fork 250
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
Ran out of memory with large angular application #1230
Comments
Thanks for opening this detailed issue! It looks like Stryker crashes during the initial test run. I haven't seen this before. I'll take a more thorough look at your config and logging tomorrow 👍 |
Thank you. If I can help feel free to add instructions :) |
@wachri this is an interesting setup. You're using jest to test an angular project. This is new for us. Could you try to open the sandbox directory after a failed run and run jest from there like you normally would in your main repository? This is to rule out any out of memory errors resulting from jest or one of it's plugins. |
@nicojs using jest has really speed up our tests, especially in the development environment. Already tried this and the jest tests are running fine.
|
It looks like that |
@nicojs Any progress on this, or any thing I can do to help debugging? I would really like to use stryker in this project :) |
@wachri Could you try this with the latest version of Stryker? We've made some changes yesterday that may fix this. We've released v1 today. If you want we could help you migrate to that version as well. As of right now, it contains no new features compared to the latest 0.x release. |
PS sorry for being so slow to respond :( 🐌 |
@simondel thank you for you response :).
and
|
Thanks for testing this! Would it be possible for you to share the code or create a reproduction app? Also, what happens after the memory leak errors? Does Stryker continue and report it for every mutant? |
Working to reproduce the behavior in https://github.com/wachri/stryker-out-of-memory. It currently not looking that it depends (only) on the amount of components. I was't able to reproduce the exactly same error but a similar one. With a combination of a large count of components and some complexity in the component I get an out of memory error after the initial run:
report.20190220.165756.51310.001.json.zip You can find the example in the branche out-of-memory-after-initial-test Learnings:
Maybe this helps already a bit? |
I am experiencing the same issue with a NestJS application + Jest |
Hi! This should be fixed with version 2.2.1: https://github.com/stryker-mutator/stryker/blob/master/packages/core/CHANGELOG.md |
Summary
When running stryker in a large angular application (
Found 2 of 1615 file(s) to be mutated
) with jest I'm getting errors. Before I increased the timeout I only got a timeout error. After increasing a out of memory error is displayed:With the same setup, but when everything except one dummy component is removed, stryker works fine.
Already tried to increase the memory limit with
--max-old-space-size=8192 --optimize-for-size --max_old_space_size=8192 --optimize_for_size
Stryker config
Jest config
Stryker environment
Your Environment
Add stryker.log
stryker.log
Created with
The text was updated successfully, but these errors were encountered: