Skip to content

Commit 60cafb5

Browse files
authored
ci: moving free up disk space to a github action (#12558)
no need to add explicit step to clean up diskspace as its part of create cluster action Signed-off-by: Nelesh Singla <117123879+nsingla@users.noreply.github.com>
1 parent bd39196 commit 60cafb5

File tree

9 files changed

+17
-29
lines changed

9 files changed

+17
-29
lines changed

.github/actions/create-cluster/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ runs:
1414
using: "composite"
1515
steps:
1616
- name: Free up disk space on runner
17-
shell: bash
18-
run: ./.github/resources/scripts/free-disk-space.sh
17+
uses: ./.github/actions/github-disk-cleanup
1918

2019
- name: Create k8s Kind Cluster
2120
uses: helm/kind-action@v1.12.0
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'GitHub Disk Cleanup'
2+
description: 'Free up disk space on GitHub Actions runners by removing unnecessary tools and cleaning caches'
3+
author: 'Kubeflow Pipelines Team'
4+
5+
branding:
6+
icon: 'trash-2'
7+
color: 'orange'
8+
9+
runs:
10+
using: 'composite'
11+
steps:
12+
- name: 'Free up disk space'
13+
shell: bash
14+
run: |
15+
chmod +x "${{ github.action_path }}/free-disk-space.sh"
16+
"${{ github.action_path }}/free-disk-space.sh"
File renamed without changes.

.github/workflows/api-server-tests.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ jobs:
8484
- name: Checkout code
8585
uses: actions/checkout@v4
8686

87-
- name: Free up disk space
88-
run: ./.github/resources/scripts/free-disk-space.sh
89-
9087
- name: Create cluster
9188
uses: ./.github/actions/create-cluster
9289
id: create-cluster
@@ -192,9 +189,6 @@ jobs:
192189
- name: Checkout code
193190
uses: actions/checkout@v4
194191

195-
- name: Free up disk space
196-
run: ./.github/resources/scripts/free-disk-space.sh
197-
198192
- name: Create cluster
199193
uses: ./.github/actions/create-cluster
200194
id: create-cluster
@@ -250,9 +244,6 @@ jobs:
250244
- name: Checkout code
251245
uses: actions/checkout@v4
252246

253-
- name: Free up disk space
254-
run: ./.github/resources/scripts/free-disk-space.sh
255-
256247
- name: Create cluster
257248
uses: ./.github/actions/create-cluster
258249
id: create-cluster

.github/workflows/e2e-test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ jobs:
9191
- name: Checkout code
9292
uses: actions/checkout@v5
9393

94-
- name: Free up disk space
95-
run: ./.github/resources/scripts/free-disk-space.sh
96-
9794
- name: Create cluster
9895
uses: ./.github/actions/create-cluster
9996
id: create-cluster
@@ -192,9 +189,6 @@ jobs:
192189
- name: Checkout code
193190
uses: actions/checkout@v5
194191

195-
- name: Free up disk space
196-
run: ./.github/resources/scripts/free-disk-space.sh
197-
198192
- name: Create cluster
199193
uses: ./.github/actions/create-cluster
200194
id: create-cluster

.github/workflows/kfp-kubernetes-native-migration-tests.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ jobs:
4040
# This is intended to address disk space issues that have surfaced
4141
# intermittently during CI -
4242
# https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930
43-
- name: Free up disk space
44-
run: ./.github/resources/scripts/free-disk-space.sh
45-
4643
- name: Create KFP cluster
4744
id: create-kfp-cluster
4845
uses: ./.github/actions/create-cluster

.github/workflows/kfp-sdk-client-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ jobs:
3737
- name: Checkout code
3838
uses: actions/checkout@v5
3939

40-
- name: Free up disk space
41-
run: ./.github/resources/scripts/free-disk-space.sh
42-
4340
# This must occur after "Free up space" step
4441
# otherwise python version will be overridden
4542
- name: Set up Python

.github/workflows/legacy-v2-api-integration-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ jobs:
4444
- name: Checkout code
4545
uses: actions/checkout@v5
4646

47-
- name: Free up disk space
48-
run: ./.github/resources/scripts/free-disk-space.sh
49-
5047
- name: Set up Python
5148
uses: actions/setup-python@v6
5249
with:

.github/workflows/upgrade-test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ jobs:
4242
- name: Checkout code
4343
uses: actions/checkout@v5
4444

45-
- name: Free up disk space
46-
run: ./.github/resources/scripts/free-disk-space.sh
47-
4845
- name: Set up Python
4946
uses: actions/setup-python@v6
5047
with:

0 commit comments

Comments
 (0)