Repository navigation
chore(mutation testing): tweak Stryker for lower resource usage and decrease timeout for slow running mutants - #11901
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 172c90c
Previous suggestionsSuggestions up to commit 3c6d066
Suggestions up to commit d99ae8f
|
|||||||||||||||||||||||||||
|
About qodo's suggestion, making all the changes actually decreased the number of timeout-ed mutants by 5 (initial |
Code Review by Qodo (Alpha)(Review updated until commit 172c90c)
1. Critically Low Timeout Factor Causes Test Failures
|
|
Persistent review updated to latest commit 172c90c |
…ecrease timeout for slow running mutants (typeorm#11901) Co-authored-by: Naor Peled <[email protected]>
…ecrease timeout for slow running mutants (typeorm#11901) Co-authored-by: Naor Peled <[email protected]>
Description of change
So, this change brings a few tweaks for mutation testing for it to properly/better work in GHA.
I changed number of concurrency from 6 to 4 because the runner often fails/disconnects after 2 hours of work, as the error says, it can be CPU, RAM, or network. So decreasing number of concurrent workers should do the trick here.
I enabled the
ignoreStaticflag to ignore static mutants (though that didn't help a lot). The logs didn't say that there's a problem with a lot of static mutants but I still decided to enable the flag because killing static mutants requires restart of the tests which is a bit slow. More info on static mutants is here https://stryker-mutator.io/docs/mutation-testing-elements/static-mutants/These two changes decreased the running time from 3 hours to 2 hours, but I thought that that was not enough so I did another trick:
All the steps didn't change the mutation score that much (
53.958070324303065comparing to the final53.94989967523737).In results, the mutation testing should run in just an hour!
Pull-Request Checklist
masterbranchFixes #00000tests/**.test.ts)docs/docs/**.md)