Skip to content

ci: experiment with native AOT builds on ubuntu-26.04 - #4298

Closed
theletterf wants to merge 6 commits into
mainfrom
ci/experiment-ubuntu-26-aot
Closed

theletterf wants to merge 6 commits into
mainfrom
ci/experiment-ubuntu-26-aot

Conversation

@theletterf

@theletterf theletterf commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

This is the experiment side of #4297: before we decide how long to stay pinned, I want measured evidence of what happens when docs-builder's native AOT binary is built on Ubuntu 26.04 instead of 24.04.

elastic/docs-actions#390 already showed that a 24.04-built binary runs fine on 26.04. This PR tests the other direction, which is the one that would bite us after ubuntu-latest moves to 26.04 in November (runner-images#14748).

I added a single workflow, experiment-ubuntu-26-aot.yml, that only triggers on changes to itself:

  • zip: runs ./build.sh publishzip on ubuntu-24.04 and ubuntu-26.04, and writes the host glibc and the binary's highest required GLIBC_* symbol to the job summary.
  • run-zip: runs each binary on both images (2×2), prints --version, and builds a small docs fixture. This is the path the docs-actions docs-builder/setup action takes.
  • container: runs publishcontainers (with DOCKER_NO_PUBLISH=true) then runlocalcontainer on each image, which layers the host-built binary onto runtime-deps:10.0-noble-chiseled. That's exactly what release.yml and prerelease.yml ship.

If the 26.04-built binary fails on 24.04 or in the container with GLIBC_x.y not found, that red check is the finding, not a broken draft. It's what justifies #4297. If everything passes, we have evidence that the pin is precautionary and can be lifted, perhaps alongside a move to a newer chiseled base.

Permissions are contents: read only, nothing gets pushed to a registry, and artifacts expire after three days. This stays in draft and isn't meant to be merged.

🤖 Generated with Claude Code

Related to #4346

Build the release zip and containers on ubuntu-24.04 and ubuntu-26.04,
report the glibc floor of each binary, and run each binary on both
images and inside the noble-chiseled base.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@theletterf theletterf added the automation packaging, ci/cd. label Oct 2, 2026
@theletterf
theletterf marked this pull request as ready for review October 28, 2026 09:40
@theletterf
theletterf requested a review from a team as a code owner October 28, 2026 09:40
@theletterf
theletterf requested a review from akira28 October 28, 2026 09:40
run: dotnet run --project build -c release -- publishcontainers

- name: Run Container
run: dotnet run --project build -c release -- runlocalcontainer

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Severity: P2 (Medium)

The existing runlocalcontainer target invokes docker docker run ... for both images (build/Targets.fs:102–104). Docker rejects the extra docker subcommand before starting a container, so both container checks will fail independently of glibc compatibility and never exercise the AOT binaries. Fix the target or invoke docker run directly here so these failures provide meaningful compatibility evidence.

Generated by Libra. React with 👍 or 👎 to give feedback on this comment.

Mpdreamz and others added 3 commits November 4, 2026 14:03
`zizmor` asks for the `$/` self-repository form instead of `./` in `uses:`, and `actionlint` flags the three separate `>>` redirects in the glibc report (SC2129). The two bootstrap steps now use `$/.github/actions/bootstrap`, and the report writes its table through one grouped redirect.

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

Mpdreamz commented Nov 4, 2026

Copy link
Copy Markdown
Member

Fixed the two failing checks. zizmor wants $/.github/actions/bootstrap instead of ./... in the two uses: lines, and actionlint flagged SC2129 on the three separate >> redirects in the glibc report, which now share one grouped redirect. Both tools report no findings on this file locally, and I merged main. #4297 has merged, and this file's header says to remove it once the ubuntu-latest decision is made, so consider closing this unmerged.

@Mpdreamz

Mpdreamz commented Nov 4, 2026

Copy link
Copy Markdown
Member

Closing: the experiment answered its question. A binary built on 26.04 is fine, so there is no reason to keep the pin once ubuntu-latest rolls over to 26.04. We'll move the pinned jobs off ubuntu-24.04 when that happens. The lint fixes pushed here are not needed once the workflow is gone.

@Mpdreamz Mpdreamz closed this Nov 4, 2026
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.

2 participants