refactor(images): image docs next to the images, check_image_versions.py pins only #169

Open
opened 2026-11-15 14:29:16 +00:00 by Claude · 4 comments
Owner

Spec: CI image pipeline: keep, simplify or replace, resolution sections 1, 2, 5 and 6. This also carries the image-doc items owed from Resolve stale and contradictory claims. It comes after ci(images): assign image versions in CI and open the pin PR right after a push, which changes the same files.

What

  • One Dockerfile per image: images/molecule-ubuntu2404 and images/molecule-ubuntu2604 stay separate (decided in Molecule and Renovate on the shared runner: isolation, capacity and cost, item 5: a release build argument would need a regex manager, a bot-gate exception, a pins check that reads build arguments and per-release label arguments, and the Debian 13 image differs by more than a release tag). No custom check that the files differ only on expected lines; review holds that.
  • Docs next to the images:
    • images/ci/README.md and one doc for the molecule images replace docs/images/*.md.
    • *.md under images/ is not an image input.
    • The documentation labels point at the new paths. A label edit is an input.
    • The line about "the home lab's LXC hosts" goes.
  • ci header: state the measured saving (Lint about 82s without the image vs 15-25s with it; Build about 50s vs 10-25s) so a later reader can check it still pays. Also state the cost side: the image build time and how often the image was rebuilt over a stated period (ci went 0.1.0 to 0.2.23 in three weeks, 9 versions on Nov 14-15; each version costs an image build on the shared runner plus a pin pull request's CI), or say they were not measured.
  • check_image_versions.py: pins mode only. It keeps these checks, each with a one-line reason, and is rewritten for the new layout as small as it will go:
    • the job_image release equals the Dockerfile FROM;
    • the label block is complete;
    • no production namespace appears in workflows;
    • the image doc exists;
    • the .python-version check (check_python_pin: lock header and ARG PYTHON_VERSION);
    • the consumer-pin shape check, in whatever form survives CI-assigned versions.

Acceptance

  • Lint is green.
  • Both molecule images build on main, and their smoke scenarios pass.
  • Renovate's local dry run (renovate --platform=local) finds both base digests.
Spec: [CI image pipeline: keep, simplify or replace](https://git.rkdr.net/Mortis/Kamino/issues/96), resolution sections 1, 2, 5 and 6. This also carries the image-doc items owed from [Resolve stale and contradictory claims](https://git.rkdr.net/Mortis/Kamino/issues/95). It comes after [ci(images): assign image versions in CI and open the pin PR right after a push](https://git.rkdr.net/Mortis/Kamino/issues/165), which changes the same files. ## What - **One Dockerfile per image:** `images/molecule-ubuntu2404` and `images/molecule-ubuntu2604` stay separate (decided in [Molecule and Renovate on the shared runner: isolation, capacity and cost](https://git.rkdr.net/Mortis/Kamino/issues/212), item 5: a release build argument would need a regex manager, a bot-gate exception, a `pins` check that reads build arguments and per-release label arguments, and the Debian 13 image differs by more than a release tag). No custom check that the files differ only on expected lines; review holds that. - **Docs next to the images:** - `images/ci/README.md` and one doc for the molecule images replace `docs/images/*.md`. - `*.md` under `images/` is not an image input. - The `documentation` labels point at the new paths. A label edit is an input. - The line about "the home lab's LXC hosts" goes. - **`ci` header:** state the measured saving (Lint about 82s without the image vs 15-25s with it; Build about 50s vs 10-25s) so a later reader can check it still pays. Also state the cost side: the image build time and how often the image was rebuilt over a stated period (`ci` went 0.1.0 to 0.2.23 in three weeks, 9 versions on Nov 14-15; each version costs an image build on the shared runner plus a pin pull request's CI), or say they were not measured. - **`check_image_versions.py`: `pins` mode only.** It keeps these checks, each with a one-line reason, and is rewritten for the new layout as small as it will go: - the `job_image` release equals the Dockerfile `FROM`; - the label block is complete; - no production namespace appears in workflows; - the image doc exists; - the `.python-version` check (`check_python_pin`: lock header and `ARG PYTHON_VERSION`); - the consumer-pin shape check, in whatever form survives CI-assigned versions. ## Acceptance - Lint is green. - Both molecule images build on `main`, and their smoke scenarios pass. - Renovate's local dry run (`renovate --platform=local`) finds both base digests.
Claude added the
Status
Ready for Agent
label 2026-11-15 14:29:16 +00:00
Claude added this to the Continuous delivery milestone 2026-11-15 22:21:20 +00:00
Author
Owner

Review of the map (2026-11-15): corrections to this issue.

  • The ci header records the saving but not its cost. The issue says to state the per-run saving (Lint about 82s vs 15-25s; Build about 50s vs 10-25s) "so a later reader can check it still pays". That check also needs the other side. The resolution of CI image pipeline: keep, simplify or replace notes ci went "0.1.0 → 0.2.23 in three weeks (9 versions on Nov 14–15)", and each version costs an image build on the shared runner plus a pin pull request's CI. Change: the header also states the image build time and how often the image was rebuilt over a stated period, or says they were not measured.

Waiting on another decision: whether to merge the two molecule Dockerfiles into one at all waits on Molecule and Renovate on the shared runner: isolation, capacity and cost.

Review of the map (2026-11-15): corrections to this issue. - **The `ci` header records the saving but not its cost.** The issue says to state the per-run saving (Lint about 82s vs 15-25s; Build about 50s vs 10-25s) "so a later reader can check it still pays". That check also needs the other side. The resolution of [CI image pipeline: keep, simplify or replace](https://git.rkdr.net/Mortis/Kamino/issues/96) notes `ci` went "0.1.0 → 0.2.23 in three weeks (9 versions on Nov 14–15)", and each version costs an image build on the shared runner plus a pin pull request's CI. Change: the header also states the image build time and how often the image was rebuilt over a stated period, or says they were not measured. Waiting on another decision: whether to merge the two molecule Dockerfiles into one at all waits on [Molecule and Renovate on the shared runner: isolation, capacity and cost](https://git.rkdr.net/Mortis/Kamino/issues/212).
Author
Owner

Scope changed by Molecule and Renovate on the shared runner: isolation, capacity and cost, item 5: keep one Dockerfile per molecule image. Drop "one molecule Dockerfile": a release build argument would need a regex manager, a bot-gate exception, a pins check that reads build arguments, and per-release label arguments, and the Debian 13 image (#226) differs by more than a release tag. No custom check that the files differ only on expected lines; review holds that. The rest of this issue (docs next to the images, check_image_versions.py pins only) stands.

Scope changed by [Molecule and Renovate on the shared runner: isolation, capacity and cost](https://git.rkdr.net/Mortis/Kamino/issues/212), item 5: **keep one Dockerfile per molecule image.** Drop "one molecule Dockerfile": a release build argument would need a regex manager, a bot-gate exception, a `pins` check that reads build arguments, and per-release label arguments, and the Debian 13 image (#226) differs by more than a release tag. No custom check that the files differ only on expected lines; review holds that. The rest of this issue (docs next to the images, `check_image_versions.py` pins only) stands.
Author
Owner

Review of the map (2026-11-17).

The list of checks to keep predates two things. Also keep the .python-version check (check_python_pin: lock header and ARG PYTHON_VERSION), added on 2026-11-16 and named by the floor issue and the agent context, and the consumer-pin shape check in whatever form survives CI-assigned versions.

Proposed, not done: title "refactor(images): image docs next to the images, check_image_versions.py pins only". The shared-runner decision kept one Dockerfile per image, so "one molecule Dockerfile" in the title now says the opposite of the spec.

Review of the map (2026-11-17). The list of checks to keep predates two things. Also keep the `.python-version` check (`check_python_pin`: lock header and `ARG PYTHON_VERSION`), added on 2026-11-16 and named by the floor issue and the agent context, and the consumer-pin shape check in whatever form survives CI-assigned versions. Proposed, not done: title "refactor(images): image docs next to the images, check_image_versions.py pins only". The shared-runner decision kept one Dockerfile per image, so "one molecule Dockerfile" in the title now says the opposite of the spec.
Claude changed title from refactor(images): one molecule Dockerfile, image docs next to the images, check_image_versions.py pins only to refactor(images): image docs next to the images, check_image_versions.py pins only 2026-11-20 21:51:33 +00:00
Author
Owner

Body rewritten on 2026-11-20 to the final state of the comments above (final validation round of the map, #87 (comment)). The body is the spec; the earlier comments are history.

  • No decision of that round changes this issue. The rewrite carries the earlier comments: one Dockerfile per image (no RELEASE argument, no regex manager), the ci header states cost as well as saving, the .python-version and consumer-pin checks stay, and the title is the one proposed on 2026-11-17.
Body rewritten on 2026-11-20 to the final state of the comments above (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281). The body is the spec; the earlier comments are history. - No decision of that round changes this issue. The rewrite carries the earlier comments: one Dockerfile per image (no `RELEASE` argument, no regex manager), the `ci` header states cost as well as saving, the `.python-version` and consumer-pin checks stay, and the title is the one proposed on 2026-11-17.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#169