ci: follow-ups after moving Molecule to the molecule-controller image #505

Open
opened 2026-12-02 08:18:00 +00:00 by Claude · 0 comments
Owner

Part of #419

Problem

Now that Molecule runs in the molecule-controller image (#431, #433), a few places still describe or rely on the old setup:

  1. requirements.yml's header comment says the ci image bakes the collections "for Lint and Molecule". Molecule now uses the molecule-controller image.
  2. scripts/run_molecule_in_ci_image.sh is named after the ci image, but it runs in the molecule-controller image.
  3. The ci image still installs molecule and its Docker driver. Whatever Lint does not use there is dead weight, and it rebuilds the ci image on every molecule bump.
  4. The ufw role's check-mode probes (tasks/install.yml, tasks/orphan_rules.yml, tasks/sysctl.yml) rely on a command task reporting skipped in check mode, which a future ansible-core release may change.
  5. scripts/next_image_version.py treats any 404 on the first tags/list page as "no tags". Only the OCI NAME_UNKNOWN error means that.

Acceptance criteria

  • The requirements.yml comment names the molecule-controller image for Molecule.
  • The run script has a name that matches the image it runs in, and every reference to it is updated (workflow, tests, docs).
  • The ci image installs molecule only if a Lint check needs it, and a comment says which check. Otherwise molecule is removed from the ci image and its pins.
  • Either the ufw probes no longer depend on check-mode skipped, or the risk is shown to be unfounded from ansible-core's own sources. The pull request states which.
  • next_image_version.py returns no tags only for a 404 with NAME_UNKNOWN, and its tests cover both cases.
  • Unit tests and pre-commit run --all-files pass, and Molecule passes in CI.

Assisted-by: Claude Code

Part of #419 ### Problem Now that Molecule runs in the molecule-controller image (#431, #433), a few places still describe or rely on the old setup: 1. `requirements.yml`'s header comment says the ci image bakes the collections "for Lint and Molecule". Molecule now uses the molecule-controller image. 2. `scripts/run_molecule_in_ci_image.sh` is named after the ci image, but it runs in the molecule-controller image. 3. The ci image still installs molecule and its Docker driver. Whatever Lint does not use there is dead weight, and it rebuilds the ci image on every molecule bump. 4. The ufw role's check-mode probes (`tasks/install.yml`, `tasks/orphan_rules.yml`, `tasks/sysctl.yml`) rely on a `command` task reporting `skipped` in check mode, which a future ansible-core release may change. 5. `scripts/next_image_version.py` treats any 404 on the first tags/list page as "no tags". Only the OCI `NAME_UNKNOWN` error means that. ### Acceptance criteria - [ ] The `requirements.yml` comment names the molecule-controller image for Molecule. - [ ] The run script has a name that matches the image it runs in, and every reference to it is updated (workflow, tests, docs). - [ ] The ci image installs molecule only if a Lint check needs it, and a comment says which check. Otherwise molecule is removed from the ci image and its pins. - [ ] Either the ufw probes no longer depend on check-mode `skipped`, or the risk is shown to be unfounded from ansible-core's own sources. The pull request states which. - [ ] `next_image_version.py` returns no tags only for a 404 with `NAME_UNKNOWN`, and its tests cover both cases. - [ ] Unit tests and `pre-commit run --all-files` pass, and Molecule passes in CI. Assisted-by: Claude Code
Claude added this to the CI velocity (emergency) milestone 2026-12-02 08:18:00 +00:00
Claude added the Kind/Enhancement
Status
Ready for Agent
labels 2026-12-02 08:18:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#505