Hi Mikkel,
thanks for your valuable input. I already ran across [1] and the
diagnostic logs also mention similar network stream related exceptions.
Unfortunately this does not give any clue to pursue. I don't know
whether [2] is related but I updated the docker image from
microsoft/dotnet:1-sdk to microsoft/dotnet:2-sdk to remedy the symptom
that the tests would run but the test runner got stuck, hanging
indefinitely even after completion. Now, looking into the diagnostic
logs of the most recent build the following gives a rough overview of
what happens:
```
TpTrace Verbose: 0 : 528, 9, 2018/05/20, 11:46:57.915, 49369169062240712, testhost.dll, BaseRunTests.RunTestInternalWithExecutors: Running tests for executor://NUnit3TestExecutor
TpTrace Information: 0 : 528, 9, 2018/05/20, 11:46:57.951, 49369169097807798, testhost.dll, NUnit Adapter
3.10.0.21: Test execution started
TpTrace Information: 0 : 528, 9, 2018/05/20, 11:46:57.971, 49369169117450207, testhost.dll, Running all tests in /home/jenkins/jenkins-slave/workspace/log4net_feature_cd-pipeline-76KUCPODUF6LCE45226EBUR4GNVLYPMYVC23Z4ITBOMNJT3CA2WA/netstandard/1.3/log4net.tests/bin/Debug/netcoreapp2.0/log4net.tests.dll
TpTrace Information: 0 : 528, 9, 2018/05/20, 11:46:57.982, 49369169128929849, testhost.dll, AssemblyResolver: Mono.Cecil: Resolving assembly.
TpTrace Information: 0 : 528, 9, 2018/05/20, 11:46:57.983, 49369169130250657, testhost.dll, AssemblyResolver: Mono.Cecil: Resolved assembly.
TpTrace Information: 0 : 528, 9, 2018/05/20, 11:46:58.203, 49369169349596413, testhost.dll, NUnit3TestExecutor converted 91 of 91 NUnit test cases
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.338, 49369169484598006, testhost.dll, InProgressTests is null
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.341, 49369169488290160, testhost.dll, TestRunCache: No test found corresponding to testResult 'ReadOnlyToArrayTest Passed' in inProgress list.
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.342, 49369169488996148, testhost.dll, InProgressTests is null
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.342, 49369169489126577, testhost.dll, TestRunCache: No test found corresponding to testResult 'ToArrayTest Passed' in inProgress list.
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.384, 49369169531186928, testhost.dll, InProgressTests is null
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.384, 49369169531309420, testhost.dll, TestRunCache: No test found corresponding to testResult 'TestBufferSize5 Passed' in inProgress list.
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.385, 49369169531793738, testhost.dll, InProgressTests is null
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.385, 49369169531902474, testhost.dll, TestRunCache: No test found corresponding to testResult 'TestSetupAppender Passed' in inProgress list.
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.398, 49369169544484411, testhost.dll, InProgressTests is null
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.398, 49369169544600458, testhost.dll, TestRunCache: No test found corresponding to testResult 'TestComputeCheckPeriod Passed' in inProgress list.
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.493, 49369169639872299, testhost.dll, InProgressTests is null
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.493, 49369169640070127, testhost.dll, TestRunCache: No test found corresponding to testResult 'RollingCombinedWithPreserveExtension Passed' in inProgress list.
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.498, 49369169645373332, testhost.dll, InProgressTests is null
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.499, 49369169645502680, testhost.dll, TestRunCache: No test found corresponding to testResult 'TestDefaultLockingModel Passed' in inProgress list.
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.504, 49369169650485916, testhost.dll, InProgressTests is null
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.504, 49369169650617259, testhost.dll, TestRunCache: No test found corresponding to testResult 'TestExclusiveLockFails Passed' in inProgress list.
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.507, 49369169653633549, testhost.dll, InProgressTests is null
TpTrace Warning: 0 : 528, 10, 2018/05/20, 11:46:58.507, 49369169653765241, testhost.dll, TestRunCache: No test found corresponding to testResult 'TestExclusiveLockLocks Passed' in inProgress list.
TpTrace Information: 0 : 528, 10, 2018/05/20, 11:46:58.511, 49369169657847205, testhost.dll, Sending test run statistics
[...]
TpTrace Warning: 0 : 515, 8, 2018/05/20, 11:46:59.127, 49369170274245452, vstest.console.dll, ProxyOperationManager: Timed out waiting for test host to exit. Will terminate process.
TpTrace Verbose: 0 : 515, 8, 2018/05/20, 11:46:59.134, 49369170281160451, vstest.console.dll, ParallelProxyExecutionManager: HandlePartialRunComplete: Total completed clients = 1, Run complete = True, Run canceled: False.
TpTrace Verbose: 0 : 515, 8, 2018/05/20, 11:46:59.228, 49369170374419855, vstest.console.dll, TestRunRequest:TestRunComplete: Starting. IsAborted:True IsCanceled:False.
TpTrace Verbose: 0 : 515, 8, 2018/05/20, 11:46:59.228, 49369170374872917, vstest.console.dll, TestLoggerManager.HandleTestRunComplete: Ignoring as the object is disposed.
TpTrace Information: 0 : 515, 8, 2018/05/20, 11:46:59.228, 49369170375126414, vstest.console.dll, TestRunRequest:TestRunComplete: Completed.
TpTrace Verbose: 0 : 515, 8, 2018/05/20, 11:46:59.228, 49369170375266139, vstest.console.dll, TcpClientExtensions.MessageLoopAsync: exiting MessageLoopAsync remoteEndPoint:
127.0.0.1:43526 localEndPoint:
127.0.0.1:58259
TpTrace Verbose: 0 : 515, 1, 2018/05/20, 11:46:59.228, 49369170375283146, vstest.console.dll, TestRunRequest.Dispose: Starting.
TpTrace Information: 0 : 515, 1, 2018/05/20, 11:46:59.229, 49369170375621213, vstest.console.dll, TestRunRequest.Dispose: Completed.
TpTrace Information: 0 : 515, 1, 2018/05/20, 11:46:59.229, 49369170375765305, vstest.console.dll, TestRequestManager.RunTests: run tests completed.
TpTrace Information: 0 : 515, 1, 2018/05/20, 11:46:59.229, 49369170375968109, vstest.console.dll, RunTestsArgumentProcessor:Execute: Test run is completed.
TpTrace Verbose: 0 : 515, 1, 2018/05/20, 11:46:59.229, 49369170376159565, vstest.console.dll, Executor.Execute: Exiting with exit code of 1
```
One suspicious thing here is the mention of Mono.Cecil, but that may
also be fine because the implementation of the netstandard-1.3 api may
be provided by Mono in the docker image microsoft/dotnet:2-sdk. The next
suspicious thing is that some communication within the testing process
times out and aborts the test run. As previously mentioned, with the
docker container microsoft/dotnet:1-sdk the tests were run but the test
process got stuck and hanged there until the build timed out (after four
hours). With microsoft/dotnet:2-sdk this behavior changes. Now the test
process detects (possibly the same) problem and times out because the
test host does not terminate. This means to me that the tests are
resolved and run and a similar issue as with microsoft/dotnet:1-sdk
still persists. At first sight, vstest.console.dll (test hosting
process?) does its job while testhost.dll (nunit?) does not terminate
after test completion. Interestingly, exactly the same tests are run
against several other frameworks on multiple operating systems. This
gives me a hint that this is not an issue of the test implementations
but rather something of the framework that runs the tests. As far as I
can tell, nunit is at the latest available version on nuget. Are you
aware of any nunit issue that relates to these symptoms?
Cheers,
Dominik
[1]
https://github.com/nunit/nunit/issues/2817
[2]
https://github.com/Microsoft/vstest/issues/627
>> <javascript:>>: