Repository navigation
JobMonitor: Include QueueId in submitter chain key so cross-queue work-item outcomes don't overwrite each other - #16938
Merged
premun merged 1 commit intoJun 2, 2026
Conversation
…write each other in a state dictionary
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes a bug in JobMonitorRunner where the submitter chain key — used to dedupe/roll up work-item outcomes across resubmissions — was based solely on the AzDO System.JobName. When a single AzDO matrix leg fanned out to multiple Helix queues, sibling Helix jobs collided on the same key, allowing a later pass to overwrite an earlier failure (or vice versa). The fix incorporates the Helix QueueId into the key so resubmissions to the same queue still share a key but sibling queues stay distinct.
Changes:
- Combine
SubmitterJobNamewithQueueIdvia newFormatSubmitterChainKeyhelper inGetSubmitterChainKey. - Update the XML doc comment to describe the new keying behavior.
- Add regression test covering the multi-queue fan-out scenario.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Microsoft.DotNet.Helix/JobMonitor/JobMonitorRunner.cs | Include QueueId in submitter chain key; add formatter helper and update doc comment. |
| src/Microsoft.DotNet.Helix/Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests/JobMonitorRunnerTests.cs | New test reproducing cross-queue overwrite scenario, asserting non-zero exit. |
premun
enabled auto-merge (squash)
June 2, 2026 13:27
mmitche
approved these changes
Jun 2, 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.
A single AzDO matrix leg can fan out to multiple Helix queues, each producing its own Helix job under the same
System.JobName. The previous submitter chain key was based onSystem.JobNameonly, so jobs from different queues collided in the work-item outcome dictionary — a later-arriving pass could overwrite an earlier failure (or vice versa) from a sibling queue.This change combines
System.JobNamewith the HelixQueueIdwhen building the submitter chain key, so:Includes a test that reproduces the cross-queue overwrite.
Split out of #16879.