Skip to content

Commit 161d4cd

Browse files
chore(ci): adding datadog-lambda-python CI to Gitlab (#15475)
## Description Adding the unit and integration tests from the datadog-lambda-python repository to this repository's CI. Helps catch any changes to dd-trace-py that would cause issues in datadog-lambda-python before merging/release. <!-- Provide an overview of the change and motivation for the change --> ## Testing Gitlab. Verified that if trigger-serverless-lambda-tests downstream pipeline fails, the whole ddtrace pipeline will fail and the dd-gitlab/default-pipeline job will show as failed in the PR using [this Gitlab pipeline](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/pipelines/86791461). <!-- Describe your testing strategy or note what tests are included --> ## Risks <!-- Note any risks associated with this change, or "None" if no risks --> ## Additional Notes [Related PR in datadog-lambda-python](DataDog/datadog-lambda-python#700). <!-- Any other information that would be helpful for reviewers -->
1 parent 8ee656c commit 161d4cd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.gitlab-ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,26 @@ run-tests-trigger:
7575
job: tests-gen
7676
strategy: depend
7777

78+
serverless lambda tests:
79+
stage: tests
80+
trigger:
81+
project: DataDog/datadog-lambda-python
82+
strategy: depend
83+
branch: main
84+
needs:
85+
- job: publish-wheels-to-s3
86+
variables:
87+
UPSTREAM_PIPELINE_ID: $CI_PIPELINE_ID
88+
UPSTREAM_PROJECT_URL: $CI_PROJECT_URL
89+
UPSTREAM_COMMIT_BRANCH: $CI_COMMIT_BRANCH
90+
UPSTREAM_COMMIT_AUTHOR: $CI_COMMIT_AUTHOR
91+
UPSTREAM_COMMIT_TITLE: $CI_COMMIT_TITLE
92+
UPSTREAM_COMMIT_TAG: $CI_COMMIT_TAG
93+
UPSTREAM_PROJECT_NAME: $CI_PROJECT_NAME
94+
UPSTREAM_GITLAB_USER_LOGIN: $GITLAB_USER_LOGIN
95+
UPSTREAM_GITLAB_USER_EMAIL: $GITLAB_USER_EMAIL
96+
SKIP_E2E_TESTS: "true"
97+
7898
# Validate the ast-grep rule's test suite in .sg/tests
7999
"ast-grep rules":
80100
extends: .testrunner

0 commit comments

Comments
 (0)