[SVLS-8740] add e2e test trigger#1173
Merged
shreyamalpani merged 18 commits intomainfrom Apr 23, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
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
e2estage 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.shscript 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 |
| 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 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 on lines
+25
to
+26
| echo "ERROR: could not obtain GitLab token from BTI" | ||
| echo "BTI response: $BTI_RESPONSE" |
purple4reina
approved these changes
Apr 16, 2026
97ce7cb to
0c06f4c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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