fix(image): give every image its own job container release #38

Merged
Defame1297 merged 4 commits from fix/image-job-container-per-entry into main 2026-10-26 19:09:32 +00:00
Owner

Why

kaniko runs inside the job container and unpacks the image it builds over it. With one ubuntu:26.04 job container, the molecule-ubuntu2404 build (run 2529) mixed glibc 2.39 into a 2.42 userland: GLIBC_2.42 not found, and the credential cleanup step died too. The job container must be the same Ubuntu release as the image's FROM lines.

What

  • image.yml: every matrix entry has job_image: ubuntu:<release>@sha256:... (24.04 for molecule-ubuntu2404; 26.04 for molecule-ubuntu2604 and ci); the job container is ${{ matrix.job_image }}.
  • check_image_versions.py pins fails when a Dockerfile's FROM ubuntu: release differs from job_image, when a FROM is not Ubuntu or holds a variable, when job_image is missing, quoted or malformed, or when the container line is not the matrix expression directly under container:.
  • check_bot_pr_diff.py: a bot may change the tag and digest of job_image: lines only (same rule as the old container line).
  • renovate.json: a regex manager tracks job_image (never automerged: the job holds the push credential). Major ubuntu updates are disabled everywhere: a new release is a deliberate edit of the Dockerfile and job_image together, which the check enforces.
  • CLAUDE.md, the ci Dockerfile comment, tests (129 pass).

Review

Three read-only reviewers (scripts and guard; workflow and Renovate config; update loop and docs) found no way for a bot PR to change more than a job_image tag/digest. Their findings (unchecked non-ubuntu stages, lookalike container line, quoted job_image, stale comments) are fixed in the second commit.

Verified / not verified

  • Verified: hooks, 129 script tests, pins and bump on the real files; the act source interpolates matrix expressions in container.image (not run).
  • Not verified: the first Images run on main after the merge is the real test (that run builds molecule-ubuntu2404 0.1.2 on 24.04, and molecule-ubuntu2604 0.1.0 if #37's build did not already publish it). Renovate's regex manager and ubuntu versioning have not run.
  • Not fixed: a pin-only PR for the molecule image still merges without molecule having run on it.

🤖 Generated with Claude Code

## Why kaniko runs inside the job container and unpacks the image it builds over it. With one `ubuntu:26.04` job container, the `molecule-ubuntu2404` build (run 2529) mixed glibc 2.39 into a 2.42 userland: `GLIBC_2.42 not found`, and the credential cleanup step died too. The job container must be the same Ubuntu release as the image's `FROM` lines. ## What - `image.yml`: every matrix entry has `job_image: ubuntu:<release>@sha256:...` (24.04 for `molecule-ubuntu2404`; 26.04 for `molecule-ubuntu2604` and `ci`); the job container is `${{ matrix.job_image }}`. - `check_image_versions.py pins` fails when a Dockerfile's `FROM ubuntu:` release differs from `job_image`, when a `FROM` is not Ubuntu or holds a variable, when `job_image` is missing, quoted or malformed, or when the container line is not the matrix expression directly under `container:`. - `check_bot_pr_diff.py`: a bot may change the tag and digest of `job_image:` lines only (same rule as the old container line). - `renovate.json`: a regex manager tracks `job_image` (never automerged: the job holds the push credential). Major `ubuntu` updates are disabled everywhere: a new release is a deliberate edit of the Dockerfile and `job_image` together, which the check enforces. - `CLAUDE.md`, the `ci` Dockerfile comment, tests (129 pass). ## Review Three read-only reviewers (scripts and guard; workflow and Renovate config; update loop and docs) found no way for a bot PR to change more than a `job_image` tag/digest. Their findings (unchecked non-ubuntu stages, lookalike container line, quoted `job_image`, stale comments) are fixed in the second commit. ## Verified / not verified - Verified: hooks, 129 script tests, `pins` and `bump` on the real files; the act source interpolates matrix expressions in `container.image` (not run). - Not verified: the first Images run on `main` after the merge is the real test (that run builds `molecule-ubuntu2404` 0.1.2 on 24.04, and `molecule-ubuntu2604` 0.1.0 if #37's build did not already publish it). Renovate's regex manager and `ubuntu` versioning have not run. - Not fixed: a pin-only PR for the molecule image still merges without molecule having run on it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 2 commits 2026-10-26 19:04:47 +00:00
kaniko runs inside the job container and unpacks the image it builds over it, so the
job container must be the same Ubuntu release as the image's FROM lines. A single
ubuntu:26.04 job container broke the molecule-ubuntu2404 build (run 2529: GLIBC_2.42
not found, then the credential cleanup step died too).

Each matrix entry now names job_image, check_image_versions.py pins fails when it
differs from the Dockerfile's release, the bot-diff guard allows tag and digest edits
of job_image lines, Renovate tracks them with a regex manager (never automerged), and
major ubuntu updates are disabled everywhere: a new release is a deliberate edit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
fix(image): make the job container check fail closed
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Failing after 10s
Lint / lint (pull_request) Failing after 6s
bc5ae09de7
Review findings: a non-ubuntu or variable FROM went unchecked, the registry-prefixed
ubuntu forms were missed, the container line could be satisfied by a lookalike in a run
block, and a quoted job_image passed the check but not the bot-diff guard or Renovate.
Also: stale ci Dockerfile base comment, the pins error now says what to edit, and the
docs state that a job_image-only bump rebuilds nothing.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 added 2 commits 2026-10-26 19:09:04 +00:00
A comment edit in images/ci/Dockerfile is an image input, so the bump check wants a
version bump and a rebuild for nothing; the stale base comment waits for the next real ci
change. Two test strings had no interpolation (pylint f-string-without-interpolation).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
docs(image): correct the ci Dockerfile base-image comment and bump ci to 0.2.5
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 12s
28a96e2ee5
The comment still named ubuntu:24.04 above a FROM ubuntu:26.04. A Dockerfile edit is an
image input, so ci gets its PATCH bump (scripts/bump_image_versions.py) and a rebuild.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-10-26 19:09:29 +00:00
Defame1297 merged commit e389cfa10d into main 2026-10-26 19:09:32 +00:00
Defame1297 deleted branch fix/image-job-container-per-entry 2026-10-26 19:09:33 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#38