Skip to content

--blame-hang does not create dumps #4351

Closed

Description

Description

On our Azure DevOps Server we have a pipeline, which executes some automated tests. Currently, there's a test, which always hangs. Here's our dotnet call:

C:\AzAgent\_work\_tool\dotnet\dotnet.exe test --logger trx --results-directory C:\AzAgent\_work\_temp C:\AzAgent\_work\42\b\Assembly1.Test.dll C:\AzAgent\_work\42\b\Assembly2.Test.dll C:\AzAgent\_work\42\b\Assembly3.Test.dll --filter TestCategory!=PerformanceMeasurement --settings C:\AzAgent\_work\42\b\.runsettings --blame-crash --blame-crash-dump-type full --blame-hang --blame-hang-dump-type full --blame-hang-timeout 60m --verbosity Normal

Expected behavior

Because we are using the options --blame-hang --blame-hang-dump-type full --blame-hang-timeout 60m we would expect a dump to be created in our TestResults directory. Unfortunately, there's just a Sequence.xml, but no dump file.

I found the following lines in the log:

The active test run was aborted. Reason: Test host process crashed
Data collector 'Blame' message: The specified inactivity time of 60 minutes has elapsed. Collecting hang dumps from testhost and its child processes.

While reading another issue posted here I noticed, they had another line in their log, which I couldn't find in my log:

Data collector 'Blame' message: Dumping 13360 - dotnet.

Here's our .runsettings:

<RunSettings>
  <RunConfiguration>
    <!-- Run tests parallel using all cores on the machine -->
    <MaxCpuCount>0</MaxCpuCount>
  </RunConfiguration>
  <!-- MSTest adapter -->
  <MSTest>
    <MapInconclusiveToFailed>True</MapInconclusiveToFailed>
    <MapNotRunnableToFailed>True</MapNotRunnableToFailed>
    <CaptureTraceOutput>True</CaptureTraceOutput>
    <DeleteDeploymentDirectoryAfterTestRunIsComplete>False</DeleteDeploymentDirectoryAfterTestRunIsComplete>
    <DeploymentEnabled>False</DeploymentEnabled>
  </MSTest>
  <TestRunParameters>
    <Parameter name="UseExtendedEFCoreLogging" value="true" />
    <Parameter name="DbExecutionStrategyAutoRetryCount" value="5" />
    <Parameter name="DbExecutionStrategySupportConnectionClosingExceptions" value="true" />
    <Parameter name="ServerName" value="v-sql2019d-ut" />
    <Parameter name="BuildDefinitionName" value="Current.Release" />
    <Parameter name="BuildNumber" value="162063" />
  </TestRunParameters>
</RunSettings>

Environment

  • Windows Server 2022 Standard
  • .NET 7.0
  • Environment variables:
    • PROCDUMP_PATH: C:\ProcDump
    • VSTEST_DUMP_FORCEPROCDUMP: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions