ci(molecule): fail the run when a scenario has molecule's prerun on #479
Open
Claude
wants to merge 1 commits from
ci/452-prerun-check into main
pull from: ci/452-prerun-check
merge into: Mortis:main
Mortis:main
Mortis:docs/453-adr-partial-change
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
No labels
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#479
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.
What and why
Closes #452
check_scenarios_load_checkout.pynow merges the base config.config/molecule/config.ymlinto each scenario the way molecule's CLI does, using molecule's ownlookup_config_file(LOCAL_CONFIG_SEARCH)and passing the result asargs["base_config"]. Without that,prerunset in the base config was never seen. A scenario fails unless the mergedprerunisfalse, and the error names the scenario and the base config, or says the base config was not found.The Held line of the rule in
.gitea/workflows/AGENTS.mdand the comment inscripts/run_molecule_in_ci_image.shnow name this check. CI only, so there is no changelog fragment.Verified
python -m unittest discover -s tests/scripts: 304 tests OK. The new cases are: a scenario withprerun: truefails, a missing base config fails, and a base config with prerun on fails. The existing test that a scenario loading the checkout first passes now runs against a base config withprerun: false, so it also covers the inherited case.pre-commit run --all-filespasses.Not verified
giton PATH (git initin setUp).NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.