Repository navigation
ci: rerun jobs that GitHub cancelled for lack of a macOS runner - #545
Merged
Merged
Conversation
GitHub's macOS arm64 pool is short of machines. Waiting jobs are cancelled with "not acquired by Runner", and verify / verify then fails although no test ran. On 2026-11-03 this caused most red runs and needed manual reruns. A workflow_run job now reruns such a run, up to three attempts in all. It reruns only when every failed or cancelled job is a runner shortage or the verification gate that follows from one. It reads job results only and never checks out PR code. Versioned release stays manual. Co-Authored-By: Claude Opus 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.
What changed
Retry runner shortages(.github/workflows/retry-runner-shortage.yml). When an Application verification, client canary or client recertification run fails, it checks why. If every failed or cancelled job was either cancelled with "not acquired by Runner" or is theverify / verifygate that fails as a result, it reruns the failed jobs. It stops after three attempts in all.docs/development-workflow.md.Why
GitHub's macOS arm64 pool is short of machines. A job that waits too long is cancelled, and
verify / verifyturns red although no test ran. Since Nov 1 this has hit #539 (three manual reruns), #544, #537, #541, both main runs (d6d046f, 70cb19f) and the client recertification. Every case needed a manualgh run rerun --failed.Safety
actions: writeandchecks: read.Verification
actionlintpasses.pnpm test:policypasses (188 tests).workflow_runworkflow runs only from the default branch. The first real shortage after merge is the live test. If GitHub does not triggerworkflow_runfor a rerun started by the workflow token, the limit is effectively two attempts instead of three.🤖 Generated with Claude Code