OCM-24479 | ci: configure Renovate for ROSA CLI#3244
Conversation
Add a MintMaker-compatible Renovate config so dependency updates for Go modules, Bingo tool modules, Dockerfiles, and Tekton bundle references follow the repo's existing bot and review workflow.
|
Skipping CI for Draft Pull Request. |
📝 WalkthroughWalkthroughAdds a repository-level Renovate configuration enabling gomod, tekton, and dockerfile managers; sets commit/PR/dashboard limits, minimum release-age, disables vulnerability alerts, and adds labels. Constrains Go toolchain to 1.25.8, scopes gomod to .bingo/*.mod, enables gomod post-update steps, and disables indirect gomod updates. Adds package rules to automerge Konflux Tekton task updates, prevent golang-version minor/major bumps, group multiple gomod dependency sets, and cap k8s.io/apimachinery to < 0.36.0. Suggested reviewers
🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@amandahla please review this when you can, medium priority |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amandahla, olucasfreitas The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
PR Summary
Add a MintMaker-compatible
renovate.jsonso ROSA CLI dependency updates can be proposed through the repo's existing Konflux/Prow workflow, including theOCM-24531requirement to auto-merge Konflux.tektonupdates.Detailed Description of the Issue
The ROSA CLI repo did not have in-repo dependency automation even though it already carries several update surfaces that benefit from regular maintenance, including the root Go module, Bingo-managed tool modules, Dockerfiles, and Tekton bundle references.
This change adds a repo-local Renovate configuration based on the newer provider-repo setup while adapting it to ROSA-specific constraints:
ok-to-testbot workflowreviewersFromCodeOwnersbecause this repo hasOWNERS, not GitHubCODEOWNERS.bingo/*.modfiles withgomod.managerFilePatterns.tektonupdates, which is the ROSA CLI portion ofOCM-24531Related Issues and PRs
OCM-24531: openshift/release#79678Type of Change
Previous Behavior
The repository had no in-repo Renovate or Dependabot configuration, so dependency update handling for Go modules, Bingo-managed tool modules, Dockerfiles, and Tekton bundle references depended on manual maintenance. Konflux
.tektonreference PRs also had no repo-local auto-merge policy.Behavior After This Change
The repository has a MintMaker-compatible
renovate.jsonthat:gomod,dockerfile, andtektonmanagersok-to-testlabeling and bot-friendly commit prefixes.tektonupdates via the Tekton manager rule, explicitly scoped to.tekton/**/*.yamland.tekton/**/*.ymlHow to Test (Step-by-Step)
Preconditions
npxavailable locally.Test Steps
python -c "import json; json.load(open('renovate.json')); print('json-ok')"go.mod.bingo/*.mod.tektondependency referencespackageRulesentry enabling automerge for.tektonupdatesExpected Results
json-ok.Config validated successfully..tektonupdates.Proof of the Fix
json-okfrom Python JSON parsing andConfig validated successfullyfromrenovate-config-validator.Breaking Changes
Breaking Change Details / Migration Plan
N/A
Developer Verification Checklist
[JIRA-TICKET] | [TYPE]: <MESSAGE>.make install-hookshas been run in this clone.make testpasses.make lintpasses.make rosapasses.