revert(molecule): connect with the docker CLI again #465

Merged
Defame1297 merged 1 commits from ci/455-revert-docker-api into main 2026-11-28 19:52:21 +00:00
Owner

What and why

Refs #455

#463 switched the scenarios to the community.docker.docker_api connection. Measured, it made Molecule slower, not faster:

Run Connection Molecule job ufw traefik
6363 docker CLI 35 min 0 s 1273 s 1027 s
6429 docker_api 45 min 19 s 2166 s 1337 s
6447 (on main) docker_api 49 min 23 s 2266 s 1378 s

Across the 358 tasks that appear in both profile recaps, the same task took a median 13% longer on docker_api. Container creation, which uses no connection, was not slower, so runner load does not explain it. Other runs overlapped only the last 10 minutes of 6447.

This removes the ansible_connection override and restores the two comments that described the CLI connection. The fixed ansible_python_interpreter from the same change stays. #462 (removing the CLI mount) is closed as not needed.

Verified

  • pre-commit run --all-files passes, and ansible-test sanity passed on push.
  • Apart from the kept connection_options block with the interpreter, the diff against the commit before #463 (b5a5a4e) is empty for these files.

Not verified

  • The wall-clock effect: this PR's Molecule run should come back near 35 minutes. The fixed interpreter on its own is expected to save only a few seconds per scenario.

  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.

Assisted-by: Claude Code

## What and why Refs #455 #463 switched the scenarios to the `community.docker.docker_api` connection. Measured, it made Molecule slower, not faster: | Run | Connection | Molecule job | `ufw` | `traefik` | |---|---|---|---|---| | 6363 | docker CLI | 35 min 0 s | 1273 s | 1027 s | | 6429 | `docker_api` | 45 min 19 s | 2166 s | 1337 s | | 6447 (on `main`) | `docker_api` | 49 min 23 s | 2266 s | 1378 s | Across the 358 tasks that appear in both profile recaps, the same task took a median 13% longer on `docker_api`. Container creation, which uses no connection, was not slower, so runner load does not explain it. Other runs overlapped only the last 10 minutes of 6447. This removes the `ansible_connection` override and restores the two comments that described the CLI connection. The fixed `ansible_python_interpreter` from the same change stays. #462 (removing the CLI mount) is closed as not needed. ## Verified - `pre-commit run --all-files` passes, and `ansible-test sanity` passed on push. - Apart from the kept `connection_options` block with the interpreter, the diff against the commit before #463 (`b5a5a4e`) is empty for these files. ## Not verified - The wall-clock effect: this PR's Molecule run should come back near 35 minutes. The fixed interpreter on its own is expected to save only a few seconds per scenario. --- - [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none. Assisted-by: Claude Code
Claude added this to the CI velocity (emergency) milestone 2026-11-28 19:14:36 +00:00
Claude added 1 commit 2026-11-28 19:14:36 +00:00
revert(molecule): connect with the docker CLI again
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 3m46s
Molecule / molecule (pull_request) Successful in 36m57s
0961dfdff4
Two full runs on the docker_api connection took 45 and 49 minutes against 35 on the
CLI connection, with the same tasks a median 13% slower. The fixed Python interpreter
from the same change stays.

Refs #455

Assisted-by: Claude Code
CODEOWNERS rules requested review from Defame1297 2026-11-28 19:14:37 +00:00
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-11-28 19:17:10 +00:00
Defame1297 approved these changes 2026-11-28 19:17:19 +00:00
Dismissed
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-11-28 19:46:34 +00:00
Defame1297 approved these changes 2026-11-28 19:46:39 +00:00
Defame1297 merged commit 716baa19c7 into main 2026-11-28 19:52:21 +00:00
Defame1297 deleted branch ci/455-revert-docker-api 2026-11-28 19:52:27 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#465