ci: fail over ubuntu sim/ut jobs to self-hosted when GitHub stalls#11
Closed
doraemonmj wants to merge 1 commit into
Closed
ci: fail over ubuntu sim/ut jobs to self-hosted when GitHub stalls#11doraemonmj wants to merge 1 commit into
doraemonmj wants to merge 1 commit into
Conversation
7454c0f to
e546954
Compare
When GitHub's hosted runner pool is congested, the ubuntu-latest CI legs (ut / st-sim-a2a3 / st-sim-a5) can queue for a long time. Add a single non-required, self-hosted ubuntu-fallback job that covers that rare stall without changing how CI gates: - The GitHub primaries stay the required checks and gate on their own results. - ubuntu-fallback polls the three primaries in parallel and, per leg, DEFERS the moment GitHub starts running it (exiting in seconds, so the self-hosted slot is free in the common case) and only self-runs a leg GitHub never scheduled. - On such a stall the required primary stays pending; a maintainer admin-merges using this job's green self-run. Existing jobs are unchanged; this only adds the actions:read permission and the new job. Decision logic lives in .github/scripts/ci-wait-or-fallback.sh (DEFER / SELFRUN / RENAME_ERROR; python3, no jq). Activation: register a self-hosted runner with a 'sim' label carrying GCC 15 / gtest. The job is guarded to same-repo PRs and is non-required, so without such a runner it stays queued but blocks nothing.
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.
Add a GitHub-first, self-hosted fallback for the ubuntu-latest legs of ut, st-sim-a2a3 and st-sim-a5. Each *-ubuntu-fallback job mirrors its GitHub leg's result and only self-runs the tests when GitHub fails to schedule the primary within a timeout, so exactly one of the two runs the tests.
Contains TEST-ONLY stall edits for the a2a3 leg to exercise the takeover path; revert them before relying on this in production.