From 353dc8234e2a747521c2235ca2cb0f7af7a85ef3 Mon Sep 17 00:00:00 2001 From: Junwang Zhao Date: Fri, 27 Feb 2026 14:39:07 +0800 Subject: [PATCH 1/2] chore: use ubuntu-slim for lightweight jobs 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 --- .github/workflows/audit.yml | 2 +- .github/workflows/bindings_python_ci.yml | 4 ++-- .github/workflows/ci_typos.yml | 2 +- .github/workflows/codeql.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index abe0c377c5..2606736f88 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -41,7 +41,7 @@ permissions: jobs: security_audit: - runs-on: ubuntu-latest + runs-on: ubuntu-slim if: github.repository == 'apache/iceberg-rust' steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/bindings_python_ci.yml b/.github/workflows/bindings_python_ci.yml index a78f27b0b1..dbf7c0b6ce 100644 --- a/.github/workflows/bindings_python_ci.yml +++ b/.github/workflows/bindings_python_ci.yml @@ -45,7 +45,7 @@ permissions: jobs: check-rust: - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - uses: actions/checkout@v6 - name: Check format @@ -56,7 +56,7 @@ jobs: run: cargo clippy --all-targets --all-features -- -D warnings check-python: - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - uses: actions/checkout@v6 - uses: astral-sh/setup-uv@v7 diff --git a/.github/workflows/ci_typos.yml b/.github/workflows/ci_typos.yml index 38541bffbc..1dd42ed257 100644 --- a/.github/workflows/ci_typos.yml +++ b/.github/workflows/ci_typos.yml @@ -38,7 +38,7 @@ permissions: jobs: typos-check: name: typos check - runs-on: ubuntu-latest + runs-on: ubuntu-slim timeout-minutes: 10 env: FORCE_COLOR: 1 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 7fef7973e5..17bfd8bf3d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -33,7 +33,7 @@ permissions: jobs: analyze: name: Analyze Actions - runs-on: ubuntu-latest + runs-on: ubuntu-slim permissions: contents: read security-events: write From 01fc70acbd2b44810b3043489ba536123a2c507e Mon Sep 17 00:00:00 2001 From: Junwang Zhao Date: Fri, 27 Feb 2026 15:07:50 +0800 Subject: [PATCH 2/2] ubuntu-slim doesn't have cargo/rustup, so revert these two changes --- .github/workflows/audit.yml | 2 +- .github/workflows/bindings_python_ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 2606736f88..abe0c377c5 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -41,7 +41,7 @@ permissions: jobs: security_audit: - runs-on: ubuntu-slim + runs-on: ubuntu-latest if: github.repository == 'apache/iceberg-rust' steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/bindings_python_ci.yml b/.github/workflows/bindings_python_ci.yml index dbf7c0b6ce..78e1a9615c 100644 --- a/.github/workflows/bindings_python_ci.yml +++ b/.github/workflows/bindings_python_ci.yml @@ -45,7 +45,7 @@ permissions: jobs: check-rust: - runs-on: ubuntu-slim + runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - name: Check format