docs: describe Molecule running in the molecule-controller image

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
This commit is contained in:
Defame1297 committed 2026-11-29 19:25:33 +00:00
1 parent 89bd579e87
commit 4db1a2b3c9
8 files changed
+44 -38

No files matched your search

+12 -7
View File
@@ -82,9 +82,10 @@ issue.
`mortis.kamino.<role>`, transitively), none for a diff of only IGNORED paths, a failure for a
changed role with no scenario, for a `.gitea/workflows/molecule.yml` diff of only comments
(outside `run:` scripts) or image pins the scenarios that name a changed `MOLECULE_IMAGE*` pin
(every scenario for `CI_IMAGE`, or when a shared molecule file names the pin), and every
scenario for any other file. *Why:* a full run takes
the single runner slot for a long time. *Held:* control: the selector and its tests.
(every scenario for `CONTROLLER_IMAGE`, or when a shared molecule file names the pin), and every
scenario for any other file, `requirements-molecule.*` included; `requirements-dev.*`, and
`lint.yml` and `build.yml` with their `ci` pins, are on IGNORED. *Why:* a full run takes the
single runner slot for a long time. *Held:* control: the selector and its tests.
- **A role named in an include, import, play `roles:` entry or meta dependency is written out in
full**, never bare or templated. *Why:* the selector finds dependent roles by their FQCN.
*Held:* control: a selector test fails a bare or templated name.
@@ -127,10 +128,14 @@ issue.
`test_a_scenario_past_its_time_limit_fails_alone` and
`test_the_default_time_limit_is_inside_the_job_timeout`, in the same file.
- **Molecule tests the pull request's pins, as Lint and Build do.** It runs molecule in the pinned
`ci` image and, when a pin file differs from `/opt/ci-pins.sha256`, installs the pull request's
tools and the collections of `requirements.yml` and `extensions/molecule/requirements.yml` first.
*Why:* a pull request that raises the ansible-core floor must run its scenarios on the new core
before it automerges. *Held:* control: the pin comparison in `molecule.yml`.
`molecule-controller` image ([ADR 0003](../../docs/adr/0003-molecule-controller-image.md)) and,
when a pin file differs from `/opt/molecule-pins.sha256`, installs the pull request's tools from
`requirements-molecule.lock` and the collections of `requirements.yml` and
`extensions/molecule/requirements.yml` first. A change to `requirements-molecule.txt` or
`requirements-molecule.lock` selects every scenario; `requirements-dev.*` pins only Lint's tools
and selects none. *Why:* a pull request that bumps ansible-core or molecule must run its
scenarios on them before it automerges. *Held:* control: the pin comparison in
`run_molecule_in_ci_image.sh`, and the selector's tests for which pin files select what.
- **Every scenario sets `scenario.test_sequence` to molecule's default minus both `destroy`
steps, with a role scenario's `check` right before and right after `converge`, names each
platform `${KAMINO_RUN_ID:-local}-<name>` and labels it