Skip to content

Commit d1cf68a

Browse files
committed
Always publish to us-east-1.
WIP Publishes to us-west-2. Fix needs and update things. Use underscore. No dot. Correct replace. Use variables. Properly get arn. Just Trim. Multiline string. Change to template comment. No more multiline. Remove comment? Combine lines again. Move comment. Another multiline. Exit if not found. Set -x. More debugging. Even more debugging. Broaden regex. Subscript. No more subscript. Artifacts true. Inherit dependencies and variables. Add testing downstream branch. Remove dependencies use variables. Use loop and main. Uncomment other tests. Cleanup version env vars. Whitespace cleanups. Only deploy layers on success. Add e2e-status check. Improve output of job. Needing publish loads dotenv artifact. Have e2e-status job start right away then poll. Comment out tests for now. Use apk. Debugging. Try JOB-TOKEN. Print out URL. Try bridges api. Try GITLAB_API_TOKEN. Use CI_JOB_STATUS to determine pass/fail. Remove switch. Create dotenv file from publish script. Use docker docker image. This needs not needed. Push check status to file in e2e repo. Start status checking in test stage. Remove e2e-test-status job for now. Improve test status reporting. Improve status reporting of e2e-test ci job.
1 parent 1f9a316 commit d1cf68a

File tree

1 file changed

+5
-33
lines changed

1 file changed

+5
-33
lines changed

ci/input_files/build.yaml.tpl

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -293,38 +293,10 @@ e2e-test:
293293
{{- end }}
294294

295295
e2e-test-status:
296-
stage: e2e
296+
stage: test
297297
image: registry.ddbuild.io/images/docker:20.10-py3
298298
tags: ["arch:amd64"]
299-
timeout: 3h
300-
rules:
301-
- if: '$SKIP_E2E_TESTS == "true"'
302-
when: never
303-
- when: on_success
304-
script: |
305-
GITLAB_API_TOKEN=$(aws ssm get-parameter --region us-east-1 --name "ci.${CI_PROJECT_NAME}.serverless-e2e-gitlab-token" --with-decryption --query "Parameter.Value" --out text)
306-
URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/bridges"
307-
echo "Fetching E2E job status from: $URL"
308-
while true; do
309-
RESPONSE=$(curl -s --header "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" "$URL")
310-
E2E_JOB_STATUS=$(echo "$RESPONSE" | jq -r '.[] | select(.name=="e2e-test") | .downstream_pipeline.status')
311-
echo -n "E2E job status: $E2E_JOB_STATUS, "
312-
if [ "$E2E_JOB_STATUS" == "success" ]; then
313-
echo "✅ E2E tests completed successfully"
314-
exit 0
315-
elif [ "$E2E_JOB_STATUS" == "failed" ]; then
316-
echo "❌ E2E tests failed"
317-
exit 1
318-
elif [ "$E2E_JOB_STATUS" == "running" ]; then
319-
echo "⏳ E2E tests are still running, retrying in 1 minute..."
320-
elif [ "$E2E_JOB_STATUS" == "canceled" ]; then
321-
echo "🚫 E2E tests were canceled"
322-
exit 1
323-
elif [ "$E2E_JOB_STATUS" == "skipped" ]; then
324-
echo "⏭️ E2E tests were skipped"
325-
exit 0
326-
else
327-
echo "❓ Unknown E2E test status: $E2E_JOB_STATUS, retrying in 1 minute..."
328-
fi
329-
sleep 60
330-
done
299+
script:
300+
- git clone -b rey.abolofia/status-check --single-branch https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/serverless-e2e-tests
301+
- cd ./serverless-e2e-tests
302+
- ./scripts/check_e2e_status.sh

0 commit comments

Comments
 (0)