ci(molecule): connect over the Docker API with a fixed Python interpreter #463
Open
Claude
wants to merge 2 commits from
ci/455-docker-api-connection into main
pull from: ci/455-docker-api-connection
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#463
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 #455
.config/molecule/config.ymlsetsprovisioner.connection_options:ansible_connection: community.docker.docker_api, which talks to the daemon's socket instead of starting the docker CLI for every task, andansible_python_interpreter: /usr/bin/python3, which skips interpreter discovery in every playbook run. Molecule merges these over the driver's own connection vars on the container hosts only, so localhost keeps the controller's Python.user_managementscenario, described the CLI connection's calls and now describe the API connection. #455 asked to leave the CLI comment in place, but its old text would have been false.Verified
pre-commit run --all-filesandpython3 -m unittest discover -s tests/scriptspass, andansible-test sanitypassed on push.connection_optionsover the driver's and writes them as host vars on the platform hosts only. No scenario sets its own connection or interpreter vars. community.docker 5.4.1'sdocker_apisupports pipelining and become, mapsansible_userto the exec user as the CLI plugin did, uses the default socket whenDOCKER_HOSTis unset, and needsrequestsandurllib3, whichrequirements-dev.lockpins for the ci image.delegate_to: localhosttasks keep the controller's connection and Python.sshdscenario gives both hosts the new connection and interpreter.Not verified
docker_api, and the wall-clock change: this PR's Molecule run shows both, compared against run 6363 (4 lanes, 35 min 0 s, on the CLI connection).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.