ci: auto-rerun daily pipeline on runner allocation failure#183
Merged
costajohnt merged 1 commit intomainfrom May 7, 2026
Merged
ci: auto-rerun daily pipeline on runner allocation failure#183costajohnt merged 1 commit intomainfrom
costajohnt merged 1 commit intomainfrom
Conversation
When GitHub's hosted runner pool fails to acquire a runner (job ends with the "not acquired by Runner of type hosted" annotation), retry the failed jobs once. Other failure modes are left alone so real breakage still surfaces. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
6a7c7b3 to
7e059d1
Compare
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
.github/workflows/auto-rerun-allocation-failure.ymlwhich listens for completed runs of the Daily Trading Pipeline and reruns failed jobs once if the failure annotation matches GitHub's runner-pool allocation message ("not acquired by Runner of type hosted...").run_attempt == 1to prevent rerun loops if the rerun itself fails.Context
Run #25385462949 failed at 15m4s with the annotation "The job was not acquired by Runner of type hosted even after multiple attempts", a transient GitHub infrastructure incident where the hosted runner pool never picked up the job. The pipeline self-recovered on the next scheduled tick, but the missed slot was lost. This workflow handles that class of failure automatically.
Verified the detection logic against run #25385462949: workflow_run conclusion is
failure, run_attempt is1, and the matching annotation is present on the job.Test plan