Skip to content

use --report-azdo instead of Azure DevOps task PublishTestResults - #2012

Draft
Bertk wants to merge 5 commits into
coverlet-coverage:masterfrom
Bertk:MTP-reporting
Draft

use --report-azdo instead of Azure DevOps task PublishTestResults#2012
Bertk wants to merge 5 commits into
coverlet-coverage:masterfrom
Bertk:MTP-reporting

Conversation

@Bertk

@Bertk Bertk commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

use --report-azdo (use Microsoft.Testing.Extensions.AzureDevOpsReport nuget package) instead of Azure DevOps task PublishTestResults@2

see https://devblogs.microsoft.com/dotnet/microsoft-testing-platform-reporting/

@Bertk

Bertk commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator Author

There is a warning message in build log which has to be fixed as well.

##[warning Azure DevOps live publishing failed to create the test run. '<' is an invalid start of a value. Path: $ | LineNumber: 2 | BytePositionInLine: 0.

See closed issue Azure/azure-sdk-for-net#58171. Does not look like a VS2026 issue because this is not used in this context.

@Evangelink Is this a known issue? How can I fix it?

@Evangelink

Copy link
Copy Markdown
Contributor

I'm looking into that now

@Evangelink

Evangelink commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Correction after tracing the pipeline configuration: the Basic header itself is not the demonstrated problem. This PR is a cross-repository build from Bertk/coverlet, and Azure Pipelines is withholding a usable job token from the fork build.

Please enable Make secrets available to builds of forks on the pipeline's pull request validation trigger. Your existing SYSTEM_ACCESSTOKEN: $(System.AccessToken) mapping can stay as-is.

The confusing JSON warning is still a TestFX bug, and I updated microsoft/testfx#10983 accordingly. Azure DevOps returns a 302 sign-in redirect for the unusable token; our HttpClient follows it to an HTML page and then tries to deserialize that page as JSON. We should disable authentication redirects and emit the same actionable fork-build guidance already used by Arcade's Azure DevOps tooling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants