← Back to Pull requests

feat(ci_visibility): support DD_TEST_OPTIMIZATION_RUNTIME_TAGS #22090

Open
daniel-mohedano opened this pull request with 220 lines diff across 13 files
View on GitHub
daniel-mohedano daniel-mohedano commented on Nov 25, 2026 11:06 UTC
Author

Description

Adds the DD_TEST_OPTIMIZATION_RUNTIME_TAGS environment variable. It takes a JSON object, such as {"os.version": "6.12.0"}, that replaces the detected OS and runtime tags reported to Test Optimization.

  • Supported keys: os.platform, os.architecture, os.version, runtime.name and runtime.version. Other keys, non-string values and blank values are ignored.

  • Values are trimmed, and keys that are not set keep their detected value.

  • The values reach the test, suite, module and session events and the request configurations. This covers the pytest plugin (ddtrace.testing) and the legacy CIVisibility service used by unittest.

  • An invalid value logs a warning and the detected tags are used.

  • The shared ddtrace.ext.ci helpers keep returning the detected values. test.framework_version for unittest stays the real Python version.
  • Motivation: TIA only reuses coverage recorded with exactly the same OS and runtime tags. When a runner's kernel or Python patch version changes, the next runs skip nothing until the default branch runs again on the new value. Pinning the value keeps skipping working across those updates. datadog-ci-rb and ddtest already read this variable, and this PR is part of adding it to every Test Optimization library.

    Testing

  • Unit tests for the parser in tests/testing/internal/test_platform.py, including invalid and deeply nested input.

  • A CIVisibility test that checks the legacy recorder applies the override to _configurations and _tags. It fails without the recorder change.

  • An end-to-end run on a pytest project against a mock backend: the session, module, suite and test events and the settings and skippable requests carried the overridden values. The same run fails on main.
  • Risks

    None when the variable is unset. The parser runs once per session.

    Additional Notes

    supported-configurations.json uses implementation A. The key still needs to be registered in the Feature Parity registry.

    Diff: 220 lines (+214 / -6) across 13 files Reviewer: gnufede Review duration: 10976m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.53) × (1 − Review Confidence (0.88)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.53 · 220 lines diff across 13 files
    0.53
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.85 · 5 substantive comment(s)
    0.85
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    88%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.323
    Real PR Conversation Timeline
    17 items
    cit-pr-commenter-54b7da[bot] cit-pr-commenter-54b7da[bot] commented on Nov 25, 2026 11:07 UTC
    Bot

    Codeowners resolved as

    Resolved from the full PR diff against main using the target branch CODEOWNERS file.
    CODEOWNERS team requests not listed below are not required by the current file set.

    ddtrace/internal/ci_visibility/recorder.py                              @DataDog/ci-app-libraries
    ddtrace/internal/settings/_supported_configurations.py                  @DataDog/apm-python
    ddtrace/testing/internal/constants.py                                   @DataDog/ci-app-libraries
    ddtrace/testing/internal/platform.py                                    @DataDog/ci-app-libraries
    ddtrace/testing/internal/pytest/plugin.py                               @DataDog/ci-app-libraries
    ddtrace/testing/internal/session_manager.py                             @DataDog/ci-app-libraries
    docs/configuration.rst                                                  @DataDog/apm-python-guild
    releasenotes/notes/ci-visibility-runtime-tags-override-3d1454313c5936bf.yaml  @DataDog/apm-python
    supported-configurations.json                                           @DataDog/apm-python
    tests/ci_visibility/test_ci_visibility.py                               @DataDog/ci-app-libraries
    tests/testing/internal/pytest/test_pytest_ddtrace_tags.py               @DataDog/ci-app-libraries
    tests/testing/internal/test_platform.py                                 @DataDog/ci-app-libraries
    tests/testing/mocks.py                                                  @DataDog/ci-app-libraries
    

    cit-pr-commenter-54b7da[bot] cit-pr-commenter-54b7da[bot] commented on Nov 25, 2026 11:08 UTC
    Bot

    Dependency direction analysis

    ⚠️ Existing dependency direction violations

    There are 22 dependency direction violations that already exist on the base branch and have not been changed by this PR.

    <details><summary>Show existing violations (showing 5 of 22 highest severity)</summary>

    ddtrace.internal.tracemethods -×-> ddtrace.trace  (internal-core -> product:tracing, score=103)
    ddtrace.llmobs._integrations.bedrock_agents -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=101)
    ddtrace.llmobs._integrations.base -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=101)
    ddtrace.internal.span_bus -×-> ddtrace._trace.span  (internal-core -> product:tracing, score=35)
    ddtrace.llmobs._llmobs -×-> ddtrace._trace.span  (product:llmobs -> product:tracing, score=33)
    

    </details>

    To see all violations, download the layers-base.json and layers-pr.json artifacts from this CI job and run:

    > uv run --script scripts/import-analysis/layers.py compare layers-base.json layers-pr.json
    > 

    datadog-datadog-prod-us1[bot] datadog-datadog-prod-us1[bot] commented on Nov 25, 2026 11:08 UTC
    Bot

    <a target='_blank' href='https://app.datadoghq.com/ci/test/runs?query=test_level%3Atest+%40git.commit.sha%3A71003442b270ac450e1c35a9a105f741867d345a&referrer=pr-comment&start=1796036992000'><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/tests-warning.svg"/><img src="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/tests-warning-light.svg" alt="Tests" align="center" /></picture></a> &nbsp;<a target='_blank' href='https://app.datadoghq.com/ci/pipeline-executions?query=ci_level%3Ajob+%40git.commit.sha%3Ac820a586adc5b0630786ee46702cd144b7a11889&referrer=pr-comment&start=1796036992000'><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/pipelines-ok.svg"/><img src="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/pipelines-ok-light.svg" alt="Pipelines" align="center" /></picture></a>

    ⚠️ Warnings

    Your PR has warnings. Please review the issues below.

    ❄️ 8 New flaky tests detected

    <blockquote>
    <div>

    <details>
    <summary><code>TestRuntimeTagsOverrides::test_invalid_value_logs_warning_and_keeps_detected_tags[&#34;6.12.0&#34;][py3.10]</code>&nbsp;from&nbsp;<code>test_platform.py</code></summary>

    assert &#39;DD_TEST_OPTIMIZATION_RUNTIME_TAGS&#39; in &#39;&#39;
     &#43;  where &#39;&#39; = &lt;_pytest.logging.LogCaptureFixture object at 0x7c69083adf00&gt;.text
    

    </details>
    <details>
    <summary><code>TestRuntimeTagsOverrides::test_invalid_value_logs_warning_and_keeps_detected_tags[&#34;6.12.0&#34;][py3.9]</code>&nbsp;from&nbsp;<code>test_platform.py</code></summary>

    assert &#39;DD_TEST_OPTIMIZATION_RUNTIME_TAGS&#39; in &#39;&#39;
     &#43;  where &#39;&#39; = &lt;_pytest.logging.LogCaptureFixture object at 0x73a917e35ee0&gt;.text
    

    </details>
    </div>

    <a href="https://app.datadoghq.com/ci/test/flaky?query=-flaky_test_state%3Afixed&#43;fix_in_progress%3Afalse&#43;first_flaked_branch%3A%22daniel.mohedano%2Fruntime-tags-override%22&#43;%40git.repository.id_v2%3A%22github.com%2Fdatadog%2Fdd-trace-py%22&#43;fingerprint_fqn%3A%28%2240e4e6db04820663%22&#43;OR&#43;%226daf9e49f1324df2%22&#43;OR&#43;%224f482cbd282bb805%22&#43;OR&#43;%22dc26de5b5f1c23a5%22&#43;OR&#43;%2215fbb779c74bae3d%22&#43;OR&#43;%22597b9adad7497704%22&#43;OR&#43;%222870a9eed8415a01%22&#43;OR&#43;%22ae013319cbd78dc5%22%29&amp;referrer=pr-comment">View in Flaky Test Management</a>
    </blockquote>

    ℹ️ Info

    <details><summary>No other issues found (see more)</summary>

    🧪 All tests passed
    </details>

    Useful? React with 👍 / 👎

    <sub>
    This comment will be updated automatically if new data arrives. <br />
    🔗 Commit SHA: c820a58 | <a href="https://docs.datadoghq.com/integrations/guide/source-code-integration/#pr-comments">Docs</a> | <a href="https://app.datadoghq.com/ci/pull-request/Z2l0aHViLmNvbS9kYXRhZG9nL2RkLXRyYWNlLXB5LzIyMDkw?referrer=pr-comment">View more details</a> | Give us <a href="https://dd.enterprise.slack.com/archives/C07E3U2QRMM">feedback</a>!
    </sub>

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Nov 25, 2026 11:19 UTC
    Bot

    <!-- codex-pull-request-review-summary -->
    <!-- codex-review-state:v1 {"code_review":{"commit_sha":"c820a586adc5b0630786ee46702cd144b7a11889","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"c820a586adc5b0630786ee46702cd144b7a11889","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} -->
    <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"c820a586adc5b0630786ee46702cd144b7a11889","mergeGateEnabled":false,"pullRequestNumber":22090,"repository":"DataDog/dd-trace-py","status":"completed"} -->
    <details>
    <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary>

    This comment shows the latest Codex review activity on this pull request.

    | Review | Status | Commit | Review trigger |
    | --- | --- | --- | --- |
    | 📝 Code Review | ✅ Completed <relative-time datetime="2026-11-30T11:44:27.161101Z">2026-11-30T11:44:27.161101Z</relative-time> | c820a58 | New commits |
    | 🔒 Security Review | ✅ Completed <relative-time datetime="2026-11-30T11:46:20.613943Z">2026-11-30T11:46:20.613943Z</relative-time> | c820a58 | New commits |

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    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" or "@codex security review".
  • Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

    </details>

    </details>

    gnufede gnufede approved these changes on Nov 25, 2026 11:19 UTC
    Approved Reviewer

    Approved these changes.

    datadog-datadog-prod-us1[bot] datadog-datadog-prod-us1[bot] commented on Nov 25, 2026 11:22 UTC
    Reviewer

    <img src="https://img.shields.io/badge/BITS%20CODE%20REVIEW-PASS-1a7f37?labelColor=632CA6&style=for-the-badge&logo=data:image/svg%2Bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4Ij48cGF0aCBkPSJNNjMuNTUsNzQuMzJhNTUuMiw1NS4yLDAsMCwxLTEwLTguMzJjLS4zMS0uM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LDQwLjIsNTUuNy0xMFpNNjUuODgsMTEzLjkybC0uNDYtNC4zNyw5LjA5LTEzLjg4LDEwLjMzLDMsOC44OC0xNC44NCwxMC42NSw3LDguMS0xNywyLjg3LDMwLjkxWiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg%3D%3D" alt="Bits Code Review: PASS" height="36"/>

    <details>
    <summary>More details</summary>

    Override parsing preserves detected values for unsupported or unusable inputs, and propagation remains confined to Test Optimization metadata. The completed static review identified no reportable defect.

    </details>
    Was this helpful? React 👍 or 👎

    <sub>Open Bits AI session</sub>

    <sub>🤖 Bits Code Review · Commit 46eceff</sub>

    <!-- autotest-meta model=gpt-6.1-sol engine=codex reasoning_effort=high verdict=PASS ddrs_bucket=unknown session_id=ed609da4-565d-4934-920b-b38175aac6d8 -->

    <!-- datadog-code-review reviewer-id=bad90057-5c12-4101-ad47-d91c9dff0f90 -->
    <!-- datadog-autotest:v1:prod -->
    <!-- datadog-autotest-delivery:v1:prod:72a206c3e978b92e0fd512eb3f1e90d2078abe7191d22ef4b1ec4cd9e078d6bd:bundle -->

    pr-commenter[bot] pr-commenter[bot] commented on Nov 25, 2026 11:30 UTC
    Bot

    Benchmarks

    Benchmark execution time: 2026-11-30 12:10:25

    Comparing candidate commit c820a586adc5b0630786ee46702cd144b7a11889 in PR branch daniel.mohedano/runtime-tags-override with baseline commit 21b6f4c80ca9f19f63149ce218575f7c8b243315 in branch main.

    📊 Benchmarking dashboard

    Found 0 performance improvements and 0 performance regressions! Performance is the same for 605 metrics, 10 unstable metrics, 1 flaky benchmarks without significant changes.

    <details>
    <summary><h3>Explanation</h3></summary>

    This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

    🟩 = significantly better candidate vs. baseline
    🟥 = significantly worse candidate vs. baseline

    We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

    If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

    Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

    <details>
    <summary><h4>More details about the CI and significant changes</h4></summary>

    You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

    CIs of the difference of means are often centered around 0%, because often changes are not that big:

    ---------------------------------(------|---^--------)-------------------------------->
                                  -0.6%    0%  0.3%     +1.2%
                                     |          |        |
             lower bound of the CI --'          |        |
    sample mean (center of the CI) -------------'        |
             upper bound of the CI ----------------------'
    

    As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

    For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

    ----------------------------------------|---------|---(---------^---------)---------->
                                           0%        1%  1.3%      2.2%      3.1%
                                                      |   |         |         |
           significant impact threshold --------------'   |         |         |
                          lower bound of CI --------------'         |         |
           sample mean (center of the CI) --------------------------'         |
                          upper bound of CI ----------------------------------'
    

    </details>

    </details>

    <details>
    <summary><h3>Unstable benchmarks</h3></summary>

    These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.

    scenario:coreapiscenario-context_with_data_listeners

  • unstable execution_time [-707.814ns; +775.068ns] or [-6.655%; +7.287%]
  • scenario:coreapiscenario-core_dispatch_1_listener

  • unstable execution_time [-38.966ns; +39.840ns] or [-6.105%; +6.242%]
  • scenario:coreapiscenario-core_dispatch_50_listeners

  • unstable execution_time [-1910.311ns; +1912.318ns] or [-9.566%; +9.576%]
  • scenario:coreapiscenario-core_dispatch_exception_listeners

  • unstable execution_time [-1954.633ns; +1727.830ns] or [-10.051%; +8.885%]
  • scenario:coreapiscenario-core_dispatch_listeners

  • unstable execution_time [-373.367ns; +386.788ns] or [-8.798%; +9.114%]
  • scenario:coreapiscenario-core_dispatch_no_args_listeners

  • unstable execution_time [-232.855ns; +224.186ns] or [-8.751%; +8.426%]
  • scenario:coreapiscenario-core_dispatch_with_results_1_listener

  • unstable execution_time [-95.319ns; +85.909ns] or [-6.925%; +6.242%]
  • scenario:coreapiscenario-core_dispatch_with_results_50_listeners

  • unstable execution_time [-4567.776ns; +4751.545ns] or [-9.396%; +9.774%]
  • scenario:coreapiscenario-core_dispatch_with_results_listeners

  • unstable execution_time [-981.123ns; +886.289ns] or [-9.586%; +8.659%]
  • scenario:packagesupdateimporteddependencies-import_many_stdlib_cached

  • unstable execution_time [-54.131µs; +59.163µs] or [-9.246%; +10.105%]
  • </details>

    <details>
    <summary><h3>Known flaky benchmarks</h3></summary>

    These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

    Known flaky benchmarks without significant changes:

  • scenario:packagespackageforrootmodulemapping-cache_off
  • </details>

    datadog-datadog-prod-us1[bot] datadog-datadog-prod-us1[bot] commented on code on Nov 25, 2026 15:20 UTC
    Code Review
    ddtrace/testing/internal/pytest/plugin.py:1
    @@ -1019,6 +1019,8 @@ def _set_test_run_data(self, test_run: TestRun, item: pytest.Item, context: Test
             test_run.set_status(status)
             test_run.set_tags(tags)
             test_run.set_context(context)
    +        # The test span carries the DD_TAGS values, which the runtime tag overrides take precedence over
    +        test_run.set_tags(self.manager.runtime_tags_overrides)

    <!-- datadog-code-review reviewer-id=bad90057-5c12-4101-ad47-d91c9dff0f90 -->
    <!-- datadog-autotest-inline:v1:prod -->
    <!-- datadog-autotest-delivery:v1:prod:2d1603d601bff99581f636328281e252b77393cb16fe491d14f09ee586bffff0:inline-0 -->

    <sub><sub>!P1</sub></sub> Initialize runtime overrides in the session-manager mock

    <!-- autotest-finding-meta prod_data_type=none finding_id=baba76b9-b01c-459d-9ad7-bb00a8266b52 prod_effect=static -->
    SessionManagerMockBuilder.build_mock() creates Mock(spec=SessionManager) without initializing runtime_tags_overrides, which exists only on initialized instances. Both existing final-status tests call this new access through _do_test_runs(), so they now raise AttributeError even when the environment variable is unset. Initialize runtime_tags_overrides to {} in tests/testing/mocks.py so those tests can complete.

    <!-- datadog-autotest-feedback-legend:v1 -->
    React: 👍 useful · 👎 wrong · 😕 unclear · 👀 right, but not acting on it
    <details><summary>What each reaction means</summary>

  • 👍 Useful: correct, and you're fixing it or will.

  • 👎 Wrong: the finding is incorrect, for example the bug can't happen or the code was misread.

  • 😕 Unclear: you can't tell what it means or why it matters.

  • 👀 Right, not acting: correct, but intended, out of scope for this PR, a known risk, or too minor.

  • </details>

    <sub>🤖 Bits Code Review</sub> <sub>· <a href="https://app.datadoghq.com/code/ed609da4-565d-4934-920b-b38175aac6d8?referrer=autotest-pr-comment">Open Bits AI session</a></sub>

    datadog-datadog-prod-us1[bot] datadog-datadog-prod-us1[bot] commented on Nov 25, 2026 15:20 UTC
    Reviewer

    <img src="https://img.shields.io/badge/BITS%20CODE%20REVIEW-FAIL-CC0000?labelColor=632CA6&style=for-the-badge&logo=data:image/svg%2Bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4Ij48cGF0aCBkPSJNNjMuNTUsNzQuMzJhNTUuMiw1NS4yLDAsMCwxLTEwLTguMzJjLS4zMS0uMjMtLjI2LTEuMjUtLjI2LTEuMjVBNTUuODEsNTUuODEsMCwwLDAsNjguOTQsNzMuMWExMi43NCwxMi43NCwwLDAsMCw5LjgxLS44MywyNSwyNSwwLDAsMCw3LjUzLTYuNjRsLjM0LjU5YTE0LjkzLDE0LjkzLDAsMCwxLTEuMjksMy4wNiw4LDgsMCwwLDAsMi4yNC44MWw2LS45M2ExOC4xMiwxOC4xMiwwLDAsMCwyLTE0LjMxYy0uOTMtMy01Ljc5LTkuMS02LjE0LTkuNDMtMS4yMi0xLjE3LjIxLTUuNy0yLjIxLTEwLjY1Qzg0LjY1LDI5LjU0LDc4LDI0LjA5LDc1LjA5LDIxLjcyYy44NS42Miw2LjEsMi43NCw4LjU1LDUuNjkuMjMtLjMuMzItMS44OS41My0yLjI5LTIuMS0yLjc2LTIuMjYtNy42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LDgyLjQ0LDM0LjM0LDgzLjg1LDM1Wm0tNC42LDIxLjYzYy43Mi0uNTcsNC0xLjYyLDcuMDktMiwxLjYtLjE5LDMuODgtLjI5LDQuMzcsMCwxLC41MywxLDIuMTguMzEsMy43Mi0xLDIuMjItMi4zMyw0LjY3LTMuODgsNC44Ny0yLjUyLjM0LTQuOTEtMS03LjYzLTMuMDZBMi4yMywyLjIzLDAsMCwxLDc5LjI1LDU2LjYyWk01NS4zNCwzOS43NWM0LTIuNzMsOS4xNi0xLjY1LDguMy0uODMtMS42NSwxLjU2LjU0LDEuMS43OCw0YTUsNSwwLDAsMS0xLjEyLDRBMjUuNDksMjUuNDksMCwwLDAsNTguNyw0OGEyNiwyNiwwLDAsMC0yLjg1LDEuMTMsNy4zMiw3LjMyLDAsMCwxLS43My0uNTVBNS41Myw1LjUzLDAsMCwxLDU1LjM0LDM5Ljc1Wm02MC4xMSwyNy44Mi0zMi41MSw1LjlhMTYsMTYsMCwwLDEtMy43NSwzLjMzLDExLjc1LDExLjc1LDAsMCwxLTkuMjkuODUsMjAsMjAsMCwwLDEtMy43MS0xLjE5bC03Ljk1LDEuMSw0LjgzLDQwLjIsNTUuNy0xMFpNNjUuODgsMTEzLjkybC0uNDYtNC4zNyw5LjA5LTEzLjg4LDEwLjMzLDMsOC44OC0xNC44NCwxMC42NSw3LDguMS0xNywyLjg3LDMwLjkxWiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg%3D%3D" alt="Bits Code Review: FAIL" height="36"/>

    DD_TEST_OPTIMIZATION_RUNTIME_TAGS pins OS/runtime metadata across Test Optimization events and configurations; the latest commit snapshots overrides and fixes precedence over span tags. One issue remains: existing plugin tests raise AttributeError because their session-manager mock lacks runtime_tags_overrides; no earlier findings were open.

    <sub>Open Bits AI session</sub>

    <sub>🤖 Bits Code Review · Commit c87ed46</sub>

    <!-- autotest-meta model=gpt-6.1-sol engine=codex reasoning_effort=high verdict=FAIL ddrs_bucket=unknown session_id=ed609da4-565d-4934-920b-b38175aac6d8 -->

    <!-- datadog-code-review reviewer-id=bad90057-5c12-4101-ad47-d91c9dff0f90 -->
    <!-- datadog-autotest:v1:prod -->
    <!-- datadog-autotest-delivery:v1:prod:2d1603d601bff99581f636328281e252b77393cb16fe491d14f09ee586bffff0:bundle -->

    daniel-mohedano daniel-mohedano commented on code on Nov 26, 2026 13:49 UTC
    Code Review
    ddtrace/testing/internal/pytest/plugin.py:1
    @@ -1019,6 +1019,8 @@ def _set_test_run_data(self, test_run: TestRun, item: pytest.Item, context: Test
             test_run.set_status(status)
             test_run.set_tags(tags)
             test_run.set_context(context)
    +        # The test span carries the DD_TAGS values, which the runtime tag overrides take precedence over
    +        test_run.set_tags(self.manager.runtime_tags_overrides)

    Fixed in 0c475c2bd6: the mock now sets runtime_tags_overrides = {}.

    datadog-datadog-prod-us1[bot] datadog-datadog-prod-us1[bot] commented on Nov 26, 2026 13:52 UTC
    Reviewer

    <img src="https://img.shields.io/badge/BITS%20CODE%20REVIEW-PASS-1a7f37?labelColor=632CA6&style=for-the-badge&logo=data:image/svg%2Bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4Ij48cGF0aCBkPSJNNjMuNTUsNzQuMzJhNTUuMiw1NS4yLDAsMCwxLTEwLTguMzJjLS4zMS0uMjMtLjI2LTEuMjUtLjI2LTEuMjVBNTUuODEsNTUuODEsMCwwLDAsNjguOTQsNzMuMWExMi43NCwxMi43NCwwLDAsMCw5LjgxLS44MywyNSwyNSwwLDAsMCw3LjUzLTYuNjRsLjM0LjU5YTE0LjkzLDE0LjkzLDAsMCwxLTEuMjksMy4wNiw4LDgsMCwwLDAsMi4yNC44MWw2LS45M2ExOC4xMiwxOC4xMiwwLDAsMCwyLTE0LjMxYy0uOTMtMy01Ljc5LTkuMS02LjE0LTkuNDMtMS4yMi0xLjE3LjIxLTUuNy0yLjIxLTEwLjY1Qzg0LjY1LDI5LjU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y0uMTcsMC0uMDhjLS40Mi0xLjMxLS4xNC0xLjU3LDAtMnMuODUtLjc2LS4xNS0xLjFhMS44LDEuOCwwLDAsMC0uMzEtLjA3QzgwLjQ3LDM0LjU0LDgyLjQ0LDM0LjM0LDgzLjg1LDM1Wm0tNC42LDIxLjYzYy43Mi0uNTcsNC0xLjYyLDcuMDktMiwxLjYtLjE5LDMuODgtLjI5LDQuMzcsMCwxLC41MywxLDIuMTguMzEsMy43Mi0xLDIuMjItMi4zMyw0LjY3LTMuODgsNC44Ny0yLjUyLjM0LTQuOTEtMS03LjYzLTMuMDZBMi4yMywyLjIzLDAsMCwxLDc5LjI1LDU2LjYyWk01NS4zNCwzOS43NWM0LTIuNzMsOS4xNi0xLjY1LDguMy0uODMtMS42NSwxLjU2LjU0LDEuMS43OCw0YTUsNSwwLDAsMS0xLjEyLDRBMjUuNDksMjUuNDksMCwwLDAsNTguNyw0OGEyNiwyNiwwLDAsMC0yLjg1LDEuMTMsNy4zMiw3LjMyLDAsMCwxLS43My0uNTVBNS41Myw1LjUzLDAsMCwxLDU1LjM0LDM5Ljc1Wm02MC4xMSwyNy44Mi0zMi41MSw1LjlhMTYsMTYsMCwwLDEtMy43NSwzLjMzLDExLjc1LDExLjc1LDAsMCwxLTkuMjkuODUsMjAsMjAsMCwwLDEtMy43MS0xLjE5bC03Ljk1LDEuMSw0LjgzLDQwLjIsNTUuNy0xMFpNNjUuODgsMTEzLjkybC0uNDYtNC4zNyw5LjA5LTEzLjg4LDEwLjMzLDMsOC44OC0xNC44NCwxMC42NSw3LDguMS0xNywyLjg3LDMwLjkxWiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg%3D%3D" alt="Bits Code Review: PASS" height="36"/>

    <details>
    <summary>More details</summary>

    The PR adds validated OS/runtime overrides for Test Optimization events and request configurations, with explicit overrides taking precedence over span tags. The latest commit fixes the session-manager mock initialization failure; no findings remain open, and validation is limited to static review.

    </details>
    Was this helpful? React 👍 or 👎

    <sub>Open Bits AI session</sub>

    <sub>🤖 Bits Code Review · Commit 0c475c2</sub>

    <!-- autotest-meta model=gpt-6.1-sol engine=codex reasoning_effort=high verdict=PASS ddrs_bucket=unknown session_id=ed609da4-565d-4934-920b-b38175aac6d8 -->

    <!-- datadog-code-review reviewer-id=bad90057-5c12-4101-ad47-d91c9dff0f90 -->
    <!-- datadog-autotest:v1:prod -->
    <!-- datadog-autotest-delivery:v1:prod:134e91a0356d2d0b48ee4e963f703812471ce982949c6500890c6f7853923b8f:bundle -->

    datadog-datadog-prod-us1[bot] datadog-datadog-prod-us1[bot] commented on Nov 30, 2026 11:46 UTC
    Reviewer

    <img src="https://img.shields.io/badge/BITS%20CODE%20REVIEW-PASS-1a7f37?labelColor=632CA6&style=for-the-badge&logo=data:image/svg%2Bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4Ij48cGF0aCBkPSJNNjMuNTUsNzQuMzJhNTUuMiw1NS4yLDAsMCwxLTEwLTguMzJjLS4zMS0uMjMtLjI2LTEuMjUtLjI2LTEuMjVBNTUuODEsNTUuODEsMCwwLDAsNjguOTQsNzMuMWExMi43NCwxMi43NCwwLDAsMCw5LjgxLS44MywyNSwyNSwwLDAsMCw3LjUzLTYuNjRsLjM0LjU5YTE0LjkzLDE0LjkzLDAsMCwxLTEuMjksMy4wNiw4LDgsMCwwLDAsMi4yNC44MWw2LS45M2ExOC4xMiwxOC4xMiwwLDAsMCwyLTE0LjMxYy0uOTMtMy01Ljc5LTkuMS02LjE0LTkuNDMtMS4yMi0xLjE3LjIxLTUuNy0yLjIxLTEwLjY1Qzg0LjY1LDI5LjU0LDc4LDI0LjA5LDc1LjA5LDIxLjcyYy44NS42Miw2LjEsMi43NCw4LjU1LDUuNjkuMjMtLjMuMzItMS44OS41My0yLjI5LTIuMS0yLjc2LTIuMjYtNy42Ni0yLjI2LTlBMTQuODcsMTQuODcsMCwwLDAsODAuNjksMTFhO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Yy43Mi0uNTcsNC0xLjYyLDcuMDktMiwxLjYtLjE5LDMuODgtLjI5LDQuMzcsMCwxLC41MywxLDIuMTguMzEsMy43Mi0xLDIuMjItMi4zMyw0LjY3LTMuODgsNC44Ny0yLjUyLjM0LTQuOTEtMS03LjYzLTMuMDZBMi4yMywyLjIzLDAsMCwxLDc5LjI1LDU2LjYyWk01NS4zNCwzOS43NWM0LTIuNzMsOS4xNi0xLjY1LDguMy0uODMtMS42NSwxLjU2LjU0LDEuMS43OCw0YTUsNSwwLDAsMS0xLjEyLDRBMjUuNDksMjUuNDksMCwwLDAsNTguNyw0OGEyNiwyNiwwLDAsMC0yLjg1LDEuMTMsNy4zMiw3LjMyLDAsMCwxLS43My0uNTVBNS41Myw1LjUzLDAsMCwxLDU1LjM0LDM5Ljc1Wm02MC4xMSwyNy44Mi0zMi41MSw1LjlhMTYsMTYsMCwwLDEtMy43NSwzLjMzLDExLjc1LDExLjc1LDAsMCwxLTkuMjkuODUsMjAsMjAsMCwwLDEtMy43MS0xLjE5bC03Ljk1LDEuMSw0LjgzLDQwLjIsNTUuNy0xMFpNNjUuODgsMTEzLjkybC0uNDYtNC4zNyw5LjA5LTEzLjg4LDEwLjMzLDMsOC44OC0xNC44NCwxMC42NSw3LDguMS0xNywyLjg3LDMwLjkxWiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg%3D%3D" alt="Bits Code Review: PASS" height="36"/>

    <details>
    <summary>More details</summary>

    The completed static review found no actionable defect in override validation or propagation through pytest, legacy CIVisibility, and request configurations. Human PR discussion did not change that conclusion.

    </details>
    Was this helpful? React 👍 or 👎

    <sub>Open Bits AI session</sub>

    <sub>🤖 Bits Code Review · Commit c820a58</sub>

    <!-- autotest-meta model=gpt-6.1-sol engine=codex reasoning_effort=high verdict=PASS ddrs_bucket=unknown session_id=ecfd34ed-65b9-41db-8683-fac81bceb680 -->

    <!-- datadog-code-review reviewer-id=bad90057-5c12-4101-ad47-d91c9dff0f90 -->
    <!-- datadog-autotest:v1:prod -->
    <!-- datadog-autotest-delivery:v1:prod:f10bf26eae68787341711080ba1288105dac7679f6e43a03f2e4e497a895d391:bundle -->

    daniel-mohedano daniel-mohedano commented on Dec 01, 2026 14:53 UTC
    Author

    /merge

    gh-worker-devflow-routing-ef8351[bot] gh-worker-devflow-routing-ef8351[bot] commented on Dec 01, 2026 14:53 UTC
    Bot

    <!-- "FeedbackWorkflowId":"69a7a8c2-425d-43bd-a676-da7f2c6690d6_39" -->
    View all feedbacks in Devflow UI.

    2026-12-01 14:53:22 UTC :information_source: Start processing command /merge

    ---
    2026-12-01 14:53:27 UTC :information_source: MergeQueue: pull request added to the queue

    The expected merge time in main is approximately 1h (p90).

    ---
    2026-12-01 15:30:20 UTC :x: MergeQueue: The build pipeline failed for this merge request

    Build pipeline has failing jobs for 894efb9:

  • [os tests ubuntu: [3.10]](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/jobs/2315143160)

  • [os tests ubuntu: [3.12]](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/jobs/2315139733)

  • [os tests ubuntu: [3.14]](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/jobs/2315139727)

  • system-tests parametric

  • [package-oci: [linux, arm64]](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/jobs/2315092706)

  • ...

    What to do next?

  • Investigate the failures and when ready, re-add your pull request to the queue!

  • If your PR checks are green, try to rebase/merge. It might be because the CI run is a bit old.

  • Any question, go check the FAQ.
  • This build will be kept for 3h more. During that period, you can retry the pipeline or the failing jobs and then re-run the same command!
    If you want to reset everything, you can cancel your previous command by rerunning it with the -c flag.

    daniel-mohedano daniel-mohedano commented on Dec 02, 2026 10:22 UTC
    Author

    /merge

    gh-worker-devflow-routing-ef8351[bot] gh-worker-devflow-routing-ef8351[bot] commented on Dec 02, 2026 10:22 UTC
    Bot

    <!-- "FeedbackWorkflowId":"2dce6bc8-7ccf-42aa-aa1e-36ecd91c1aa6_39" -->
    View all feedbacks in Devflow UI.

    2026-12-02 10:22:39 UTC :information_source: Start processing command /merge

    ---
    2026-12-02 10:22:44 UTC :information_source: MergeQueue: pull request added to the queue

    The expected merge time in main is approximately 1h (p90).

    ---
    2026-12-02 11:04:53 UTC :x: MergeQueue: The build pipeline failed for this merge request

    Build pipeline has failing jobs for da37abb:

  • core/openfeature
  • What to do next?

  • Investigate the failures and when ready, re-add your pull request to the queue!

  • If your PR checks are green, try to rebase/merge. It might be because the CI run is a bit old.

  • Any question, go check the FAQ.
  • This build will be kept for 3h more. During that period, you can retry the pipeline or the failing jobs and then re-run the same command!
    If you want to reset everything, you can cancel your previous command by rerunning it with the -c flag.

    Reviewers
    Assignees
    daniel-mohedano daniel-mohedano
    Labels
    risk: low confidence: 88% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52.9% (MEDIUM) · Higher = larger blast radius
    52.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 88% · Lower = rushed or shallow review
    88%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 6.3% · Safe to merge
    6.3%