Build/Test Issues

Build fails, but in broken state, no tests running

Started by kierenj on 3,357 views

I have a solution with a .NET Core project and lots of .NET Framework projects. It's been working fine until "some point in the past couple of weeks" - no major additions, sorry I can't be more specific.

I'm on latest VS 2017 (15.4.1)

NCrunch tests status bar: "1 project is failing to build"
VS NCrunch status bar: brown circle around "1" - "1 project is failing to build, NCrunch engine is idle".

.NET Core project (RedactedAuth): ok, green tick (no tests - correct)
Unit test project: green question mark, lots of tests shown, "Build successful".
.NET class library project: "Last build successful, rebuilding", clock icon. Note: no build is in progress.

Selecting any of these 3 projects yields no details (e.g. exceptions) in the lower pane.

The "Tests" output pane shows:

[24/10/2017 12:03:09 Error] The operation failed as details for project RedactedAuth could not be loaded.

...but I'm not sure that's NCrunch related.

Let me know if I can provide any further info.

Edited

I enabled detailed logging and found this. Not sure if it's related..

ENGINE - [12:44:26.5157-Core-26] Event [ErrorEvent:[Error:
Context: (global)
Category: Internal
Message: An item with the same key has already been added.
Details: System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at nCrunch.Core.BuildManagement.BuildEnvironment.(BuildOutput )
at nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender)
at nCrunch.Core.Processing.BuildTaskLogic.DoProcessTaskAndReturnSuccessFlag()
at nCrunch.Core.Processing.TaskLogic.ProcessTaskAndReturnSuccessFlag()
at nCrunch.Client.Processing.LocalProcessingTask.ProcessTaskAndReturnSuccessFlag()
at nCrunch.Client.Processing.ProcessingQueue..()
]] is being processed on Core thread with subscriber: ErrorHandler.
Hi, thanks for sharing this problem.

Probably the build for the .NET class library has hung or terminated unexpectedly. Is there any information showing for this project in the Processing Queue Window?
Hi thanks for the response. No unfortunately the output window (umm, the bottom pane) is blank for all of the projects in question when selected

Edited

It always catches me by surprise when we post at the same time :) This is a known issue that affects some solutions. It's caused by a regression in 3.11.

Try the build below. This contains a fix for the issue, along with a few performance improvements:

http://downloads.ncrunch.net/NCrunch_Console_3.12.0.4.msi
http://downloads.ncrunch.net/NCrunch_Console_3.12.0.4.zip
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.12.0.4.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.12.0.4.zip
http://downloads.ncrunch.net/NCrunch_LicenseServer_3.12.0.4.zip
http://downloads.ncrunch.net/NCrunch_VS2008_3.12.0.4.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.12.0.4.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.12.0.4.zip
http://downloads.ncrunch.net/NCrunch_VS2012_3.12.0.4.msi
http://downloads.ncrunch.net/NCrunch_VS2012_3.12.0.4.zip
http://downloads.ncrunch.net/NCrunch_VS2013_3.12.0.4.msi
http://downloads.ncrunch.net/NCrunch_VS2013_3.12.0.4.zip
http://downloads.ncrunch.net/NCrunch_VS2015_3.12.0.4.msi
http://downloads.ncrunch.net/NCrunch_VS2015_3.12.0.4.zip
http://downloads.ncrunch.net/NCrunch_VS2017_3.12.0.4.msi
http://downloads.ncrunch.net/NCrunch_VS2017_3.12.0.4.zip
That works, thanks very much for the super quick response :)

Post a reply

Log in to reply.