Skip to content

Build: use ubuntu-slim for lightweight jobs#15457

Merged
nastra merged 3 commits intoapache:mainfrom
zhjwpku:use_ubuntu-slim_for_lightweight_jobs
Mar 2, 2026
Merged

Build: use ubuntu-slim for lightweight jobs#15457
nastra merged 3 commits intoapache:mainfrom
zhjwpku:use_ubuntu-slim_for_lightweight_jobs

Conversation

@zhjwpku
Copy link
Contributor

@zhjwpku zhjwpku commented Feb 27, 2026

ubuntu-slim is a new cost-efficient runner to fit lightweight jobs. We can use this to save ASF infra usage (if possible).

By lightweight I mean jobs that run for less than a minute and are not easily affected by other concurrently running jobs on the same host.

This topic was raised in the Apache ORC project and later adopted by iceberg-cpp. We believe it could also benefit other projects under the Apache Iceberg umbrella.

Refs:

ubuntu-slim is a new cost-efficient runner to fit lightweight jobs.
We can use this to save ASF infra usage (if possible).

By *lightweight* I mean jobs that run for less than a minute and
are not easily affected by other concurrently running jobs on the
same host.

This topic was raised in the Apache ORC project and later adopted
by iceberg-cpp. We believe it could also benefit other projects
under the Apache Iceberg umbrella.

Refs:

- https://github.blog/changelog/2025-10-28-1-vcpu-linux-runner-now-available-in-github-actions-in-public-preview/
- https://github.com/actions/runner-images/blob/main/images/ubuntu-slim/ubuntu-slim-Readme.md
- apache/iceberg-cpp#578
@github-actions github-actions bot added the INFRA label Feb 27, 2026
@zhjwpku
Copy link
Contributor Author

zhjwpku commented Feb 27, 2026

From the message in Set up job, the failing job is running on ubuntu-24.04, which is unlikely to be caused by this PR. I'll rebase it to main branch to trigger CI and see how it goes.

@nastra nastra closed this Feb 27, 2026
@nastra nastra reopened this Feb 27, 2026
@zhjwpku
Copy link
Contributor Author

zhjwpku commented Mar 1, 2026

Hi @nastra, thank you for reopening this PR, it seems the CI now passing, I'd appreciate it if you take another look, nice day ;)

jobs:
deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-slim
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can also configure the same for license-check.yml / stale.yml / open-api.yml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

license-check.yml requires Java to be installed, which ubuntu-slim does not provide. So I applied the change only to stale.yml and open-api.yml. Thanks for catching this.

@nastra nastra changed the title chore: use ubuntu-slim for lightweight jobs Build: use ubuntu-slim for lightweight jobs Mar 2, 2026
@nastra nastra merged commit 6534be1 into apache:main Mar 2, 2026
35 checks passed
@zhjwpku zhjwpku deleted the use_ubuntu-slim_for_lightweight_jobs branch March 2, 2026 15:46
RjLi13 pushed a commit to RjLi13/iceberg that referenced this pull request Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants