Skip to content

ci: run main pushes on the reserved buildbox runner label - #3680

Merged
RyanTheTide merged 1 commit into
mainfrom
ci/main-runner
Nov 30, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
ci/main-runner

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

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, without aurora-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:

event runs on
pull_request_target (same-repo PRs, self-hosted on) self-hosted, aurora-buildbox, x64 (unchanged)
push / dispatch / schedule on main (self-hosted on) self-hosted, aurora-buildbox-main, x64
fork pull_request, pushes to other branches, self-hosted off ubuntu-24.04 (unchanged)

It's the same 8 workflows with the same job gates and the same pinned paths; only the runs-on expression changes (11 occurrences). This will conflict with #3675 in apple-build-kunit.yml (one line each); whichever merges second takes a merge of main.

Tested: every workflow parses as YAML. Walked the expression for each row of the table: a pull_request_target run has github.ref = refs/heads/main but takes the first branch, and a fork pull_request run has a refs/pull ref, so it falls through to hosted. The reserved runner registered as buildbox-7 with labels self-hosted, linux, x64, aurora-buildbox-main in 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.

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>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot added area:release Area from CODEOWNERS (bot) blast:none Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 30, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at 240c4d71: not ready yet

Check Detail
CI at head running running: kunit, apple-build, kunit, dt-checks, host-tests, kunit
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok not needed: no runtime change
Conflicts ok none
PR text ok Risk: two-way · (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.

Areas: area:release

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at 240c4d71. App approved; workflow-only CI change from CI-RUNNERS. Merges under the 6-point rule 1 h from now once its own CI is green, unless you object.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Local validation at 240c4d71, since this PR's own checks can't get a runner. That's the queue this PR fixes: GitHub doesn't hand queued jobs out in order, and 27 newer pull_request_target runs have finished while these 8 are still waiting.

  • actionlint (rhysd/actionlint, with shellcheck), on all 8 changed workflows: no new findings. The PR has 8 findings, and main (37a19f92) has the same 8, all in shell scripts that predate this change. With shellcheck off, both have 0.
  • Scope: the diff against main changes only the 11 runs-on: lines. No if:, permissions, steps or triggers change.
  • Routing dry run: I evaluated the new expression for every event, and all 8 cases match the table in the description.
    • pull_request_target on main, self-hosted switch on: self-hosted, aurora-buildbox, x64.
    • push, dispatch and schedule on main, switch on: self-hosted, aurora-buildbox-main, x64.
    • fork pull_request, a push to integration/aurora, and anything with the switch off: ubuntu-24.04.
  • Runner side, live now: buildbox-7 is online and idle with only aurora-buildbox-main, so no PR job can take it. buildbox-1..4 carry both aurora-buildbox and aurora-buildbox-main.

Revert: git revert -m 1 <merge> puts main pushes back on aurora-buildbox, and the extra runner label is harmless.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule at 240c4d71 (workflow-only; ORCH5 16:52 'don't block'). (1) The review App approved at this head. (2) CI-RUNNERS validated it locally: actionlint clean against main, the diff only changes runs-on, the routing dry run passed 8/8, and the runner side is live. The hosted kernel suites still queued on this PR don't exercise a runs-on change. (5) No blocking review. (6) Dj was pinged more than 1 h ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 47204c6 into main Nov 30, 2026
15 of 44 checks passed
@RyanTheTide
RyanTheTide deleted the ci/main-runner branch November 30, 2026 06:04
RyanTheTide added a commit that referenced this pull request Nov 30, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:release Area from CODEOWNERS (bot) blast:none Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant