-
Notifications
You must be signed in to change notification settings - Fork 19
Intermittent build issues
Steve Gilham edited this page Apr 15, 2018
·
19 revisions
I occasionally see failures in unit tests when NUnit's internal communications fail, which then go away when I retry the build. If you see them, just re-try
One looks like this
System.Runtime.Serialization.SerializationException : The object with ID 2 implements the IObjectReference interface for which all dependencies cannot be resolved. The likely cause is two instances of IObjectReference that have a mutual dependency on each other.
--SerializationException
Server stack trace:
at System.Runtime.Serialization.ObjectManager.GetCompletionInfo (System.Runtime.Serialization.FixupHolder fixup, System.Runtime.Serialization.ObjectHolder& holder, System.Object& member, System.Boolean bThrowIfMissing) [0x000ae] in <9689214c1e4645be91df75196bac3cbb>:0
at System.Runtime.Serialization.ObjectManager.CompleteObject (System.Runtime.Serialization.ObjectHolder holder, System.Boolean bObjectFullyComplete) [0x00134] in <9689214c1e4645be91df75196bac3cbb>:0
at System.Runtime.Serialization.ObjectManager.DoFixups () [0x000f1] in <9689214c1e4645be91df75196bac3cbb>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize (System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser serParser, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00077] in <9689214c1e4645be91df75196bac3cbb>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x000a2] in <9689214c1e4645be91df75196bac3cbb>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00000] in <9689214c1e4645be91df75196bac3cbb>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck) [0x00000] in <9689214c1e4645be91df75196bac3cbb>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in <9689214c1e4645be91df75196bac3cbb>:0
at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage (System.Runtime.Remoting.Channels.IServerChannelSinkStack sinkStack, System.Runtime.Remoting.Messaging.IMessage requestMsg, System.Runtime.Remoting.Channels.ITransportHeaders requestHeaders, System.IO.Stream requestStream, System.Runtime.Remoting.Messaging.IMessage& responseMsg, System.Runtime.Remoting.Channels.ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x0009d] in <7a008740b57d43ebbd138a12134e901a>:0
Exception rethrown at [0]:
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,intptr)
at (wrapper remoting-invoke) NUnit.Engine.Agents.RemoteTestAgent.Run(NUnit.Engine.ITestEventListener,NUnit.Engine.TestFilter)
at NUnit.Engine.Runners.ProcessRunner.RunTests (NUnit.Engine.ITestEventListener listener, NUnit.Engine.TestFilter filter) [0x00025] in <a3ad5449913a4202999529a949a30f07>:0
Another looks like
NUnit.Engine.NUnitEngineUnloadException : Multiple exceptions encountered. Retrieve AggregatedExceptions property for more information
----> System.Runtime.Remoting.RemotingException : Tcp transport error.
----> System.Runtime.Remoting.RemotingException : Tcp transport error.
----> System.Runtime.Remoting.RemotingException : Connection closed
----> System.Runtime.Remoting.RemotingException : Connection closed
Fake.Testing.Common+FailedTestsException: NUnit test failed (251).
at Fake.DotNet.Testing.NUnit3.NUnit3(FSharpFunc`2 setParams, IEnumerable`1 assemblies) in C:\proj\FAKE\src\app\Fake.DotNet.Testing.NUnit\NUnit3.fs:line 338
at Targets.f@51-8(TargetParameter _arg10)
Also, occasionally, something looking like a race in the depths of the FSharpLint MSBuild task
error : Exception: Lint failed while analysing C:\projects\altcover\AltCover.Recorder\AltCover.Recorder.fsproj.
error : Failed with: The CancellationTokenSource has been disposed.
error : Stack trace: at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
error : at <StartupCode$FSharp-Compiler-Service>[email protected](Unit unitVar)
error : at [email protected](AsyncParams`1 args)
error : --- End of stack trace from previous location where exception was thrown ---
error : at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a](AsyncImplResult`1 res)
error : at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronouslyInCurrentThread[a](CancellationToken token, FSharpAsync`1 computation)
error : at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a](CancellationToken token, FSharpAsync`1 computation, FSharpOption`1 timeout)
error : at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken)
error : at FSharpLint.Framework.ParseFile.typeCheckFile@45(String file, String source, FSharpProjectOptions options, FSharpChecker checker, FSharpParseFileResults parseResults, Unit unitVar0)
error : at FSharpLint.Framework.ParseFile.parse[a](a configuration, String file, String source, FSharpChecker checker, FSharpProjectOptions options)
error : at FSharpLint.Framework.ParseFile.parseFile[a](String file, a configuration, FSharpChecker checker, FSharpOption`1 projectOptions)
error : at [email protected](String file)
error : at Microsoft.FSharp.Primitives.Basics.List.mapToFreshConsTail[a,b](FSharpList`1 cons, FSharpFunc`2 f, FSharpList`1 x)
error : at Microsoft.FSharp.Primitives.Basics.List.map[T,TResult](FSharpFunc`2 mapping, FSharpList`1 x)
error : at FSharpLint.Application.Lint.parseFilesInProject@352(OptionalLintParameters optionalParams, FSharpFunc`2 projectProgress, FSharpFunc`2 warningReceived, FSharpChecker checker, Configuration config, FSharpList`1 files, FSharpProjectOptions projectOptions)
error : at FSharpLint.Application.Lint.loadConfigAndParseFilesInProject@382(OptionalLintParameters optionalParams, String projectFilePath, FSharpFunc`2 projectProgress, FSharpFunc`2 warningReceived, FSharpChecker checker, FSharpList`1 files, FSharpProjectOptions projectOptions)
error : at FSharpLint.Application.Lint.lintProject(OptionalLintParameters optionalParams, String projectFilePath, FSharpOption`1 progress)
error : at FSharpLint.Application.FSharpLintWorker.RunLint(String projectFile, OptionalLintParameters options, FSharpOption`1 progress)
error : at FSharpLint.MSBuild.AppDomain.LintRunner.Lint(String projectFile)
error : at FSharpLint.MSBuild.AppDomain.LintRunner.Lint(String projectFile)
error : at FSharpLint.MSBuild.Proxy.Lint()
error : at FSharpLint.MSBuild.FSharpLintTask.Execute()
I've seen reports of what looks like FSharpLint issue #250 when building:-
error : Exception: Lint failed while analysing path-to\AltCover.Recorder.fsproj.
error : Failed with: error parsing ProjectCrackerTool output, stdoutput was:
error :
error :
error :
error : stderr was:
error :
error : Process is terminated due to StackOverflowException.
though none of the machines I've used have shown this behaviour, so I can't hazard a guess at what in the environment might be causing it. I'm sure that project would like the issue fixing, if you can repro it.