ci(images): add git to the molecule-controller image #502

Merged
Defame1297 merged 1 commits from ci/488-controller-git into main 2026-12-01 22:53:31 +00:00
Owner

What and why

Closes #488

The scenario selector diffs the checkout with git. To run it inside the molecule-controller image (the select job of #433), the image needs git. This change adds git to the apt install in the image's os stage. It also adds a git --version line to the image's self-check, and updates the contents label and docs/images/molecule-controller.md.

Verified

  • pre-commit run --all-files passes.
  • scripts/check_image_versions.py pins passes.
  • A clean-context review found no blocking issues.

Not verified

  • The image builds only on push to main (image.yml has no pull_request trigger). The build and its self-check run after the merge, and Renovate's pin PR then moves CONTROLLER_IMAGE.

  • The layer-size increase is an estimate, not a measurement: about 10 MB compressed for git and its dependencies.

  • When the select job runs, it has to run as the runner's uid, or set git's safe.directory. That belongs to #433.

  • Files I added carry SPDX headers, or are covered by REUSE.toml (REUSE-clean); no third-party NOTICE is needed.

Assisted-by: Claude Code

## What and why Closes #488 The scenario selector diffs the checkout with git. To run it inside the molecule-controller image (the select job of #433), the image needs git. This change adds `git` to the apt install in the image's `os` stage. It also adds a `git --version` line to the image's self-check, and updates the contents label and `docs/images/molecule-controller.md`. ## Verified - `pre-commit run --all-files` passes. - `scripts/check_image_versions.py pins` passes. - A clean-context review found no blocking issues. ## Not verified - The image builds only on push to `main` (`image.yml` has no pull_request trigger). The build and its self-check run after the merge, and Renovate's pin PR then moves `CONTROLLER_IMAGE`. - The layer-size increase is an estimate, not a measurement: about 10 MB compressed for git and its dependencies. - When the select job runs, it has to run as the runner's uid, or set git's `safe.directory`. That belongs to #433. - [x] Files I added carry SPDX headers, or are covered by `REUSE.toml` (REUSE-clean); no third-party NOTICE is needed. Assisted-by: Claude Code
Claude added this to the CI velocity (emergency) milestone 2026-12-01 22:48:01 +00:00
Claude added 1 commit 2026-12-01 22:48:01 +00:00
ci(images): add git to the molecule-controller image
Build / build (pull_request) Successful in 39s
Molecule / molecule (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 2m3s
75f9d27329
The Molecule select job runs the selector in this image, and the
selector diffs the checkout with git.

Closes #488

Assisted-by: Claude Code
CODEOWNERS rules requested review from Defame1297 2026-12-01 22:48:01 +00:00
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-12-01 22:53:20 +00:00
Defame1297 approved these changes 2026-12-01 22:53:26 +00:00
Defame1297 merged commit 492a68395e into main 2026-12-01 22:53:31 +00:00
Defame1297 deleted branch ci/488-controller-git 2026-12-01 22:53:36 +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#502