chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes

Suddenly I'm getting a partial failure from our TFS build.  This is what i get in the email out of TFS:

<!--[if gte mso 9]> <![endif]--><!--[if gte mso 9]> Normal 0 false false false EN-GB X-NONE X-NONE <![endif]--><!--[if gte mso 9]> <![endif]--><!--[if gte mso 10]>

<![endif]-->

Summary

| Build

64 error(s), 398 warning(s)

Build - 64 error(s), 398 warning(s)

Microsoft.PowerShell.Commands.WriteErrorException: Typemock SmartRunner Failed

Microsoft.PowerShell.Commands.WriteErrorException: > Internal Error Running tests System.Runtime.Remoting.RemotingException: Object '/702f9d6f_2e64_4328_bca9_ffe91509469c/0qrete_akgz8d7cmky0kgflh_330.rem' has been disconnected or does not exist at the server.

Microsoft.PowerShell.Commands.WriteErrorException: > at System.IDisposable.Dispose()

Microsoft.PowerShell.Commands.WriteErrorException: > ck.Common.TestsRunner.Lib.SandboxExecuter.ExecuteSandboxedTests(String sessionID, AppDomain appDomain, String assembly, CancelState cancelState, TestsSessions tests, String[] coveredAssemblies)

Microsoft.PowerShell.Commands.WriteErrorException: > at Typemock.Common.TestsRunner.Lib.SandboxExecuter.ExecuteAssemblyTestsImpl(String sessionID, String assembly, CancelState cancelState, TestsSessions tests, AppDomain appDomain, String[] coveredAssemblies)

Microsoft.PowerShell.Commands.WriteErrorException: > at Typemock.Common.TestsRunner.Lib.AssemblyTestsExecuter.ExecuteAssemblyTests(String sessionID, String assembly, CancelState cancelState, TestsSessions tests, AppDomain appDomain, String[] coveredAssemblies)

Microsoft.PowerShell.Commands.WriteErrorException: > at Typemo

Microsoft.PowerShell.Commands.WriteErrorException: > at Typemock.Common.TestsRunner.Lib.TestRunnerService.ExecuteAssemblyTests(String sessionID, AppDomainBuilder appDomainBuilder, String assembly, CancelState cancelState, TestsSessions tests, String[] coveredAssemblies)

Microsoft.PowerShell.Commands.WriteErrorException: > at Typemock.Common.TestsRunner.Lib.TestRunnerService.ExecuteAssemblyTests(String sessionID, String assembly, CancelState cancelState, TestsSessions tests, AppDomain appDomain, String[] coveredAssemblies)

Microsoft.PowerShell.Commands.WriteErrorException: > Coverage memory allocator task crashed:

Microsoft.PowerShell.Commands.WriteErrorException: > System.Threading.ThreadAbortException: Thread was being aborted.

Test Results

Total tests: 2100

Passed: 2100

Failed: 0

Pass percentage: 100%

Total run duration: 0:00:01.343

asked by peter.riley (600 points)

1 Answer

0 votes
Hey Peter,

What version of TFS are you using?

In addition, could you please upload an image of the Typemock\'s task setting in the build definition?

Cheers
answered by CoralTypemock (940 points)

TFS 2017 on Site.

We are seeing a new and similar issue now. These were working before upgrading to Typemock 8.9

The tests still all pass but with a lot of errors:

67 error(s), 99 warning(s)

Build - 67 error(s), 99 warning(s)

The build has been canceled by Riley, Peter (RIS-EGE).

Microsoft.PowerShell.Commands.WriteErrorException: Typemock SmartRunner Failed

Microsoft.PowerShell.Commands.WriteErrorException: > Cannot load 32 bit assembly on 64 bit runner, please change architecture (Typemock Options->SmartRunner)

Microsoft.PowerShell.Commands.WriteErrorException: > cannot load D:sts-agent-x64-2.117.2_worksFinancialsMainFEDLoadDownloadTypemockRBI.UK.BA.FEDLoad.Download.WorkflowUnitTestsobjReleaseRBI

Microsoft.PowerShell.Commands.WriteErrorException: > .UK.BA.FEDLoad.Download.WorkflowUnitTests.dll exception thrown System.IO.FileNotFoundException: Could not load file or assembly 'Typemock.ArrangeActAssert, Version=8.9.2.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2' or one of its dependencies. The system cannot find the file specified.

Microsoft.PowerShell.Commands.WriteErrorException: > File name: 'Typemock.ArrangeActAssert, Version=8.9.2.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2'

Microsoft.PowerShell.Commands.WriteErrorException: > at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)

Microsoft.PowerShell.Commands.WriteErrorException: > at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)

Microsoft.PowerShell.Commands.WriteErrorException: > at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)

Microsoft.PowerShell.Commands.WriteErrorException: > at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)

Microsoft.PowerShell.Commands.WriteErrorException: > at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)

Microsoft.PowerShell.Commands.WriteErrorException: > at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)

The operation was canceled.

Test Results

Total tests: 5

Passed: 5

Failed: 0

Pass percentage: 100%

Total run duration: 0:00:00

Hi Peter,

Thank you for contacting us.

Can you please share with me screenshots of your configuration build.

Cheers,

Alon Sapozhnikov

Support Specialist

...