@@ -261,6 +261,7 @@ e2e-test:
261261 strategy: depend
262262 variables:
263263 LANGUAGES_SUBSET: python
264+ TRIGGER_JOB_TOKEN: $CI_JOB_TOKEN
264265 # These env vars are inherited from the dotenv reports of the publish-layer jobs
265266 {{- range (ds " runtimes" ).runtimes }}
266267 {{- if eq .arch " amd64" }}
@@ -286,6 +287,7 @@ e2e-status:
286287 {{- end }}
287288 {{- end }}
288289 script:
290+ - echo " Trigger job token: $TRIGGER_JOB_TOKEN"
289291 - echo " Python layer ARNs used in E2E tests:"
290292 {{- range (ds " runtimes" ).runtimes }}
291293 {{- if eq .arch " amd64" }}
@@ -294,22 +296,15 @@ e2e-status:
294296 {{- end }}
295297 {{- end }}
296298 - |
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