microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.5k stars 2.61k forks source link

PublishTestResults task "hangs forever" #17101

Open mastrzyz opened 2 years ago

mastrzyz commented 2 years ago

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: PublishTestResults -> Version 2.210.0

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

Issue Description

Intermitently we are seeing the PublishTestResults task "Freeze or Disappear" completely

The task is :

  - task: PublishTestResults@2
    displayName: Publish Test Results
    retryCountOnTaskFailure: 4
    timeoutInMinutes: 30
    inputs:
      testResultsFiles: |
        $(Build.SourcesDirectory)/logs/test-results/unit/unit-tests-report.xml
      testRunTitle: UnitTests_$(System.JobPositionInPhase)
      platform: $(Build.DefinitionName)
      configuration: Tests
    condition: succeededOrFailed()

Keep in mind `timeoutInMinutes

image

Unfortunately, there is nothing here in the logs, even the timeline logs of the pipeline :

image

This happens a couple of times a week for us and is a bit frustrating for our developers as they are not sure what is happening since the build is taking 4+h

mastrzyz commented 2 years ago

Anyone ? this at least happens once a day for us.

initions-david commented 1 year ago

I have the same problem & suspect that it could be due to firewall restrictions, but I'm unsure.

Edit: Setting publishRunAttachments: false fixed the issue for me.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

ChristoWolf commented 1 year ago

Bump.

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

ChristoWolf commented 10 months ago

Bump.

The issue still persists. I also observed it while running tests via dotnet test whenever IO pipes where not fully closed, see #17548.

bwbusacker commented 8 months ago

Bump. We still see this issue even when publishRunAttachments: false is set. This happens only when running on ADO services not when running on local ADO instance.

ghost commented 6 months ago

We have the same problem. For us it seems to happen when the same pipeline is triggered multiple times at the same time.

ovaar commented 4 months ago

I am also experiencing this same issue.

ekbaramundi commented 4 months ago

We also still experiencing this problem in Azure DevOps Online with VSS building Agents.