Repository navigation
fix(ci): pin every job's runner to ubuntu-24.04 before ubuntu-latest becomes Ubuntu 26 - #586
Merged
Merged
Conversation
…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.
This was referenced Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-latestmoves 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 ingo.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.
packagingmounts through a/dev/fuseandfusermount3nobody declared, runssystemd-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
sedper bump.Change
runs-on: ubuntu-latest→runs-on: ubuntu-24.04.ubuntu-latestin the present tense are corrected: the/dev/fuseprobe's migration note, "four [fuzz workers] on ubuntu-latest", and "no rpm on ubuntu-latest". Comments that quote the old wrong/dev/fuseclaim 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 aRunsOnfield instead of a sixth hand-rolled walk. Reusable-workflow callers are skipped, because Actions rejectsruns-onbesideuses: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:ubuntu-latest-latestcheck (line 53)ubuntu-22.04on one jobruns-on: [self-hosted, linux]runs-ondeletedMy 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
runnerImageand everyruns-on:in one PR, and read its run.🤖 Generated with Claude Code