Skip to content

ci: handle zero-checks case in automerge wait loop#448

Merged
slydlake merged 1 commit into
mainfrom
ci/automerge-zero-checks-grace-period
Jun 25, 2026
Merged

ci: handle zero-checks case in automerge wait loop#448
slydlake merged 1 commit into
mainfrom
ci/automerge-zero-checks-grace-period

Conversation

@slydlake

Copy link
Copy Markdown
Collaborator

Problem

PR #447 (wordpress 5.0.1) is stuck: the automerge workflow decided to merge but the "Wait for PR checks" step kept seeing `total=0` and never broke out of the loop, eventually timing out/cancelling.

Root cause: the `pr-chart-validate` and `chart-install-test` workflows were never triggered for this PR (GitHub didn't deliver the `pull_request.opened` / `synchronize` webhook event — an intermittent issue). The wait loop requires `total > 0 && pending == 0` to proceed, so with `total=0` forever it runs until the 25-minute deadline expires.

Fix

Add a 3-minute grace period. If no checks register within that window, emit a warning and proceed with the merge. Release PRs only touch `Chart.yaml` (version bump), `CHANGELOG.md`, and `.release-please-manifest.json` — no chart templates — so the risk of skipping validation is minimal and acceptable.

Once this PR lands, dispatch the automerge workflow for PR #447 to unblock the release.

Test plan

When GitHub does not deliver the pull_request event to the validation
workflows (intermittent webhook drop), the wait loop would spin until
the 25-minute deadline with total=0 and then fail. Add a 3-minute grace
period: if no checks register within that window, proceed with the merge
since release PRs only touch version and changelog, not chart templates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@slydlake slydlake merged commit 0059d42 into main Jun 25, 2026
6 checks passed
@slydlake slydlake deleted the ci/automerge-zero-checks-grace-period branch June 25, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant