Skip to content

[v3-4-test] Stop breeze k8s commands from silently rewriting uv.lock (#75763) - #75793

Closed
github-actions[bot] wants to merge 0 commit into
v3-4-testfrom
backport-7c7157b-v3-4-test
Closed

github-actions[bot] wants to merge 0 commit into
v3-4-testfrom
backport-7c7157b-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

A v3-4-test backport bumped a workspace member's version without updating
uv.lock, and the update-uv-lock static check still passed. The chart's
prek hooks run breeze k8s setup-env, which ran a plain uv sync in
kubernetes-tests. That project is a uv workspace member, so the sync
re-resolved and rewrote the root uv.lock before the root hook checked it.
Nested prek configs do not inherit the root UV_FROZEN=1, and prek does not
report files a nested-project hook modifies outside its own project, so
the rewrite went unnoticed and the stale lock was merged. It then broke
every "Generate constraints" job on the branch.

The uv run pytest calls of breeze k8s tests and the overlay tests had
the same effect on contributors' checkouts.

CI now also fails when the static checks leave tracked files modified, so
any other hook writing outside its project is caught.
(cherry picked from commit 7c7157b)

Co-authored-by: Shahar Epstein [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant