Skip to content

Replace self-upgrade workflow with Renovate JSONata manager#636

Open
erikgb wants to merge 1 commit into
cert-manager:mainfrom
erikgb:renovate-self-upgrade
Open

Replace self-upgrade workflow with Renovate JSONata manager#636
erikgb wants to merge 1 commit into
cert-manager:mainfrom
erikgb:renovate-self-upgrade

Conversation

@erikgb
Copy link
Copy Markdown
Member

@erikgb erikgb commented Jun 6, 2026

The JSONata experiment added by @ThatsMrTalbot in https://github.com/cert-manager/helm-tool appears to be working now. This is how the self-upgrade PRs might look like after this change: cert-manager/helm-tool#272.

We currently schedule all self-upgrade jobs at the same cron schedule, which makes the Prow jobs fail regularly - probably because of overload in the Prow cluster. With this change, Renovate will ensure the changes are distributed in a more randomly timed fashion.

We probably want to automerge the makefile-module upgrades, as we currently do, but I think we can do it in a follow-up PR. But I am a bit worried about noise, since Renovate will kick in more often than once a day - if not configured to do something else.

Signed-off-by: Erik Godding Boye <egboye@gmail.com>
@cert-manager-prow cert-manager-prow Bot added the dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. label Jun 6, 2026
@cert-manager-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign erikgb for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 6, 2026
@erikgb erikgb requested a review from Copilot June 6, 2026 16:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the repository “self-upgrade” automation (previously implemented as a scheduled GitHub Actions workflow) with a Renovate custom JSONata manager that updates klone.yaml, aiming to spread upgrade PRs over time and reduce CI load spikes.

Changes:

  • Add a Renovate customManagers JSONata configuration to extract dependencies from klone.yaml.
  • Group klone.yaml updates and run post-upgrade make tasks after Renovate updates.
  • Remove the generated make-self-upgrade GitHub workflow and its Chainguard STS permissions file; add cleanup in generate-base for downstream repos.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
renovate-config.json5 Adds Renovate JSONata custom manager and package rule for klone.yaml; removes ignore for old workflow.
modules/repository-base/base/.github/workflows/make-self-upgrade.yaml Removes the generated scheduled self-upgrade workflow.
modules/repository-base/base/.github/chainguard/make-self-upgrade.sts.yaml Removes the Chainguard STS permissions file used by the deleted workflow.
modules/repository-base/01_mod.mk Stops templating repository placeholders for base files and removes legacy self-upgrade files in downstream repos.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread renovate-config.json5
"fileFormat": "yaml",
"managerFilePatterns": ["klone.yaml"],
"matchStrings": [
'targets.*.{\
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ThatsMrTalbot, you are our JSONata expert. WDYT?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erikgb
Copy link
Copy Markdown
Member Author

erikgb commented Jun 6, 2026

/cc @inteon @ThatsMrTalbot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants