Skip to content

[runtime-diagnostics] Workaround for publish test results regression#124859

Merged
max-charlamb merged 4 commits intodotnet:mainfrom
max-charlamb:runtime-diagnostics-publish-fix
Feb 27, 2026
Merged

[runtime-diagnostics] Workaround for publish test results regression#124859
max-charlamb merged 4 commits intodotnet:mainfrom
max-charlamb:runtime-diagnostics-publish-fix

Conversation

@max-charlamb
Copy link
Member

@max-charlamb max-charlamb commented Feb 25, 2026

Regression issue: microsoft/azure-pipelines-tasks#21871

Before:
image

After:
image

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a workaround for a regression in Azure Pipelines' PublishTestResults@2 task version 2.270.0 (tracked in microsoft/azure-pipelines-tasks#21770). The regression causes the task to incorrectly split xUnit test names on all dots, including those within parenthesized test parameters, resulting in garbled test names in the published results.

Changes:

  • Added PowerShell script steps to preprocess xUnit XML files before publishing test results
  • The script uses regex to replace dots with underscores inside parenthesized sections of test names
  • Applied the workaround to both the cDAC and DAC jobs in the runtime-diagnostics pipeline

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Override AllowPtrToDetectTestRunRetryFiles to false at the job level
for the cDAC and DAC jobs, as recommended by the Azure Pipelines team
in microsoft/azure-pipelines-tasks#21871 (comment).

The variable is set to true by the shared Arcade job template
(eng/common/core-templates/job/job.yml). Setting it to false via
jobParameters.variables overrides that default and restores v2.262.0
behavior where parameterized test names containing dots (e.g.
'projectk.sdk.prebuilt.cdac.10.0.2') are not incorrectly split into
hierarchy fragments.

Co-authored-by: Copilot <[email protected]>
@max-charlamb max-charlamb force-pushed the runtime-diagnostics-publish-fix branch from 17c2407 to 56447f1 Compare February 26, 2026 20:05
@max-charlamb max-charlamb reopened this Feb 26, 2026
Copilot AI review requested due to automatic review settings February 26, 2026 21:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@max-charlamb max-charlamb marked this pull request as ready for review February 27, 2026 15:01
@max-charlamb
Copy link
Member Author

/ba-g runtime-diagnostics pipeline change only (previous successful CI run shows workaround success)

@max-charlamb max-charlamb merged commit 7356734 into dotnet:main Feb 27, 2026
68 of 178 checks passed
@max-charlamb max-charlamb deleted the runtime-diagnostics-publish-fix branch February 27, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants