Skip to content

fix: fail early when pyproject changes without uv lock#211

Closed
jr200 wants to merge 1 commit into
masterfrom
fix/uv-lock-pr-guard
Closed

fix: fail early when pyproject changes without uv lock#211
jr200 wants to merge 1 commit into
masterfrom
fix/uv-lock-pr-guard

Conversation

@jr200

@jr200 jr200 commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add an early PR guard to Python CI for repos with uv.lock
  • fail when root pyproject.toml changes without a matching root uv.lock change
  • keep the existing uv lock freshness check for actual lock validation

Context

PR whengas/whengas-api#82 changed pyproject.toml without uv.lock. Existing CI catches the stale lock via uv lock --check, but only during dependency install. This makes the file invariant explicit and fails before Python/dependency setup.

Validation

  • git diff --check
  • bash -n scripts/test-shared-sync.sh
  • actionlint .github/workflows/ci_uv_python.yaml
  • local bash simulation against whengas/whengas-api PR 82 diff returned would_fail

@jr200

jr200 commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator Author

Closing this direction. The desired fix is for Renovate to regenerate uv.lock on dependency PRs; this PR only added an early CI guard/backstop and does not address the automation failure.

@jr200 jr200 closed this Jun 14, 2026
@jr200 jr200 deleted the fix/uv-lock-pr-guard branch June 15, 2026 07:43
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