Skip to content

Fix E2E test trigger#1214

Merged
shreyamalpani merged 12 commits intomainfrom
shreya.malpani/fix-e2e-test-trigger
May 5, 2026
Merged

Fix E2E test trigger#1214
shreyamalpani merged 12 commits intomainfrom
shreya.malpani/fix-e2e-test-trigger

Conversation

@shreyamalpani
Copy link
Copy Markdown
Contributor

@shreyamalpani shreyamalpani commented Apr 27, 2026

Overview

Change how the E2E tests are triggered. Launches pipelines for amd64 and amd64, fips flavors, will add tests for arm64 and arm64, fips as well if these work as expected.

Testing

E2E tests pass on this PR

@shreyamalpani shreyamalpani changed the title fix Fix E2E test trigger Apr 29, 2026
@shreyamalpani shreyamalpani marked this pull request as ready for review May 4, 2026 19:16
@shreyamalpani shreyamalpani requested a review from a team as a code owner May 4, 2026 19:16
Comment thread .gitlab/templates/pipeline.yaml.tpl Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes how E2E runs are launched from the GitLab pipeline by replacing the direct API-triggering flow with a GitLab downstream pipeline trigger plus a separate polling job. In this repo, that mainly affects the generated CI pipeline and the helper script that monitors the triggered E2E run.

Changes:

  • Restricts generated E2E jobs to arm64 layer-publishing flavors.
  • Replaces the old curl-based downstream pipeline trigger with a trigger: bridge job to DataDog/serverless-e2e-tests.
  • Reworks poll_e2e.sh to inspect the current pipeline’s bridge jobs instead of polling the downstream pipeline directly.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.gitlab/templates/pipeline.yaml.tpl Updates generated E2E jobs to use a bridge trigger and adds a separate polling/status job.
.gitlab/scripts/poll_e2e.sh Rewrites the polling logic to query GitLab bridge job state from the current pipeline.

Comment on lines +290 to 301
e2e-test-status ({{ $f.name }}):
stage: e2e
image: registry.ddbuild.io/images/docker:20.10-py3
tags: ["arch:amd64"]
timeout: 3h
variables:
E2E_JOB_NAME: "e2e-test ({{ $f.name }})"
needs:
- job: "publish layer e2e sandbox ({{ $f.name }})"
artifacts: false
script:
- .gitlab/scripts/poll_e2e.sh
Comment on lines +275 to +277
trigger:
project: DataDog/serverless-e2e-tests
strategy: depend
Comment on lines +32 to +49
E2E_JOB_STATUS=$(echo "$RESPONSE" | jq -r --arg name "$E2E_JOB_NAME" '.[] | select(.name==$name) | .downstream_pipeline.status')
echo -n "E2E job status: $E2E_JOB_STATUS, "
if [ "$E2E_JOB_STATUS" == "success" ]; then
echo "E2E tests completed successfully"
exit 0
elif [ "$E2E_JOB_STATUS" == "failed" ]; then
echo "E2E tests failed"
exit 1
elif [ "$E2E_JOB_STATUS" == "running" ]; then
echo "E2E tests are still running, retrying in 2 minutes..."
elif [ "$E2E_JOB_STATUS" == "canceled" ]; then
echo "E2E tests were canceled"
exit 1
elif [ "$E2E_JOB_STATUS" == "skipped" ]; then
echo "E2E tests were skipped"
exit 0
else
echo "Unknown E2E test status: $E2E_JOB_STATUS, retrying in 2 minutes..."
@shreyamalpani shreyamalpani merged commit 5586013 into main May 5, 2026
56 checks passed
@shreyamalpani shreyamalpani deleted the shreya.malpani/fix-e2e-test-trigger branch May 5, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants