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

@@ -0,0 +1,13 @@
---
breaking_changes:
- >-
gitea_runner - With ``gitea_runner_molecule_enabled`` the role no longer installs molecule tooling or collections: a job on
the ``<gitea_runner_molecule_label>:host`` label brings its own toolchain in an image and runs it on the host's Docker
daemon. The role still registers that label and now installs only ``git`` and ``python3`` on the host, which the job uses
there, and no longer needs PyPI or Ansible Galaxy access. The inputs ``gitea_runner_molecule_venv``,
``gitea_runner_molecule_collections_path``, ``gitea_runner_collections_requirements_file``,
``gitea_runner_molecule_version``, ``gitea_runner_molecule_plugins_version``,
``gitea_runner_molecule_ansible_core_version`` and ``gitea_runner_molecule_docker_sdk_version`` are removed; a value set
in the inventory is ignored. The role does not delete a venv or collections directory an earlier version installed:
remove ``/opt/molecule-venv``, ``/opt/molecule-collections`` (the old defaults) and
``<gitea_runner_home>/molecule-requirements.yml`` by hand if nothing else uses them.