ci: share a Molecule base config with prerun off and smart gathering #444
Open
Claude
wants to merge 1 commits from
ci/molecule-shared-config into main
pull from: ci/molecule-shared-config
merge into: Mortis:main
Mortis:main
Mortis:test/refusals-in-verify
Mortis:ci/molecule-pipelining
Mortis:feat/traefik-release-url
Mortis:feat/apt-cache-valid-time
Mortis:feat/cloudflared-lookup-delay
Mortis:test/tailscale-reuse-debs
Mortis:renovate/git.rkdr.net-mortis-molecule-ubuntu2404-0.x
Mortis:feat/400-skip-upgrade-during-vzdump
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
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mortis/Kamino#444
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 #421
Adds a shared Molecule base config,
.config/molecule/config.yml, which molecule merges under every scenario'smolecule.yml:prerun: false:scripts/run_molecule_in_ci_image.shalready puts the checkout first onANSIBLE_COLLECTIONS_PATH, so molecule's per-scenario--forcereinstall ofmortis.kaminointo each scenario'sANSIBLE_HOMEis redundant. The collections it would also install come from the ci image's/opt/collections, or from the slow path's pinned install when the pins differ.gathering: smart: each host's facts are gathered once per playbook run instead of in every play..configgoes onbuild_ignore(otherwisescripts/check_tarball.pyfails Build). The Molecule rule in.gitea/workflows/AGENTS.mdand the comments inscripts/run_molecule_scenarios.shandscripts/run_molecule_in_ci_image.shnow describe the new behaviour. The new file selects every scenario, because scenarios read it, so it is not on the selector's IGNORED list; this pull request's own Molecule run is its test. No changelog fragment: CI only.Verified
reuse lint: compliant; the new file is covered bypath = "**".ansible-test sanity(pre-push) passed.python3 -m unittest discover -s tests/scripts: 273 tests OK, including the realansible-galaxybuild intest_real_build_passes.find_vcs_rootfrom bothroles/<role>and the repo root, and the merged config for a role scenario hasprerun: false,gathering: smart,forks: 50kept.requirements.yml; no play relies on facts re-gathered after a host change.Not verified
scripts/check_scenarios_load_checkout.pybuilds molecule's config without the base config. That is harmless today (the base config sets nothing in the environment), but it would miss an env setting added to the shared file later; left for a follow-up.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.