ci: an ansible-core or molecule pin bump selects no Molecule scenario #434

Open
opened 2026-11-27 13:35:47 +00:00 by Claude · 0 comments
Owner

Part of #419

Problem

requirements-dev.txt and requirements-dev.lock are on the selector's IGNORED list (scripts/select_molecule_scenarios.py lines 84–85), so a pull request that only bumps ansible-core or molecule there runs 0 Molecule scenarios.

That contradicts the rule in .gitea/workflows/AGENTS.md lines 115–119:

Molecule tests the pull request's pins, as Lint and Build do. It runs molecule in the pinned ci image and, when a pin file differs from /opt/ci-pins.sha256, installs the pull request's tools and the collections of requirements.yml and extensions/molecule/requirements.yml first. Why: a pull request that raises the ansible-core floor must run its scenarios on the new core before it automerges. Held: control: the pin comparison in molecule.yml.

The pin comparison only matters if a scenario is selected; with none selected, a core bump can automerge untested.

Proposal

Take requirements-dev.txt and requirements-dev.lock off IGNORED, or select every scenario when the lock changes a package Molecule runs (ansible-core, molecule, the docker plugin) and keep ignoring changes to Lint-only tools. Whichever is chosen, the rule above and the selector agree.

Acceptance criteria

  • A unit test in tests/scripts/ shows an ansible-core bump in requirements-dev.lock selects every scenario (python3 -m unittest discover -s tests/scripts).
  • If Lint-only tool bumps stay ignored, a unit test shows that too.
  • .gitea/workflows/AGENTS.md and the IGNORED list agree (review).

Assisted-by: Claude Code

Part of #419 ### Problem `requirements-dev.txt` and `requirements-dev.lock` are on the selector's IGNORED list (`scripts/select_molecule_scenarios.py` lines 84–85), so a pull request that only bumps ansible-core or molecule there runs 0 Molecule scenarios. That contradicts the rule in `.gitea/workflows/AGENTS.md` lines 115–119: > **Molecule tests the pull request's pins, as Lint and Build do.** It runs molecule in the pinned `ci` image and, when a pin file differs from `/opt/ci-pins.sha256`, installs the pull request's tools and the collections of `requirements.yml` and `extensions/molecule/requirements.yml` first. *Why:* a pull request that raises the ansible-core floor must run its scenarios on the new core before it automerges. *Held:* control: the pin comparison in `molecule.yml`. The pin comparison only matters if a scenario is selected; with none selected, a core bump can automerge untested. ### Proposal Take `requirements-dev.txt` and `requirements-dev.lock` off IGNORED, or select every scenario when the lock changes a package Molecule runs (ansible-core, molecule, the docker plugin) and keep ignoring changes to Lint-only tools. Whichever is chosen, the rule above and the selector agree. ### Acceptance criteria - [ ] A unit test in `tests/scripts/` shows an ansible-core bump in `requirements-dev.lock` selects every scenario (`python3 -m unittest discover -s tests/scripts`). - [ ] If Lint-only tool bumps stay ignored, a unit test shows that too. - [ ] `.gitea/workflows/AGENTS.md` and the IGNORED list agree (review). Assisted-by: Claude Code
Claude added the Kind/Bug
Status
Needs Triage
labels 2026-11-27 13:35:47 +00:00
Defame1297 added this to the CI velocity (emergency) milestone 2026-11-27 14:16:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#434