Skip to content

ci: fail on a stale uv.lock instead of re-locking - #52

Merged
tillywoodfield merged 1 commit into
devfrom
ci/24-lock-tool-versions-in-ci
Oct 27, 2026
Merged

tillywoodfield merged 1 commit into
devfrom
ci/24-lock-tool-versions-in-ci

Conversation

@tillywoodfield

Copy link
Copy Markdown
Collaborator

What & why

CI's uv run calls re-lock whenever uv.lock is stale against pyproject.toml, so a stale lock would pass CI, and the hooks would run ruff, ty and sqlfluff at freshly resolved versions rather than the locked ones. Setting UV_LOCKED makes every uv command in CI use the lock as committed and fail if it is stale.

Follow-up to #24.

Changes

  • UV_LOCKED: "1" at workflow level, covering the pre-commit hooks' uv run calls as well as the job steps.
  • uv sync --frozen becomes uv sync in both jobs, since uv rejects --frozen alongside UV_LOCKED.
  • The comment above check-added-large-files gives its limit as 5MB, matching --maxkb=5000.

Notes for reviewers

  • With pyproject.toml given a dependency missing from uv.lock, both uv sync and uv run fail with "The lockfile at uv.lock needs to be updated". The full lint and test jobs pass with UV_LOCKED=1 on this branch.

Checklist

  • Addresses one issue, linked above
  • Tests updated where relevant
  • Docs updated where relevant
  • Self-reviewed the diff

🤖 Generated with Claude Code

@tillywoodfield

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-27T14:44:16.571711Z 5e1dad3 Manual request
ℹ️ 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

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 5e1dad3b91

ℹ️ 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".

@tillywoodfield
tillywoodfield marked this pull request as ready for review October 27, 2026 14:45
@tillywoodfield
tillywoodfield merged commit 84020c3 into dev Oct 27, 2026
4 checks passed
@tillywoodfield
tillywoodfield deleted the ci/24-lock-tool-versions-in-ci branch October 27, 2026 14:45
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