-
Notifications
You must be signed in to change notification settings - Fork 46
Running Gitlab jobs based on upstream pipeline existence #700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Gitlab jobs based on upstream pipeline existence #700
Conversation
brettlangdon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend going with a global variable like SKIP_E2E_TESTS: false and using that here instead, then in the trigger job in dd-trace-py we can just set SKIP_E2E_TESTS: true.
not a huge deal/strong opinion, but it does read a little nicer, and keeps this CI setup/naming/etc independent of the knowledge of dd-trace-py
## 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 -->
## 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 -->
What does this PR do?
Triggers certain Gitlab jobs (e2e tests and jobs relating to publishing the layer) to run only when the
SKIP_E2E_TESTS == false. Allows this repo's Gitlab pipelines to be used in dd-trace-py without adding too much time or resources to their CI.Motivation
We are adding the unit and integration tests from datadog-lambda-python to dd-trace-py CI to avoid merging changes in the tracer that break the serverless implementation.
Testing Guidelines
Using CI/Gitlab. Tested that when the Gitlab pipeline was triggered from this repo, all expected jobs showed up (such as e2e tests). Tested that when the pipeline was trigger from dd-trace-py, the e2e tests were not triggered, but the unit and integration tests were.
Additional Notes
Types of Changes
Check all that apply