Skip to content

ci: pin native AOT build jobs to ubuntu-24.04 - #4297

Merged
Mpdreamz merged 3 commits into
mainfrom
ci/pin-ubuntu-24-binary-builds
Nov 4, 2026
Merged

Mpdreamz merged 3 commits into
mainfrom
ci/pin-ubuntu-24-binary-builds

Conversation

@theletterf

@theletterf theletterf commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

GitHub is moving ubuntu-latest to Ubuntu 26.04 in November (runner-images#14748), so I went through which docs-builder jobs would actually care.

The ones that matter are the jobs that ship a Linux binary. docs-builder is published with native AOT on the runner itself, so the binary picks up the build host's glibc symbol versions. The current 1.61.0 docs-builder-linux-x64.zip, built on 24.04 (glibc 2.39), already requires GLIBC_2.38. If the same build runs on 26.04, the floor will likely move up again, and that binary then has to run in places that are still on 24.04:

This PR pins the jobs that produce those artifacts to ubuntu-24.04:

  • release.yml: containers, and the Linux entry of the release matrix (publishzip)
  • prerelease.yml: build (edge containers)
  • ci.yml: the Linux entry of the build matrix. The job name stays build (${{ matrix.os }}) and a new matrix.runner value selects the runner. The required build (ubuntu-latest) check keeps its name, and the existing matrix.os == 'ubuntu-latest' conditions are unchanged.

Everything else stays on ubuntu-latest. The Lambdas already build inside Amazon Linux 2023 containers, so the host image doesn't affect them. I left a comment next to each pin so the next bump happens together with the base image.

Two things I couldn't check: the docs-builder-latest-16 and docs-internal-latest-16 large runners are configured at org level, and I don't have access to see which image they use. The 26.04 side of this will be tested separately in a draft PR.

🤖 Generated with Claude Code

Related to #4346

Native AOT binaries link against the build host glibc. Pin the jobs
that ship Linux binaries or containers so the ubuntu-latest move to
26.04 does not raise the glibc floor above the noble-chiseled base
image and the runners that consume the release zip.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@theletterf
theletterf requested a review from a team as a code owner October 2, 2026 11:18
@theletterf
theletterf requested a review from reakaleek October 2, 2026 11:18
@theletterf theletterf added the automation packaging, ci/cd. label Oct 2, 2026

@github-actions github-actions Bot 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.

No actionable issues found.


What is this? | From workflow: PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Comment thread .github/workflows/ci.yml Resolved
Pinning the Linux `build` job to `ubuntu-24.04` renamed its check to `build (ubuntu-24.04)`. Branch protection requires `build (ubuntu-latest)`, so that check would never report. The job name is now `build (${{ matrix.os }})` and a separate `matrix.runner` selects the runner. The `matrix.os == 'ubuntu-latest'` conditions that arrived from main stay valid.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Mpdreamz

Mpdreamz commented Nov 4, 2026

Copy link
Copy Markdown
Member

I merged main into this branch (it conflicted in ci.yml) and changed how the build matrix is pinned. Pushed as b8dc608.

Why the matrix changed. With os: ubuntu-24.04 in the matrix, the Linux job reports as build (ubuntu-24.04). The ruleset on main requires build (ubuntu-latest), so that check would never report. This PR would sit on "Expected, waiting for status", and after merging, every other PR would be stuck the same way until an admin edited the ruleset.

What it does now. The job name is fixed to build (${{ matrix.os }}) and a separate matrix.runner value selects the runner:

name: build (${{ matrix.os }})
runs-on: ${{ matrix.runner }}
strategy:
  matrix:
    include:
      - os: ubuntu-latest
        runner: ubuntu-24.04
      - os: macos-latest
        runner: macos-latest
      - os: windows-latest
        runner: windows-latest

The check names stay build (ubuntu-latest), build (macos-latest) and build (windows-latest). A later runner bump changes only runner:, never a required check. The matrix.os == 'ubuntu-latest' conditions that main added since this branch started stay valid, so the schema check, AOT publish and container steps still run on the Linux job. In the first version of this fix, two of those new conditions would have been silently skipped.

Verified: actionlint shows no new findings on ci.yml, and the pre-commit and pre-push hooks pass.
Not verified: the check names as GitHub reports them. Please confirm build (ubuntu-latest) shows up on the next run, and that the job really runs on 24.04 (the Set up job log shows the image). The release.yml matrix is not a required check, so I left it using os: ubuntu-24.04 directly.

I also updated the description, since its ci.yml bullet described the old approach.

@Mpdreamz
Mpdreamz merged commit 9994650 into main Nov 4, 2026
39 checks passed
@Mpdreamz
Mpdreamz deleted the ci/pin-ubuntu-24-binary-builds branch November 4, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation packaging, ci/cd.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants