Skip to content

Align Helix Job Monitor cancellation specification - #17178

Merged
mmitche merged 4 commits into
dotnet:mainfrom
mmitche:copilot/refactor-job-monitor-spec-alignment
Jul 28, 2026
Merged

mmitche merged 4 commits into
dotnet:mainfrom
mmitche:copilot/refactor-job-monitor-spec-alignment

Conversation

@mmitche

@mmitche mmitche commented Jul 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • align the behavioral specification with the intended cancellation-first implementation
  • clarify that interrupted, untagged uploads are replayed by a later invocation
  • keep the document focused on behavioral design without implementation-specific test listings

This PR intentionally changes no production behavior.

Closes #17172
Parent epic: #17171

Document the intended cancellation-first behavior and add representative invariant-to-test traceability.\n\nCo-authored-by: Copilot <[email protected]>\nCopilot-Session: baa969a4-1d79-4b6a-a3f0-4d349d768b5e

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 the Helix Job Monitor design specification to match the intended “cancellation-first” behavior and to document how interrupted uploads are safely replayed on a later invocation, while adding a small index mapping major invariant groups to representative scenario tests.

Changes:

  • Clarifies upload deduplication semantics: only completed/tagged uploads are considered durable; interrupted untagged uploads are replayed.
  • Updates timeout/cancellation specification to avoid waiting for pending/in-flight uploads, emit the timeout report immediately, and then best-effort cancel in-flight Helix jobs using a fresh bounded token.
  • Adds “invariant group → representative tests” traceability for the monitor scenario suite.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mmitche
mmitche requested a review from premun July 23, 2026 16:26
Describe deduplication in terms of completed, tagged runs while preserving intentional replay of interrupted uploads.\n\nCo-authored-by: Copilot <[email protected]>\nCopilot-Session: baa969a4-1d79-4b6a-a3f0-4d349d768b5e
Copilot AI review requested due to automatic review settings July 23, 2026 16:27

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

premun
premun previously approved these changes Jul 27, 2026

@premun premun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I am a fan of the list of tests in the design but maybe it's valuable one way or another

@mmitche

mmitche commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

Agreed, let me adjust that.

Remove specific test method references so the document remains focused on behavioral design.\n\nCo-authored-by: Copilot <[email protected]>\nCopilot-Session: baa969a4-1d79-4b6a-a3f0-4d349d768b5e
Copilot AI review requested due to automatic review settings July 27, 2026 16:35
Keep the behavioral design independent of specific test classes and method names.\n\nCo-authored-by: Copilot <[email protected]>\nCopilot-Session: baa969a4-1d79-4b6a-a3f0-4d349d768b5e

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

src/Microsoft.DotNet.Helix/JobMonitor/JobMonitorRunner.Design.md:206

  • The design doc includes implementation-specific test suite/case names (e.g., AttemptScoped_*, MultiAttempt_*, and individual test names) which makes the spec less test-agnostic than the issue’s acceptance criteria call for. Consider rephrasing this paragraph to reference the scenario suite generically without naming specific test methods/suites.
   uploaded, the original uploads first.
4. Upload failures are logged but never affect pass/fail.
5. A failed original Helix job may be resubmitted on entry and still have
   its original test results uploaded during the same invocation if those
   results were not uploaded earlier.

### 2.5 Pass/fail invariants

Copilot AI review requested due to automatic review settings July 27, 2026 16:38

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@mmitche
mmitche merged commit 646d5b1 into dotnet:main Jul 28, 2026
10 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Jul 29, 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.

Job Monitor: align behavioral specification with cancellation semantics

3 participants