Repository navigation
Integrate Helix Job Monitor into all Helix-submitting pipelines - #68007
Merged
Merged
Conversation
Adds the Arcade Helix Job Monitor (a dedicated job that polls Helix/AzDO and reports test results, decoupling that from the submitting build agent) to every pipeline that submits Helix work: ci.yml, ci-public.yml (both Subset 1/2 legs), helix-matrix.yml, quarantined-tests.yml, quarantined-pr.yml, and identitymodel-helix-matrix.yml. - Registers Microsoft.DotNet.Helix.JobMonitor (same version already pinned for Microsoft.DotNet.Helix.Sdk) in eng/Version.Details.xml and eng/Version.Details.props. - Adds /p:EnableHelixJobMonitor=true to every Helix-submitting build command so the Helix SDK's SendHelixJob task registers jobs with the monitor. - Adds a new Download_Helix_Job_Monitor job (.azure/pipelines/jobs/download-helix-job-monitor.yml) to each pipeline that downloads the JobMonitor tool nupkg directly from the public dotnet-eng feed and publishes it as a pipeline artifact. This is needed because aspnetcore generates .config/dotnet-tools.json dynamically at build time (eng/tools/GenerateFiles/dotnet-tools.json.in) and it isn't checked into source control, so the monitor job's default "dotnet tool restore" flow has no manifest to restore from on a bare checkout. The download job lets the monitor consume the tool via the template's "toolNupkgArtifactName" bypass parameter instead. - Adds a HelixJobMonitor job (via the vendored /eng/common/core-templates/job/helix-job-monitor.yml template) to each pipeline, depending on the new download job. No dependsOn is needed on the Helix-submitting jobs themselves: the monitor discovers Helix jobs by build source prefix/number and separately polls the AzDO timeline API to know when submission is complete, which is also why it works transparently with aspnetcore's split Subset 1/Subset 2 pattern. - Adds a shared HelixJobMonitorVersion variable (.azure/pipelines/variables/helix-job-monitor.yml) to keep the pinned tool version in sync with eng/Version.Details.xml without duplicating it in every pipeline file. This is unvalidated by a live CI run; recommend running a PR build on this branch (or the resulting PR itself) across all affected pipelines before merging. Co-authored-by: Copilot <[email protected]>
3 tasks
- Check in .config/dotnet-tools.json as a static, darc-managed manifest instead of generating it at build time. darc/Maestro treats this file as a first-class version file (same tier as Version.Details.props and global.json) for both regular dependency-flow subscriptions and VMR codeflow, auto-updating any tool entry whose name matches a tracked Dependency in Version.Details.xml. This lets the Helix Job Monitor tool version (and dotnet-ef) stay in sync automatically going forward. - Remove the download-helix-job-monitor.yml workaround and its HelixJobMonitorVersion variable file, now that the checked-in manifest lets the Arcade helix-job-monitor.yml template's default dotnet tool restore flow work out of the box. This also avoids the 1ES SDL PublishPipelineArtifact restriction that the workaround would have hit in ci.yml/identitymodel-helix-matrix.yml. - Add Helix Job Monitor wiring to two pipelines that were missed in the initial pass: ci-unofficial.yml and template-tests-pr.yml. - Revert Helix Job Monitor wiring in quarantined-tests.yml and quarantined-pr.yml. Those pipelines rely on continueOnError: true to tolerate known/expected quarantined test failures, but EnableHelixJobMonitor=true makes the submit step return immediately after submission, moving pass/fail determination to the HelixJobMonitor job, which has no continueOnError equivalent exposed by the vendored template. Keeping these two pipelines on the pre-existing behavior avoids turning expected quarantine failures into build failures. Co-authored-by: Copilot <[email protected]>
Member
Author
|
Blocked on dotnet/arcade#17200 |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR integrates Arcade’s Helix Job Monitor into ASP.NET Core Azure Pipelines that submit Helix work, so test result reporting is handled by a dedicated polling job rather than the submitting build agent.
Changes:
- Adds
Microsoft.DotNet.Helix.JobMonitoras a tracked dependency and version property ineng/Version.Details.*. - Switches
.config/dotnet-tools.jsonto a checked-in tool manifest (and adds the Job Monitor tool) so the monitor template can usedotnet tool restoreon a clean checkout. - Enables the monitor flow across multiple Helix-submitting pipelines by setting
/p:EnableHelixJobMonitor=trueand adding thehelix-job-monitor.ymljob template.
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| eng/Version.Details.xml | Adds the Job Monitor package as a tracked dependency. |
| eng/Version.Details.props | Adds generated version properties for the Job Monitor package. |
| eng/tools/GenerateFiles/GenerateFiles.csproj | Stops generating .config/dotnet-tools.json during build-time file generation. |
| .gitignore | Stops ignoring .config/dotnet-tools.json so it can be checked in. |
| .config/dotnet-tools.json | Makes the tool manifest static and adds the Helix Job Monitor tool entry. |
| .azure/pipelines/template-tests-pr.yml | Enables job monitor integration for template Helix submissions and adds the monitor job. |
| .azure/pipelines/identitymodel-helix-matrix.yml | Enables job monitor integration and adds the monitor job to the IdentityModel Helix matrix pipeline. |
| .azure/pipelines/helix-matrix.yml | Enables job monitor integration and adds the monitor job to the full Helix matrix pipeline. |
| .azure/pipelines/ci.yml | Enables job monitor integration for Helix Subset 1/2 submissions and adds a shared monitor job. |
| .azure/pipelines/ci-unofficial.yml | Enables job monitor integration for Helix Subset 1/2 submissions and adds a shared monitor job. |
| .azure/pipelines/ci-public.yml | Enables job monitor integration for Helix Subset 1/2 submissions and adds a shared monitor job. |
Comments suppressed due to low confidence (1)
.config/dotnet-tools.json:34
- The dotnet tool manifest key is lower-cased ("microsoft.dotnet.helix.jobmonitor") while the package ID used elsewhere (and the dependency name in Version.Details.xml) is "Microsoft.DotNet.Helix.JobMonitor". NuGet IDs are case-insensitive, but automation that matches tool entries to dependencies can be case-sensitive; using the canonical casing reduces the risk of missed darc/Maestro updates and keeps the manifest consistent with the job-monitor template defaults.
…onitor Co-authored-by: Copilot <[email protected]>
…ls.props microsoft.dotnet.helix.jobmonitor and dotnet-ef were still pinned to the pre-merge 26365.101 build. The stale jobmonitor tool doesn't support the --use-fully-qualified-test-name and --stage-attempt arguments added to eng/common/core-templates/job/helix-job-monitor.yml, causing the Monitor Helix Jobs CI step to fail with 'Unrecognized command or argument'. Co-authored-by: Copilot <[email protected]>
Youssef1313
reviewed
Aug 4, 2026
Youssef1313
reviewed
Aug 4, 2026
Youssef1313
reviewed
Aug 4, 2026
Youssef1313
approved these changes
Aug 4, 2026
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 Arcade Helix Job Monitor into pipelines that submit Helix work, modeled on dotnet/sdk#54583. The monitor is a dedicated job that polls Helix/AzDO and reports test results, decoupling that reporting from the build agent that submitted the work.
Pipelines updated:
.azure/pipelines/ci.yml(Helix_x64_Subset_1 / Helix_x64_Subset_2).azure/pipelines/ci-public.yml(Helix_x64_Subset_1 / Helix_x64_Subset_2).azure/pipelines/ci-unofficial.yml(Helix_x64_Subset_1 / Helix_x64_Subset_2).azure/pipelines/helix-matrix.yml.azure/pipelines/identitymodel-helix-matrix.yml.azure/pipelines/template-tests-pr.ymlNot updated (deliberately excluded):
.azure/pipelines/quarantined-tests.ymland.azure/pipelines/quarantined-pr.ymlrely oncontinueOnError: trueto tolerate known/expected quarantined test failures.EnableHelixJobMonitor=truemakes the submit step return immediately after submission, moving pass/fail determination to theHelixJobMonitorjob, which has nocontinueOnErrorequivalent exposed by the vendored template (job-list templates can't have extra properties merged in at the call site). Enabling the monitor there would turn expected quarantine failures into build failures, so these two pipelines keep their current behavior.Changes
Microsoft.DotNet.Helix.JobMonitorineng/Version.Details.xml/eng/Version.Details.props, at the same version already pinned forMicrosoft.DotNet.Helix.Sdk(11.0.0-beta.26365.101) — no Arcade/Helix SDK version bump needed./p:EnableHelixJobMonitor=trueto every Helix-submitting build command in the pipelines above, so the Helix SDK'sSendHelixJobtask registers jobs with the monitor.HelixJobMonitorjob (via the vendored/eng/common/core-templates/job/helix-job-monitor.ymltemplate) to each pipeline. NodependsOnon the Helix-submitting jobs is needed — the monitor discovers Helix jobs by build source prefix/number and separately polls the AzDO timeline API to know when submission across all jobs is complete. This is also why it works transparently with aspnetcore's split Subset 1 / Subset 2 pattern: multiple parallel submitter jobs feed one shared monitor..config/dotnet-tools.jsonfrom a build-time-generated file (previously templated fromeng/tools/GenerateFiles/dotnet-tools.json.inand gitignored) into a static, checked-in manifest, adding amicrosoft.dotnet.helix.jobmonitortool entry. This lets the monitor template's defaultdotnet tool restorecode path work directly against a bare checkout, with no extra artifact-download workaround needed..config/dotnet-tools.jsonas a first-class version file (same tier asVersion.Details.props/global.json) for both regular dependency-flow subscriptions and VMR codeflow: it auto-updates any tool entry whose name matches a tracked<Dependency>inVersion.Details.xml(confirmed indotnet/arcade-services'DependencyFileManager.UpdateDotNetToolsManifest, and via dotnet/sdk#54716, which relocated sdk's manifest to this exact path "for darc compatibility"). This meansdotnet-efandMicrosoft.DotNet.Helix.JobMonitorwill now stay in sync automatically going forward;dotnet-dump,dotnet-serve, andMicrosoft.Playwright.CLIare not Maestro-tracked dependencies and still require manual version bumps, same as before this change.