Repository navigation
Align Helix Job Monitor cancellation specification - #17178
Conversation
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
There was a problem hiding this comment.
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.
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
premun
left a comment
There was a problem hiding this comment.
Not sure I am a fan of the list of tests in the design but maybe it's valuable one way or another
|
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
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
There was a problem hiding this comment.
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
Summary
This PR intentionally changes no production behavior.
Closes #17172
Parent epic: #17171