Skip to content

Commit 2bc0dab

Browse files
committed
ci: keep setup-uv pruning the cache after the v10 bump
setup-uv v9.0.0 flipped the prune-cache default from true to false, so moving v7 -> v10.0.1 silently changed cache behaviour: jobs now save unpruned uv caches. Verified against the action manifests: v7 prune-cache default: "true" v10.0.1 prune-cache default: "false" That matters at all seven call sites, not just the one that opts in explicitly. staging-tests sets enable-cache: true because its self-hosted runners are ephemeral, and the remaining jobs run on ubuntu-latest where the default 'auto' caches anyway, as the comment in staging-tests already notes. Unpruned caches grow against the repository's cache quota and can evict other entries. Setting prune-cache: true restores the previous behaviour rather than leaving it to an upstream default that has now moved once. Raised in review on 1775.
1 parent b2499a9 commit 2bc0dab

5 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build-release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
- uses: actions/checkout@v5
5050
- name: Install uv
5151
uses: astral-sh/setup-uv@v10.0.1
52+
with:
53+
prune-cache: true
5254
- name: Build ${{ matrix.component }}
5355
run: |
5456
if [ "${{ matrix.component }}" = "gooddata-api-client" ]; then

.github/workflows/bump-version.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737

3838
- name: Install uv
3939
uses: astral-sh/setup-uv@v10.0.1
40+
with:
41+
prune-cache: true
4042

4143
- name: Install dependencies
4244
run: |

.github/workflows/dev-release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
ref: ${{ inputs.BRANCH_NAME }}
3939
- name: Install uv
4040
uses: astral-sh/setup-uv@v10.0.1
41+
with:
42+
prune-cache: true
4143
- name: Install dependencies
4244
run: |
4345
uv sync --only-group release --locked

.github/workflows/rw-python-tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- name: Set up python 3.14
3838
uses: astral-sh/setup-uv@v10.0.1
3939
with:
40+
prune-cache: true
4041
python-version: 3.14
4142
- name: Install dependencies
4243
run: |
@@ -56,6 +57,7 @@ jobs:
5657
- name: Set up python 3.14
5758
uses: astral-sh/setup-uv@v10.0.1
5859
with:
60+
prune-cache: true
5961
python-version: 3.14
6062
- name: Install dependencies
6163
run: |
@@ -71,6 +73,8 @@ jobs:
7173
uses: actions/checkout@v5
7274
- name: Set up python 3.14
7375
uses: astral-sh/setup-uv@v10.0.1
76+
with:
77+
prune-cache: true
7478
- name: Install dependencies
7579
run: |
7680
uv sync --group type --locked

.github/workflows/staging-tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
- name: Set up Python
5353
uses: astral-sh/setup-uv@v10.0.1
5454
with:
55+
prune-cache: true
5556
python-version: '3.14'
5657
# self-hosted runners are ephemeral and the default 'auto' only caches
5758
# on GitHub-hosted runners, so enable the cache explicitly

0 commit comments

Comments
 (0)