ADR 0003 moves Molecule out of the ci image, so a ci bump for a tool only Lint uses stops selecting every scenario. This builds and publishes the image; nothing pins it yet (#431). It bakes requirements-molecule.lock (ansible-core, molecule, molecule-plugins[docker]) on the Python of .python-version and the collections of both requirements.yml files, and records their checksums in /opt/molecule-pins.sha256. Its last RUN checks the tool versions against the lock, the Docker driver, every pinned collection and the pin record, so a broken image fails its build. It has no image-smoke scenario: it is the controller of every scenario, and the full run of its pin pull request proves it; images/AGENTS.md records the exception. check_image_versions.py pins now checks the Python header of both locks and fails when their ansible-core pins differ, so Lint and Molecule judge the code with one ansible-core. The new requirements files stay off the selector's IGNORED list, so a bump there runs every scenario. Refs #477 Assisted-by: Claude Code
12 lines
815 B
Plaintext
12 lines
815 B
Plaintext
# Pinned tooling of the molecule-controller image (images/molecule-controller, ADR 0003): what Molecule
|
|
# itself runs, nothing Lint uses. requirements-molecule.lock is its hashed lock and is what gets installed:
|
|
# pip install --require-hashes -r requirements-molecule.lock -r requirements-molecule.txt
|
|
# Renovate bumps a pin here and regenerates the lock (pip-compile manager); by hand, run
|
|
# scripts/lock-requirements.sh requirements-molecule.txt and commit both files.
|
|
# ansible-core equals the pin of requirements-dev.txt (check_image_versions.py pins fails otherwise), so
|
|
# Lint and Molecule judge the code with one ansible-core.
|
|
ansible-core==2.22.0
|
|
molecule==26.11.0
|
|
# The Docker driver, with the docker Python SDK it and the community.docker modules of its playbooks use.
|
|
molecule-plugins[docker]==26.11.0
|