Skip to content

ci: run lightweight jobs on ubuntu-slim to reduce runner queueing - #11803

Closed
alamb wants to merge 2 commits into
mainfrom
alamb/ubuntu-slim-light-jobs
Closed

alamb wants to merge 2 commits into
mainfrom
alamb/ubuntu-slim-light-jobs

Conversation

@alamb

@alamb alamb commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Related to apache/datafusion#25088 (CI takes hours to start) and https://issues.apache.org/jira/browse/INFRA-28374

Rationale for this change

CI jobs in this repo are currently waiting a long time for a runner before they even start. Looking at recent PR runs, some jobs that complete in 10-20 seconds spent anywhere from 17 minutes to almost 4 hours queued waiting for an ubuntu-latest runner:

Job Queued Ran for
Select and validate CI suites 3h 54m 14s
dev / Release Audit Tool (RAT) 2h 52m 12s
dev / Spell Check with Typos 2h 52m 7s
dev / Release Audit Tool (RAT) 2h 48m 16s
Select and validate CI suites 1h 41m 12s
audit / Audit 19m 18s
audit / Audit 16m 20s

(queued = time from job creation to job start, from successful PR runs on 2026-10-20 and 2026-10-21)

While github doesn't explicitly say there is a separate queue, it seems in practice that slim jobs in this repo hrun immediately while ubuntu-latest jobs wait for hours: here is the queue time for every job in the last 60 CI runs (877 jobs since 2026-10-19), by runner label:

Runner label Jobs Median queue p90 Max Jobs queued over 10 min
ubuntu-latest 735 1h 41m 2h 22m 5h 52m 90%
ubuntu-slim 84 0.3m 2.0m 9.8m 0%
macos-latest 29 0.1m 0.5m 5.2m 0%
windows-latest 29 0.1m 0.3m 1.4m 0%
Per-run queue times for the paired dev jobs
CI run Jobs created (UTC) Markdown format (slim) Typos (latest) RAT (latest)
39639615976 10-21 17:03 1.4m 1.4m 0.0m
39640534312 10-21 17:07 1.1m 1.0m 3h 28m
39604373910 10-21 18:54 9.0m 2h 23m 2h 26m
39610392428 10-21 19:19 0.1m 2h 24m 2h 24m
39608944998 10-21 19:20 0.2m 2h 13m 2h 13m
39608944765 10-21 19:20 0.2m 2h 16m 2h 16m
39614965349 10-21 19:33 0.2m 2h 23m 2h 23m
39616238678 10-21 19:34 0.2m 2h 21m 2h 21m
39616186501 10-21 19:34 0.3m 2h 21m 2h 21m
39617123504 10-21 19:34 0.1m 2h 21m 2h 21m
39617116338 10-21 19:35 1.0m 2h 22m 2h 22m
39620112714 10-21 19:56 0.1m 2h 03m 2h 03m
39630579565 10-21 20:16 0.1m 1h 56m 1h 54m
39633668802 10-21 20:19 0.1m 1h 55m 1h 55m
39635091896 10-21 20:20 0.5m 1h 55m 1h 55m
39642860324 10-21 20:45 0.3m 1h 54m 1h 55m
39661231634 10-21 21:53 0.1m 1h 13m 1h 13m
39662011250 10-21 21:54 0.2m 1h 12m 1h 16m
39662008257 10-21 21:54 0.3m 1h 12m 1h 12m
39661920408 10-21 21:55 0.1m 1h 12m 1h 12m
39663672851 10-21 21:57 0.1m 1h 10m 1h 10m
39673895251 10-21 22:42 0.1m 59.6m 59.2m
39688427852 10-21 23:42 0.1m 1h 09m 1h 09m
39689481091 10-21 23:53 0.1m 1h 05m 1h 06m
39694776661 10-22 00:52 0.1m 48.4m 48.4m
39695236745 10-22 00:53 0.1m 48.0m 47.7m
39706147128 10-22 03:20 0.1m 1h 40m n/a
39720524769 10-22 05:16 0.1m 1h 02m 1h 02m
39723965494 10-22 05:36 0.1m 1h 15m 1h 14m
39770260064 10-22 11:24 0.5m 0.4m 0.4m

What changes are included in this PR?

Move the remaining jobs that do not compile anything onto ubuntu-slim:

Are these changes tested?

CU

Are there any user-facing changes?

No

Move jobs that only run a script, a prebuilt binary, or a gh command
onto the smaller ubuntu-slim runners so they stop waiting in the
ubuntu-latest queue behind full Rust builds.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@github-actions github-actions Bot added the development-process Internal changes; PRs with this label are excluded from changelog label Oct 22, 2026
@alamb
alamb marked this pull request as ready for review October 22, 2026 12:52
@alamb
alamb requested a review from Rich-T-kid October 22, 2026 12:57

@Jefffrey Jefffrey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Related:

@sdf-jkl sdf-jkl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🚀 🚀 🚀 🚀

@Rich-T-kid Rich-T-kid left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💯

@etseidl etseidl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Don't want to be left out 😅. Thanks all for trying to make CI better!

@alamb

alamb commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

@neilconway has incproprated the same changes into #11774 so let's go with that

@alamb alamb closed this Oct 23, 2026
auto-merge was automatically disabled October 23, 2026 15:27

Pull request was closed

osipovartem pushed a commit to Embucket/arrow-rs that referenced this pull request Oct 23, 2026
# Which issue does this PR close?

- Related to apache#9536 and apache#11803
- closes apache#11774

# Rationale for this change

The shared ASF Infra `ubuntu-latest` runner pool is frequently
saturated. [ASF Infra recommends using the `ubuntu-slim` pool
instead](https://infra.apache.org/services.html), when possible:

> Use lightweight runners: For small, short jobs, consider using
runs-on: ubuntu-slim. These provide 1 vCPU, 5GB RAM, no Docker engine,
and a 15-minute hard limit. They churn much more quickly during peak
times, allowing you to bypass the standard ubuntu-latest queue while
freeing up capacity for others.

This PR moves the following CI jobs to run on `ubuntu-slim`:

- Select and validate CI suites (ci.yml)
- Lint (cargo fmt) (rust.yml)
- Check unused dependencies (rust.yml)
- Audit (audit.yml)
- Release Audit Tool (RAT) (dev.yml)
- Spell Check with Typos (dev.yml)
- deploy (docs.yml)
- Publish (release.yml)

The RAT and Publish changes were also proposed in apache#11803.

`ubuntu-slim` has no Rust toolchain, Java, or container engine, so a few
jobs need adjusting:

- Lint and Check unused dependencies no longer run inside the
`amd64/rust` container. Instead, they install the Rust toolchain with a
new `setup-rustup` action. Neither job compiles the workspace.
- Audit calls `cargo-audit audit` directly, since there is no `cargo` to
dispatch `cargo audit`.
- RAT installs JDK 17 with `actions/setup-java`.

The jobs that remain on `ubuntu-latest` compile Rust code or run in a
container.

# What changes are included in this PR?

See above. This PR also adds a note to `.github/workflows/README.md`
recommending `ubuntu-slim` for new jobs that are small and short.

# Are these changes tested?

CI change only. This PR's CI runs every moved job except deploy and
Publish, which only run on pushes to `main` and on release tags,
respectively.

# Are there any significant user-facing changes?

No.
@Jefffrey
Jefffrey deleted the alamb/ubuntu-slim-light-jobs branch November 19, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process Internal changes; PRs with this label are excluded from changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants