Skip to content

Job Monitor - Fix job chain ID computation - #17325

Merged
premun merged 1 commit into
dotnet:mainfrom
premun:prvysoky/fix-chains
Aug 12, 2026
Merged

premun merged 1 commit into
dotnet:mainfrom
premun:prvysoky/fix-chains

Conversation

@premun

@premun premun commented Aug 12, 2026

Copy link
Copy Markdown
Member

Use the root Helix job name to identify resubmission lineages, preventing independent jobs with the same AzDO submitter and queue from being folded together.

Use the root Helix job name to identify resubmission lineages, preventing independent jobs with the same AzDO submitter and queue from being folded together.
Copilot AI lite review requested due to automatic review settings August 12, 2026 12:55
@premun
premun requested a review from mmitche August 12, 2026 13:01

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

Updates Helix Job Monitor stream/lineage identification to use the root Helix job name from the PreviousHelixJobName chain, avoiding incorrect folding of independent Helix jobs that share the same AzDO submitter and queue.

Changes:

  • Replace submitter+queue-based “chain key” logic with root-Helix-job-based lineage keys in MonitorState.
  • Update retry/outcome reconciliation semantics and related comments to align with the new lineage model.
  • Expand/adjust unit tests and design documentation to cover the corrected behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/Microsoft.DotNet.Helix/Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests/JobMonitorRunnerTests.cs Adds/updates tests for independent-job behavior and adjusts attempt/linkage scenarios.
src/Microsoft.DotNet.Helix/JobMonitor/MonitorState.cs Switches chain key computation to root Helix job lineage and updates grouping/reconciliation.
src/Microsoft.DotNet.Helix/JobMonitor/JobMonitorRunner.Design.md Updates the design doc to define streams via root Helix job lineage rather than submitter+queue.
src/Microsoft.DotNet.Helix/JobMonitor/JobMonitorRunner.cs Updates comments to reflect the new lineage/keying and reconciliation behavior.

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

@premun
premun merged commit 4e948e7 into dotnet:main Aug 12, 2026
10 of 12 checks passed
@premun
premun deleted the prvysoky/fix-chains branch August 12, 2026 14:20
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Aug 13, 2026
Youssef1313 pushed a commit to dotnet/aspnetcore that referenced this pull request Aug 17, 2026
Use the first Arcade build containing dotnet/arcade#17325 so independent Helix jobs on the same queue cannot overwrite failed work-item outcomes with passing outcomes.

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

Copilot-Session: 01b2186b-0f3d-4af9-8b53-ca637bc8e374
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