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.

.NetCore: Test - Failed to upload file *.trx

See original GitHub issue

Question, Bug, or Feature?
Type: Bug

Enter Task Name: .NET Core. Command: test

Environment

  • Server - Azure Pipelines or TFS on-premises? Azure DevOps Services - Azure Pipelines

  • If using Azure Pipelines, provide the account name, team project name, build definition name/build number: account/org: bstglobal team project name: Horizon Build definition: hz-api-people #20200415.6 (new warning) #20200409.7 (no warning

  • Agent - Hosted or Private: Hosted

    • If using Hosted agent, provide agent queue name: ubuntu-latest

Issue Description

.NetCore - test We are receiving a new warning over the weekend with no new code change. Seems that the hosted agent might be missing a file?

Task logs

logs attached logs_5189.zip

Error logs

##[warning]Failed to upload file _fv-az151_2020-04-14_17_38_33.trx to Blob , exception message System.DllNotFoundException: Unable to load shared library 'advapi32.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libadvapi32.dll: cannot open shared object file: No such file or directory at Microsoft.TeamFoundation.TestClient.PublishTestResults.TestLogStore._executeWithRetry(Func1 action, Func1 actionWithRename, Func1 actionOnSasExpiry, Boolean allowDuplicate, Boolean allowRetryOnNetworkingError, TelemetryTracker telemetryTracker) at Microsoft.TeamFoundation.TestClient.PublishTestResults.TestLogStore.UploadInternalAsync(Guid projectId, TestLogScope scope, Int32 buildId, Int32 runId, String logFileSourcePath, Stream stream, String fileName, TestLogType logType, Int32 testResultId, Int32 testSubResultId, Dictionary2 metaData, TelemetryTracker telTracker, Boolean allowDuplicate, TestLogCompressionType logCompressionType, String originalFileContentType) Failed to upload run logs to LogStore, Trying to upload to FileService

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
X-Guardiancommented, Apr 18, 2020

Very similar issue here with the PublishTestResults task on the hosted ‘ubuntu 16.04’ and ‘macos-latest’ hosted vm images:

0reactions
deepanshuvermacommented, Sep 18, 2020

The issue is still there for us in our pipelines, could you please share if anything we need to change on our side to get the fix. @shailesh-sk @bishal-pdMSFT

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dotnet core trx test report parsing error in azure devops
Writing this up based on Mickaël Caro's feedback from this post Doing static code analysis with Azure DevOps. I've been trying to experiment ......
Read more >
Code coverage and test results for .NET Core projects in VSTS
This is half an answer (as I'm not a fan of code coverage). First get dotnet test to output a trx file with...
Read more >
Visual Studio Test Task in release pipeline hangs on upload ...
VS Test step throws a warning/error when trying to publish the test result (.trx file) during a release pipline. Execution of the test...
Read more >
PublishTestResults@2 - Publish Test Results v2 task
publishRunAttachments - Upload test results files ... Test task and Dot NetCore CLI task automatically publish test results to the pipeline.
Read more >
File Upload in ASP.NET Core 6 - Detailed Guide
What is multipart/form-data? Run & Test the Code. Upload Large File with Streaming. Add Service; Add Controller; Add View; Run & Test the...
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