Repository navigation
ci: run main pushes on the reserved buildbox runner label - #3680
Conversation
Main's own runs (push, dispatch, schedule on the default branch) asked for the same self-hosted labels as same-repo PR runs, so they queued behind hours of PR KUnit jobs: main 87f8dd6's Host tests sat queued from 12:40 while every linux merge waited on it. They now ask for aurora-buildbox-main. Every buildbox runner carries that label, and one more runner carries only that label (no aurora-buildbox), so PR jobs can never take it and a main job always has a runner within one job's length. pull_request_target runs keep aurora-buildbox; fork pull_request runs, pushes to other branches and runs with the self-hosted switch off stay on ubuntu-24.04 as before. Same 8 workflows and pins; only the runs-on expression changes. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
There was a problem hiding this comment.
Verdict: MERGE at 240c4d71 after hosted checks.
Checked: The job gates are unchanged. The first branch preserves the PR-target runner label even when the event ref is main; the second selects the reserved label only for default-branch push, dispatch and schedule. Fork PR and self-hosted-off routes still go to hosted runners. The runner registration is reported by the owner. Verify a main run actually claims the reserved runner during rollout and reconcile the shared expression if #3675 lands first.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
Local validation at
Revert: |
|
Merging under the 6-point rule at |
Resolve the conflict with #3680: the three runs-on lines of apple-build-kunit.yml (apple-build, plan, kunit) take main's routing, so main pushes ask for aurora-buildbox-main and same-repo PR runs keep aurora-buildbox. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Main's own CI runs (push, dispatch and schedule on the default branch) asked for the same self-hosted labels as same-repo PR runs, so they queued behind hours of PR KUnit jobs. Today main
87f8dd62's Host tests sat queued from 12:40, and every linux merge waited on it.With this change they ask for
aurora-buildbox-main. On the buildbox side, which is already live, every runner carries that label, and one extra runner carries only that label, withoutaurora-buildbox. PR jobs can never take that runner, so a main job always gets one within one job's length, and main jobs can still use the other runners when they're free.The routing per event:
pull_request_target(same-repo PRs, self-hosted on)self-hosted, aurora-buildbox, x64(unchanged)main(self-hosted on)self-hosted, aurora-buildbox-main, x64pull_request, pushes to other branches, self-hosted offubuntu-24.04(unchanged)It's the same 8 workflows with the same job gates and the same pinned paths; only the
runs-onexpression changes (11 occurrences). This will conflict with #3675 inapple-build-kunit.yml(one line each); whichever merges second takes a merge ofmain.Tested: every workflow parses as YAML. Walked the expression for each row of the table: a
pull_request_targetrun hasgithub.ref=refs/heads/mainbut takes the first branch, and a forkpull_requestrun has arefs/pullref, so it falls through to hosted. The reserved runner registered asbuildbox-7with labelsself-hosted, linux, x64, aurora-buildbox-mainin the linux runner group. No runtime change: CI only.Risk: two-way door (revert puts main back in the shared queue). Macs: none. If the buildbox runners are down, main jobs queue as PR jobs do today; the hosted fallback is unchanged.