-
Notifications
You must be signed in to change notification settings - Fork 188
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
Stryker freezes with too many concurrent test runners #1665
Comments
We have actually experienced this ourselves before but only when using the solution run or multiple test projects feature! We had never had a user report before as far as I know. We have a bug report open for this with the vstest team 😉😉😉 Would be awesome if you could confirm that you see the same errors in the vstest logs |
Well we don't use the solution run, rather I wrote a script back in a day to glue project runs together heh :D I will try to get VsTest logs and verify then. So we could push together :) |
Well good because solution runs are not recommended (because of this problem but also because of inaccuracies) 😅. |
This does sound different from issue #1136. We have crashing testrunners there. So lowering the number of testrunners should increase the chance of stryker hanging. But you could check. If you find this in strykers logs (not vstest logging) it's the same issue: |
@rouke-broersma @richardwerkman okay sorry it took so much time, I was implementing mutation score lock in solution wide and it took a while :D Now I got back to this, seems like VsTest is indeed the issue. I cannot collect VsTest logs from the build machine (I guess for that I would need to execute custom Stryker version there?) but I collected Stryker logs for hung executions and I see this Should we try pinging the guys internally? |
If you could do that, that would be amazing :) The logs should be available when you execute stryker with log to file enabled and the loglevel set to trace, no custom stryker build necessary. |
Oh alright. Thanks! I'll see what I can do. This is maybe causing us problems even with running unit tests, we're investigating this now. I'll keep you posted on that. |
@psfinaki Could you try pushing the vstest team again? I've been trying for over a year now but the issue is still open... Maybe with some internal force we can get this issue out of our way 👼 |
Yyyyep, taking action right now :) |
Okay so they are working on that and should update you in that issue - I've subscribed to the PR mentioned there so will follow as well. |
Thanks! Let's hope we can go forward quickly! |
The sound of merging touched me today :) |
Oh my! This is excellent news! Do you also hear the sound of a release soon? 👼 |
Well so VS17.1 is out there a few days now and they wanted to have this thing along with VS17.2. That's as much as I know 🤷 |
Great! Thanks for the info |
So! How about releasing this? :) |
Yep, just waiting to see if 0xced replies today on their pr. Note that this is not yet fixed until it's fixed in vstest, we just have a workaround that might help us if this occurs. |
Sure! |
1.5.1 has been released with the workaround for the testrunner freezing, please give it a try |
Will do soon, things are a bit slow now because of Easter :) |
I am pretty confident the 'freeze' problem will be fixed, at least partially. But you may encounter another problem (see #2002) that is the probable cause for 'freeze' like situation. Note that 1.51 improved the handling of VsTest freezes, but you may still run into #2002. The workaround is then to increase the additional timeout value. |
So I've run our nightly mutation testing three times without concurrency limitations and yes looks like the freezes are gone. Our build machines are kind of random now so the times vary wildly and thus we are yet benefitting from this freedom but still wanted to confirm this. |
Describe the bug
We are now executing Stryker during the night against a big codebase. Recently we switched to very strong machines and Stryker suddenly started to "freeze" during executions. After a few days of frustration I figured out that concurrency is the issue. The machines we use now have 16 logical processors so Stryker spins up 8 concurrent test runners and that occasionally (actually more often than not) just leeds to freezes in random places.
I don't know where the problem exactly is. I can figure out the exact number of test runners when things start going bad. Now I only know the 5 are ok and 8 are not ok. For us the execution time is the same for 4 and 5 concurrent test runners so we stopped there.
Expected behavior
No freezes, well.
Workarounds
Thanks god Stryker has an option to specify this amount in the config. This saved my ass :D
The text was updated successfully, but these errors were encountered: