Repository navigation
JobMonitor: Fix gathering test results in Helix MonoQueue post-commands - #16936
Merged
premun merged 1 commit intoJun 2, 2026
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
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 afind ... | xargs ... sh -cpipeline for gathering test result files on POSIX shells. - Escaped
$(dirname ...)as$$(dirname ...)so MSBuild doesn’t treat it as an MSBuild property reference.
premun
enabled auto-merge (squash)
June 2, 2026 13:51
mmitche
approved these changes
Jun 2, 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use
xargswithsh -cinstead of awhile-readloop inHelixPostCommandsto gather test result files (.trx,testResults.xml, etc.) intoHELIX_WORKITEM_UPLOAD_ROOT.The
dirnamesubshell is escaped as$$(dirname ...)so MSBuild does not consume the$(...)as a property reference.Split out of #16879.