Repository navigation
Deduplicate incomplete workflow reports across changing diagnostics - #75987
Conversation
Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
❌ PR Specification Reviewer failed to deliver outputs. Please review the logs for details.
|
There was a problem hiding this comment.
Review complete: no actionable correctness, performance, or maintainability issues found in the changed lines. The specialist pass produced one category-metadata concern, but it does not apply because reporting filters use current run categories and daily caps only gate new issue creation; the existing issue marker need not be mutated.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the incomplete-run issue deduplication changes.
No open issues 🎉
What changed in this PR
This PR reduces duplicate failure issues for incomplete gh-aw runs when supplemental diagnostics change, addressing the deduplication portion of #75852.
Changes:
- Ignore
missing_toolandmissing_datawhen matchingreport_incompleteissues, while preserving workflow boundaries, runtime-cause matching, and other failure categories. - Add regression coverage for clean exits with diagnostic-only output and repeated incomplete runs reusing one issue.
- Document reuse behavior and preservation of per-run diagnostics and reporting filters.
| File | Description |
|---|---|
docs/src/content/docs/reference/safe-outputs.md |
Documents incomplete-report matching and retained diagnostics. |
actions/setup/js/handle_agent_failure.test.cjs |
Tests matching boundaries and issue reuse across changing diagnostics. |
actions/setup/js/handle_agent_failure.cjs |
Normalizes incomplete-report categories for issue matching. |
actions/setup/js/collect_ndjson_output.test.cjs |
Covers diagnostic-only output after a successful driver exit. |
.github/skills/agentic-workflows/SKILL.md |
Adds the index-search reference to the guidance list. |
Review effort: Balanced (auto)
There was a problem hiding this comment.
Reviewed PR head 0748521.
Applicable contract: docs/src/content/docs/specs/safe-outputs-specification.md, report_incomplete operational semantics, synchronized as version 1.29.21 (2026-11-08). The implementation and added tests intentionally establish reuse of open, unexpired same-workflow incomplete issues while ignoring only supplemental missing_tool/missing_data categories; other categories, per-run reasons, diagnostics, and full reporting categories remain preserved.
Queued specification update: commit 785fa17 was submitted for publication to the PR branch. No blocking contract violations found. Static review did not execute tests or independently cover every category-order, expiration-boundary, or sanitization-failure permutation.
Generated by PR Specification Reviewer for #75987 · copilot · gpt50 · ~5 AIC · ⌖ ~2 AIC · ⊞ 1.7K
Comment /review-specs to run again
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd and /diagnosing-bugs. The reuse logic is sound: missing_tool/missing_data are normalized only when report_incomplete is present, and other categories still split issues. Leaving a COMMENT review because two tests overstate their coverage. Vitest could not run here (npm registry TLS error in this sandbox), so the suite is unverified.
📋 Key Themes & Highlights
Key Themes
- Clean-exit test coverage: the
missing_terminal_safe_outputvariant takes the classifiedfailureCausepath and never reaches the new category code - One-directional reuse test: existing markers always carry
missing_tool, so the reverse normalization is untested
Positive Highlights
- ✅ Preserves
mcp_policy_errorandtimed_outas distinct causes - ✅ Doc update in
safe-outputs.mdmatches the code; follow-ups render the current run'sreport_incomplete_contextand diagnostics - ✅ Exit-code assertions in the collector test are a useful regression guard
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 6.3K
Comment /matt to run again
| } | ||
| }); | ||
|
|
||
| it.each(["missing_terminal_safe_output", "report_incomplete"])("creates one failure issue across clean-exit runs with %s and changing diagnostics", async cause => { |
There was a problem hiding this comment.
[/tdd] The missing_terminal_safe_output variant does not exercise the category-matching change. Its classified failureCause reaches isReusableFailureIssue and returns on cause equality before matchCategories runs, so this case passes with or without the fix despite the test title.
💡 Suggested fix
Limit the diagnostic-variance check to the uncategorised report_incomplete path, which is the only one that reaches the new normalization. Either drop missing_terminal_safe_output from this it.each or rename the test to say it covers the classified-cause path.
@copilot please address this.
There was a problem hiding this comment.
Removed the missing_terminal_safe_output case from this category-normalization regression because its classified cause short-circuits category matching. The remaining report_incomplete case exercises category matching directly. Addressed in fca3578.
| }); | ||
|
|
||
| it.each([["report_incomplete"], ["missing_data", "report_incomplete"], ["missing_tool", "report_incomplete"], ["missing_data", "missing_tool", "report_incomplete"]])( | ||
| "reuses incomplete reports with different diagnostic categories: %j", |
There was a problem hiding this comment.
[/tdd] The cases always use a fixed existing marker of ["missing_tool","report_incomplete"]. That checks only one direction of normalization: an existing marker without diagnostics, matched by a new run carrying missing_tool or missing_data, is never exercised.
💡 Suggested test
Parameterize the existing marker categories as well as the incoming ones, for example [["report_incomplete"], ["missing_tool","report_incomplete"]] crossed with the candidate set. Keep the mcp_policy_error and workflow-id negatives.
@copilot please address this.
There was a problem hiding this comment.
Added both normalization directions, including an existing report_incomplete marker with no supplemental diagnostics matching new missing_tool and missing_data categories. Addressed in fca3578.
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: 0748521
|
…p-workflows-ending-without-terminal-s Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
|
🎉 This pull request is included in a new release. Release: |
Clean driver exits can leave workflows without terminal safe outputs. Explicit incomplete reports can also create duplicate failure issues when supplemental diagnostics vary between runs.
missing_toolandmissing_datawhen matchingreport_incompleteissues. Preserve workflow boundaries, classified runtime causes, and other failure categories.