microsoft / azure-pipelines-tasks

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

PublishTestResults task "hangs forever" #17101

Open mastrzyz opened 1 year ago

mastrzyz commented 1 year 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 1 year 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 7 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 7 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 4 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.

TLS566ba commented 2 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 1 month ago

I am also experiencing this same issue.

ekbaramundi commented 2 weeks ago

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