DataDog / dd-trace-dotnet

.NET Client Library for Datadog APM
https://docs.datadoghq.com/tracing/
Apache License 2.0
449 stars 141 forks source link

`dd-trace ci run` hangs on GitHub Actions in Ubuntu 20.04 #3826

Closed cdhunt closed 1 year ago

cdhunt commented 1 year ago

Describe the bug

We are attempting to use dd-trace to instrument xunit tests in dotnet in a GitHub Actions Ubuntu 20.04 runner. This has worked perfectly for us in CircleCI, but in GitHub Actions, the task gets stuck when invoking dd-trace ci run. There is no output, even with debugging enabled. The task just hangs indefinitely. It works fine running locally on MacOS as well.

To Reproduce Steps to reproduce the behavior:

  1. Follow documentation

Expected behavior Should run dotnet test

Runtime environment (please complete the following information):

Additional context It works after downgrading to version 2.22.

tonyredondo commented 1 year ago

Hi, sorry to hear that.

Can you share the dd-trace logs to check what's causing the hang. If you cannot share it due to sensitive data you can open a support ticket with the zip file.

To extract the logs from the github action you can do the following steps before running the dd-trace command:

  1. Ensure to set the DD_TRACE_DEBUG environment variable to true. (Sample)
  2. Create the log folder and ensure write permissions for the dd-trace tool, by running: https://github.com/tonyredondo/HeavyTest/blob/6897c91d5161d951c91dd6824950d7e0be94979e/.github/workflows/dotnet.yml#L33-L36

After the dd-trace command execution ensure to upload the logs as an artifact by using: https://github.com/tonyredondo/HeavyTest/blob/6897c91d5161d951c91dd6824950d7e0be94979e/.github/workflows/dotnet.yml#L53-L57

Run the action and download the zip folder with the logs from the Summary tab.

Because it is getting stuck you can use the timeout-minutes limit in the dd-trace step to cancel it.

andrewlock commented 1 year ago

Closing this as no response, feel free to reopen if you still have the issue!