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
@@ -30,7 +30,7 @@ fi
|
||||
ansible --version
|
||||
molecule --version
|
||||
# The collection under test first; molecule does not install it again (prerun is off in
|
||||
# .config/molecule/config.yml).
|
||||
# .config/molecule/config.yml, which check_scenarios_load_checkout.py holds).
|
||||
export ANSIBLE_COLLECTIONS_PATH="$AC_ROOT:${extra_collections}/opt/collections"
|
||||
# Facts are not injected as variables (deprecated in ansible-core 2.22, removal scheduled for 2.24, see #364), so a
|
||||
# role that reads a bare `ansible_<fact>` fails its scenario here instead of in a consumer's inventory.
|
||||
|
||||
Reference in new issue
Block a user