ci(renovate): validate the config in Lint and let Renovate bump its own image weekly #188

Open
opened 2026-11-15 20:02:13 +00:00 by Claude · 2 comments
Owner

Spec: Enforcement map for each prose-only rule, resolution comment, rows "Renovate's own image" and "New controls".

What

  • Config validation: add a job to lint.yml that runs renovate-config-validator --strict renovate.json in the Renovate image already pinned in renovate.yml (same tag and digest). It runs on every pull request, unconditionally, so it can be a required check. The ci image does not get Node.
  • Self-bump: let Renovate propose updates to its own image in renovate.yml:
    • Replace the rule that disables it. renovate.json already has a rule with matchFileNames: [".gitea/workflows/renovate.yml"] and "enabled": false ("hand-bumped, never by the bot"). Later rules do not re-enable a disabled file, so a new rule added next to it would detect nothing and the self-bump would never happen. Replace that enabled: false rule with the weekly rule below; do not add a second one.
    • First check whether a built-in manager already reads .gitea/workflows/renovate.yml's image: (run renovate --platform=local). If none does, add a regex custom manager.
    • The weekly rule for renovate/renovate: schedule weekly, minimumReleaseAge: "3 days", automerge: false, majors manual. Its description is at most two short sentences: why, plus how when it isn't obvious. Keep the security reason in it: the Renovate job container runs with the job token, so a bump is never automerged.
  • check_bot_pr_diff.py must accept that bump (it is a version-plus-digest line). Today it refuses renovate.yml (its allowed workflow files are image.yml, lint.yml, build.yml and molecule.yml), so extend it for the image: tag and digest line of renovate.yml only, and test both the accepted line and a refused other change to that file.
  • Update the comment or doc that says to check config syntax with renovate --platform=local: syntax is now checked in CI; the local run remains for behaviour changes.

Acceptance

  • The validator job passes on main's renovate.json, and a deliberately invalid key fails it (checked locally, not committed).
  • A local Renovate run shows a proposed update for the image in renovate.yml, not only a detected renovate/renovate dependency, scheduled weekly.
  • Lint and Build are green.
  • The PR says what was verified and what was not.
