Repository navigation
Conversation
Release branches do not take klone updates, because makefile-modules main moves to a newer Go minor version. So each Go security release had to be applied to the release branches by hand, as in cert-manager#9444. Renovate now opens a PR for a Go patch release on each release branch. A package rule enables only golang-version patch updates in the tools module, so the minor version of the branch never changes. The master branch is unchanged: the tools module is still updated by klone there. Renovate reads this config from master for every base branch, but it runs the post-upgrade task on the release branch. hack/learn-go-shas.sh updates the four Go checksums from the .sha256 files Go publishes next to each archive, so it needs neither the toolchain nor jq. It must be cherry-picked to each existing release branch. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Richard Wall <[email protected]>
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
🟢 Approval recommended
The Renovate rules and checksum script consistently implement the intended narrowly scoped automation.
0 open findings
What changed in this PR
Enables automated Go patch-version updates on release branches while preserving klone ownership of shared files.
Changes:
- Configures Renovate to permit only Go patch updates in the shared tools module on release branches.
- Adds a post-upgrade script that refreshes all four Go archive checksums.
| File | Description |
|---|---|
.github/renovate.json5 |
Adds scoped release-branch Go patch updates and checksum regeneration. |
hack/learn-go-shas.sh |
Fetches and writes validated Go checksums. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
A package rule that matches an update type is applied after lookup, so it cannot re-enable a dependency that an earlier rule disabled. Enable Go on release branches without an update type, then disable the minor and major update types in a later rule. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Richard Wall <[email protected]>
|
Dry-run evidence, from a local Renovate run (renovate 44, ResultLookup offered both updates for After the package rules, only the patch branch remained: The gateway-api branch appears only because the test dropped the release-branch condition that disables it. An earlier version of this PR tried to re-enable Go with a rule that also had [Claude Fable 5.1] |
|
/kind cleanup |
Renovate will now open a PR for each Go patch release on the release branches, keeping the minor Go version of the branch. This replaces the hand-made bumps such as #9444.
What changes
.github/renovate.json5adds the tools module to the existing regex manager, disables every update undermake/_shared/**(klone owns those files), and then re-enables onlygolang-versionpatch updates onrelease-*branches, withseparateMinorPatchso the patch is offered on its own.hack/learn-go-shas.shrewrites the four Go checksums from the.sha256files Go publishes next to each archive. Renovate runs it as a post-upgrade task. It needs neither the Go toolchain nor jq, which matters because the vendored toolchain cannot be built while its checksums are stale.make/_shared/**, so this config overridesignorePaths. That option replaces rather than merges (Renovate option definition).Why the script must also be on the release branches
Renovate reads this config file from master for every base branch (
useBaseBranchConfigdefaults tonone), but it runs the post-upgrade task in a checkout of the release branch. So the script is added to release-1.21 in #9448 and to release-1.20 in #9449, and future release branches inherit it from master. Merge those first, or the first Go patch PR on each branch will fail its post-upgrade task.Master is unchanged: the tools module there is still updated through klone from makefile-modules.
Checks
renovate-config-validator --strict(renovate 43.288.0, the image used by cert-manager/renovate-config CI) passes.hack/learn-go-shas.shrestores the committed values exactly. The script's output for 1.26.9 matches the checksums in [release-1.21] Update dependency go to v1.26.9 #9444.make verify-boilerplate verify-errexitpasses.[Claude Fable 5.1]