ci: follow-ups after moving Molecule to the molecule-controller image #506
Open
Claude
wants to merge 7 commits from
ci/505-controller-followups into main
pull from: ci/505-controller-followups
merge into: Mortis:main
Mortis:main
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#506
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 #505
Five follow-ups after Molecule moved to the molecule-controller image, one commit each, plus one comment-only commit for the review's findings.
requirements.ymlheader. It now says the ci image bakes the collections for Lint, the molecule-controller image bakes them for Molecule, and the run script installs them when a pull request changes them.scripts/run_molecule_in_ci_image.shbecomesscripts/run_molecule_in_controller.sh, and its test moves with it. Every reference is updated, except ADR 0003. As an accepted ADR, it stays as decided (docs/adr/AGENTS.md).moleculeitself stays, because Lint's "Test the repository scripts" step imports it, throughcheck_scenarios_load_checkout.pyand the run-scenarios tests. The comments and the image label now say so.molecule-plugins[docker]is removed, and with itdockerandselinux. The lock was regenerated withlock-requirements.sh.extensions/molecule/requirements.yml(community.docker) is removed from the ci image and/opt/ci-pins.sha256. No linted file uses it.skippedresult.skipped, with removal in 2.25. Evidence:ansible/modules/command.py:344carriesdeprecated ... core_version='2.25', and the 2.22 changelog lists it under Deprecated Features.install.yml,orphan_rules.yml,service_rules.ymlandsysctl.ymlnow runecho ranand readstdout != 'ran'. The command does not run in check mode, under either--checkor thecheck_modekeyword.ansible_check_modedoesn't work for this, because it reflects only--check.trivialfragment is included, because consumer behaviour does not change.next_image_version.pyreturns no tags only for a 404 with the OCI error codeNAME_UNKNOWN.RegistryErrornow carries the body'serrors[].codevalues, and any other 404 raises.Verified
requirements-dev.lock, without molecule-plugins, docker or selinux, and none were skipped. So no skipped test hides a removed dependency.pre-commit run --all-filesandscripts/check_image_versions.py pinspass.--diffand become givecheck=Falsewith no change;--check,--check --diffand thecheck_mode: trueplay keyword givecheck=True.skippedline removed, the new signal stays right, and the oldis skippedsignal reports wrong.next_image_versiontests cover:NOT_FOUND(it raises);NAME_UNKNOWN(no tags).Not verified
Molecule: it runs in this pull request's CI. It selects every scenario, including the ufw check-mode steps with the new probe.
The image rebuilds: they only run on
main. The merge rebuilds the ci image, now without the driver and community.docker, and the molecule-controller image, because therequirements.ymlcomment is an input of both. Renovate then opens the pin pull requests.Files I added carry SPDX headers, or are covered by
REUSE.toml(REUSE-clean); no third-party NOTICE is needed.Assisted-by: Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.