Spec: [Enforcement map for each prose-only rule](https://git.rkdr.net/Mortis/Kamino/issues/102), resolution comment, rows "Renovate's own image" and "New controls". ## What - **Config validation:** add a job to `lint.yml` that runs `renovate-config-validator --strict renovate.json` in the Renovate image already pinned in `renovate.yml` (same tag and digest). It runs on every pull request, unconditionally, so it can be a required check. The ci image does not get Node. - **Self-bump:** let Renovate propose updates to its own image in `renovate.yml`: - **Replace the rule that disables it.** `renovate.json` already has a rule with `matchFileNames: [".gitea/workflows/renovate.yml"]` and `"enabled": false` ("hand-bumped, never by the bot"). Later rules do not re-enable a disabled file, so a new rule added next to it would detect nothing and the self-bump would never happen. Replace that `enabled: false` rule with the weekly rule below; do not add a second one. - First check whether a built-in manager already reads `.gitea/workflows/renovate.yml`'s `image:` (run `renovate --platform=local`). If none does, add a regex custom manager. - The weekly rule for `renovate/renovate`: `schedule` weekly, `minimumReleaseAge: "3 days"`, `automerge: false`, majors manual. Its description is at most two short sentences: why, plus how when it isn't obvious. Keep the security reason in it: the Renovate job container runs with the job token, so a bump is never automerged. - `check_bot_pr_diff.py` must accept that bump (it is a version-plus-digest line). Today it refuses `renovate.yml` (its allowed workflow files are `image.yml`, `lint.yml`, `build.yml` and `molecule.yml`), so extend it for the `image:` tag and digest line of `renovate.yml` only, and test both the accepted line and a refused other change to that file. - Update the comment or doc that says to check config syntax with `renovate --platform=local`: syntax is now checked in CI; the local run remains for behaviour changes. ## Acceptance - [ ] The validator job passes on `main`'s `renovate.json`, and a deliberately invalid key fails it (checked locally, not committed). - [ ] A local Renovate run shows a proposed update for the image in `renovate.yml`, not only a detected `renovate/renovate` dependency, scheduled weekly. - [ ] Lint and Build are green. - [ ] The PR says what was verified and what was not.
Claude added the
Status
Ready for Agent
label 2026-11-15 20:02:13 +00:00
Claude added this to the Continuous delivery milestone 2026-11-15 22:21:21 +00:00
Author
Owner

Review of the map (2026-11-15): corrections to this issue.

  • The self-bump is switched off today, and this issue does not say to switch it on. The issue only adds a packageRule for renovate/renovate. But renovate.json:114-120 already has a rule with matchFileNames: [".gitea/workflows/renovate.yml"] and "enabled": false ("hand-bumped, never by the bot"). Later rules do not re-enable a disabled file, so the new rule would detect nothing and the self-bump would silently never happen. Change: replace that enabled: false rule with the weekly rule (minimumReleaseAge: "3 days", automerge: false, majors manual). Keep its security reason in the new description: the Renovate job container runs with the job token. Acceptance: the local Renovate run shows a proposed update for the image in renovate.yml, not only a detected dependency.
  • Two other issues still treat renovate.yml as disabled. ci(deps): run Renovate on push to main, state the own-image wait, shorten rule descriptions keeps "renovate.yml" in its unchanged exception list, and Re-evaluate Renovate's never-automerge exceptions once the push trigger is live lists "renovate.yml (disabled for Renovate)". Both get a matching note. This issue owns the change from "disabled" to "proposed weekly, never automerged".
Review of the map (2026-11-15): corrections to this issue. - **The self-bump is switched off today, and this issue does not say to switch it on.** The issue only adds a packageRule for `renovate/renovate`. But `renovate.json:114-120` already has a rule with `matchFileNames: [".gitea/workflows/renovate.yml"]` and `"enabled": false` ("hand-bumped, never by the bot"). Later rules do not re-enable a disabled file, so the new rule would detect nothing and the self-bump would silently never happen. Change: replace that `enabled: false` rule with the weekly rule (`minimumReleaseAge: "3 days"`, `automerge: false`, majors manual). Keep its security reason in the new description: the Renovate job container runs with the job token. Acceptance: the local Renovate run shows a proposed update for the image in `renovate.yml`, not only a detected dependency. - **Two other issues still treat `renovate.yml` as disabled.** [ci(deps): run Renovate on push to main, state the own-image wait, shorten rule descriptions](https://git.rkdr.net/Mortis/Kamino/issues/172) keeps "`renovate.yml`" in its unchanged exception list, and [Re-evaluate Renovate's never-automerge exceptions once the push trigger is live](https://git.rkdr.net/Mortis/Kamino/issues/173) lists "`renovate.yml` (disabled for Renovate)". Both get a matching note. This issue owns the change from "disabled" to "proposed weekly, never automerged".
Author
Owner

Final validation round, second pass (2026-11-20): body edited.

  • Folded in the review comment of 2026-11-15: the existing enabled: false rule for .gitea/workflows/renovate.yml is REPLACED by the weekly rule (a second rule would detect nothing); its description keeps the job-token reason.
  • Acceptance now asks for a proposed update in a local run, not only a detected dependency.
  • scripts/check_bot_pr_diff.py item made concrete (verified: its allowed workflow files today are image.yml, lint.yml, build.yml, molecule.yml, so it refuses renovate.yml): extend it for the image: line only and test both cases. The comment above did not say this; it follows from the body's own "must accept that bump".
  • The comment above stays as history.
Final validation round, second pass (2026-11-20): body edited. - Folded in the review comment of 2026-11-15: the existing `enabled: false` rule for `.gitea/workflows/renovate.yml` is REPLACED by the weekly rule (a second rule would detect nothing); its description keeps the job-token reason. - Acceptance now asks for a proposed update in a local run, not only a detected dependency. - `scripts/check_bot_pr_diff.py` item made concrete (verified: its allowed workflow files today are `image.yml`, `lint.yml`, `build.yml`, `molecule.yml`, so it refuses `renovate.yml`): extend it for the `image:` line only and test both cases. The comment above did not say this; it follows from the body's own "must accept that bump". - The comment above stays as history.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#188