fix(renovate): run the image bump task on every branch #216

Merged
Defame1297 merged 1 commits from fix/renovate-postupgrade-toplevel into main 2026-11-16 07:19:49 +00:00
Owner

What

Moves the postUpgradeTasks block (python3 scripts/bump_image_versions.py origin/main, fileFilters image.yml, executionMode: branch) out of the matchPackageNames: ["*"] packageRule to the top level of renovate.json. Comments in renovate.json and the bump_image_versions.py docstring updated to match.

Why

PR #203 (renovate/pip-compile-refresh, a lock regeneration with no package upgrade) changed only requirements-dev.lock, an input of the ci image, but arrived without the image.yml version bump. Lint failed at check_image_versions.py bump. The uv bump PR (#202), a real package upgrade, got its bump. Most likely cause: a lock refresh carries no package for a packageRule to match, so the task never attached. A top-level setting applies to every branch.

Verified

  • All pre-commit hooks pass; push-time ansible-test sanity passed.
  • renovate-config-validator --strict renovate.json (renovate 44.161.0): config validated successfully.
  • check_bot_pr_diff.py accepts #203's diff, so the missing bump was its only Lint failure.
  • Two independent read-only reviews (config semantics, and a diagnosis done without this hypothesis) agree on the cause. One stale "(rule below)" wording they found is fixed.

Not verified

  • No live Renovate run. The cause is inferred from config and git history; the info-level run log was not checked. After merge, run the Renovate workflow via workflow_dispatch (debug log, dry run) and look for "Executing post-upgrade task" on the lock-refresh branch, and that origin/main and clone depth suffice for the script's merge-base.
  • Whether lockFileMaintenance branches inherit the top-level task (probable, not traced).

Notes

  • Side effect: every merged lock refresh (including the weekly lock-file-maintenance PR) now gets a ci image patch bump and so an image rebuild on main. That follows the existing "lock is an image input" rule.
  • #203 itself is not fixed by this. It needs a hand bump of the ci version in image.yml (0.2.24 to 0.2.25) or to be closed and recreated by Renovate. Because of the human merge of main into it, Renovate may no longer rebase it.
  • Python header in #203's lock changed 3.13 to 3.14 (Renovate's container regenerated it). The bot-diff gate allows it; not addressed here.

🤖 Generated with Claude Code

## What Moves the `postUpgradeTasks` block (`python3 scripts/bump_image_versions.py origin/main`, `fileFilters` image.yml, `executionMode: branch`) out of the `matchPackageNames: ["*"]` packageRule to the top level of `renovate.json`. Comments in `renovate.json` and the `bump_image_versions.py` docstring updated to match. ## Why PR #203 (`renovate/pip-compile-refresh`, a lock regeneration with no package upgrade) changed only `requirements-dev.lock`, an input of the `ci` image, but arrived without the `image.yml` version bump. Lint failed at `check_image_versions.py bump`. The uv bump PR (#202), a real package upgrade, got its bump. Most likely cause: a lock refresh carries no package for a packageRule to match, so the task never attached. A top-level setting applies to every branch. ## Verified - All pre-commit hooks pass; push-time `ansible-test sanity` passed. - `renovate-config-validator --strict renovate.json` (renovate 44.161.0): config validated successfully. - `check_bot_pr_diff.py` accepts #203's diff, so the missing bump was its only Lint failure. - Two independent read-only reviews (config semantics, and a diagnosis done without this hypothesis) agree on the cause. One stale "(rule below)" wording they found is fixed. ## Not verified - No live Renovate run. The cause is inferred from config and git history; the info-level run log was not checked. After merge, run the Renovate workflow via `workflow_dispatch` (debug log, dry run) and look for "Executing post-upgrade task" on the lock-refresh branch, and that `origin/main` and clone depth suffice for the script's merge-base. - Whether lockFileMaintenance branches inherit the top-level task (probable, not traced). ## Notes - Side effect: every merged lock refresh (including the weekly lock-file-maintenance PR) now gets a `ci` image patch bump and so an image rebuild on `main`. That follows the existing "lock is an image input" rule. - #203 itself is not fixed by this. It needs a hand bump of the `ci` version in `image.yml` (0.2.24 to 0.2.25) or to be closed and recreated by Renovate. Because of the human merge of `main` into it, Renovate may no longer rebase it. - Python header in #203's lock changed 3.13 to 3.14 (Renovate's container regenerated it). The bot-diff gate allows it; not addressed here. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 1 commit 2026-11-16 07:18:13 +00:00
fix(renovate): run the image bump task on every branch
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 39s
Molecule / molecule (pull_request) Successful in 2s
bbb4f1f888
The postUpgradeTasks lived in a packageRule matching package "*". Branch
renovate/pip-compile-refresh (a lock regeneration, no package upgrade) did not
get the task, so its requirements-dev.lock change reached the lint check
without the ci image version bump and failed `check_image_versions.py bump`.
A top-level postUpgradeTasks applies to every branch.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
Defame1297 merged commit 6e027e7c4b into main 2026-11-16 07:19:49 +00:00
Defame1297 deleted branch fix/renovate-postupgrade-toplevel 2026-11-16 07:19:50 +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#216