Skip to content

Let Renovate merge on green checks, and upgrade dependencies at release - #84

Merged
marcleblanc2 merged 2 commits into
mainfrom
marc/automate-dependency-updates
Nov 23, 2026
Merged

marcleblanc2 merged 2 commits into
mainfrom
marc/automate-dependency-updates

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

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.lock from Renovate.

What changes

  • Renovate leaves version ranges alone (rangeStrategy: replace). A new ruff or pydantic inside its range no longer opens a pull request; it reaches uv.lock through lock file maintenance.
  • One grouped pull request a week for minor and patch updates of everything else (workflow tool pins, actions, build requirements), plus the weekly lock file maintenance pull request.
  • Renovate merges its own pull requests when the checks pass, major updates included. This needs the Renovate app on the bypass list of the review rule, which is a repository setting and not part of this diff.
  • A release upgrades its dependencies itself. A new Upgrade dependencies job runs uv lock --upgrade and the validation jobs use that lockfile. The lockfile freshness check is gone. The upgraded lockfile is not committed.
  • uv enforces the 3-day cooldown: exclude-newer = "3 days" in pyproject.toml applies to uv lock, the release upgrade, and the wheel smoke tests, which now use uv pip install.
  • Workaround for one young release: exclude-newer-package = { <name> = false } in pyproject.toml, then uv lock --upgrade-package <name>.
  • rumdl replaces npx markdownlint-cli2. It is a dev dependency locked with hashes in uv.lock; the npm tree was downloaded unlocked on every run. README.md and the standard commands in AGENTS.md show the new command.

Test plan

  • actionlint, uv lock --check, ruff, pyright, the unit tests, and rumdl check . pass locally.
  • Simulated a release from this commit in scratch clones with uv 0.13.8: uv lock --upgrade moved 11 packages (including protobuf 6.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 modified uv.lock in the build checkout produces a development version, which is why the build job does not use the upgraded lockfile.
  • exclude-newer-package in a scratch project: a 2-day-old release is skipped, taken once exempted, and dropped again when the exemption is removed.
  • renovate-config-validator accepts renovate.json.
  • Not tested: Renovate's behavior with this config, and the release workflow on GitHub (it runs on a tag only).

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.
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

@marcleblanc2
marcleblanc2 merged commit 81bd7ad into main Nov 23, 2026
8 checks passed
@marcleblanc2
marcleblanc2 deleted the marc/automate-dependency-updates branch November 23, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant