Our TeamCity (which uses distributed NCrunch for testing) occationally fail with errors similar to the following:
Quote:Object reference not set to an instance of an object. - System.NullReferenceException: Object reference not set to an instance of an object.
at nCrunch.Client.TestPipeline.TestPipelineManager. (IEnumerable`1 )
at nCrunch.Client.TestPipeline.TestPipelineManager. (TestDataUpdatedEvent )
The following error also appear
Quote:Object reference not set to an instance of an object. - System.NullReferenceException: Object reference not set to an instance of an object.
at nCrunch.Client.Model.ModelCodeMember.get_FilePath()
at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (ModelTest )
at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (ModelTest , CodeNavigationIndexUpdate )
at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (TestDataUpdatedEvent )
There seem to be no failing tests, only a failed integration because of the above.
NCrunch is invoked with
Quote:"C:\Program Files (x86)\Remco Software\NCrunch Console Tool\NCrunch.exe" C:\TeamCity\buildAgent\work\89f512a38888334a\master.sln /c C:\TeamCity\buildAgent\work\89f512a38888334a\teamcity.crunch.v3.xml /e "TeamCity Continues Integration" /o NCrunchResults /TeamCityDisableTestNotRunFailureReporting -LogVerbosity Summary
The teamcity.crunch.v3.xml contains the following:
Quote:<GlobalConfiguration>
<Settings>
<CPUCoresAssignedToNCrunch>0,1,2,3,4,5,6,7</CPUCoresAssignedToNCrunch>
<CPUCoresAssignedToVisualStudio></CPUCoresAssignedToVisualStudio>
<FastLaneThreads>1</FastLaneThreads>
<GridReconnectionDelayInSeconds>0</GridReconnectionDelayInSeconds>
<GridServerReferencesForComputer>
<!-- <Value>BuildAgent1:80></Value> -->
<!-- <Value>askvision:80></Value> -->
<!--<Value>pgpvision:80></Value>-->
<!--<Value>mkpvision:80></Value>-->
<!-- <Value>jnyvision:80></Value> -->
<Value>rjevision:80></Value>
<!-- <Value>jlsvision:80></Value> -->
</GridServerReferencesForComputer>
<DisabledNodes>
<Value>(local):0</Value>
</DisabledNodes>
<MaxNumberOfProcessingThreads>8</MaxNumberOfProcessingThreads>
<MaxTestRunnerProcessesToPool>1</MaxTestRunnerProcessesToPool>
<AllowParallelTestExecution>True</AllowParallelTestExecution>
<SystemConfigured>True</SystemConfigured>
<TerminateTestRunnerTasksOnExecutionComplete>False</TerminateTestRunnerTasksOnExecutionComplete>
<UseSimplifiedSettingsWhereAvailable>True</UseSimplifiedSettingsWhereAvailable>
<NCrunchCacheStoragePath>c:\ncrunch</NCrunchCacheStoragePath>
</Settings>
<EngineModes>
<EngineMode>
<Name>TeamCity Continues Integration</Name>
<Settings>
<TestsToExecuteAutomatically>(DoesNotHaveCategory 'TeamCityIgnore')</TestsToExecuteAutomatically>
</Settings>
</EngineMode>
</EngineModes>
</GlobalConfiguration>
The grid server references that are commented out is because we experience the shortest integration time when there is only one node operational. But that is a different issue.