azure-pipelines-tasks: PublishTestResults suddenly started failing

Required Information

Enter Task Name: PublishTestResults

Environment

https://dev.azure.com/Barsonax/Singularity/_build/results?buildId=795&view=logs&j=7e6a3fb7-dbfe-5169-4db8-92b72295ba6c&t=00c071ac-73ed-5f49-e7cf-e21abc5fcfbb

Issue Description

This task suddenly started to fail. I tried to rerun the build but it failed again. A couple of hours ago this still worked. It seems that results.publishtoevidencestore is no longer a valid command but the PublishTestResults still uses this.

Task logs

##[section]Starting: PublishTestResults
==============================================================================
Task         : Publish Test Results
Description  : Publish test results to Azure Pipelines
Version      : 2.162.2
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-test-results
==============================================================================
[command]"C:\Program Files\dotnet\dotnet.exe" --version
3.1.100
[command]d:\a\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.162.2\modules\TestResultsPublisher.exe @d:\a\_temp\085f8250-4080-11ea-8c43-c9a11cfb16cf.txt
No build level attachments to publish.
Result Attachments will be stored in LogStore
Run Attachments will be stored in LogStore
Publishing test results to test run '1001200'.
TestResults To Publish 582, Test run id:1001200
Test results publishing 582, remaining: 0. Test run id: 1001200
Published Test Run : https://dev.azure.com/Barsonax/Singularity/_TestManagement/Runs?runId=1001200&_a=runCharts.
##[error]Unable to process command '##vso[results.publishtoevidencestore name=PublishTestResults;testrunner=VSTest;testrunsummary={"Total":582,"Failed":0,"Passed":582,"Skipped":0};description=Test Results published from Publish Test Results tool;]' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)
##[error]##vso[results.publishtoevidencestore] is not a recognized command for Task command extension. TODO: DOC aka link
##[section]Finishing: PublishTestResults

Error logs

##[error]##vso[results.publishtoevidencestore] is not a recognized command for Task command extension. TODO: DOC aka link
##[section]Finishing: PublishTestResults

image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 18
  • Comments: 23 (5 by maintainers)

Commits related to this issue

Most upvoted comments

just re-tested with Hosted Agent: Agent is on 2.163.1 version still PublishTestResults is on 2.162.2

working 😃)))

There is another workaround: downgrade the task from 2.* into 1.*.

Note that this is also affecting Microsoft-Hosted agents which cannot be updated manually.

I have started on rolling out the workaround it might take another 5 to 6 hours. But updating to the agent versions 2.164.* should fix the issue.

Sorry for the inconvenience.

Wait that doesn’t help - still on 2.163.1. Creating a new agent also offers only 2.163.1 so you may need to use this link: https://vstsagentpackage.azureedge.net/agent/2.164.1/vsts-agent-win-x64-2.164.1.zip

I can also confirm that it’s working again.

It’s working again. 👍