Skip to content

Conversation

@anmarchenko
Copy link
Member

What does this PR do?
Adds a command line parameter and corresponding environment variable to provide an override for runtime tags collected by Datadog libraries.

It is important because when using Test Impact Analysis, skippable tests are scoped by runtime environment (OS, architecture, language version). This means tests skipped in the Linux CI won't automatically be skipped on the macOS development machine because the runtime tags differ.

The --runtime-tags option lets you override your local runtime tags to match your CI environment, enabling users to benefit from Test Impact Analysis locally without re-running their entire test suite.

The documentation about this feature is added to README.md

Motivation
A conversation with early adopters about a possibility to use ddtest to run a subset of tests in the local development environment

Additional Notes
Unfortunately, this will not make the Datadog Test Optimization library to skip the tests locally - but it can be used to skip locally the complete test files where all tests are skipped by test impact analysis

How to test the change?
Was manually tested using anmarchenko/forem project

…age data to skip test files in local environment
@anmarchenko anmarchenko requested a review from a team as a code owner January 5, 2026 16:28
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8246feecc6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@anmarchenko anmarchenko merged commit a793955 into main Jan 7, 2026
3 checks passed
@anmarchenko anmarchenko deleted the anmarchenko/allow_override_runtime_env branch January 7, 2026 14:11
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