Repository navigation
Let Renovate merge on green checks, and upgrade dependencies at release - #84
Merged
Merged
Conversation
Keeping these dependencies patched took about two Renovate pull requests a week, each needing an approval, and every release first needed a fresh `uv.lock` from Renovate. - Renovate: version ranges in `pyproject.toml` stay as they are (`rangeStrategy: replace`), so a release inside a range reaches `uv.lock` through lock file maintenance only. Minor and patch updates of everything else share one weekly pull request. Renovate merges its own pull requests when the checks pass, except major updates. - Release: the workflow upgrades `uv.lock` to the latest releases `pyproject.toml` allows and validates with that lockfile, instead of failing when the committed one is behind. The lockfile is not committed. - Cooldown: `exclude-newer = "3 days"` makes uv itself skip releases younger than 3 days, in `uv lock`, at release, and in the wheel smoke tests (`uv pip install`). `exclude-newer-package` exempts one package. - Markdown: rumdl, a dev dependency locked in `uv.lock`, replaces `npx markdownlint-cli2`, which downloaded an unlocked npm tree on each run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keeping this repository's dependencies patched took about two Renovate pull requests a week, each needing an approval, and every release first needed a fresh
uv.lockfrom Renovate.What changes
rangeStrategy: replace). A newrufforpydanticinside its range no longer opens a pull request; it reachesuv.lockthrough lock file maintenance.Upgrade dependenciesjob runsuv lock --upgradeand the validation jobs use that lockfile. The lockfile freshness check is gone. The upgraded lockfile is not committed.exclude-newer = "3 days"inpyproject.tomlapplies touv lock, the release upgrade, and the wheel smoke tests, which now useuv pip install.exclude-newer-package = { <name> = false }inpyproject.toml, thenuv lock --upgrade-package <name>.npx markdownlint-cli2. It is a dev dependency locked with hashes inuv.lock; the npm tree was downloaded unlocked on every run.README.mdand the standard commands inAGENTS.mdshow the new command.Test plan
actionlint,uv lock --check,ruff,pyright, the unit tests, andrumdl check .pass locally.uv lock --upgrademoved 11 packages (includingprotobuf6.33.6 to 7.36.2), every validation command passed with that lockfile, and the build in an unmodified checkout produced the tagged version. A modifieduv.lockin the build checkout produces a development version, which is why the build job does not use the upgraded lockfile.exclude-newer-packagein a scratch project: a 2-day-old release is skipped, taken once exempted, and dropped again when the exemption is removed.renovate-config-validatoracceptsrenovate.json.