Repository navigation
ci: run PR CI in two lanes and clean runner disk only when short - #8368
Merged
Merged
Conversation
One pull request run keeps about 5 of the 20 runners busy on average (peak 10 Linux, 4 Windows, 2 macOS on #8364's 58-job run), so the single FIFO queue left most of the pool idle. Pull requests now wait in two FIFO lanes chosen by PR number parity in every workflow that queued them. The disk cleanup cost 44.5 runner-minutes per run (35 Linux jobs at 2-3 minutes each) on runners that now have 107 GB free after it. A shared free-disk-space action checks free space first: at 40 GB or more it removes the unused toolchain directories in the background and the job continues; below that it runs the full cleanup before the build.
oferchen
added a commit
that referenced
this pull request
Nov 11, 2026
One pull request run keeps about 5 of the 20 runners busy on average (peak 10 Linux, 4 Windows, 2 macOS on #8364's 58-job run), so the single FIFO queue left most of the pool idle. Pull requests now wait in two FIFO lanes chosen by PR number parity in every workflow that queued them. The disk cleanup cost 44.5 runner-minutes per run (35 Linux jobs at 2-3 minutes each) on runners that now have 107 GB free after it. A shared free-disk-space action checks free space first: at 40 GB or more it removes the unused toolchain directories in the background and the job continues; below that it runs the full cleanup before the build.
oferchen
added a commit
that referenced
this pull request
Nov 17, 2026
One pull request run keeps about 5 of the 20 runners busy on average (peak 10 Linux, 4 Windows, 2 macOS on #8364's 58-job run), so the single FIFO queue left most of the pool idle. Pull requests now wait in two FIFO lanes chosen by PR number parity in every workflow that queued them. The disk cleanup cost 44.5 runner-minutes per run (35 Linux jobs at 2-3 minutes each) on runners that now have 107 GB free after it. A shared free-disk-space action checks free space first: at 40 GB or more it removes the unused toolchain directories in the background and the job continues; below that it runs the full cleanup before the build.
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
These changes add more PR runs at once and shorter jobs. Every existing job, platform and toolchain cell stays as it is.
Two PR lanes instead of one.
pr-queue-even/pr-queue-odd), so two PRs' runs share the pool. Within a lane nothing changes:queue: max, nothing is cancelled, and master pushes, the schedule and dispatch keep their own per-commit groups.Disk cleanup only when short.
/dev/root 145G, 107G availableafter it..github/actions/free-disk-spacecomposite replaces the five copies of the step.apt-get install.apt-get removelist.Measurements
From the run and job APIs.
Verification
python3 -m unittest tools/tests/test_uts_badge_workflows.py: 8 passed. The queue test now asserts the two-lane key.tools/ci/check_pr_check_name_uniqueness.py: OK, 80 check names, each with one publisher.queuekey and existing shellcheck style notes remain.