Skip to content

Upgrade uv.lock weekly in a workflow, not with Dependabot - #574

Merged
chrisguidry merged 1 commit into
mainfrom
uv-lock-upgrades
Oct 22, 2026
Merged

chrisguidry merged 1 commit into
mainfrom
uv-lock-upgrades

Conversation

@chrisguidry

Copy link
Copy Markdown
Owner

Dependabot's uv updater always raises the floor in pyproject.toml to the version it upgrades to, and it ignores versioning-strategy. pydocket is a library, so its floors should stay as low as it supports, and only uv.lock should move. Raising floors also breaks the weekly group: ipython, zensical, mkdocstrings, and starlette now need Python 3.11, and the workspace supports 3.10, so the 2026-10-21 run failed and opened no PR. #568 is another raised floor.

The new Lock workflow runs uv lock --upgrade every Monday and opens or updates one PR. uv keeps older versions for Python 3.10 where it must, so the upgrade resolves. The workflow opens the PR with a GitHub App token, because a PR opened with GITHUB_TOKEN does not start CI. Dependabot keeps the cargo and GitHub Actions updates, and its security updates for uv.lock stay on.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PrT3ujS7JeG2N7JMdYngA9

Dependabot's uv updater always raises the floor in pyproject.toml to the version it upgrades to, and it ignores versioning-strategy. pydocket is a library, so its floors should stay as low as it supports, and only uv.lock should move. Raising floors also breaks the weekly group: ipython, zensical, mkdocstrings, and starlette now need Python 3.11, and the workspace supports 3.10, so the 2026-10-21 run failed and opened no PR. #568 is another raised floor.

The new Lock workflow runs uv lock --upgrade every Monday and opens or updates one PR. uv keeps older versions for Python 3.10 where it must, so the upgrade resolves. The workflow opens the PR with a GitHub App token, because a PR opened with GITHUB_TOKEN does not start CI. Dependabot keeps the cargo and GitHub Actions updates, and its security updates for uv.lock stay on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PrT3ujS7JeG2N7JMdYngA9
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T14:52:13.759580Z 41baa04 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 41baa04585

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

echo "This upgrades every package in uv.lock to its latest version that the floors in pyproject.toml allow. The floors do not change."
echo
echo '```'
grep -E '^(Updated|Added|Removed) ' upgrade.log

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Allow lock changes without package-summary lines

When uv changes uv.lock without adding, removing, or changing a package version—for example, during lock-format or artifact-metadata normalization—upgrade.log need not contain any line matching this expression even though the earlier diff check found a valid lockfile change. grep returns status 1 when it selects no lines (GNU grep documentation), and GitHub runs an unspecified Linux shell with bash -e (workflow syntax), so the step exits here before committing or opening the PR. Make the summary extraction non-fatal and allow an empty or fallback summary.

Useful? React with 👍 / 👎.

@chrisguidry
chrisguidry merged commit 2b9186c into main Oct 22, 2026
87 checks passed
@chrisguidry
chrisguidry deleted the uv-lock-upgrades branch October 22, 2026 15:41
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