Skip to content

JobMonitor: Fix gathering test results in Helix MonoQueue post-commands - #16936

Merged
premun merged 1 commit into
dotnet:mainfrom
premun:jobmonitor/improve-test-result-gathering
Jun 2, 2026
Merged

premun merged 1 commit into
dotnet:mainfrom
premun:jobmonitor/improve-test-result-gathering

Conversation

@premun

@premun premun commented Jun 2, 2026

Copy link
Copy Markdown
Member

Use xargs with sh -c instead of a while-read loop in HelixPostCommands to gather test result files (.trx, testResults.xml, etc.) into HELIX_WORKITEM_UPLOAD_ROOT.

The dirname subshell is escaped as $$(dirname ...) so MSBuild does not consume the $(...) as a property reference.

Split out of #16879.

Use xargs with sh -c instead of a while-read loop in HelixPostCommands
to gather test result files. The dirname subshell is escaped as
$$(dirname ...) so MSBuild does not consume the $(...) as a property
reference.
Copilot AI review requested due to automatic review settings June 2, 2026 12:25
@premun premun changed the title JobMonitor: Improve gathering test results in Helix MonoQueue post-commands JobMonitor: Fix gathering test results in Helix MonoQueue post-commands Jun 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates Helix MonoQueue HelixPostCommands to more reliably sweep and copy common test result files (e.g., .trx, testResults.xml, JUnit XML) into HELIX_WORKITEM_UPLOAD_ROOT so the standalone JobMonitor can later download/publish them.

Changes:

  • Replaced the find ... | while read ... loop with a find ... | xargs ... sh -c pipeline for gathering test result files on POSIX shells.
  • Escaped $(dirname ...) as $$(dirname ...) so MSBuild doesn’t treat it as an MSBuild property reference.

@premun
premun enabled auto-merge (squash) June 2, 2026 13:51
@premun
premun merged commit 7dbf30d into dotnet:main Jun 2, 2026
15 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 4, 2026
MichaelSimons added a commit to dotnet/sdk that referenced this pull request Jun 5, 2026
Picks up dotnet/arcade#16936 which fixes the HelixPostCommands script
that gathers test result files (.trx) into HELIX_WORKITEM_UPLOAD_ROOT.
The old version used 'read -r -d' (bash-only) which fails with
'Illegal option -d' on POSIX /bin/sh, preventing test results from
being uploaded and published by the monitor.

Co-authored-by: Copilot <[email protected]>
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.

3 participants