From aa339edfe7c9a84f5ccab57749b86d7a926ffcfc Mon Sep 17 00:00:00 2001 From: Samuel Karp Date: Wed, 14 Oct 2026 21:42:20 +0000 Subject: [PATCH] workflows: pin runner to ubuntu-24.04 Pin workflow runners to ubuntu-24.04 to avoid deprecation warnings and breaking changes when ubuntu-latest migrates to Ubuntu 26. Assisted-by: Antigravity Signed-off-by: Samuel Karp (cherry picked from commit f0e5cfae13ebf7f5a9f3aadc749821f373f5ec07) Signed-off-by: Samuel Karp --- .github/workflows/build-test-images.yml | 2 +- .github/workflows/ci.yml | 18 +++++++++--------- .github/workflows/codeql.yml | 4 ++-- .github/workflows/fuzz.yml | 4 ++-- .github/workflows/images.yml | 2 +- .github/workflows/nightly.yml | 2 +- .github/workflows/release.yml | 6 +++--- .github/workflows/scorecards.yml | 2 +- .github/workflows/stale.yml | 2 +- .github/workflows/windows-hyperv-periodic.yml | 2 +- .github/workflows/windows-periodic.yml | 2 +- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build-test-images.yml b/.github/workflows/build-test-images.yml index 051e7145c1..e6c321949a 100644 --- a/.github/workflows/build-test-images.yml +++ b/.github/workflows/build-test-images.yml @@ -33,7 +33,7 @@ jobs: permissions: packages: write name: "Build volume test images" - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 60 defaults: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1ab60c058..526698d3b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: - os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest] + os: [ubuntu-24.04, ubuntu-24.04-arm, macos-latest, windows-latest] exclude: - os: ${{ github.event.repository.private && 'ubuntu-24.04-arm' || '' }} - os: ${{ github.event.repository.private && 'macos-latest' || '' }} @@ -47,7 +47,7 @@ jobs: # project: name: Project Checks - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 steps: @@ -79,7 +79,7 @@ jobs: # protos: name: Protobuf - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 defaults: @@ -113,7 +113,7 @@ jobs: man: name: Manpages - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 steps: @@ -127,7 +127,7 @@ jobs: crossbuild: name: Crossbuild Binaries needs: [project, linters, protos, man] - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 10 strategy: fail-fast: false @@ -196,7 +196,7 @@ jobs: strategy: matrix: - os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest] + os: [ubuntu-24.04, ubuntu-24.04-arm, macos-latest, windows-latest] go-version: ["1.26.9"] exclude: - os: ${{ github.event.repository.private && 'ubuntu-24.04-arm' || '' }} @@ -594,7 +594,7 @@ jobs: integration-vm: name: VM integration - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 60 needs: [project, linters, protos, man] @@ -675,7 +675,7 @@ jobs: tests-cri-in-userns: name: "CRI-in-UserNS" - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 40 needs: [project, linters, protos, man] @@ -768,7 +768,7 @@ jobs: # See https://github.com/orgs/community/discussions/26822 results: name: Report required job statuses - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 # List job dependencies which are required to pass status checks in order to be merged via merge queue. needs: [linters, project, protos, binaries, integration-linux, integration-windows, tests-cri-in-userns, tests-mac-os, node-e2e] if: ${{ always() }} diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 156d0d6729..f69d43bcce 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -23,8 +23,8 @@ jobs: strategy: fail-fast: false - # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest - runs-on: ubuntu-latest + # CodeQL runs on ubuntu-24.04, windows-latest, and macos-latest + runs-on: ubuntu-24.04 timeout-minutes: 30 diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 93f1d4c775..ca02267083 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -9,7 +9,7 @@ jobs: ci_fuzz: name: CI Fuzz if: github.repository == 'containerd/containerd' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 60 steps: - name: Build Fuzzers @@ -37,7 +37,7 @@ jobs: go_test_fuzz: name : go test -fuzz if: github.repository == 'containerd/containerd' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 30 steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml index b1fa6db4cf..79612ca85b 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/images.yml @@ -15,7 +15,7 @@ permissions: # added using https://github.com/step-security/secure-workflows jobs: mirror: name: "Mirror Image" - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 30 permissions: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2eabb71a9e..a2b0258cd2 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -13,7 +13,7 @@ jobs: linux: name: Linux if: github.repository == 'containerd/containerd' || (github.event_name == 'pull_request' && !github.event.repository.private) - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 30 defaults: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01bdf615f9..56d41e1fe2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: check: name: Check Signed Tag if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && !github.event.repository.private - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 outputs: stringver: ${{ steps.contentrel.outputs.stringver }} @@ -65,7 +65,7 @@ jobs: build: name: Build Release Binaries if: ${{ !github.event.repository.private }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 30 strategy: matrix: @@ -137,7 +137,7 @@ jobs: contents: write id-token: write attestations: write - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 10 needs: [build, check] steps: diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index 53adb94180..162b3c4035 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -14,7 +14,7 @@ jobs: analysis: name: Scorecards analysis if: github.repository == 'containerd/containerd' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: # Needed to upload the results to code-scanning dashboard. security-events: write diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 0cc90c8449..a907498834 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -12,7 +12,7 @@ jobs: stale: # Prevents triggering on forks or other repos if: github.repository == 'containerd/containerd' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: issues: write diff --git a/.github/workflows/windows-hyperv-periodic.yml b/.github/workflows/windows-hyperv-periodic.yml index 58ed2cb1c7..9dbe0f00fb 100644 --- a/.github/workflows/windows-hyperv-periodic.yml +++ b/.github/workflows/windows-hyperv-periodic.yml @@ -49,7 +49,7 @@ jobs: AZURE_IMG: "MicrosoftWindowsServer:WindowsServer:2022-datacenter-smalldisk-g2:latest" AZURE_RESOURCE_GROUP: ctrd-integration-ltsc2022-${{ github.run_id }} GOOGLE_BUCKET: "containerd-integration/logs/windows-ltsc2022-hyperv/" - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/windows-periodic.yml b/.github/workflows/windows-periodic.yml index b4e4e33973..2970360600 100644 --- a/.github/workflows/windows-periodic.yml +++ b/.github/workflows/windows-periodic.yml @@ -48,7 +48,7 @@ jobs: AZURE_IMG: "MicrosoftWindowsServer:WindowsServer:2022-datacenter-smalldisk-g2:latest" AZURE_RESOURCE_GROUP: ctrd-integration-ltsc2022-${{ github.run_id }} GOOGLE_BUCKET: "containerd-integration/logs/windows-ltsc2022/" - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 90 steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0