Skip to content

Move dependency updates from Dependabot to Renovate - #5045

Merged
sairon merged 4 commits into
devfrom
frenck/renovate
Oct 5, 2026
Merged

sairon merged 4 commits into
devfrom
frenck/renovate

Conversation

@frenck

@frenck frenck commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

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.json and removes .github/dependabot.yml.

What Renovate will do:

  • Mainline kernel. One PR that updates BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE in all defconfigs that build from kernel.org, plus the mainline table in Documentation/kernel.md. It follows the format of the manual kernel updates: titled Linux: Update kernel to <version>, with the ChangeLog link in the body and the linux label. 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. OS_AGENT_VERSION in os-agent.mk, titled Bump OS Agent to v<version> with the os label, like the manual updates.
  • tempio and the XenServer guest utilities. TEMPIO_VERSION and XE_GUEST_UTILITIES_VERSION in their .mk files 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.
  • GitHub Actions. Same as Dependabot: weekly, with the dependencies and github_actions labels. Runner labels and action version inputs are left alone, and the actions/cache subactions are grouped. Actions stay pinned to commit SHAs (with the version as a comment) through helpers:pinGitHubActionDigests, so a newly added action on a version tag gets pinned too. Our own actions that follow a branch, like home-assistant/actions@master, keep floating; pinning those would mean a digest PR in every repository for every change to them.
  • Test requirements. tests/requirements.txt (labgrid and the pytest plugins). ignorePaths is cleared for this, as Renovate's recommended preset ignores tests/ 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, expect Linux: 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 with renovate-config-validator --strict.

Summary by CodeRabbit

  • Chores
    • Automated dependency updates are configured for GitHub Actions, kernel releases, Python requirements, and select software versions. Related updates are grouped and labeled.
    • GitHub Actions updates are scheduled weekly. Kernel updates are limited to patch-level releases; major and minor updates are disabled.
    • Weekly Dependabot updates for GitHub Actions have been removed.

@frenck frenck added the dependencies Pull requests that update a dependency file label Sep 27, 2026
@coderabbitai

coderabbitai Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. ๐ŸŽ‰

โ„น๏ธ Recent review info
โš™๏ธ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e9c2e946-8222-45a1-b464-bc2da19753bd
๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 70fff2e and 527a45e.

๐Ÿ“’ Files selected for processing (1)
  • .github/renovate.json

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.


๐Ÿ“ Walkthrough

Walkthrough

The 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.

Changes

Dependency Update Configuration

Layer / File(s) Summary
Renovate setup
.github/dependabot.yml, .github/renovate.json
Removes the weekly Dependabot configuration for GitHub Actions. Adds Renovate presets, enables custom regex, GitHub Actions, and pip requirements managers, and sets general configuration options.
Version sources and managers
.github/renovate.json
Defines a kernel.org datasource and regex managers for kernel versions in board defconfigs and the mainline kernel documentation section, plus OS Agent and tempio versions.
Package update policies
.github/renovate.json
Sets GitHub Actions labels, schedule, exclusions, and digest rules. Groups cache and kernel updates. Disables major and minor kernel updates and adds OS Agent update metadata.

Priority: โฌ‡๏ธ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: sairon

Merge Risk: โšช Minimal ยท up to 527a4

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)
Check name Status Explanation
Description Check โœ… Passed Check skipped - CodeRabbitโ€™s high-level summary is enabled.
Title check โœ… Passed The title clearly summarizes the main change: replacing Dependabot with Renovate for dependency updates.
Docstring Coverage โœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0โ€ฆ
Linked Issues check โœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check โœ… Passed Check skipped because no linked issues were found for this pull request.
โœจ Finishing Touches
๐Ÿงช Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

โค๏ธ Share

A rabbit checks the versions in a row
New kernel notes and action updates flow
The cache bundles hop along
While OS Agent gets a tag
Renovate keeps the schedule neat
And I nibble greens to celebrate the feat

Comment @coderabbitai help to get the list of available commands.

@sairon sairon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

Comment thread .github/renovate.json Resolved
Comment thread .github/renovate.json Resolved
@home-assistant
home-assistant Bot marked this pull request as draft September 29, 2026 07:53
@home-assistant

Copy link
Copy Markdown

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks ๐Ÿ‘

Learn more about our pull request process.

Co-authored-by: Jan ฤŒermรกk <sairon@users.noreply.github.com>

@agners agners left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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 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? ๐Ÿค”

@sairon
sairon marked this pull request as ready for review October 5, 2026 06:55
@home-assistant
home-assistant Bot requested a review from sairon October 5, 2026 06:55
@sairon

sairon commented Oct 5, 2026

Copy link
Copy Markdown
Member

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 like the idea!

Coming in a later PR!

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? ๐Ÿค”

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 :)

@sairon sairon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM now, thanks!

@sairon
sairon merged commit f1fb4c0 into dev Oct 5, 2026
3 checks passed
@sairon
sairon deleted the frenck/renovate branch October 5, 2026 07:06
@sairon sairon added build Build and CI related issues and removed build Build and CI related issues labels Oct 5, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants