-
Notifications
You must be signed in to change notification settings - Fork 153
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
Running tests in parallel sporadically fails with exit code 255 #705
Comments
There's nothing in the logs to help here, unfortunately. Do you get anything additional logged when you run without |
I don't think anything unusual other than default SocketException appears in the logs in that case. Example is from a build running with TeamCity logs:
|
You're right, there's no extra clues here. I'm afraid I'm really not sure what would cause this, perhaps others on @nunit/engine-team might have some ideas? |
The SocketException means the agent process died unceremoniously. What's the error message when the agent is not in the picture (use |
Nothing, it seems - see the top post. That's the bit that's confusing me! 🙂 |
Oh, sorry. This is a long shot but I wonder if it could possibly be fixed by #660. How about trying the latest from the prerelease feed? |
The internal trace just stops, similar to what I was seeing with the .NET Framework race condition that #660 avoids. (Btw, the race condition is fixed in the November .NET Framework updates.) |
Doesn't seem to help in any way :( Tried several times with |
@nunit/engine-team Doesn't the engine get distributed with access to source code for debugging? Maybe we should make @asendimitrov Just to be sure... have you looked at the separate internal trace log produced for the agent process? Each run may give you three or four logs. |
@CharliePoole thanks for tuning in. Yes, I've checked all 3 log files and there doesn't see to be a hint in either of them. Above I've shared a zip containing the nunit agent process log, and in it the last messages are:
The process breaks after those timestamps, unless I'm missing anything? |
Hi, I'm using NUnit 24/7 at work and I'm sporadically hitting an issue when running tests in parallel.
NUnit Framework version: 3.12 (NuGet)
NUnit ConsoleRunner version: 3.10 (NuGet)
Console command:
%nunit.console.path% --trace=Debug --inprocess --result=%nunit.result.path% %tests.dlls.list% --workers=10
ParallelizableScope: Children (on assembly level)
The issue occurs around 10% of the time on our TeamCity agents and the error is
Process exited with code 255
. It looks to be affected by the hardware of the box the tests are ran on - there's no hard proof of this - but I've never managed to reproduce it locally (the agents are VMs with weakish dual core processors whereas mine has 8).Lowering the
workers
doesn't seem to affect as I've seen the same result with both5
and not specified at all (would default to 2 when ran on TC).I'm always using
--inprocess
ever since I first hit the issue in order to see the real reason why this happens but there's nothing specific either as an exception by the console or in the logs. Omitting--inprocess
results in a SocketException issue (#255 )What I've noticed is that this (mostly) occurrs when test number X is running, where X is equal to the number of workers. Here's an example with both 5 and 10:
5 workers:
logs:
5 workers - InternalTrace.5864.zip
10 workers:
logs:
10 workers - InternalTrace.2948.zip
Please let me know if you need anything else. Thanks.
The text was updated successfully, but these errors were encountered: