ci(molecule): run Molecule in the molecule-controller image

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
This commit is contained in:
Defame1297 committed 2026-11-29 19:25:33 +00:00
1 parent 6e89e4d857
commit 89bd579e87
7 files changed
+58 -32

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ label_of() {
# Removes the scenario's containers by the platform names in its molecule.yml, expanded by molecule's
# interpolator, in place of molecule's destroy, which the scenarios leave out: its driver waits about
# 5.6 s per scenario for the deletion (about 84 s over 15), and the whole destroy phase measured about
# 103 s a full run. The ci image has no docker CLI: python3 is the one molecule runs on, with PyYAML
# 103 s a full run. The controller image has no docker CLI: python3 is the one molecule runs on, with PyYAML
# and the Docker SDK of molecule's Docker driver.
remove_instances() {
python3 -I - "$1/molecule.yml" <<'EOF'