Dependency updates: stay on Dependabot, move to Renovate, or automate the quirks bump ourselves?
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- github-actions, python
- Domain
- devops, infrastructure
Research direction
Start by reading the referenced issues #932–#937, especially #936 for the separate versioning decision, then compare the Dependabot and Renovate behavior described here. The issue documents several possible updater and snapshot automation designs but does not choose one. Done means the project has decided which updater and snapshot workflow to use, including which packages trigger regeneration and how generated snapshots are reviewed.
Written by the indexing model from the issue text.
Description
Dependabot's uv updates broke several times in a row recently, and the first zha-quirks bump that got through then needed a snapshot regeneration. Before patching each one as it comes, this issue collects what we found and asks how ZHA (and possibly the rest of the zigpy org) should handle dependency updates going forward.
What happened
- #932: the project's own version.
zha-quirks2.3.0 raised its requirement tozha>=2.3.0. Dependabot checks out the repo without git tags, sosetuptools-git-versioningfalls back tostarting_version(then2.0.0). Sincezha-quirksdepends onzha, which is this project, the resolver had to use 2.0.0: Dependabot'szha-quirks==2.3.0update failed to resolve, and a plainuv lock --upgrade-package zha-quirkssilently stayed on 2.2.2. Fixed by bumpingstarting_versionto2.3.0; it needs bumping again wheneverzha-quirksraises itszhafloor. - #934: Home Assistant's exact pins. The
homeassistantentry in thetestingextra pins exact versions ofpython-slugify,uvand many more, so Dependabot couldn't bump any of those in our own requirements. Fixed by removinghomeassistant; onlytools/compare_constants.pyused it, and #812 (still a draft) is meant to replace that script. This one is not Dependabot-specific: any updater would hit it. - #933: device snapshots. The
zha-quirks2.2.2 → 2.3.0 bump failed the Python 3.14 tests on five Sonoff device snapshots, because the new quirks change those devices. It was merged after the review bot, asked by mention, regenerated the snapshots and checked the result (see below). - After #934: grouped updates silently dropped. Runs kept failing after #934, for three separate reasons in Dependabot's uv support.
setuptoolsis both our build requirement and a transitiveuv.lockentry (viacolorzero); Dependabot can't update either and fails the run with "No files have changed!" (dependabot/dependabot-core#14118). Build requirements likesetuptools-git-versioningaren't inuv.lock, so Dependabot has no previous version for them, and a grouped change that mixes one with lock-only bumps is dropped entirely, which is why no grouped PR showed up (the same check as in dependabot/dependabot-core#16431). Andcoverage[toml], a dependency with extras, never gets a current version, socoveragewas never updated. #937 works around all three. These are bugs in Dependabot's uv support, not resolver problems.
How snapshot regeneration works today
When a bump PR needs new snapshots, a maintainer comments @zigpy-review-bot with a request like "regenerate diagnostics" on the PR. The bot runs tools/regenerate_diagnostics.py, pushes the result to the PR branch, and posts a comment. It then checks every changed snapshot against the changes in the dependency (for quirks bumps, the quirks changelog and PRs) and posts a second comment with the verdict, including anything unexpected. On #933 that took five minutes from the mention to the verdict.
The catch is that it runs on the bot's own machine, not in GitHub Actions, so it only works while the bot is running, and someone has to ask each time.
Would Renovate avoid the version problem?
Yes, for this specific problem. Dependabot hard-codes --no-tags --depth 1 for its checkout. Renovate clones with git clone --filter=blob:none (blobless, but not shallow), so the tags are there and setuptools-git-versioning computes the real version. Tested on dev with #932 reverted (starting_version = "2.0.0") and zha-quirks==2.3.0 forced, using the same clone options and then uv lock (not an actual Renovate run):
| Clone style | Version from setuptools-git-versioning |
uv lock |
|---|---|---|
Renovate-style (--filter=blob:none, tags present) |
2.3.1.post2+git.65d2329f |
resolves |
Dependabot-style (--depth 1 --no-tags) |
2.0.0 (the fallback) |
"depends on itself at an incompatible version" |
So with Renovate, starting_version would only matter for builds from checkouts without tags. It doesn't help with #934 (pins are a resolver problem) or #933 (snapshots).
One config detail matters here: zha-quirks>=2.0.0 and uv>=0.11.16 are ranges. Dependabot bumps those in uv.lock only (its own commit on #933 changed nothing but the lock). Renovate's default for this manager replaces ranges instead, so a new version inside the range produces no PR at all. It needs "rangeStrategy": "update-lockfile" (supported for uv), or exact pins, to get the same quirks bumps. Renovate's handling of our [dependency-groups] with include-group and the dynamic version hasn't been tested with a real Renovate run either; a local --dry-run would settle that before switching.
What other orgs do
- home-assistant: 49 of 62 non-archived source repos have a Renovate config. 35 of them moved from Dependabot to Renovate between 2026-09-27 and 2026-10-07 ("Move dependency updates from Dependabot to Renovate"), and 5 more got Renovate fresh in the same window. core has used Renovate since April for an allowlisted set of dependencies, with a 7-day
minimumReleaseAgeand no delay for a handful of its own packages (config); zha, zigpy and bellows are not on that allowlist. Of the 5 repos still on Dependabot, 3 use it for GitHub Actions only. The PRs come from the hosted Renovate app (renovate[bot]). The migration PRs list the reasons: pre-commit hooks get updated too, related packages are grouped into one PR even across file types (e.g. ruff on PyPI together with its pre-commit hook), a 3-day minimum release age against freshly published broken or compromised releases, and a Dependency Dashboard issue. Example: home-assistant/supervisor#7254. - home-assistant-libs: mostly still Dependabot. Of 43 non-archived source repos, 20 use only Dependabot, 4 only Renovate, 4 have both configs, and 15 have neither.
- zigpy: only
zha(uv+ GitHub Actions) andzha-websocket-server(pip+ GitHub Actions) have any updater config. zigpy, bellows, the radio libraries and zha-device-handlers have none.
Options
A, B and C decide which updater opens the PRs; C also covers the snapshot step. D is an extra updater just for the Zigbee stack, with the snapshot step built in, alongside A or B for everything else. E is only the snapshot step and works with any of them.
A. Stay on Dependabot. It should work again once #932, #934 and #937 are in. The cost is bumping starting_version whenever zha-quirks raises its zha floor (rare), asking the bot for snapshot regeneration on quirks bumps that change devices, and working around bugs in Dependabot's uv support as they show up. Making Dependabot see git tags isn't possible: its checkout options are hard-coded. Ways to avoid the fallback altogether (the alternatives from #932, a version set from the tag at release, or a different versioning tool) are discussed in #936.
B. Hosted Renovate app. Fixes the version problem, and brings:
minimumReleaseAge, the equivalent of Dependabot'scooldown. The current exemption forzigpy*,bellowsandzha-quirkscarries over as apackageRulesentry, as in core.packageRulesfor grouping, keeping those packages as separate PRs like now.- Updates to the one external pre-commit hook,
astral-sh/uv-pre-commit(still onrev: 0.11.16), once thepre-commitmanager is enabled; it is off by default. Dependabot'spre-commitecosystem could do this too. - An optional
lockFileMaintenance: a periodic PR runninguv lock --upgrade, which updates every unpinned package, including transitive ones. - A Dependency Dashboard issue.
Running commands after an update (postUpgradeTasks) is blocked on the hosted app by default. The default free tier can't change that. Projects accepted onto Mend's Community (OSS) tier for trusted open-source projects can request that a specific command be allowlisted, at Mend's discretion. So the hosted app could regenerate snapshots only if Mend accepts both. It needs an org owner to install the app for the zigpy org.
C. Self-hosted Renovate as a GitHub Actions workflow. Same as B, but we set allowedCommands ourselves (a global, not per-repo, setting), so a postUpgradeTasks entry could regenerate the snapshots on zha-quirks (and zigpy) bumps and commit them in the same PR. Costs and caveats:
- A workflow to maintain.
- The project environment has to be built inside the Renovate run (e.g.
uv run python -m tools.regenerate_diagnostics). - A GitHub App for opening PRs, as #812 sets up: PRs opened with the default
GITHUB_TOKENget CI runs that need manual approval. - Regeneration runs the repo's own code with write credentials available.
D. Our own workflow for quirks bumps. On a schedule (simplest, since zha-quirks is released from another repo): run uv lock --upgrade-package zha-quirks, regenerate the snapshots, and open a PR. The workflow needs a full checkout with tags (fetch-depth: 0) and a check that the bump actually happened, since that command silently kept the old version in a checkout without tags (#932). It could cover zigpy and bellows too, with the regular updater told to leave those packages alone; those are exact == pins in pyproject.toml, so the workflow would have to edit the pins, not just the lock. This gives the most control, and the most code to own.
E. A label that regenerates snapshots in GitHub Actions. Keep the updater and add a workflow triggered by a label like regenerate diagnostics: it checks out the PR's head branch, runs the regeneration, and pushes the result. This would be the same as today's bot mention, minus the bot's check of the result, but available without the bot. Things to watch:
- Commits pushed with the default
GITHUB_TOKENget CI runs that need someone with write access to approve them. A GitHub App token, as #812 sets up, avoids that click. - Dependabot stops rebasing a PR once someone else has pushed commits to it. A regeneration commit with
[dependabot skip]in its message lets Dependabot keep force-pushing, but then the regeneration is lost on every rebase and the label has to be applied again.@dependabot recreatealso overwrites it. - Workflows triggered by Dependabot itself get a read-only token and no Actions secrets. That restriction is tied to Dependabot being the actor, so a maintainer's label shouldn't hit it, but it's untested. What the run can do comes from the workflow's own token permissions and App credentials, so those should be kept as narrow as possible.
- It should only run on PRs from this repo, since it runs the PR's code with write access.
Questions
- Should ZHA move to Renovate (B or C), or stay on Dependabot (A)?
- If Renovate: hosted app (simpler; post-update commands only if Mend allowlists them) or self-hosted (we control the commands, but run the workflow ourselves)?
- Snapshot regeneration on quirks / zigpy bumps: keep the bot mention, or move it to Actions (C, D or E), or to the hosted app if Mend allowlists the command (B)? Which bumps should trigger it? And is an automated check of the regenerated snapshots, like the bot's verdict comment, enough, or should a human always review them before merging?
- If D: should the workflow own
zha-quirks(andzigpy,bellows) completely, with the regular updater ignoring them? - Should the rest of the zigpy org get an updater at the same time? Using the same tool everywhere would be easiest to maintain.
How zha gets its version in the first place (tags with a fallback, a static version, or a different tool) is a separate question, now in #936.
- Dominant language
- Python
- Stars
- 96
- Forks
- 84
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 30
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from zigpy/zha
-
Device override creates the generic entity instead of the vendor-specific one (Light instead of HueLight, ForceOnLight, MinTransitionLight)Possibly taken @zigpy-review-bot claimed this today. Openbot: code audit
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Each time a device becomes available again, ZHA adds another firmware update listener that is never releasedPossibly taken @zigpy-review-bot claimed this 1 day ago. Openbot: code audit
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Devices that left the network are re-initialized on every availability check, reading attributes from a device that is gonePossibly taken @zigpy-review-bot claimed this 1 day ago. Openbot: code audit
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
device specific quirks
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pimutils/vdirsyncer#1242 ·
-
priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
QuantConnect/lean-cli#792 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
open-webui/open-webui#35360 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100