Skip to content

Integrate Helix Job Monitor into all Helix-submitting pipelines - #68007

Merged
wtgodbe merged 5 commits into
dotnet:mainfrom
wtgodbe:wtgodbe/helix-job-monitor
Aug 4, 2026
Merged

wtgodbe merged 5 commits into
dotnet:mainfrom
wtgodbe:wtgodbe/helix-job-monitor

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Jul 24, 2026 •

Copy link
Copy Markdown
Member

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.yml

Not updated (deliberately excluded): .azure/pipelines/quarantined-tests.yml and .azure/pipelines/quarantined-pr.yml rely on continueOnError: true to tolerate known/expected quarantined test failures. 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 (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

  • Registers Microsoft.DotNet.Helix.JobMonitor in eng/Version.Details.xml / eng/Version.Details.props, at the same version already pinned for Microsoft.DotNet.Helix.Sdk (11.0.0-beta.26365.101) — no Arcade/Helix SDK version bump needed.
  • Adds /p:EnableHelixJobMonitor=true to every Helix-submitting build command in the pipelines above, so the Helix SDK's SendHelixJob task registers jobs with the monitor.
  • Adds a HelixJobMonitor job (via the vendored /eng/common/core-templates/job/helix-job-monitor.yml template) to each pipeline. No dependsOn on 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.
  • Converts .config/dotnet-tools.json from a build-time-generated file (previously templated from eng/tools/GenerateFiles/dotnet-tools.json.in and gitignored) into a static, checked-in manifest, adding a microsoft.dotnet.helix.jobmonitor tool entry. This lets the monitor template's default dotnet tool restore code path work directly against a bare checkout, with no extra artifact-download workaround needed.
    • darc/Maestro treats .config/dotnet-tools.json as a first-class version file (same tier as Version.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> in Version.Details.xml (confirmed in dotnet/arcade-services' DependencyFileManager.UpdateDotNetToolsManifest, and via dotnet/sdk#54716, which relocated sdk's manifest to this exact path "for darc compatibility"). This means dotnet-ef and Microsoft.DotNet.Helix.JobMonitor will now stay in sync automatically going forward; dotnet-dump, dotnet-serve, and Microsoft.Playwright.CLI are not Maestro-tracked dependencies and still require manual version bumps, same as before this change.

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]>
Will Godbe and others added 2 commits July 24, 2026 12:57
- 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]>
@wtgodbe

wtgodbe commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

Blocked on dotnet/arcade#17200

@wtgodbe
wtgodbe marked this pull request as ready for review July 27, 2026 18:54
@wtgodbe
wtgodbe requested a review from a team as a code owner July 27, 2026 18:54
Copilot AI review requested due to automatic review settings July 27, 2026 18:54

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

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.JobMonitor as a tracked dependency and version property in eng/Version.Details.*.
  • Switches .config/dotnet-tools.json to a checked-in tool manifest (and adds the Job Monitor tool) so the monitor template can use dotnet tool restore on a clean checkout.
  • Enables the monitor flow across multiple Helix-submitting pipelines by setting /p:EnableHelixJobMonitor=true and adding the helix-job-monitor.yml job 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.

Will Godbe and others added 2 commits August 3, 2026 09:10
…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]>
@wtgodbe
wtgodbe requested a review from Youssef1313 August 4, 2026 15:47
Comment thread .config/dotnet-tools.json Resolved
Comment thread .gitignore Resolved
@wtgodbe
wtgodbe merged commit 28dd8a5 into dotnet:main Aug 4, 2026
29 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Aug 6, 2026
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