docs(adr): run Molecule in its own controller image #437

Merged
Defame1297 merged 3 commits from docs/adr-molecule-controller-image into main 2026-11-27 16:06:48 +00:00
Owner

What and why

Closes #430

Adds ADR 0003: Molecule runs in its own molecule-controller image, separate from the ci image that Lint and Build use. Today a change to a tool only Lint uses publishes a new ci version, and its pin pull request moves CI_IMAGE in molecule.yml, which the scenario selector must treat as a full run (9 of Renovate's 18 ci pin pull requests over two weeks were Lint-only). With the split, a ci pin pull request touches only ignored paths and runs no scenario, while a controller pin pull request still runs every scenario. The ADR records the costs, notes that requirements-dev.* are on the selector's IGNORED list and that the controller's requirements file must not be, lists the files the implementation must update (including image.yml's push paths), and records the alternatives not taken. Implementation is a separate pull request (#431).

ADR 0002 keeps Status: accepted and its decision. Its first Decision bullet gains one cross-reference line pointing to ADR 0003, which adds to 0002's set of images rather than superseding it.

Verified

  • pre-commit run --files docs/adr/0002-self-built-ci-and-molecule-images.md docs/adr/0003-molecule-controller-image.md: passed.
  • Commit hooks (Conventional Commit, agent trailers) and ansible-test sanity (pre-push): passed.
  • Every file in ADR 0003's "implementation updates" list exists and references the ci image, its pin files or requirements-dev.lock in the way the ADR says (checked by reading each file).
  • The 9-of-18 count was recounted from the merged pin pull requests' input diffs by a reviewer (hand-made pin pull requests excluded).
  • Two review rounds by a separate agent against docs/adr/AGENTS.md, images/AGENTS.md, SECURITY.md and issue #430.

Not verified

  • Rendering and links on the forge.

  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.

Assisted-by: Claude Code

## What and why Closes #430 Adds ADR 0003: Molecule runs in its own `molecule-controller` image, separate from the `ci` image that Lint and Build use. Today a change to a tool only Lint uses publishes a new `ci` version, and its pin pull request moves `CI_IMAGE` in `molecule.yml`, which the scenario selector must treat as a full run (9 of Renovate's 18 `ci` pin pull requests over two weeks were Lint-only). With the split, a `ci` pin pull request touches only ignored paths and runs no scenario, while a controller pin pull request still runs every scenario. The ADR records the costs, notes that `requirements-dev.*` are on the selector's IGNORED list and that the controller's requirements file must not be, lists the files the implementation must update (including `image.yml`'s push `paths`), and records the alternatives not taken. Implementation is a separate pull request (#431). ADR 0002 keeps `Status: accepted` and its decision. Its first Decision bullet gains one cross-reference line pointing to ADR 0003, which adds to 0002's set of images rather than superseding it. ## Verified - `pre-commit run --files docs/adr/0002-self-built-ci-and-molecule-images.md docs/adr/0003-molecule-controller-image.md`: passed. - Commit hooks (Conventional Commit, agent trailers) and `ansible-test sanity` (pre-push): passed. - Every file in ADR 0003's "implementation updates" list exists and references the `ci` image, its pin files or `requirements-dev.lock` in the way the ADR says (checked by reading each file). - The 9-of-18 count was recounted from the merged pin pull requests' input diffs by a reviewer (hand-made pin pull requests excluded). - Two review rounds by a separate agent against docs/adr/AGENTS.md, images/AGENTS.md, SECURITY.md and issue #430. ## Not verified - Rendering and links on the forge. --- - [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none. Assisted-by: Claude Code
Claude added 2 commits 2026-11-27 14:07:03 +00:00
Record ADR 0003: Molecule runs in a molecule-controller image that bakes
only Molecule's tools, from a requirements file and hash-pinned lock of
its own, so a ci pin pull request no longer moves molecule.yml and runs
no scenario. The ADR lists the files the implementation updates and the
alternatives not taken.

Assisted-by: Claude Code:claude-opus-5-5
docs(adr): point ADR 0002 to ADR 0003 and sharpen 0003
Build / build (pull_request) Successful in 51s
Lint / lint (pull_request) Canceled after 50s
Molecule / molecule (pull_request) Canceled after 8s
04259751ad
ADR 0002's image bullet now names ADR 0003 as the decision that adds
Molecule's controller image; its decision is unchanged. ADR 0003 states
the Lint-only share of ci pin pull requests as a count and lists the
push paths of image.yml among the files the implementation updates.

Assisted-by: Claude Code:claude-opus-5-5
CODEOWNERS rules requested review from Defame1297 2026-11-27 14:07:03 +00:00
Defame1297 added 1 commit 2026-11-27 16:05:05 +00:00
Merge branch 'main' into docs/adr-molecule-controller-image
Build / build (pull_request) Successful in 29s
Molecule / molecule (pull_request) Successful in 5s
Lint / lint (pull_request) Successful in 1m33s
5e230201e6
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-11-27 16:05:12 +00:00
Defame1297 approved these changes 2026-11-27 16:05:15 +00:00
Defame1297 merged commit 4a6db3382c into main 2026-11-27 16:06:48 +00:00
Defame1297 deleted branch docs/adr-molecule-controller-image 2026-11-27 16:06:50 +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#437