Skip to content

Commit 53bb3a0

Browse files
authored
test: Update the Kubernetes and Python version ranges in the CI (kubeflow#11924)
* Minimize the Kubernetes version range in the CI This reduces the matrix to only include the low and high versions. See the KFP community call notes for more context: https://docs.google.com/document/d/1cHAdK1FoGEbuQ-Rl6adBDL5W2YpDiUbnMLIwmoXBoAU/edit?tab=t.0#heading=h.fovolzywu84d Signed-off-by: mprahl <[email protected]> * Reduce the testing matrix for Python versions This reduces the Python versions being tested to the low and high versions to reduce GitHub CI consumption. See the KFP community call discussion for more context: https://docs.google.com/document/d/1cHAdK1FoGEbuQ-Rl6adBDL5W2YpDiUbnMLIwmoXBoAU/edit?tab=t.0#heading=h.fovolzywu84d Signed-off-by: mprahl <[email protected]> * Add an option to run integration tests locally Signed-off-by: mprahl <[email protected]> * Stop using whalesay in the tests The container image is over 10 years old and is in a format that is deprecated on newer Kubernetes versions. Signed-off-by: mprahl <[email protected]> --------- Signed-off-by: mprahl <[email protected]>
1 parent 1b0e653 commit 53bb3a0

23 files changed

+141
-66
lines changed

.github/workflows/e2e-test.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
26+
k8s_version: [ "v1.29.2", "v1.31.0" ]
2727
name: Initialization tests v1 - K8s ${{ matrix.k8s_version }}
2828
steps:
2929
- name: Checkout code
@@ -52,6 +52,8 @@ jobs:
5252
if: ${{ steps.forward-api-port.outcome == 'success' }}
5353
working-directory: ./backend/test/initialization
5454
run: go test -v ./... -namespace kubeflow -args -runIntegrationTests=true
55+
env:
56+
PULL_NUMBER: ${{ github.event.pull_request.number }}
5557
continue-on-error: true
5658

5759
- name: Collect failed logs
@@ -71,7 +73,7 @@ jobs:
7173
runs-on: ubuntu-latest
7274
strategy:
7375
matrix:
74-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
76+
k8s_version: [ "v1.29.2", "v1.31.0" ]
7577
name: Initialization tests v2 - K8s ${{ matrix.k8s_version }}
7678
steps:
7779
- name: Checkout code
@@ -100,6 +102,8 @@ jobs:
100102
if: ${{ steps.forward-api-port.outcome == 'success' }}
101103
working-directory: ./backend/test/v2/initialization
102104
run: go test -v ./... -namespace kubeflow -args -runIntegrationTests=true
105+
env:
106+
PULL_NUMBER: ${{ github.event.pull_request.number }}
103107
continue-on-error: true
104108

105109
- name: Collect failed logs
@@ -119,7 +123,7 @@ jobs:
119123
runs-on: ubuntu-latest
120124
strategy:
121125
matrix:
122-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
126+
k8s_version: [ "v1.29.2", "v1.31.0" ]
123127
name: API integration tests v1 - K8s ${{ matrix.k8s_version }}
124128
steps:
125129
- name: Checkout code
@@ -154,6 +158,8 @@ jobs:
154158
if: ${{ steps.forward-mysql-port.outcome == 'success' }}
155159
working-directory: ./backend/test/integration
156160
run: go test -v ./... -namespace kubeflow -args -runIntegrationTests=true
161+
env:
162+
PULL_NUMBER: ${{ github.event.pull_request.number }}
157163
continue-on-error: true
158164

159165
- name: Collect failed logs
@@ -174,7 +180,7 @@ jobs:
174180
strategy:
175181
matrix:
176182
pipeline_store: [ "database", "kubernetes" ]
177-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
183+
k8s_version: [ "v1.29.2", "v1.31.0" ]
178184
name: API integration tests v2 - K8s with ${{ matrix.pipeline_store }} ${{ matrix.k8s_version }}
179185
steps:
180186
- name: Checkout code
@@ -210,6 +216,8 @@ jobs:
210216
if: ${{ steps.forward-api-port.outcome == 'success' }}
211217
working-directory: ./backend/test/v2/integration
212218
run: go test -v ./... -namespace kubeflow -args -runIntegrationTests=true
219+
env:
220+
PULL_NUMBER: ${{ github.event.pull_request.number }}
213221
continue-on-error: true
214222

215223
- name: Collect failed logs
@@ -265,6 +273,8 @@ jobs:
265273
if: ${{ steps.forward-mlmd-port.outcome == 'success' }}
266274
working-directory: ./backend/test/v2/integration
267275
run: go test -v ./... -namespace kubeflow -args -runIntegrationTests=true -useProxy=true
276+
env:
277+
PULL_NUMBER: ${{ github.event.pull_request.number }}
268278
continue-on-error: true
269279

270280
- name: Collect failed logs
@@ -321,6 +331,8 @@ jobs:
321331
if: ${{ steps.forward-mlmd-port.outcome == 'success' }}
322332
working-directory: ./backend/test/v2/integration
323333
run: go test -v ./... -namespace kubeflow -args -runIntegrationTests=true -cacheEnabled=false
334+
env:
335+
PULL_NUMBER: ${{ github.event.pull_request.number }}
324336
continue-on-error: true
325337

326338
- name: Collect failed logs
@@ -340,7 +352,7 @@ jobs:
340352
runs-on: ubuntu-latest
341353
strategy:
342354
matrix:
343-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
355+
k8s_version: [ "v1.29.2", "v1.31.0" ]
344356
name: Frontend Integration Tests - K8s ${{ matrix.k8s_version }}
345357
steps:
346358
- name: Checkout code
@@ -397,7 +409,7 @@ jobs:
397409
runs-on: ubuntu-latest
398410
strategy:
399411
matrix:
400-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
412+
k8s_version: [ "v1.29.2", "v1.31.0" ]
401413
name: Basic Sample Tests - K8s ${{ matrix.k8s_version }}
402414
steps:
403415
- name: Checkout code

.github/workflows/kfp-kubernetes-execution-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-24.04
2121
strategy:
2222
matrix:
23-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
23+
k8s_version: [ "v1.29.2", "v1.31.0" ]
2424
name: kfp-kubernetes execution tests - K8s ${{ matrix.k8s_version }}
2525
steps:
2626
- name: Checkout code

.github/workflows/kfp-kubernetes-library-test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ jobs:
1919
matrix:
2020
python: [
2121
{ 'version': '3.9' },
22-
{ 'version': '3.10' },
23-
{ 'version': '3.11' },
24-
{ 'version': '3.12' },
2522
{ 'version': '3.13' }
2623
]
2724
steps:

.github/workflows/kfp-samples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
strategy:
2323
matrix:
24-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
24+
k8s_version: [ "v1.29.2", "v1.31.0" ]
2525
name: KFP Samples - K8s ${{ matrix.k8s_version }}
2626

2727
steps:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-24.04
1818
strategy:
1919
matrix:
20-
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
20+
python: ['3.9', '3.13']
2121
steps:
2222
- name: Checkout code
2323
uses: actions/checkout@v4

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
20+
python-version: ['3.9', '3.13']
2121

2222
steps:
2323
- name: Checkout code

.github/workflows/kfp-webhooks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
20+
k8s_version: [ "v1.29.2", "v1.31.0" ]
2121
name: KFP Webhooks - K8s ${{ matrix.k8s_version }}
2222

2323
steps:

.github/workflows/periodic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
12+
k8s_version: [ "v1.29.2", "v1.31.0" ]
1313
name: Periodic Functional Tests - K8s ${{ matrix.k8s_version }}
1414
steps:
1515
- name: Checkout repository

.github/workflows/sdk-execution.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-24.04
2020
strategy:
2121
matrix:
22-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
22+
k8s_version: [ "v1.29.2", "v1.31.0" ]
2323
name: KFP SDK Execution Tests - K8s ${{ matrix.k8s_version }}
2424
steps:
2525
- name: Checkout code

.github/workflows/upgrade-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
k8s_version: [ "v1.29.2", "v1.30.2", "v1.31.0" ]
21+
k8s_version: [ "v1.29.2", "v1.31.0" ]
2222
name: KFP upgrade tests - K8s ${{ matrix.k8s_version }}
2323

2424
steps:

0 commit comments

Comments
 (0)