Skip to content

Conversation

@rithikanarayan
Copy link
Contributor

@rithikanarayan rithikanarayan commented Dec 11, 2025

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

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)

@rithikanarayan rithikanarayan marked this pull request as ready for review December 16, 2025 18:44
@rithikanarayan rithikanarayan requested review from a team as code owners December 16, 2025 18:44
Copy link
Member

@brettlangdon brettlangdon left a 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

@rithikanarayan rithikanarayan merged commit 73650f9 into main Dec 16, 2025
105 of 106 checks passed
@rithikanarayan rithikanarayan deleted the rithika.narayan/APMSVLS-284-dd-trace-py-ci branch December 16, 2025 19:56
rithikanarayan added a commit to DataDog/dd-trace-py that referenced this pull request Dec 16, 2025
## 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 -->
brettlangdon pushed a commit to DataDog/dd-trace-py that referenced this pull request Dec 17, 2025
## 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 -->
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