Enabling verbose logging doesn't tell me what the build issue is on the failing servers.
The HTML reports say that building was successful (it only seems to report from the one successful node). The errors/warnings tab doesn't have anything in it. it looks like ss far as its concerned everything worked, but build status is failed.
Funnily one of the failing grid nodes just started working for no apparent reason. No changes. Makes me suspicious that its something to do with the nuget packages.
I've tried restricting the run to only use one grid node that doesn't work so it'll report the build error, and I just get a report that says every build is 'not run' in the AllResults.html and the log just has same as above:
[21:51:49][Step 16/25] [Core-173] Grid node gridnode2 reports task completed: [LocalBuildTask: [SnapshotComponent: Quoting.EsUp, 3, 13253221], ProcessingFailed, gridnode2, 2e3d6a6d-befb-4bab-8661-56e236e29a79]
We are restoring the packages (and its still building with MSBuild first and thats working), but all tests processing is on the grid, the build machines do no processing, but I'm still seeing some stuff that seems to indicate the NCrunch is doing some build analysis on the build agent. I see some warnings like:
[12:14:14] : [Step 16/25] [InitialisationQueueTask-46] Build analysis output: Dependency "Something.Core, Version=3.0.339.0, Culture=neutral, PublicKeyToken=null".
[12:14:14] : [Step 16/25] [InitialisationQueueTask-46] Build analysis output: Could not resolve this reference. Could not locate the assembly "Something.Core, Version=3.0.339.0, Culture=neutral, PublicKeyToken=null". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
This is ok I think as some components are built with this version but generally parts reference the next version and the build works in ms build.
I'm coming up short being able to establish what the issue could be and there don't seem to be any error messages to help.
I've tried using the grid node from VS on my local machine (disabling all other processing options including local). In the tests window I just get '2 projects failed to build' in the window and nothing else. They don't get red 'X's and if I click on them there is nothing reported in the output pane. In the processing queue I see tasks which say that the projects failed to build, which have red 'X's and if I select these rown the output pane has this:
[15:14:27.7795-NodeProcessor-109] ERROR (Internal): nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.TaskRunner.Ipc.Fast.IpcReader.Initialise()
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Connect(String ipcName, Boolean isHost)
at nCrunch.TaskRunner.Ipc.Fast.FastIpcClient.Connect(String ipcName)
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Core.ProcessManagement.ExternalProcessManager..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(ProcessorArchitecture , ProcessLoadParameters )
[15:14:27.7795-NodeProcessor-109] ERROR (Internal): nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(ProcessorArchitecture , ProcessLoadParameters )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters, GridClientId client)
at nCrunch.Core.BuildManagement.BuildProcessLauncher..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , ProcessorArchitecture , GridClientId , BuildSystemParameters , IList`1 , Nullable`1 , GridAddress )
at nCrunch.Core.BuildManagement.BuildProcessLauncher.BuildComponentInExternalProcess(ComponentBuildParameters parameters, VisualStudioVersion vsVersion, GridClientId client, IList`1 customEnvironmentVariables, Guid taskId, GridAddress clientAddress)
at nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender, Guid taskId, GridAddress clientAddress)
at nCrunch.Core.Processing.BuildTaskLogic.DoProcessTaskAndReturnSuccessFlag()
at nCrunch.GridNode.NodeTaskProcessor..()
at nCrunch.Common.ErrorHandler.DoWithErrorHandling(Action action, Object context)
but no actual build error message
Any ideas?