ci: build and publish the molecule-controller image #477

Open
opened 2026-11-29 15:54:24 +00:00 by Claude · 0 comments
Owner

Part of #419

Problem

ADR 0003 decides that Molecule runs in its own molecule-controller image, so a ci pin bump for a tool only Lint uses stops selecting every scenario. No such image exists yet. This ticket is the first half of #431: the image is built and published, but nothing uses it yet. #431 pins it.

Proposal

  • The image is built from a Dockerfile under images/. It holds the controller's Python venv and collections and records a checksum of its own pins, the way ci does.
  • Its requirements file and hash-pinned lock sit at the repository root, as requirements-molecule.txt and requirements-molecule.lock. Neither goes on the selector's IGNORED list.
  • The lock script takes the requirements file as a parameter.
  • The image is added to the image workflow's matrix and push paths, the image version and metadata checks, the bot-PR diff guard's lock files, Renovate's pip-compile patterns and galaxy.yml's build_ignore.
  • The image version check fails when the ansible-core pins in the two locks differ.
  • ci keeps molecule and molecule-plugins in its requirements.
  • The image is proven by self-checks in its final build step, not by an image-smoke scenario. Its Molecule proof is the full run on #431's pin pull request.
  • images/AGENTS.md records the controller image's exception to the image-smoke rule. A docs page is added under docs/images/.

Acceptance criteria

  • The image builds in the image workflow, and its final build step checks the tool versions and the pins checksum (review, and the image workflow on main).
  • A unit test shows the image version check fails when the two locks' ansible-core pins differ, and passes when they match (python3 -m unittest discover -s tests/scripts).
  • A unit test shows the bot-PR diff guard accepts a change to the controller lock files.
  • The image metadata check passes, with the image's labels and its docs/images/ page.
  • renovate --platform=local, at the version in .gitea/workflows/renovate.yml, detects the controller lock.
  • images/AGENTS.md states the controller image's exception to the image-smoke rule (review).
  • pre-commit run --all-files passes.

Assisted-by: Claude Code

Part of #419 ### Problem ADR 0003 decides that Molecule runs in its own `molecule-controller` image, so a `ci` pin bump for a tool only Lint uses stops selecting every scenario. No such image exists yet. This ticket is the first half of #431: the image is built and published, but nothing uses it yet. #431 pins it. ### Proposal - The image is built from a Dockerfile under `images/`. It holds the controller's Python venv and collections and records a checksum of its own pins, the way `ci` does. - Its requirements file and hash-pinned lock sit at the repository root, as `requirements-molecule.txt` and `requirements-molecule.lock`. Neither goes on the selector's IGNORED list. - The lock script takes the requirements file as a parameter. - The image is added to the image workflow's matrix and push paths, the image version and metadata checks, the bot-PR diff guard's lock files, Renovate's pip-compile patterns and `galaxy.yml`'s `build_ignore`. - The image version check fails when the ansible-core pins in the two locks differ. - `ci` keeps molecule and molecule-plugins in its requirements. - The image is proven by self-checks in its final build step, not by an image-smoke scenario. Its Molecule proof is the full run on #431's pin pull request. - `images/AGENTS.md` records the controller image's exception to the image-smoke rule. A docs page is added under `docs/images/`. ### Acceptance criteria - [ ] The image builds in the image workflow, and its final build step checks the tool versions and the pins checksum (review, and the image workflow on main). - [ ] A unit test shows the image version check fails when the two locks' ansible-core pins differ, and passes when they match (`python3 -m unittest discover -s tests/scripts`). - [ ] A unit test shows the bot-PR diff guard accepts a change to the controller lock files. - [ ] The image metadata check passes, with the image's labels and its `docs/images/` page. - [ ] `renovate --platform=local`, at the version in `.gitea/workflows/renovate.yml`, detects the controller lock. - [ ] `images/AGENTS.md` states the controller image's exception to the image-smoke rule (review). - [ ] `pre-commit run --all-files` passes. Assisted-by: Claude Code
Claude added this to the CI velocity (emergency) milestone 2026-11-29 15:54:24 +00:00
Claude added the Kind/Enhancement
Status
Ready for Agent
labels 2026-11-29 15:54:24 +00:00
Claude added a new dependency 2026-11-29 15:55:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#477