@@ -53,6 +53,7 @@ build-layer ({{ $runtime.name }}-{{ $runtime.arch }}):
5353 variables:
5454 CI_ENABLE_CONTAINER_IMAGE_BUILDS: "true"
5555 script:
56+ - exit 0
5657 - PYTHON_VERSION={ { $runtime .python_version } } ARCH={ { $runtime .arch } } ./scripts/build_layers.sh
5758
5859#check-layer-size ({ { $runtime .name } }-{ { $runtime .arch } }):
@@ -73,6 +74,7 @@ lint python:
7374 cache: & { { $runtime .name } }-{ { $runtime .arch } }-cache
7475 before_script: *python-before-script
7576 script:
77+ - exit 0
7678 - source venv/bin/activate
7779 - ./scripts/check_format.sh
7880
@@ -176,6 +178,7 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):
176178 - EXTERNAL_ID_NAME={ { $environment .external_id } } ROLE_TO_ASSUME={ { $environment .role_to_assume } } AWS_ACCOUNT={ { $environment .account } } source ./ci/get_secrets.sh
177179 script:
178180 - |
181+ exit 0
179182 STAGE={ { $environment_name } } PYTHON_VERSION={ { $runtime .python_version } } ARCH={ { $runtime .arch } } ./ci/publish_layers.sh | tee publish.log
180183 # Extract the arn from the publish log to be used as envvar in e2e tests
181184 layer_arn="$(grep 'Published arn' publish.log | grep -oE 'arn:aws:lambda:.*')"
@@ -226,6 +229,7 @@ layer bundle:
226229 - datadog_lambda_py-bundle-${ CI_JOB_ID} /
227230 name: datadog_lambda_py-bundle-${ CI_JOB_ID}
228231 script:
232+ - exit 0
229233 - rm -rf datadog_lambda_py-bundle-${ CI_JOB_ID}
230234 - mkdir -p datadog_lambda_py-bundle-${ CI_JOB_ID}
231235 - cp .layers/datadog_lambda_py-*.zip datadog_lambda_py-bundle-${ CI_JOB_ID}
@@ -300,11 +304,11 @@ e2e-status:
300304 # Poll for e2e-test job completion
301305 while true; do
302306 # Get the e2e-test job status
303- URL="${ CI_API_V4_URL} /projects/${ CI_PROJECT_ID} /pipelines/${ CI_PIPELINE_ID} /jobs "
307+ URL="${ CI_API_V4_URL} /projects/${ CI_PROJECT_ID} /pipelines/${ CI_PIPELINE_ID} /bridges "
304308 echo "Fetching E2E job status from: $URL"
305309 RESPONSE=$(curl -s --header "JOB-TOKEN: ${ CI_JOB_TOKEN} " "$URL")
306310 echo "Response: $RESPONSE"
307- E2E_JOB_STATUS=$(echo "$RESPONSE" | jq -r '.[] | select(.name=="e2e-test") | .status')
311+ E2E_JOB_STATUS=$(echo "$RESPONSE" | jq -r '.[] | select(.name=="e2e-test") | .pipeline. status')
308312 echo "E2E job status: $E2E_JOB_STATUS"
309313 case "$E2E_JOB_STATUS" in
310314 "success")
0 commit comments