-
Notifications
You must be signed in to change notification settings - Fork 132
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
Infection: raise timeout for mutants from 10 to 60 seconds #1331
base: 6.8.x
Are you sure you want to change the base?
Conversation
The mutation score is really like some neverending zombie TV serie :) |
composer.json
Outdated
"phpunit/phpunit": "10.0.5", | ||
"phpstan/phpstan": "^1.9.17", | ||
"phpstan/phpstan-phpunit": "^1.3.4", | ||
"phpunit/phpunit": "^10.0.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I follow your reasoning, this patch should be red also on the pre-existing PHPUnit version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, even in the last PHPUnit 9.6.3 build you had more than a thousand mutants escaped under the timeout carpet:
https://github.com/Roave/BetterReflection/actions/runs/4092019766/jobs/7056471771#step:5:117
3676 mutations were generated:
2567 mutants were killed
0 mutants were configured to be ignored
0 mutants were not covered by tests
0 covered mutants were not detected
5 errors were encountered
0 syntax errors were encountered
3 time outs were encountered
1101 mutants required more time than configured
Github Actions is freaking slow, 60 seconds are not enough for another 392 mutants, while on my https://github.com/Roave/BetterReflection/actions/runs/4161271803/jobs/7199509066#step:5:116
I'll leave up to you to tweak it: if you raise it even higher you'll eventually get timed out mutants to zero, but the build could take almost 2 hours 🙄 |
@Slamdunk thanks for investigating this meanwhile! 💪 |
2ada1ff
to
8168896
Compare
The current 10 seconds timeout hides mutants that in reality are escaping if we raise it to just 60 seconds:
/cc @kukulich