question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PublishTestResults suddenly started failing

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
igor-a-yastrebovcommented, Jan 27, 2020

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

working 😃)))

4reactions
igor-a-yastrebovcommented, Jan 27, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found