Skip to content

How to upload crash dump files to Azure Devops when running DotNetCoreCLI@2 test #19307

Open
@groogiam

Description

Task name

DotNetCoreCLI@2

Task version

No response

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows 10

Question

I am trying to trouble shoot some issue with my CI unit tests hanging.

I have added the following arguments to my task


--blame-hang-timeout 120s --blame-hang-dump-type full --blame-crash-dump-type full

When a hang occurs I get the following output from the pipeline.

Attachments:
  C:\agent\agent_name\_work\_temp\randomguid\testhost_11800_20231120T113328_hangdump.dmp

However this file is deleted after the tasks completes and I do not see it in azure dev ops anywhere. Is there a way to preserve the dump file and upload it as an artifact or to the test results panel so I can investigate the cause of the hang.

Thanks.

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