fix(molecule): install community.docker for the Docker driver
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 43s
Molecule / molecule (pull_request) Successful in 6m19s

Every scenario failed in its create step (couldn't resolve module community.docker.docker_login): molecule's Docker driver runs community.docker modules in its own create and destroy playbooks, and the collection came from the runner-provisioned /opt/molecule-collections that the previous commit stopped reading. The roles do not call it, so it is not in requirements.yml, which the ci image bakes for Lint and which Renovate would rebuild the image for. It is pinned in extensions/molecule/requirements.yml instead; the Molecule job installs both files, cached by their combined checksum. Renovate tracks the new file and the bot-diff gate allows only its version: lines.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
Defame1297andClaude Sonnet 5.5 committed 2026-11-14 14:30:11 +00:00
1 parent bdb34cf98e
commit 068bec93a9
5 files changed
+34 -8

No files matched your search

+4 -2
View File
@@ -7,7 +7,8 @@
When <head-ref> starts with `renovate/`, the diff of <base-ref>...HEAD may only touch:
* requirements-dev.txt: pinned `name==version` lines, the same packages before and after;
* requirements.yml: `version:` lines (the collection names, and every other line, stay);
* requirements.yml and extensions/molecule/requirements.yml: `version:` lines (the collection
names, and every other line, stay);
* .pre-commit-config.yaml: `rev:` lines;
* images/<name>/Dockerfile: the tag and digest of FROM lines (the image name stays), and
the `uv==<version>` token of a line that holds one;
@@ -60,6 +61,7 @@ UBUNTU_LINE = re.compile(
rf"^(\s*job_image:\s*ubuntu)(?::{TAG})?@sha256:[0-9a-f]{{64}}\s*$"
)
DOCKERFILE = re.compile(r"images/[^/]+/Dockerfile")
COLLECTION_PINS = {"requirements.yml", "extensions/molecule/requirements.yml"}
CONSUMERS = {
".gitea/workflows/lint.yml",
".gitea/workflows/build.yml",
@@ -132,7 +134,7 @@ def file_problem(path, removed, added):
reduce_requirement,
"a pinned `name==version` line of the same package",
)
if path == "requirements.yml":
if path in COLLECTION_PINS:
return same_shape(removed, added, reduce_version, "a `version:` line")
if path == ".pre-commit-config.yaml":
return same_shape(removed, added, reduce_rev, "a `rev:` line")