Skip to content

Commit 6c4a250

Browse files
authored
chore: Fixed e2e tests (#11072)
Signed-off-by: hbelmiro <helber.belmiro@gmail.com>
1 parent 522b593 commit 6c4a250

File tree

1 file changed

+97
-2
lines changed

1 file changed

+97
-2
lines changed

.github/workflows/e2e-test.yaml

Lines changed: 97 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- 'test/**'
1818

1919
jobs:
20-
integration-test:
20+
initialization-tests-v1:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout code
@@ -33,18 +33,94 @@ jobs:
3333
working-directory: ./backend/test/initialization
3434
run: go test -v ./... -namespace kubeflow -args -runIntegrationTests=true
3535

36+
- name: Collect test results
37+
if: always()
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: kfp-initialization-tests-v1-artifacts
41+
path: /tmp/tmp.*/*
42+
43+
initialization-tests-v2:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v4
48+
49+
- name: Create KFP cluster
50+
uses: ./.github/actions/kfp-cluster
51+
52+
- name: Forward API port
53+
run: ./scripts/deploy/github/forward-port.sh "kubeflow" "ml-pipeline" 8888 8888
54+
3655
- name: Initialization tests v2
3756
working-directory: ./backend/test/v2/initialization
3857
run: go test -v ./... -namespace kubeflow -args -runIntegrationTests=true
3958

59+
- name: Collect test results
60+
if: always()
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: kfp-initialization-tests-v2-artifacts
64+
path: /tmp/tmp.*/*
65+
66+
api-integration-tests-v1:
67+
runs-on: ubuntu-latest
68+
steps:
69+
- name: Checkout code
70+
uses: actions/checkout@v4
71+
72+
- name: Create KFP cluster
73+
uses: ./.github/actions/kfp-cluster
74+
75+
- name: Forward API port
76+
run: ./scripts/deploy/github/forward-port.sh "kubeflow" "ml-pipeline" 8888 8888
77+
4078
- name: API integration tests v1
4179
working-directory: ./backend/test/integration
4280
run: go test -v ./... -namespace ${NAMESPACE} -args -runIntegrationTests=true
4381

82+
- name: Collect test results
83+
if: always()
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: kfp-api-integration-tests-v1-artifacts
87+
path: /tmp/tmp.*/*
88+
89+
api-integration-tests-v2:
90+
runs-on: ubuntu-latest
91+
steps:
92+
- name: Checkout code
93+
uses: actions/checkout@v4
94+
95+
- name: Create KFP cluster
96+
uses: ./.github/actions/kfp-cluster
97+
98+
- name: Forward API port
99+
run: ./scripts/deploy/github/forward-port.sh "kubeflow" "ml-pipeline" 8888 8888
100+
44101
- name: API integration tests v2
45102
working-directory: ./backend/test/v2/integration
46103
run: go test -v ./... -namespace ${NAMESPACE} -args -runIntegrationTests=true
47104

105+
- name: Collect test results
106+
if: always()
107+
uses: actions/upload-artifact@v4
108+
with:
109+
name: kfp-api-integration-tests-v2-artifacts
110+
path: /tmp/tmp.*/*
111+
112+
frontend-integration-test:
113+
runs-on: ubuntu-latest
114+
steps:
115+
- name: Checkout code
116+
uses: actions/checkout@v4
117+
118+
- name: Create KFP cluster
119+
uses: ./.github/actions/kfp-cluster
120+
121+
- name: Forward API port
122+
run: ./scripts/deploy/github/forward-port.sh "kubeflow" "ml-pipeline" 8888 8888
123+
48124
- name: Forward Frontend port
49125
run: ./scripts/deploy/github/forward-port.sh "kubeflow" "ml-pipeline-ui" 3000 3000
50126

@@ -55,6 +131,25 @@ jobs:
55131
- name: Frontend integration tests
56132
run: docker run --net=host kfp-frontend-integration-test:local --remote-run true
57133

134+
- name: Collect test results
135+
if: always()
136+
uses: actions/upload-artifact@v4
137+
with:
138+
name: kfp-frontend-integration-test-artifacts
139+
path: /tmp/tmp.*/*
140+
141+
basic-sample-tests:
142+
runs-on: ubuntu-latest
143+
steps:
144+
- name: Checkout code
145+
uses: actions/checkout@v4
146+
147+
- name: Create KFP cluster
148+
uses: ./.github/actions/kfp-cluster
149+
150+
- name: Forward API port
151+
run: ./scripts/deploy/github/forward-port.sh "kubeflow" "ml-pipeline" 8888 8888
152+
58153
- name: Basic sample tests - sequential
59154
run: pip3 install -r ./test/sample-test/requirements.txt && pip3 install kfp~=2.0 && python3 ./test/sample-test/sample_test_launcher.py sample_test run_test --namespace kubeflow --test-name sequential --results-gcs-dir output
60155

@@ -66,5 +161,5 @@ jobs:
66161
if: always()
67162
uses: actions/upload-artifact@v4
68163
with:
69-
name: kfp-backend-artifacts
164+
name: kfp-basic-sample-tests-artifacts
70165
path: /tmp/tmp.*/*

0 commit comments

Comments
 (0)