Skip to content

chore: fix bump workflow lockfile generation#640

Merged
dionhaefner merged 1 commit into
mainfrom
fix/bump-lockfile-hook-consistency
Jul 13, 2026
Merged

chore: fix bump workflow lockfile generation#640
dionhaefner merged 1 commit into
mainfrom
fix/bump-lockfile-hook-consistency

Conversation

@dionhaefner

@dionhaefner dionhaefner commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Problem

The Bump UV lockfile workflow regenerated production.uv.lock directly with the workflow's uv (astral-sh/setup-uv@v7), while the update-uv-env pre-commit hook that CI validates against pins uv==0.11.21. uv 0.11.26 changed how platform markers are emitted, so the bot-committed lockfile and the CI-regenerated one differed, failing the pre-commit check on bump PRs.

Fix

Adopt the same approach the internal repos already use: remove production.uv.lock and regenerate it through the pinned pre-commit hooks, instead of calling uv lock with the workflow's own uv. Bot and CI now use the same uv version.

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.03%. Comparing base (1557d72) to head (a912b4f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #640   +/-   ##
=======================================
  Coverage   78.03%   78.03%           
=======================================
  Files          39       39           
  Lines        4685     4685           
  Branches      770      770           
=======================================
  Hits         3656     3656           
  Misses        720      720           
  Partials      309      309           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dionhaefner
dionhaefner force-pushed the fix/bump-lockfile-hook-consistency branch from 0ca11a8 to 8995b89 Compare July 13, 2026 12:18
The Bump UV lockfile workflow regenerated the lockfile directly with the
workflow's (unpinned) uv, while the update-uv-env pre-commit hook that CI
validates against pins uv==0.11.21. uv 0.11.26 changed platform-marker
output syntax, so the two produced different lockfiles and the pre-commit
CI check failed on bump PRs.

Adopt the same approach as the internal repos: remove production.uv.lock
and regenerate it via the pinned pre-commit hooks, so bot and CI use the
same uv.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dionhaefner
dionhaefner force-pushed the fix/bump-lockfile-hook-consistency branch from 8995b89 to a912b4f Compare July 13, 2026 12:25

@jpbrodrick89 jpbrodrick89 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same comment as for tesseract-torch:

This is good in isolation by we might want to look at revisiting the way we handle the pin on update-uv-env (this should get bumped periodically, but I'm not sure if any of our actions do)?

@dionhaefner
dionhaefner merged commit bf6887b into main Jul 13, 2026
57 checks passed
@dionhaefner
dionhaefner deleted the fix/bump-lockfile-hook-consistency branch July 13, 2026 13:53
@pasteurlabs pasteurlabs locked and limited conversation to collaborators Jul 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants