Repository navigation
fix(release): let a retry ignore the attempt it is retrying - #41
Merged
Merged
Conversation
RELEASING.md tells you to recover a failed release by re-running the workflow with the same tag, and every job is built to be idempotent for exactly that. The CI assertion was not. It dropped check runs belonging to the CURRENT run, by GITHUB_RUN_ID, so that this workflow's own in-progress jobs did not read as unfinished CI. An EARLIER attempt on the same commit was not dropped. A release run that was cancelled or timed out leaves its jobs behind as check runs with conclusion=cancelled or failure, and the retry then read the previous attempt as failed CI and refused: ::error::Non-success checks on 92a985a: await + verify dmg=cancelled So the documented recovery path stopped working at the exact moment it was needed — the second attempt was always refused, whatever went wrong in the first. Now filtered by workflow id: every run of THIS workflow on the commit is dropped, the current attempt and any earlier one. Resolved through the API rather than by naming the workflow file or its jobs, so this step does not become a second owner of either. Verified against the real check runs on 92a985a, which carry two prior release attempts: 14 check runs in, the 8 belonging to release.yml dropped (including await + verify dmg=cancelled), the 6 real CI checks kept, exit 0. A stubbed genuinely-failing CI check is still rejected.
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.
Found while retrying
v0.5.0-rc.3after stuffbucket/macos-builder#26.RELEASING.mdsays to recover a failed release by re-running the workflow with the same tag, and every job is idempotent for exactly that. The CI assertion was not.It dropped check runs belonging to the current run, by
GITHUB_RUN_ID, so this workflow's own in-progress jobs did not read as unfinished CI. An earlier attempt on the same commit was not dropped — and a release run that was cancelled or timed out leaves its jobs behind as check runs withconclusion=cancelled/failure:So the documented recovery path stopped working at the exact moment it was needed: the second attempt was always refused, whatever went wrong in the first. This is not specific to a cancel — a
collecttimeout, the failure mode the recovery path was written for, does the same thing.The change
Filter by workflow id: drop every run of this workflow on the commit, current and earlier. Resolved through the API rather than by naming the workflow file or its job names, so this step does not become a second owner of either.
Verified
Against the real check runs on
92a985a, which now carry two prior release attempts:release.ymlawait + verify dmg = cancelledsuccessBefore the change the same input exits 1. A stubbed genuinely-failing CI check is still rejected, so the step still does the job it exists for.