Repository navigation
ci(runners): run light jobs on the self-hosted pool for same-repository runs (needs owner OK) - #2857
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 9 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Review notes (omo + Codex Terra 6.1, xhigh)CodeRabbit hit its rate limit on this PR, so these reviews stand in. Round 1 (e8ceaa2): fixed in 29c0a00
Round 2 (29c0a00): CLEAR, no HIGH. Left for a follow-up, since this PR had its one fix round
Neither MEDIUM affects Ovis users; both only matter for CI operation. Per the review gate they do not block merging. |
|
Merge note: light CI jobs run self-hosted for same-repo runs (forks stay on ubuntu-24.04 before any variable is read); measured queue 301-635 s -> 2-8 s. Workflow change approved by the lead (owner delegated). omo CLEAR at this head, required checks green. |
Summary
GitHub's hosted queue for
ubuntu-24.04is saturated (about 20 concurrent jobs on this plan) while most of the self-hostedself-hosted-ovisrunners sit idle, so jobs that run for seconds wait minutes:Detect changeswaited 373 s and 635 s before starting on two recent PRs, and every other CI job waits on it.This moves the light Linux jobs to the self-hosted pool for same-repository runs:
ci.yml: Detect changes, herdr-core live contract, the Integration and browser summarypr-title.yml: Pull request title (Node only; the runner image has Node 22)remote-bundles.yml:bundle-windows(Bun only)pages.yml: site build and deploy (push-to-main only; they already acceptedCI_SELF_HOSTED_LABELS)Each uses one expression:
A fork pull request gets
ubuntu-24.04before any variable is read (the runner's job-started hook still refuses fork code as a second guard).CI_LIGHT_LABELS(new, unset) orCI_SELF_HOSTED_LABELSset to"ubuntu-24.04"keeps these jobs hosted, e.g. while the PC is offline.Kept hosted on purpose: the Rust PTY host job and the Rust
bundlematrix (no Rust toolchain in the runner image), thesshjob (sudo apt-getand Docker need a clean VM),desktop.ymlbuilds, Windows/macOS jobs, and release-only jobs.scripts/light-runner-workflow.test.tspins the rule: every job a pull request runs (including reusable workflows it calls) must be GitHub-hosted, the light expression with its fork guard, ci.yml's routed Linux jobs (scripts/ci-runner-route.sh, already tested), or gated off pull requests.scripts/ci-runner-route.shleaves these light jobs out of its busy count (they hold a runner for seconds), and a push to main or a run from main takesCI_MAIN_SELF_HOSTED_LABELSfirst, so main's Detect changes never waits behind pull requests.Queue time (job created -> started)
Before (main, 2026-11-05 ~03:20-03:45 UTC, GitHub-hosted):
After (this PR's two runs, self-hosted, 04:06 and 04:2x UTC, same saturated hosted queue: its own Rust and hosted jobs still waited 115 s+):
Validation
bun run check fast(workflow syntax via actionlint, typecheck, build, unit tests: 11441 pass, 0 fail) at 29c0a00.bun test ./scripts/light-runner-workflow.test.ts: fails on origin/main's workflows ("some job uses the light runner expression"), passes here; removing the fork guard frompr-title.ymlmakes the pr-title case fail.check full, a real fork PR run.