Repository navigation
fix(release-please): retry a transient failure before arming auto-merge - #103
Merged
Merged
Conversation
…arming auto-merge A single failed release-please-action run (empty error, GitHub API) left the release PR open and unarmed, and nothing re-triggers the workflow. Retry once after a pause; arm auto-merge only after a successful run. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Summary
A single failed
release-please-actionrun left the release PR open and unarmed, and nothing re-triggers the workflow (it only runs on pushes tomain). The action is now retried once before arming auto-merge.Incident:
agent-config-btmtrun 46705650864 (2026-12-01). release-please opened PR #112 and labelled it, then failed with an empty error (release-please failed:). The arming step was skipped, so #112 stayed open until the failed job was rerun by hand. The same workflow at the same pin had succeeded two hours earlier, so the failure was transient.Changes
.github/workflows/release-please.yml: the firstrelease-please-actionrun usescontinue-on-error: true. If it fails, the job waits 20 s and runs the action again (release-retry). The arming step readsRELEASE_PRSfrom the first run when it succeeded, otherwise from the retry.README.md: documents the retry and why arming waits for a successful run.release/arm-release-pr-auto-merge.pyalready unions the action's output with the label listing and handles thecleandirect-merge case.Rejected alternative: arming even when release-please fails (
if: always()). release-please updates the branch before the PR title/body, so a failure between the two could arm a PR whose title (the squash commit, then the tag) does not match its branch.Test plan
actionlint .github/workflows/release-please.yml: clean.outcomevsconclusion, job result and arm-step condition in the three cases (first run ok, first fails and retry ok, both fail), the&&/||expression with an emptyprs, and idempotence of a second run against an already-open release PR.release-automation-sandbox-20261106on the released commit and force the first attempt to fail on a throwaway branch.Screenshots
N/A
Risk
Intent
change, depthstandard: a reusable release workflow used by about 16 repositories, but the diff is localized and the first-run success path is unchanged. Not breaking. Callers get the retry only after bumping theirrelease-please.ymlpin. A first attempt that hangs (rather than fails) still hits the existing 5-minute job timeout, as before.How to revert
Revert the squash commit and publish a new release; callers that already bumped their pin keep working with either version.
Deployment notes
No migration or environment change. Merging a
fix:into this release-please repository (release_please: auto_merge) starts release v6.7.2 through CI. Callers then bump the pin in a separate step, which is not part of this PR.