Repository navigation
Move dependency updates from Dependabot to Renovate - #5045
Conversation
|
No actionable comments were generated in the recent review. ๐ โน๏ธ Recent review infoโ๏ธ Run configuration
๐ Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. ๐ WalkthroughWalkthroughThe pull request removes the Dependabot configuration and adds Renovate configuration. Renovate enables dependency managers, version extraction rules, and package update policies for GitHub Actions, kernel releases, OS Agent, and tempio. ChangesDependency Update Configuration
Priority: โฌ๏ธ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Suggested reviewers: Merge Risk: โช Minimal ยท up to The migration preserves the checked update coverage and keeps current floating actions floating. No concrete merge-blocking risk was found. ๐ฅ Pre-merge checks | โ 5โ Passed checks (5 passed)
โจ Finishing Touches๐งช Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the versions in a row Comment |
sairon
left a comment
There was a problem hiding this comment.
Thanks, besides a few nits, looks good to me!
For the OS maintainers: this takes over the manual stable kernel bumps. The PRs still need the usual review and build, but the version bumping itself is automated. If you'd rather keep doing kernel updates by hand, the two kernel managers can be dropped and the rest still applies.
I'm fine with the automated bumps - rather rarely they need to be accompanied by kernel patch updates, but we can handle those cases manually by amending the PR like we do for other breaking dependency updates. For this to make it apparent, we might want add a lighter-weight CI run (not building all boards, but e.g. only ova and running tests) for automated bumps. I would still prefer if kernel bumps were approved and merged only by OS maintainers though - to keep the track of things.
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks ๐ |
Co-authored-by: Jan ฤermรกk <sairon@users.noreply.github.com>
agners
left a comment
There was a problem hiding this comment.
For this to make it apparent, we might want add a lighter-weight CI run (not building all boards, but e.g. only
ovaand running tests) for automated bumps.
I like the idea!
I would still prefer if kernel bumps were approved and merged only by OS maintainers though - to keep the track of things.
Can we maybe enforce this? ๐ค
Coming in a later PR!
Theoretically, we could configure branch rules for that, though the detection will be flaky (most likely based on kernel docs file being changed). But since Franck has admin rights anyway, it's rather about kindly asking him to not treat these PRs as other ordinary dependency bumps :) |
This moves the dependency updates of this repository from Dependabot to Renovate, which already handles this for core, frontend, android and several other Home Assistant repositories. Dependabot only covered GitHub Actions here; Renovate can also take over a few of the version bumps that are done by hand today. It adds
.github/renovate.jsonand removes.github/dependabot.yml.What Renovate will do:
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUEin all defconfigs that build from kernel.org, plus the mainline table inDocumentation/kernel.md. It follows the format of the manual kernel updates: titledLinux: Update kernel to <version>, with the ChangeLog link in the body and thelinuxlabel. It stays on the series the boards are on (6.18.x today); moving to a new series remains a manual change. Versions come from a custom datasource on https://www.kernel.org/releases.json, which lists the latest release of every stable and longterm series with its release date. The Raspberry Pi section is left alone, as those boards build from the Raspberry Pi kernel fork.OS_AGENT_VERSIONinos-agent.mk, titledBump OS Agent to v<version>with theoslabel, like the manual updates.TEMPIO_VERSIONandXE_GUEST_UTILITIES_VERSIONin their.mkfiles are well behind upstream (2021.09.0 and 7.33.0). They're tracked now, so their updates come in as PRs to review; tempio uses CalVer with leading zeros, so it uses loose versioning.dependenciesandgithub_actionslabels. Runner labels and action version inputs are left alone, and theactions/cachesubactions are grouped. Actions stay pinned to commit SHAs (with the version as a comment) throughhelpers:pinGitHubActionDigests, so a newly added action on a version tag gets pinned too. Our own actions that follow a branch, likehome-assistant/actions@master, keep floating; pinning those would mean a digest PR in every repository for every change to them.tests/requirements.txt(labgrid and the pytest plugins).ignorePathsis cleared for this, as Renovate's recommended preset ignorestests/by default.Deliberately left out: the Raspberry Pi kernel (a tarball pinned to a commit of their fork), the Buildroot submodule (Docker, Go and friends come in through changes to our Buildroot fork first), the driver packages pinned to commit SHAs with hash files.
For the OS maintainers: this takes over the manual stable kernel bumps. The PRs still need the usual review and build, but the version bumping itself is automated. If you'd rather keep doing kernel updates by hand, the two kernel managers can be dropped and the rest still applies.
Tested with a local Renovate run (
--platform=local --dry-run=full). Once active, expectLinux: Update kernel to 6.18.54(all ten defconfigs and the documentation in one PR) a major update of labgrid to 26.0, tempio 2026.07.0 and xe-guest-utilities 10. OS Agent is up to date. Also validated withrenovate-config-validator --strict.Summary by CodeRabbit