Skip to content

Clarify Helix Job Monitor wait status - #17479

Merged
premun merged 1 commit into
mainfrom
lewing-fix-job-monitor-hang
Sep 3, 2026
Merged

premun merged 1 commit into
mainfrom
lewing-fix-job-monitor-hang

Conversation

@lewing

@lewing lewing commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

  • distinguish Helix job and work-item progress from Azure DevOps job progress
  • show completed, running, and waiting Azure DevOps job counts
  • list up to ten unfinished Azure DevOps jobs when Helix work is complete but pipeline jobs still gate monitor completion

Testing

  • dotnet test Microsoft.DotNet.Helix.Sdk.Tests.csproj --configuration Release --filter FullyQualifiedName~JobMonitorRunnerTests (97 passed)

Fixes #17478

Fixes #17478

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 764989e3-aa21-4883-80b9-86650b24ac6a
@lewing
lewing requested review from mmitche and a lite review from Copilot September 3, 2026 01:10

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.

🟢 Approval recommended

The changes are localized to status reporting/plumbing, align with the linked issue requirements, and are covered by updated and new unit tests.

Pull request overview

This PR improves Helix Job Monitor status reporting so users can see when the monitor is gated by pending Azure DevOps (AzDO) pipeline jobs even after all Helix work has finished, addressing the “0 running / 0 waiting jobs” confusion described in #17478.

Changes:

  • Updates periodic status output to explicitly separate Helix job, Helix work item, and AzDO job progress counts.
  • Adds logic to detect “Helix complete but AzDO still pending” and log a bounded list (up to 10) of unfinished AzDO jobs with their timeline state/result.
  • Extends polling snapshots/plumbing to carry timeline records through to the status reporter, and adds/updates unit tests for the new output.
File summaries
File Description
src/Microsoft.DotNet.Helix/Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests/JobMonitorRunnerTests.cs Updates assertions for the new status prefixes and adds coverage for reporting waiting pipeline jobs after Helix completion.
src/Microsoft.DotNet.Helix/JobMonitor/StatusReporter.cs Adds AzDO job counting and bounded “unfinished pipeline jobs” diagnostics when Helix work is complete but the monitor is still gated by pipeline jobs.
src/Microsoft.DotNet.Helix/JobMonitor/JobMonitorRunner.cs Persists AzDO timeline records in the latest-status snapshot and passes them to the status reporter for richer reporting.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@premun
premun merged commit 2a73320 into main Sep 3, 2026
13 checks passed
@premun
premun deleted the lewing-fix-job-monitor-hang branch September 3, 2026 08:36
@premun

premun commented Sep 3, 2026

Copy link
Copy Markdown
Member

/backport to release/10.0

@premun

premun commented Sep 3, 2026

Copy link
Copy Markdown
Member

/backport to release/11.0

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0 (link to workflow run)

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0 (link to workflow run)

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.

Helix Job Monitor hides pending Azure DevOps jobs from status

3 participants