ci: skip the Molecule job when no scenario is selected #433
Open
opened 2026-11-27 13:35:46 +00:00 by Claude
·
0 comments
No Branch/Tag Specified
main
test/refusals-in-verify
ci/molecule-pipelining
feat/traefik-release-url
ci/molecule-shared-config
feat/apt-cache-valid-time
feat/cloudflared-lookup-delay
test/tailscale-reuse-debs
renovate/git.rkdr.net-mortis-molecule-ubuntu2404-0.x
feat/400-skip-upgrade-during-vzdump
v3.1.0
v3.0.0
v2.2.0
v2.1.0
v2.0.1
v2.0.0
v1.11.0
v1.10.2
v1.10.1
v1.10.0
v1.9.0
v1.8.0
v1.7.0
v1.6.0
v1.5.0
v1.4.0
v1.3.0
v1.2.0
v1.1.0
v1.0.0
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Needs Triage
Maintainer needs to evaluate this issue
Status
Ready for Agent
Fully specified, ready for an AFK agent
Status
Ready for Human
Requires human implementation
Wayfinder
Grilling
Decision ticket resolved in conversation with the maintainer
Wayfinder
Map
Wayfinder map: index of a planning effort and its decision tickets
Wayfinder
Prototype
Decision ticket resolved by reacting to a rough concrete artifact
Wayfinder
Research
Decision ticket resolved by reading outside sources
Wayfinder
Task
Manual work that must happen before a decision can be made
Milestone
No items
No Milestone
CI velocity (emergency)
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mortis/Kamino#433
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #419
Problem
A pull request that selects no scenario still starts the Molecule job, which occupies a Molecule slot for about 1.5 min to pull the image, select nothing and exit.
Proposal
Split
molecule.ymlinto three jobs:needs: select,if:the list is not empty; runs the scenarios as today.needs: [select, scenarios],if: always(); fails unlessselectsucceeded andscenarioseither succeeded or was skipped because nothing was selected.Branch protection then requires the result job instead of the current one (a settings change for the maintainer; the PR says so).
Acceptance criteria
scenariosskipped andresultgreen, with no Molecule slot used (job list of the run).resultfail.selectmakesresultfail.actionlintpasses (pre-commit run --all-files).Assisted-by: Claude Code