Repository navigation
feat(ci): add bounded retries for approved pull requests - #340
Merged
Merged
Conversation
vcauesantos
approved these changes
Nov 2, 2026
vcauesantos
left a comment
Contributor
There was a problem hiding this comment.
LGTM - Retrying approved PRs until they pass might hide flaky tests, we need to keep an eye on this.
Piotr1215
force-pushed
the
devops-1758/approved-pr-ci-retry
branch
2 times, most recently
from
November 3, 2026 08:52
be19879 to
e1876bb
Compare
Approved pull requests can leave authors repeating failed CI by hand. Existing approval automation waits for green checks but cannot request a rerun. Add a disabled, dry-run-first retry action with an explicit workflow allowlist, current-head human approval, freshness checks and a three-rerun budget that includes manual attempts. Leave an immutable diagnosis handoff when the budget is exhausted. Keep merges and AI dispatch outside this pilot until their policies and input contract are verified.
Piotr1215
force-pushed
the
devops-1758/approved-pr-ci-retry
branch
from
November 4, 2026 11:29
e1876bb to
c9402c3
Compare
1 task
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
Add an opt-in action to retry failed CI on approved pull requests. It defaults to disabled and dry-run mode. Callers must allowlist workflow IDs.
The action requires a current-head approval from a human with write access and skips drafts, forks, stale heads, and unknown API state. It rechecks eligibility before requesting one failed-jobs rerun. The limit is three reruns, including manual attempts.
When the limit is exhausted, it emits a JSON handoff with immutable run details. It does not approve or merge pull requests or invoke the QA bot. No caller is activated, and the action is not released yet.
Test plan
54 tests passed. All six GitHub checks passed on
20f704f, including actionlint, zizmor and generated docs. Targeted local zizmor found no issues.Full
make lintreports an existing dangerous-triggers finding in.github/workflows/claude.ymlwith local zizmor 1.31.1. The live event chain has not been verified.Closes DEVOPS-1758