Skip to content

Commit c7cdb40

Browse files
authored
fix(ci): disable uv cache cleanup when UV_NO_CACHE is set (#4889)
# What does this PR do? When disable_cache is true (e.g., from stainless-builds.yml), UV_NO_CACHE=true is set as a job-level env. The setup-uv action's post-job cleanup runs "uv cache prune" which, under UV_NO_CACHE=true, targets an ephemeral temp directory that lacks the expected structure, causing the step to fail. Pass enable-cache based on UV_NO_CACHE so setup-uv skips its cache prune post-step when caching is disabled. see https://github.com/llamastack/llama-stack/actions/runs/21912319402/job/63270887740?pr=4824 for example failure. ## Test Plan stainless integration tests should pass. as should all other integration tests. Signed-off-by: Charlie Doern <cdoern@redhat.com>
1 parent 5f66b52 commit c7cdb40

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/actions/setup-runner/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ runs:
2424
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
2525
with:
2626
python-version: ${{ inputs.python-version }}
27+
enable-cache: ${{ env.UV_NO_CACHE != 'true' }}
2728

2829
- name: Configure client installation
2930
id: client-config

0 commit comments

Comments
 (0)