Skip to content

Cache uv deps in deploy job and use uv pip install - #106

Merged
nathan-probert merged 3 commits into
mainfrom
ci/cache-uv-deploy
Aug 29, 2026
Merged

Cache uv deps in deploy job and use uv pip install#106
nathan-probert merged 3 commits into
mainfrom
ci/cache-uv-deploy

Conversation

@nathan-probert

@nathan-probert nathan-probert commented Aug 29, 2026

Copy link
Copy Markdown
Owner

#98

CI/deploy hardening for repeated deploys:

  • deploy job: adds the actions/cache on the uv cache (path now matches setup-uv's UV_CACHE_DIR, shared key with setup/lint/test) so deploys hit the shared wheel cache instead of re-downloading every time.
  • deploy.sh: uv run pip install -> uv pip install for the Lambda vendoring (uv-native installer).
  • deploy.yml: workflow-level concurrency group keyed on ref so overlapping runs serialize instead of double-deploying the same stack (previously caused ResourceConflictException: An update is in progress on UpdateFunctionCode when two runs of the same commit deployed concurrently).
  • deploy.sh: update_lambda_code now captures and prints the real AWS error when a Lambda code update fails (was swallowed by &>/dev/null), so failures are diagnosable at a glance.

Verified: all four Cache uv steps (setup/lint/test/deploy) restore at ${{ runner.temp }}/setup-uv-cache, no more "cache path does not exist" warnings.

@nathan-probert
nathan-probert merged commit 329a1f4 into main Aug 29, 2026
5 checks passed
@nathan-probert
nathan-probert deleted the ci/cache-uv-deploy branch August 29, 2026 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant