Skip to content

ci: move several jobs to ubuntu-slim runner - #11774

Merged
alamb merged 4 commits into
apache:mainfrom
neilconway:neilc/ci-ubuntu-slim
Oct 23, 2026
Merged

alamb merged 4 commits into
apache:mainfrom
neilconway:neilc/ci-ubuntu-slim

Conversation

@neilconway

@neilconway neilconway commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

The shared ASF Infra ubuntu-latest runner pool is frequently saturated. ASF Infra recommends using the ubuntu-slim pool instead, 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 #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.

The suite selector gates every other CI job, so it previously waited in
the saturated ubuntu-latest queue before any suite could start. Run it
and the short lint jobs (cargo fmt, cargo-shear, audit, typos) plus the
docs deploy on ubuntu-slim, which ASF Infra recommends for small, short
jobs.

ubuntu-slim has no Docker engine or Rust toolchain, so cargo fmt and
cargo-shear drop the amd64/rust container and install rustup with the
toolchain from rust-toolchain.toml through a new setup-rustup action.
The audit job calls the cargo-audit binary directly.
@github-actions github-actions Bot added the development-process Internal changes; PRs with this label are excluded from changelog label Oct 21, 2026
@mbutrovich

Copy link
Copy Markdown
Contributor

We had an issue for this before, and did a first pass: #9536

is there something long-term we should add to CI docs to remind folks to put new jobs on ubuntu-slim?

@neilconway

Copy link
Copy Markdown
Contributor Author

@mbutrovich I added a note to .github/workflows/README.md.

@mbutrovich

Copy link
Copy Markdown
Contributor

I'm not sure if anything that uses the rustup toolchain will actually work, but worth a shot.

@alamb

alamb commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Sorry @neilconway and @mbutrovich -- I independently discovered this:

@mbutrovich

mbutrovich commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

For context: https://github.blog/changelog/2025-10-28-1-vcpu-linux-runner-now-available-in-github-actions-in-public-preview/

These runners have one vCPU and 5 GBs RAM.
Jobs that use this runner type are limited to 15 minutes of execution time. Jobs exceeding this limit will be terminated and fail.

Good use cases for these runners include jobs like:

Auto-labelling issues
Basic language compilation (e.g., webpack builds)
Linting and formatting

This was linked from the original arrow-rs issue I filed: #9536

RAT runs on every pull request and takes about 15 seconds, but it queues
for an ubuntu-latest runner first. ubuntu-slim has no Java, so install
JDK 17 with setup-java, pinned to the same version as parquet.yml.

The release job only calls `gh release create`, and ubuntu-slim includes
the GitHub CLI.
@neilconway
neilconway marked this pull request as ready for review October 23, 2026 14:27
@neilconway

Copy link
Copy Markdown
Contributor Author

@alamb I added your changes to move RAT and release-publish over to ubuntu-slim, so this PR now should be a superset of #11803. Let me know what you think!

@alamb alamb 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.

Thanks @neilconway -- this looks good to me

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

Pull request was closed

@alamb alamb reopened this Oct 23, 2026
@alamb

alamb commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Sorry I closed the wrong PR by accident

@alamb
alamb enabled auto-merge October 23, 2026 15:28
@alamb
alamb added this pull request to the merge queue Oct 23, 2026
Merged via the queue into apache:main with commit 31caa38 Oct 23, 2026
46 of 69 checks passed
- name: Install rustup
shell: bash
run: |
curl --proto '=https' --tlsv1.2 --retry 3 -sSf https://sh.rustup.rs \

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.

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.

4 participants