ci: turn on Ansible pipelining for Molecule scenarios #446
Open
Claude
wants to merge 2 commits from
ci/molecule-pipelining into main
pull from: ci/molecule-pipelining
merge into: Mortis:main
Mortis:main
Mortis:test/refusals-in-verify
Mortis:feat/traefik-release-url
Mortis:ci/molecule-shared-config
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#446
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 #423
Stacked on #444 (shared Molecule base config): this branch contains #444's commit plus one more. Merge #444 first; this pull request's own diff is then the last commit only.
Turns on Ansible pipelining in
.config/molecule/config.yml(provisioner.config_options.connection.pipelining: true, next todefaults.gathering: smart). Without it, every remote task over thecommunity.docker.dockerconnection pays extradocker exec/docker cpcalls to make a temp dir, copy the module in and clean up; with it, the module is piped over stdin. Kept separate from #444 so a failure caused by pipelining (for example with sudo-rs on 26.04) is easy to attribute. The change touches a file outsideroles/, so this pull request runs every scenario.Verified
community.dockerconnection (5.4.0 read; 5.4.1 pinned) declareshas_pipelining = Trueand runsdocker exec -i; it has nopipeliningoption of its own, so ansible-core 2.22'sis_pipelining_enabledfalls back to the global setting, which[connection] pipeliningsets.requirettyor writes sudoers rules; the 2604 image only addspam_rootokto/etc/pam.d/sudo. Scenarios connect as root, so everybecome(pihole'sbecome_userincluded) is root to root.provisioner.config_optionswith bothconnection.pipelining: trueanddefaults.gathering: smart.pre-commit run --files .config/molecule/config.yml, the commit hooks andansible-test sanity(pre-push) pass.Not verified
/usr/bin/sudoto sudo-rs; which implementation the 2604 image'ssudopackage installs, and whether sudo-rs passes stdin through under pipelining, were not confirmed outside CI.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.