@@ -261,6 +261,7 @@ e2e-test:
261
261
strategy: depend
262
262
variables:
263
263
LANGUAGES_SUBSET: python
264
+ TRIGGER_JOB_TOKEN: $CI_JOB_TOKEN
264
265
# These env vars are inherited from the dotenv reports of the publish-layer jobs
265
266
{ {- range (ds " runtimes" ).runtimes } }
266
267
{ {- if eq .arch " amd64" } }
@@ -286,6 +287,7 @@ e2e-status:
286
287
{ {- end } }
287
288
{ {- end } }
288
289
script:
290
+ - echo "Trigger job token: $TRIGGER_JOB_TOKEN"
289
291
- echo "Python layer ARNs used in E2E tests:"
290
292
{ {- range (ds " runtimes" ).runtimes } }
291
293
{ {- if eq .arch " amd64" } }
@@ -294,22 +296,15 @@ e2e-status:
294
296
{ {- end } }
295
297
{ {- end } }
296
298
- |
297
- # TODO: link to the test results
298
- # make this job start running at same time as e2e-test job
299
- # do not wait around for the scheduled job to complete
300
- switch "${ CI_JOB_STATUS} " in
301
- "success")
302
- echo "✅ E2E tests completed successfully"
303
- ;;
304
- "failed")
305
- echo "❌ E2E tests failed"
306
- exit 1
307
- ;;
308
- "canceled")
309
- echo "❌ E2E tests were canceled"
310
- exit 1
311
- ;;
312
- *)
313
- echo "❌ E2E tests unknown status: ${ CI_JOB_STATUS} "
314
- exit 1
315
- esac
299
+ if [ "$CI_JOB_STATUS" = "success" ]; then
300
+ echo "✅ E2E tests completed successfully"
301
+ elif [ "$CI_JOB_STATUS" = "failed" ]; then
302
+ echo "❌ E2E tests failed"
303
+ exit 1
304
+ elif [ "$CI_JOB_STATUS" = "canceled" ]; then
305
+ echo "❌ E2E tests were canceled"
306
+ exit 1
307
+ else
308
+ echo "❌ E2E tests unknown status: ${ CI_JOB_STATUS} "
309
+ exit 1
310
+ fi
0 commit comments