This is the second half of ADR 0003. The Molecule job now runs molecule in the molecule-controller image instead of the ci image. A change to a tool only Lint uses then no longer bumps the image Molecule runs in, and so no longer runs every scenario.
The pin
molecule.yml's CI_IMAGE becomes CONTROLLER_IMAGE, pinned by hand to the first published build: git.rkdr.net/mortis/molecule-controller:0.1.0@sha256:d4ab16d5…29e2, the reference printed by image.yml job 8295.
molecule.yml no longer pins the ci image.
The run script
run_molecule_in_ci_image.sh checks the controller's /opt/molecule-pins.sha256 from the checkout root.
When a pull request changed those pins, it installs requirements-molecule.lock with --require-hashes into a separate venv, and the collections into a directory that comes first on the collections path.
The selector
A CONTROLLER_IMAGE change selects every scenario.
A ci pin bump in lint.yml, build.yml or gitea-release-key.yml selects none (#434).
requirements-molecule.* selects every scenario.
requirements-dev.* stays IGNORED.
All four cases are tested.
Renovate
The pin regex matches CONTROLLER_IMAGE.
Docs
Updated: .gitea/workflows/AGENTS.md (selector and pins rules), the accepted risk in SECURITY.md, the consumers per image in images/AGENTS.md, and the image docs.
The ci image's description, purpose and usage labels are updated too. They are image inputs, so the merge publishes a new ci version, and its pin bump selects no scenarios.
renovate --platform=local --dry-run=extract at 44.161.0 found the controller pin and both target pins. It exited 1 only because the local Node is newer than it supports.
A clean-context review compared the pins file with the script's check and install path, and the job's environment with the controller image. It found no blocking issues.
CI: this pull request runs every scenario in the controller image. The selector runs from main and reads the renamed key as an unknown change.
Not verified
A full Molecule run in the controller image, until this pull request's run finishes.
Left for follow-ups:
The comment in requirements.yml still says the ci image serves Molecule. That file is hashed into both images' pins, so editing it here would rebuild both images.
The script is still named run_molecule_in_ci_image.sh.
The ci image still bakes molecule.
I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
Assisted-by: Claude Code
## What and why
Closes #431
Closes #434
This is the second half of ADR 0003. The Molecule job now runs molecule in the `molecule-controller` image instead of the ci image. A change to a tool only Lint uses then no longer bumps the image Molecule runs in, and so no longer runs every scenario.
**The pin**
- `molecule.yml`'s `CI_IMAGE` becomes `CONTROLLER_IMAGE`, pinned by hand to the first published build: `git.rkdr.net/mortis/molecule-controller:0.1.0@sha256:d4ab16d5…29e2`, the reference printed by image.yml job 8295.
- `molecule.yml` no longer pins the ci image.
**The run script**
- `run_molecule_in_ci_image.sh` checks the controller's `/opt/molecule-pins.sha256` from the checkout root.
- When a pull request changed those pins, it installs `requirements-molecule.lock` with `--require-hashes` into a separate venv, and the collections into a directory that comes first on the collections path.
**The selector**
- A `CONTROLLER_IMAGE` change selects every scenario.
- A ci pin bump in `lint.yml`, `build.yml` or `gitea-release-key.yml` selects none (#434).
- `requirements-molecule.*` selects every scenario.
- `requirements-dev.*` stays IGNORED.
- All four cases are tested.
**Renovate**
- The pin regex matches `CONTROLLER_IMAGE`.
**Docs**
- Updated: `.gitea/workflows/AGENTS.md` (selector and pins rules), the accepted risk in `SECURITY.md`, the consumers per image in `images/AGENTS.md`, and the image docs.
- The ci image's description, purpose and usage labels are updated too. They are image inputs, so the merge publishes a new ci version, and its pin bump selects no scenarios.
## Verified
- `python -m unittest discover -s tests/scripts`: 323 tests pass.
- `pre-commit run --all-files` passes.
- `scripts/check_image_versions.py pins` passes.
- `renovate-config-validator --strict` passes.
- `renovate --platform=local --dry-run=extract` at 44.161.0 found the controller pin and both target pins. It exited 1 only because the local Node is newer than it supports.
- A clean-context review compared the pins file with the script's check and install path, and the job's environment with the controller image. It found no blocking issues.
- CI: this pull request runs every scenario in the controller image. The selector runs from main and reads the renamed key as an unknown change.
## Not verified
- A full Molecule run in the controller image, until this pull request's run finishes.
- Left for follow-ups:
- The comment in `requirements.yml` still says the ci image serves Molecule. That file is hashed into both images' pins, so editing it here would rebuild both images.
- The script is still named `run_molecule_in_ci_image.sh`.
- The ci image still bakes molecule.
---
- [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Assisted-by: Claude Code
Claude
added this to the CI velocity (emergency) milestone 2026-11-29 19:27:14 +00:00
Molecule ran in the ci image, so a ci pin bump for a tool only Lint uses selected every
scenario (ADR 0003). The workflow now pins molecule-controller 0.1.0 by digest as
CONTROLLER_IMAGE, the hand-made first pin the ADR calls for.
- The run script checks /opt/molecule-pins.sha256 and installs requirements-molecule.lock
when a pull request changed a pin file.
- The selector reads CONTROLLER_IMAGE: a controller pin change selects every scenario; a ci
pin bump touches only lint.yml and build.yml, which are on IGNORED, so it selects none.
- Tests show requirements-molecule.* selects every scenario and requirements-dev.* none.
- Renovate's molecule.yml regex matches CONTROLLER_IMAGE.
Closes#434
Assisted-by: Claude Code
The ci image's labels and doc, the consumer lists, the Molecule rules in
.gitea/workflows/AGENTS.md and the accepted risk on pin bumps in SECURITY.md said Molecule
runs in the ci image. They now name the molecule-controller image, its pin files and which
pin files select scenarios.
Closes#431
Assisted-by: Claude Code
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #431
Closes #434
This is the second half of ADR 0003. The Molecule job now runs molecule in the
molecule-controllerimage instead of the ci image. A change to a tool only Lint uses then no longer bumps the image Molecule runs in, and so no longer runs every scenario.The pin
molecule.yml'sCI_IMAGEbecomesCONTROLLER_IMAGE, pinned by hand to the first published build:git.rkdr.net/mortis/molecule-controller:0.1.0@sha256:d4ab16d5…29e2, the reference printed by image.yml job 8295.molecule.ymlno longer pins the ci image.The run script
run_molecule_in_ci_image.shchecks the controller's/opt/molecule-pins.sha256from the checkout root.requirements-molecule.lockwith--require-hashesinto a separate venv, and the collections into a directory that comes first on the collections path.The selector
CONTROLLER_IMAGEchange selects every scenario.lint.yml,build.ymlorgitea-release-key.ymlselects none (#434).requirements-molecule.*selects every scenario.requirements-dev.*stays IGNORED.Renovate
CONTROLLER_IMAGE.Docs
.gitea/workflows/AGENTS.md(selector and pins rules), the accepted risk inSECURITY.md, the consumers per image inimages/AGENTS.md, and the image docs.Verified
python -m unittest discover -s tests/scripts: 323 tests pass.pre-commit run --all-filespasses.scripts/check_image_versions.py pinspasses.renovate-config-validator --strictpasses.renovate --platform=local --dry-run=extractat 44.161.0 found the controller pin and both target pins. It exited 1 only because the local Node is newer than it supports.Not verified
requirements.ymlstill says the ci image serves Molecule. That file is hashed into both images' pins, so editing it here would rebuild both images.run_molecule_in_ci_image.sh.NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code
New commits pushed, approval review dismissed automatically according to repository settings