ci(molecule): run Molecule from the ci image instead of the runner's venv

Pin molecule and its Docker driver in requirements-dev.txt and bake them,
with the driver's collection, into the ci image. The Molecule job runs
docker run on the pinned ci image with the Docker socket and the checkout
mounted at the same path, as the runner user. A pull request whose pins
differ from the image installs its own pins first, so a core bump runs its
scenarios on the new core. gitea_runner no longer installs the molecule
venv and collections.

Closes #225

Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-11-24 07:14:19 +00:00
1 parent d9be7b7dc8
commit 2e32016c43
25 files changed
+292 -275

No files matched your search

+4 -4
View File
@@ -1,9 +1,9 @@
---
# Collections the Molecule test harness itself calls, as opposed to the roles under test (those are
# in the requirements.yml at the repository root, which the ci image also bakes for Lint). The
# Docker driver of molecule-plugins runs community.docker modules in its own create and destroy
# playbooks, so every scenario needs it. The Molecule job (.gitea/workflows/molecule.yml) installs
# this file next to the root one; the ci image does not, because Lint never runs a driver.
# in the requirements.yml at the repository root). The Docker driver of molecule-plugins runs
# community.docker modules in its own create and destroy playbooks, so every scenario needs it.
# The ci image (images/ci) bakes it into /opt/collections next to the root one; a pull request that
# changes it fails the image's pin check, so the Molecule job installs it itself.
# Renovate (renovate.json, ansible-galaxy manager) bumps this pin.
collections:
- name: community.docker