PublishTestResults suddenly started failing
See original GitHub issueRequired Information
Enter Task Name: PublishTestResults
Environment
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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:18
- Comments:23 (5 by maintainers)
Top Results From Across the Web
Publish test results does not fail pipeline when publishing ...
Hi,. I noticed this issue in two of my CI pipelines that use the "Publish Test Results" task. The "Fail if there are...
Read more >PublishTestResults@2 - Publish Test Results v2 task
When this boolean's value is true , the task will fail if any of the tests in the results file are marked as...
Read more >Publish Test Results step fails on "No Result Found to Publish ...
I have an Azure DevOps pipeline that runs some Postman tests with newman, then publishes the test results to a JUnit XML file....
Read more >Chapter 5 - Publishing Results in Pipeline
... Failing Tests · Chapter 11 - Multi-Stage YAML Pipeline. Transcripted Summary. In this chapter, we'll see how to publish test results in...
Read more >Publish test results ran on a K8s pod : r/azuredevops - Reddit
How can I specify that the task does not fail just because a test failed? ... So I created an AzureCLI task to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.*.