Address flakiness of Gitlab jobs by rithikanarayan · Pull Request #703 · DataDog/datadog-lambda-python

Conversation

@rithikanarayan

What does this PR do?

Configures automatic retires for build layer, unit test, and integration test Gitlab jobs. Skips integration tests when triggered by dd-trace-py CI. Decreases timeout on build-layer jobs to address worker OOM killing the job.

Motivation

Flaky jobs.

Testing Guidelines

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 changed the title Add retries to build, unit test, and integration test Gitlab jobs Address flakiness of Gitlab jobs

Dec 24, 2025

jcstorms1

purple4reina

script:
- PYTHON_VERSION={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/build_layers.sh
timeout: 15m
retry: 2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can also potentially set this on a global level by adding

At least that's what we do in the e2e tests...