ci(molecule): run only the image-smoke scenario a pull request changes #301

Merged
Defame1297 merged 1 commits from ci/narrow-image-smoke into main 2026-11-22 21:18:10 +00:00
Owner

What and why

A file under extensions/molecule/<name>/ ran every Molecule scenario, although only that image-smoke scenario reads it: the image-smoke scenarios test the images, not the roles. scripts/select_molecule_scenarios.py now selects that scenario only.

Still running everything:

  • a shared file such as extensions/molecule/requirements.yml;
  • a path under extensions/molecule/ whose directory is not a scenario (for example a deleted one).

A pull request that changes an image-smoke scenario and a role selects both. The notice line now reads roles changed: … instead of only roles changed: …, since image-smoke scenarios can appear in the same line.

No changelog fragment: CI only, nothing a consumer sees.

Verified

  • python3 -m unittest discover -s tests/scripts: 230 tests pass, including new cases for a single image-smoke change and one combined with a role change, and the repository-wide test now expects each image-smoke file to select its own scenario.
  • The commit-stage pre-commit hooks pass; ansible-test sanity ran on push.

Not verified

  • This pull request is judged by main's copy of the selector, so it runs every scenario itself. The narrower selection takes effect on the next pull request after the merge.

  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.

Assisted-by: Claude Code:claude-opus-5-5

## What and why A file under `extensions/molecule/<name>/` ran every Molecule scenario, although only that image-smoke scenario reads it: the image-smoke scenarios test the images, not the roles. `scripts/select_molecule_scenarios.py` now selects that scenario only. Still running everything: - a shared file such as `extensions/molecule/requirements.yml`; - a path under `extensions/molecule/` whose directory is not a scenario (for example a deleted one). A pull request that changes an image-smoke scenario and a role selects both. The notice line now reads `roles changed: …` instead of `only roles changed: …`, since image-smoke scenarios can appear in the same line. No changelog fragment: CI only, nothing a consumer sees. ## Verified - `python3 -m unittest discover -s tests/scripts`: 230 tests pass, including new cases for a single image-smoke change and one combined with a role change, and the repository-wide test now expects each image-smoke file to select its own scenario. - The commit-stage pre-commit hooks pass; `ansible-test sanity` ran on push. ## Not verified - This pull request is judged by `main`'s copy of the selector, so it runs every scenario itself. The narrower selection takes effect on the next pull request after the merge. --- - [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none. Assisted-by: Claude Code:claude-opus-5-5
Claude added 1 commit 2026-11-22 21:16:12 +00:00
ci(molecule): run only the image-smoke scenario a pull request changes
Build / build (pull_request) Successful in 20s
Lint / lint (pull_request) Successful in 1m6s
Molecule / molecule (pull_request) Successful in 1s
5c8b8f5342
A file under extensions/molecule/<name>/ ran every scenario, although
only that image-smoke scenario reads it: they test the images, not the
roles. It now selects that scenario only. A shared file such as
extensions/molecule/requirements.yml, or a name that is not a scenario,
still runs everything.

Assisted-by: Claude Code:claude-opus-5-5
CODEOWNERS rules requested review from Defame1297 2026-11-22 21:16:12 +00:00
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-11-22 21:17:55 +00:00
Defame1297 approved these changes 2026-11-22 21:18:10 +00:00
Defame1297 merged commit 00c6cbeba4 into main 2026-11-22 21:18:10 +00:00
Defame1297 deleted branch ci/narrow-image-smoke 2026-11-22 21:18:10 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#301