Repository navigation
fix: preserve workflows and report update merge failures - #76975
Conversation
Apply conflict-free workflow dependency updates using the locally built CLI. Preserve existing sources on merge conflicts, propagate partial failures, respect the default conflict-scan directory, normalize release output, and report package rollback errors. Co-authored-by: Copilot App <[email protected]>
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ 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 completed successfully! PR Specification 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.
|
|
✅ 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.
|
This comment has been minimized.
This comment has been minimized.
|
✅ PR Code Quality Reviewer completed the code quality review.
|
There was a problem hiding this comment.
Reviewed the changed update-path logic and tests. I found no actionable correctness, regression, or maintainability issues in the changed lines. The specialist pass was unavailable because its diff read was blocked, so this assessment is based on my independent static review of the pre-fetched diff and relevant source context.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
🏗️ Design Decision Gate — ADR RequiredThis PR makes significant changes to core business logic (more than 100 new lines in 📄 Draft ADR committed:
📋 What to do next
Once an ADR is linked in the PR body, this gate will re-run and verify that the implementation matches the decision. 🧭 Decision captured in the draft
📋 Michael Nygard ADR Format ReferenceAn ADR must contain these four sections to be considered complete: Context, Decision, Alternatives Considered, and Consequences. ADRs live in
|
There was a problem hiding this comment.
🟡 Changes recommended
Later update phases can overwrite conflicted workflows and their locks despite reporting them unchanged, while an absent default workflow directory can incorrectly cause otherwise valid updates to fail.
2 open issues
What changed in this PR
This PR strengthens gh aw update conflict handling and failure reporting, aiming to preserve existing workflows during failed merges while allowing manual resolution with --no-compile.
Changes:
- Report partial update failures, including manifest-managed conflicts, while retaining the rate-limit-only exception.
- Improve conflict scanning, rollback diagnostics, and CRLF release parsing, with regression tests and documentation.
- Refresh workflow dependencies and generated locks, and remove an older container pin.
| File | Description |
|---|---|
pkg/workflow/data/action_pins.json |
Remove the MCP gateway v0.5.4 pin. |
pkg/cli/update_workflows.go |
Report update failures, guard conflicted writes, and normalize release output. |
pkg/cli/update_workflows_test.go |
Test CRLF release parsing. |
pkg/cli/update_manifest.go |
Count conflicts as failures and warn on rollback errors. |
pkg/cli/update_manifest_test.go |
Test conflict reporting and rollback diagnostics. |
pkg/cli/update_command.go |
Surface conflict-scan errors. |
pkg/cli/update_command_test.go |
Test conflict failures and source/lock preservation. |
pkg/cli/update_actions_workflow_files.go |
Resolve the default scan directory and propagate read errors. |
pkg/cli/update_actions_workflow_files_test.go |
Test default-directory scanning and read failures. |
pkg/actionpins/data/action_pins.json |
Synchronize removal of the older gateway pin. |
docs/src/content/docs/setup/cli.md |
Document conflict handling and exit status behavior. |
.github/workflows/ponytail-reviewer.md |
Update the review skill revision. |
.github/workflows/ponytail-reviewer.lock.yml |
Regenerate skill references and workflow hashes. |
.github/workflows/mattpocock-skills-reviewer.md |
Update five review skill revisions. |
.github/workflows/mattpocock-skills-reviewer.lock.yml |
Regenerate skill references and workflow hashes. |
.github/workflows/daily-team-status.md |
Record the upstream source commit. |
.github/workflows/daily-team-status.lock.yml |
Refresh hashes for the source metadata change. |
.github/workflows/daily-safeoutputs-git-simulator.md |
Update action references to specific release versions. |
.github/workflows/daily-safeoutputs-git-simulator.lock.yml |
Refresh hashes for the action reference changes. |
.github/aw/actions-lock.json |
Remove the older gateway container pin. |
Review effort: Balanced (auto)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs, /tdd, /codebase-design, and /grill-with-docs. Requesting changes on two behavior changes that are not yet covered by tests or stated in the PR description.
📋 Key Themes & Highlights
Key Themes
- Partial failure now blocks the PR step: any non-rate-limit failure returns from
RunUpdateWorkflowsbefore PR creation (update_workflows.goL213,update_command.goL338). - Manifest
--no-compileconflicts skip group sync: the conflict sentinel now takes theskippedConflictearly return (update_manifest.goL245). - Scan is now fail-closed: unreadable workflow files abort container-pin updates (
update_actions_workflow_files.goL177). - Undocumented pin removal:
ghcr.io/github/gh-aw-mcpg:v0.5.4is removed fromaction_pins.json(both copies) and.github/aw/actions-lock.json. The PR description does not mention it. Please confirm it is intentional.
Positive Highlights
- ✅ Rollback now reports failures instead of ignoring them (
update_manifest.goL441), withTestRollbackPackageAssetsReportsFailuresAndContinues. - ✅ CRLF fix via
strings.FieldsinresolveLatestReleaseWithResult(update_workflows.goL676), withTestResolveLatestRelease_CRLFOutput. - ✅ Conflict regression test
TestUpdateWorkflows_MergeConflictsFail, plus a default-directory test for the scan. - ✅
docs/src/content/docs/setup/cli.mdnow states the nonzero-exit contract for conflicts and failures.
Open Questions
- Is blocking the PR on any partial failure intended? If so, say so in the PR description and docs.
- The rate-limit exemption in the new fatal branch has no direct test.
- I did not run
go testor lint. Findings come from static reading of the committed diff atceb8049.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~9 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
Preserve conflicted sources through the entire update command, treat absent scan roots as empty, and cover partial failure and package ownership contracts. Clarify fail-closed behavior and the proposed ADR. Co-authored-by: Copilot App <[email protected]>
|
In response to this comment: No code change for this review-progress notification. The completed review's actionable comments were evaluated individually, with fixes, contract coverage, and a documented rationale where a suggestion was declined. |
|
In response to this comment: No change requested by this no-action report. Added focused regression coverage for the actionable conflict-preservation and scan-directory findings from the other reviews. |
|
In response to this comment: No change requested by this no-action report. The CLI docs and linked proposed ADR now explicitly describe failure handling and the PR-creation contract. |
|
In response to this comment: No code change for this no-action report. Addressed the actionable update-phase safety and missing-directory findings raised by the other reviewers. |
|
In response to this comment: Reviewed and revised the generated ADR, removing unverified deciders and claims of prior alternatives discussions. It remains Proposed pending maintainer acceptance and is linked in the PR body. |
|
In response to this comment: No change requested by this completion report. The batch addresses the actionable correctness feedback from the other reviews and adds focused regression coverage. |
|
In response to this comment: Partially accepted: completed the factual ADR corrections, documented the later-phase safety requirement, and linked the ADR in the PR body. Its status remains Proposed because maintainer acceptance and deciders have not been established; the document does not claim team approval. |
|
🎉 This pull request is included in a new release. Release: |


Running the locally built
updatecommand exposed merge conflicts that were reported as successfully updated and compiled, with a zero exit status and conflict markers written into workflow sources.Changes
--no-compile, retain conflict markers for manual resolution but report failure.ghcr.io/github/gh-aw-mcpg:v0.5.4container pin and synchronized both embedded pin files.Validation
ADR: ADR-76975: Preserve Workflows and Fail on Update Conflicts. Status is Proposed; maintainer acceptance and deciders remain to be recorded.