Skip to content

[SVLS-8740] add e2e test trigger#1173

Merged
shreyamalpani merged 18 commits intomainfrom
shreya.malpani/add-e2e-test-trigger
Apr 23, 2026
Merged

[SVLS-8740] add e2e test trigger#1173
shreyamalpani merged 18 commits intomainfrom
shreya.malpani/add-e2e-test-trigger

Conversation

@shreyamalpani
Copy link
Copy Markdown
Contributor

@shreyamalpani shreyamalpani commented Apr 7, 2026

Overview

Trigger E2E test runs in this repo. This should also add E2E test runs to the release pipeline, but does not block on failure in case of flakiness.

Testing

Pipeline launches E2E tests

@shreyamalpani shreyamalpani changed the title Add e2e test trigger on PRs [SVLS-8740] add e2e test trigger on PRs Apr 13, 2026
@shreyamalpani shreyamalpani changed the title [SVLS-8740] add e2e test trigger on PRs [SVLS-8740] add e2e test trigger Apr 13, 2026
@shreyamalpani shreyamalpani marked this pull request as ready for review April 16, 2026 08:13
@shreyamalpani shreyamalpani requested a review from a team as a code owner April 16, 2026 08:13
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

Adds an E2E stage to the GitLab pipeline that publishes a sandbox layer to a fixed region and then triggers/polls a downstream serverless-e2e-tests pipeline using the published layer ARN.

Changes:

  • Add e2e stage with per-flavor jobs to publish an E2E sandbox layer and run an E2E polling job.
  • Export the published layer ARN via GitLab dotenv artifacts from publish_layers.sh.
  • Introduce a new poll_e2e.sh script to trigger and poll the downstream E2E pipeline.

Reviewed changes

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

File Description
.gitlab/templates/pipeline.yaml.tpl Adds e2e stage and wires publish+poll jobs for E2E runs
.gitlab/scripts/publish_layers.sh Writes layer ARN to dotenv artifact for downstream jobs
.gitlab/scripts/poll_e2e.sh New script to trigger/poll downstream E2E GitLab pipeline

Comment thread .gitlab/scripts/poll_e2e.sh Outdated
Comment thread .gitlab/scripts/publish_layers.sh
Comment thread .gitlab/templates/pipeline.yaml.tpl
Comment thread .gitlab/templates/pipeline.yaml.tpl
E2E_PROJECT_ENCODED="DataDog%2Fserverless-e2e-tests"
E2E_REF="${E2E_REF:-main}"

curl -OL "binaries.ddbuild.io/dd-source/authanywhere/LATEST/authanywhere-linux-amd64" && mv authanywhere-linux-amd64 /bin/authanywhere && chmod +x /bin/authanywhere
Comment thread .gitlab/scripts/poll_e2e.sh Outdated
Comment on lines +32 to +40
echo " EXTENSION_VERSION=${EXTENSION_VERSION:-}"

TRIGGER_RESPONSE=$(curl --silent --request POST \
--header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" \
--header "Content-Type: application/json" \
--data "$(jq -n \
--arg ref "$E2E_REF" \
--arg arn "$EXTENSION_LAYER_ARN" \
'{ref: $ref, variables: [{key: "EXTENSION_VERSION", value: $arn}]}')" \
Comment thread .gitlab/scripts/poll_e2e.sh Outdated
Comment on lines +25 to +26
echo "ERROR: could not obtain GitLab token from BTI"
echo "BTI response: $BTI_RESPONSE"
@shreyamalpani shreyamalpani force-pushed the shreya.malpani/add-e2e-test-trigger branch from 97ce7cb to 0c06f4c Compare April 22, 2026 18:09
@shreyamalpani shreyamalpani merged commit 9cef358 into main Apr 23, 2026
55 of 59 checks passed
@shreyamalpani shreyamalpani deleted the shreya.malpani/add-e2e-test-trigger branch April 23, 2026 19:18
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