Repository navigation
Integrate Helix Job Monitor into CI and PR pipelines - #54583
Merged
Merged
Conversation
- Register microsoft.dotnet.helix.jobmonitor as a local .NET tool in dotnet-tools.json (v11.0.0-beta.26277.111) - Add toolset dependency in eng/Version.Details.xml sourced from the VMR at the same version and SHA as other arcade toolset dependencies - Add /p:EnableHelixJobMonitor=true to Helix test submission steps so build agents submit jobs and exit immediately instead of blocking - Rename test steps from 'Run Tests' to 'Queue Tests' to accurately reflect that the step only submits work; results are published by the monitor job - Add HelixJobMonitor job to .vsts-pr.yml (public, 120-min timeout) - Add HelixJobMonitor job to .vsts-ci.yml (internal, with HelixApiAccessToken, gated on the same condition as other test-build jobs) Co-authored-by: Copilot <[email protected]>
- Remove category name substitution from Queue Tests display name - Remove redundant condition: succeeded() from both Queue Tests steps - Bump Microsoft.DotNet.Arcade.Sdk and Microsoft.DotNet.Helix.Sdk in global.json from 26261.101 to 26277.111 to match Version.Details.xml and enable EnableHelixJobMonitor support Co-authored-by: Copilot <[email protected]>
Remove the explicit 120-minute timeout override from both PR and CI pipelines so the arcade template default of 360 minutes is used. The previous value was too short for the full pipeline to complete and publish all test results. Also update the Helix Job Monitor tool to 11.0.0-beta.26303.111 to pick up bug fixes. Co-authored-by: Copilot <[email protected]>
The longest observed work item across recent CI runs is ~33 minutes (BlazorWebAssembly.Tests.dll.1 on Windows FullFramework). A 60-minute timeout provides ~1.8x headroom while reducing wasted Helix machine time for genuinely hung test processes. Co-authored-by: Copilot <[email protected]>
The build step already restores all test projects via sdk.slnx, so the test queuing step's -restore flag was causing a redundant sequential NuGet restore of 200+ test projects. The Helix SDK is resolved via global.json (no NuGet restore needed), and RID-specific restores are already handled inside BuildSDKCustomXUnitProjects unconditionally. This eliminates: - Sequential evaluation/restore of 200+ already-restored test projects - Redundant shared framework installs from eng/restore-toolset.ps1 - Redundant native tools initialization Co-authored-by: Copilot <[email protected]>
CleanOutStage0ToolsetsAndRuntimes uses DOTNET_INSTALL_DIR which is only initialized when InitializeDotNetCli runs during restore. When -restore is not passed (e.g., the Queue Tests step which only runs -test), the variable is unbound and build.sh's 'set -u' causes a failure. Guard the call with the same restore check used by InitializeCustomSDKToolset. Co-authored-by: Copilot <[email protected]>
This reverts commit e6cd2f0.
This reverts commit ad90f67.
premun
reviewed
Jun 5, 2026
1 task done
Places the Monitor Helix Jobs job first in the pipeline so it appears at a predictable position in the AzDO UI — making it easy to check test progress and failures as they come in. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR integrates the Arcade Helix Job Monitor into the SDK’s Azure DevOps PR/CI pipelines so build agents can submit Helix work and finish early, while a dedicated monitor job waits for Helix completion and publishes test results incrementally.
Changes:
- Adds a Helix Job Monitor job to both PR and CI pipelines and enables “submit-and-exit” behavior for Helix test submission.
- Updates Arcade/Helix SDK versions and adds the job monitor tool as a tracked toolset dependency.
- Reduces Helix xUnit work item timeout from 2 hours to 1 hour.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/UnitTests.proj | Reduces XUnitWorkItemTimeout to limit wasted Helix time on hung work items. |
| global.json | Bumps Arcade/Helix MSBuild SDK versions needed for Helix Job Monitor support. |
| eng/Version.Details.xml | Tracks the Helix Job Monitor tool as a toolset dependency (VMR-sourced). |
| eng/pipelines/templates/jobs/sdk-build.yml | Passes /p:EnableHelixJobMonitor=true so Helix submission queues work and exits immediately; renames steps accordingly. |
| dotnet-tools.json | Registers the Helix Job Monitor as a local tool for restore/run in the monitor job. |
| .vsts-pr.yml | Adds the Helix Job Monitor job to the public PR pipeline. |
| .vsts-ci.yml | Adds the Helix Job Monitor job to the internal CI pipeline (with token). |
mmitche
reviewed
Jun 5, 2026
mmitche
approved these changes
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]>
Member
Author
|
FYI I needed to push one last update to get a new Microsoft.DotNet.Helix.Sdk version in order to pickup dotnet/arcade#16936. |
Member
Author
|
/ba-g all test failures appear related to #54608 |
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.
Summary
Integrates the Helix Job Monitor from arcade into the SDK's CI and PR pipelines.
The monitor is a dedicated pipeline job that polls Helix for jobs associated with the current build, downloads test result artifacts, and publishes results to Azure DevOps incrementally — allowing the original build agents to stop blocking on Helix execution.
Changes
microsoft.dotnet.helix.jobmonitoras a local .NET tool (v11.0.0-beta.26303.111)/p:EnableHelixJobMonitor=trueto both Windows and Linux/macOS Helix test submission steps so agents submit and exit immediately; renames steps fromRun TeststoQueue Teststo accurately reflect behaviorHelixJobMonitorjob (uses arcade template default 360-min timeout, public queues)HelixJobMonitorjob (uses arcade template default 360-min timeout, internal, withHelixApiAccessToken, gated on the same condition as other test-build jobs)XUnitWorkItemTimeoutfrom 2 hours to 1 hour. Analysis of recent CI runs shows the longest work item execution is ~33 minutes (BlazorWebAssembly.Tests.dll on Windows FullFramework); 60 minutes provides ~1.8x headroom while reducing wasted Helix machine time for genuinely hung test processes.Behavior notes
HelixJobMonitorpipeline job is where pass/fail is determined and test results are publishedPublishTestResultsstep is unaffected — it is already gated onpublishXunitResults: truewhich is only set for the non-HelixTestTemplatesCGlocal test jobtimeoutInMinutes.