Skip to content

fix(ci): pin every job's runner to ubuntu-24.04 before ubuntu-latest becomes Ubuntu 26 - #586

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/544-pin-runner-image
Oct 6, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/544-pin-runner-image

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Refs #544. This covers its parts 1 and 2. Part 3, a trial run on the Ubuntu 26 image before 2026-10-19, is a separate throwaway draft PR, so this one uses "Refs" rather than "Fixes".

Decision: pin

ubuntu-latest moves to Ubuntu 26 from 2026-10-19, and every one of the 23 jobs (CI, release, docs, auto-merge) rode it. Everything else this repository depends on is pinned: modules in go.mod, actions to commit SHAs, golangci-lint to an exact version. The runner OS was the only dependency that changed without a commit.

It matters most where the image is the thing under test. packaging mounts through a /dev/fuse and fusermount3 nobody declared, runs systemd-analyze verify (systemd-version-sensitive) and Lmod from the image, and its rpm step uses a container because the image has no rpm. With integrity first, a change underneath all of those should be a reviewable PR, not a date on GitHub's calendar.

I considered pinning only the image-sensitive jobs and letting the pure-Go jobs float. I rejected it: two images means a result in one job says less about another, and the cost of pinning all of them is one sed per bump.

Change

  • All 23 runs-on: ubuntu-latest → runs-on: ubuntu-24.04.
  • Three comments that described the image as ubuntu-latest in the present tense are corrected: the /dev/fuse probe's migration note, "four [fuzz workers] on ubuntu-latest", and "no rpm on ubuntu-latest". Comments that quote the old wrong /dev/fuse claim are left as quotations.
  • TestEveryWorkflowJobPinsItsRunnerImage (internal/config/runner_image_test.go) enforces one literal label, runnerImage, across every job. It goes through the shared parser, which gains a RunsOn field instead of a sixth hand-rolled walk. Reusable-workflow callers are skipped, because Actions rejects runs-on beside uses: and the jobs they call are walked anyway. Floor: 20 jobs.

Verification

go test -race ./internal/config/ is clean. Four mutations, each failing with its own message:

Mutation Fails at
one job back on ubuntu-latest -latest check (line 53)
ubuntu-22.04 on one job wrong-pin check (line 58)
runs-on: [self-hosted, linux] not-one-label check (line 49)
runs-on deleted missing check (line 47)

My first attempt at the first mutation used GNU sed's 0,/re/ address. macOS sed ignored it, left the file unchanged, and exited 0, so the test "passed". I redid it with a plain substitution, and it fails as shown. Noted because a passing mutation is supposed to mean a gap in the test, and here it didn't.

Moving the pin later

Change runnerImage and every runs-on: in one PR, and read its run.

🤖 Generated with Claude Code

…becomes Ubuntu 26 (#544)

All 23 jobs across the five workflows ran on ubuntu-latest, which GitHub
moves to Ubuntu 26 from 2026-10-19. It was the one dependency here that
changed without a commit: modules are in go.mod, actions are SHA-pinned,
golangci-lint is pinned, and the OS under all of it floated. The packaging
job depends on the image directly: an undeclared /dev/fuse and fusermount3,
systemd-analyze verify, Lmod, and the absence of rpm.

Pin everything to ubuntu-24.04, so moving the image is a reviewed PR rather
than a date. Three comments that described the image as ubuntu-latest in
the present tense are corrected; comments quoting the old /dev/fuse claim
are left as quotations.

TestEveryWorkflowJobPinsItsRunnerImage enforces it through the shared
parser, which gains a RunsOn field. Four mutations, each failing with its
own message: one job back on ubuntu-latest, a different pin
(ubuntu-22.04), a label list, and runs-on deleted. Floor of 20 jobs walked.
@scttfrdmn
scttfrdmn merged commit 8b49adb into main Oct 6, 2026
42 checks passed
@scttfrdmn
scttfrdmn deleted the fix/544-pin-runner-image branch October 6, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant