@@ -106,7 +106,7 @@ jobs:
106
106
steps :
107
107
- name : Download built image artifact
108
108
if : ${{ inputs.load-local-image }}
109
- uses : actions/download-artifact@v3
109
+ uses : actions/download-artifact@v4
110
110
with :
111
111
name : kic-image
112
112
path : /tmp
@@ -165,6 +165,8 @@ jobs:
165
165
with :
166
166
install : false
167
167
168
+ - run : echo "GOTESTSUM_JUNITFILE=e2e-kind-${{ matrix.test }}-${{ matrix.kubernetes-version }}-tests.xml" >> $GITHUB_ENV
169
+
168
170
- name : run ${{ matrix.test }}
169
171
run : make test.e2e
170
172
env :
@@ -180,21 +182,21 @@ jobs:
180
182
TEST_KONG_EFFECTIVE_VERSION : ${{ inputs.kong-effective-version }}
181
183
TEST_KONG_KONNECT_ACCESS_TOKEN : ${{ secrets.K8S_TEAM_KONNECT_ACCESS_TOKEN }}
182
184
KONG_LICENSE_DATA : ${{ steps.license.outputs.license }}
183
- GOTESTSUM_JUNITFILE : " e2e- ${{ matrix.test }}${{ matrix.kubernetes-version }}-tests.xml "
185
+ GOTESTSUM_JUNITFILE : ${{ env.GOTESTSUM_JUNITFILE }}
184
186
185
187
- name : upload diagnostics
186
188
if : ${{ always() }}
187
- uses : actions/upload-artifact@v3
189
+ uses : actions/upload-artifact@v4
188
190
with :
189
191
name : " diagnostics-e2e-tests-${{ matrix.test }}-${{ matrix.kubernetes-version }}"
190
192
path : /tmp/ktf-diag*
191
193
if-no-files-found : ignore
192
194
193
195
- name : collect test report
194
- uses : actions/upload-artifact@v3
196
+ uses : actions/upload-artifact@v4
195
197
with :
196
- name : tests-report
197
- path : " *-tests.xml "
198
+ name : tests-report-e2e-kind-${{ matrix.test }}-${{ matrix.kubernetes-version }}
199
+ path : ${{ env.GOTESTSUM_JUNITFILE }}
198
200
199
201
gke :
200
202
timeout-minutes : ${{ fromJSON(vars.GHA_EXTENDED_TIMEOUT_MINUTES || 60) }}
@@ -261,6 +263,8 @@ jobs:
261
263
with :
262
264
install : false
263
265
266
+ - run : echo "GOTESTSUM_JUNITFILE=e2e-gke-${{ matrix.test }}-${{ matrix.kubernetes-version }}-tests.xml" >> $GITHUB_ENV
267
+
264
268
- name : run ${{ matrix.test }}
265
269
run : make test.e2e
266
270
env :
@@ -280,25 +284,25 @@ jobs:
280
284
KONG_CLUSTER_VERSION : ${{ matrix.kubernetes-version }}
281
285
KONG_CLUSTER_PROVIDER : gke
282
286
E2E_TEST_RUN : ${{ matrix.test }}
283
- GOTESTSUM_JUNITFILE : " e2e-gke- ${{ matrix.test }}-${{ matrix.kubernetes-version }}-tests.xml "
287
+ GOTESTSUM_JUNITFILE : ${{ env.GOTESTSUM_JUNITFILE }}
284
288
GOOGLE_APPLICATION_CREDENTIALS : ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
285
289
GOOGLE_PROJECT : ${{ secrets.GOOGLE_PROJECT }}
286
290
GOOGLE_LOCATION : ${{ secrets.GOOGLE_LOCATION }}
287
291
TEST_GKE_CLUSTER_RELEASE_CHANNEL : " rapid"
288
292
289
293
- name : upload diagnostics
290
294
if : ${{ always() }}
291
- uses : actions/upload-artifact@v3
295
+ uses : actions/upload-artifact@v4
292
296
with :
293
- name : " diagnostics-e2e-gke-tests-${{ matrix.test }}-${{ matrix.kubernetes-version }}"
297
+ name : diagnostics-e2e-gke-tests-${{ matrix.test }}-${{ matrix.kubernetes-version }}
294
298
path : /tmp/ktf-diag*
295
299
if-no-files-found : ignore
296
300
297
301
- name : collect test report
298
- uses : actions/upload-artifact@v3
302
+ uses : actions/upload-artifact@v4
299
303
with :
300
- name : tests-report
301
- path : " *-tests.xml "
304
+ name : tests-report-e2e-gke-${{ matrix.test }}-${{ matrix.kubernetes-version }}
305
+ path : ${{ env.GOTESTSUM_JUNITFILE }}
302
306
303
307
istio :
304
308
timeout-minutes : ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT || 10) }}
@@ -312,7 +316,7 @@ jobs:
312
316
steps :
313
317
- name : Download built image artifact
314
318
if : ${{ inputs.load-local-image }}
315
- uses : actions/download-artifact@v3
319
+ uses : actions/download-artifact@v4
316
320
with :
317
321
name : kic-image
318
322
path : /tmp
@@ -361,6 +365,8 @@ jobs:
361
365
with :
362
366
install : false
363
367
368
+ - run : echo "GOTESTSUM_JUNITFILE=e2e-istio-${{ matrix.kind }}-${{ matrix.istio }}-tests.xml" >> $GITHUB_ENV
369
+
364
370
- name : run Istio tests
365
371
run : make test.istio
366
372
env :
@@ -376,18 +382,46 @@ jobs:
376
382
ISTIO_VERSION : ${{ matrix.istio }}
377
383
NCPU : 1 # it was found that github actions (specifically) did not seem to perform well when spawning
378
384
# multiple kind clusters within a single job, so only 1 is allowed at a time.
379
- GOTESTSUM_JUNITFILE : " istio- ${{ matrix.kubernetes-version }}-${{ matrix.istio-version }}-tests.xml "
385
+ GOTESTSUM_JUNITFILE : ${{ env.GOTESTSUM_JUNITFILE }}
380
386
381
387
- name : upload diagnostics
382
388
if : ${{ always() }}
383
- uses : actions/upload-artifact@v3
389
+ uses : actions/upload-artifact@v4
384
390
with :
385
- name : diagnostics-e2e-tests
391
+ name : diagnostics-e2e-tests-istio-${{ matrix.kind }}-${{ matrix.istio }}
386
392
path : /tmp/ktf-diag*
387
393
if-no-files-found : ignore
388
394
389
395
- name : collect test report
390
- uses : actions/upload-artifact@v3
396
+ uses : actions/upload-artifact@v4
397
+ with :
398
+ name : tests-report-e2e-istio-${{ matrix.kind }}-${{ matrix.istio }}
399
+ path : ${{ env.GOTESTSUM_JUNITFILE }}
400
+
401
+ merge-test-reports :
402
+ timeout-minutes : ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT || 10) }}
403
+ runs-on : ubuntu-latest
404
+ needs :
405
+ - istio
406
+ - kind
407
+ - gke
408
+ steps :
409
+ - name : Merge test report artifacts
410
+ uses : actions/upload-artifact/merge@v4
411
+ with :
412
+ name : test-report-e2e
413
+ pattern : test-report-e2e-*
414
+
415
+ merge-diagnostics :
416
+ timeout-minutes : ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT || 10) }}
417
+ runs-on : ubuntu-latest
418
+ needs :
419
+ - istio
420
+ - kind
421
+ - gke
422
+ steps :
423
+ - name : Merge test report artifacts
424
+ uses : actions/upload-artifact/merge@v4
391
425
with :
392
- name : tests-report
393
- path : " *-tests.xml "
426
+ name : diagnostics-e2e
427
+ pattern : diagnostics-e2e-*
0 commit comments