I have a CI/CD set up on Azure DevOps. When I run unit tests on the CI, everything works fine. For some specific hardware needs, I have set up a local agent on a computer to run the same tests, the thing is, as title says, it randomly (i.e. not every run) crashes with the message “The active test run was aborted. Reason: Test host process crashed” and nothing more, no stack, no exception, nothing. It doesn’t even break the test run, it runs more tests after that according to logs.
I’m using the feature “Releases” in ADO “Pipelines”. The generated YAML for my test run looks like this :
steps:
- task: VSTest@3
displayName: 'Tests run'
inputs:
testAssemblyVer2: '***Tests.dll'
vsTestVersion: toolsInstaller
runInParallel: false
publishRunAttachments: false
rerunFailedTests: false
continueOnError: true
At this point I’d just like some help to add logs to be able to find the issue, thanks in advance.
For an idea about the volume of tests, I have ~1500 tests running as expected in ~20 dlls and two dlls are failing from time to time, always the same.
What I tried so far :
- I had a look at the windows logs on the local computer but found nothing.
- I ran the very same tests through Visual Studio they all run smoothly multiple times.
- I tried to play with the settings in the Pipeline/Release task (parallel or not, isolated or not…), nothing changed.
- I ran the tests locally through Powershell using the same generated query (
vstest.console.exe [myTests.dll]
) and no error either.