feat(renovate): follow our own image pins and automerge them #29

Merged
Defame1297 merged 1 commits from feat/renovate-pin-follow into main 2026-10-26 18:18:53 +00:00
Owner

What

Enables the git.rkdr.net/mortis/** rule of renovate.json (it was enabled: false, "Phase 4") with automerge: true. Renovate now moves the image:<version>@sha256:<digest> pins in lint.yml, build.yml and molecule.yml to the newest published version and its digest: PR 2 of the update loop. CLAUDE.md and the molecule custom manager's description are updated to match.

Why

PR 1 (input change plus automatic version bump), the merge and the image build now work end to end (#26 built ci 0.2.1, #25 built 0.2.2). The pins still sit on ci 0.2.0 and need a hand edit each time.

What holds an automerged pin PR

  • Its own Lint and Build run in the new image (the PR's workflows pin it), so a broken image fails the PR itself.
  • scripts/check_bot_pr_diff.py allows only these pin lines for a renovate/ branch.
  • scripts/check_image_versions.py pins rejects a pin newer than the matrix in image.yml.
  • Majors stay manual (existing rule); the Lint/Build/required-check protection on main applies as for every bot PR (#26 merged only after its checks).

Verified

  • Commit hooks pass; renovate.json parses. No script or test changed.

Not verified

  • No dry run of this rule: the anonymous tag and digest lookup against the Gitea registry for mortis/ci and mortis/molecule-ubuntu2404 is first exercised by the next Renovate run. If the lookup fails Renovate logs it and opens no PR (fails safe).
  • That the github-actions manager reads the container.image pins and the custom manager reads MOLECULE_IMAGE (the debug log of the next run shows both).
  • Expected first PR: ci 0.2.0 to 0.2.2 in lint.yml and build.yml; the molecule pin should already be current.

🤖 Generated with Claude Code

## What Enables the `git.rkdr.net/mortis/**` rule of `renovate.json` (it was `enabled: false`, "Phase 4") with `automerge: true`. Renovate now moves the `image:<version>@sha256:<digest>` pins in `lint.yml`, `build.yml` and `molecule.yml` to the newest published version and its digest: PR 2 of the update loop. `CLAUDE.md` and the molecule custom manager's description are updated to match. ## Why PR 1 (input change plus automatic version bump), the merge and the image build now work end to end (#26 built `ci` 0.2.1, #25 built 0.2.2). The pins still sit on `ci` 0.2.0 and need a hand edit each time. ## What holds an automerged pin PR - Its own Lint and Build run in the new image (the PR's workflows pin it), so a broken image fails the PR itself. - `scripts/check_bot_pr_diff.py` allows only these pin lines for a `renovate/` branch. - `scripts/check_image_versions.py pins` rejects a pin newer than the matrix in `image.yml`. - Majors stay manual (existing rule); the Lint/Build/required-check protection on `main` applies as for every bot PR (#26 merged only after its checks). ## Verified - Commit hooks pass; `renovate.json` parses. No script or test changed. ## Not verified - No dry run of this rule: the anonymous tag and digest lookup against the Gitea registry for `mortis/ci` and `mortis/molecule-ubuntu2404` is first exercised by the next Renovate run. If the lookup fails Renovate logs it and opens no PR (fails safe). - That the github-actions manager reads the `container.image` pins and the custom manager reads `MOLECULE_IMAGE` (the debug log of the next run shows both). - Expected first PR: `ci` 0.2.0 to 0.2.2 in `lint.yml` and `build.yml`; the molecule pin should already be current. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 1 commit 2026-10-26 17:43:41 +00:00
feat(renovate): follow our own image pins and automerge them
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 15s
4240b0c6b6
The mortis/* pin rule was disabled until Phase 4. Enabled with automerge: the
pin pull request's own Lint and Build run in the new image before the merge,
the bot-diff gate allows only the pin lines, and check_image_versions pins
rejects a pin ahead of the matrix. Majors stay manual.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 merged commit 84751e5cbe into main 2026-10-26 18:18:53 +00:00
Defame1297 deleted branch feat/renovate-pin-follow 2026-10-26 18:18:54 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#29