PublishTestResults@2 version 2.170.0 fails to upload tasks due to missing PTR_TEST_RUNSUMMARY.json file
See original GitHub issueQuestion, Bug, or Feature?
Bug
Enter Task Name: PublishTestResults@2
Environment
-
Server - Azure Pipelines
- If using Azure Pipelines, provide the account name, team project name, build definition name/build number: Account: MQAutomate Team Project Name: MOSAIQLab Build Definition Name: Prereq Test Build number - all
-
Agent - Private (VM Environment) on Windows Servers:
Issue Description
Task version 2.170.0
fails to upload tasks, even though it completes successfully.
“Normal” log:
C:\azagent\A1\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.170.0\modules\TestResultsPublisher.exe @C:\azagent\A1\_work\_temp\40166ab0-a773-11ea-b9d3-91ff84b586bc.txt
Finishing: Upload test reports
With diagnostic logs on, we see the following:
##[debug]Exit code 2148734720 received from tool 'C:\azagent\A1\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.170.0\modules\TestResultsPublisher.exe'
##[debug]STDIO streams have closed for tool 'C:\azagent\A1\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.170.0\modules\TestResultsPublisher.exe'
##[debug]Exit code of TestResultsPublisher: 2148734720
##[debug]Agent.Version=2.169.1
##[debug]Agent.TempDirectory=C:\azagent\A1\_work\_temp
##[debug]Unable to publish the test run summary to evidencestore, error details:Error: ENOENT: no such file or directory, open 'C:\azagent\A1\_work\_temp\PTR_TEST_RUNSUMMARY.json'
##[debug]task result: Succeeded
It appears that the code is looking for the PTR_TEST_RUNSUMMARY.json
but this file does not exists. I took a quick scan through the repo and can only find this instance of reading the file - but not where the file is produced.
Task logs
Inline above.
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
No error logs.
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (13 by maintainers)
Top Results From Across the Web
Missing JSON option at Data > New query > From File
There is allegedly an option to import JSON data in XL 2016, but the option is missing in my copy. It isn't there...
Read more >npm "failed to parse json" - Stack Overflow
Mostly, this error is due to a syntax error in package.json file. In my case, the opening curly brace for dependencies object in...
Read more >I've received an "Invalid JSON string" error. What do I do?
An invalid JSON error can occur for many reasons. The most common issue is usually associated with a file upload attempt, and can...
Read more >Unable to import json file with apoc.import.json - Neo4j - 28674
I am able to upload it through apoc.load.json (but the whole ... neo4j version is 4.4.3, APOC version is 4.4.0.2. Thanks for the...
Read more >S2 import ingestion error with property missing | Community
Im trying to import json from S3,S3 connection is success, but ingesion is giving 1 error all the time. and i could not...
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
@navin22 just emailed logs to you
@colindembovsky upgrading to .net framework 4.7.2 should fix the problem. We will update the docs and now closing this issue.