ci(molecule): fail the run when a scenario has molecule's prerun on
check_scenarios_load_checkout.py now merges the base config the way molecule's CLI does (its own lookup of .config/molecule/config.yml) and fails a scenario whose merged prerun is not false, naming the base config. Before, it built Config with no base config, so a scenario that turned prerun back on, or a moved base config, slowed every run and nothing failed. Closes #452 Assisted-by: Claude Code
This commit is contained in:
1 parent
0173f6f226
commit
49afd900dc
4 files changed
+59
-12
No files matched your search
@@ -96,7 +96,9 @@ issue.
|
||||
proves the collection builds; they had caused about a third of full pull request runs and their
|
||||
minutes (#338). *Held:* control: `scripts/check_scenarios_load_checkout.py`, which
|
||||
`run_molecule_in_ci_image.sh` runs on the selected scenarios before they start, fails the run
|
||||
when the environment molecule gives `ansible-playbook` resolves `mortis.kamino` anywhere else.
|
||||
when the environment molecule gives `ansible-playbook` resolves `mortis.kamino` anywhere else,
|
||||
or when `prerun` is not off once the base config is merged as molecule's CLI merges it (a
|
||||
scenario turns it on, or the base config is moved or turns it on).
|
||||
A pull request that selects no scenario runs no check; the next one that does, and the nightly
|
||||
run, catch a change that broke the rule.
|
||||
- **A new file outside `roles/<role>/` runs every scenario until it is added to IGNORED, and it
|
||||
|
||||
Reference in new issue
Block a user