Skip to content

feat: widen requires-python to include Python 3.15 - #19942

Merged
vlad-scherbich merged 0 commit into
vlad/py315-current-py-versionfrom
vlad/py315-requires-python-3.15
Sep 1, 2026
Merged

feat: widen requires-python to include Python 3.15#19942
vlad-scherbich merged 0 commit into
vlad/py315-current-py-versionfrom
vlad/py315-requires-python-3.15

Conversation

@vlad-scherbich

@vlad-scherbich vlad-scherbich commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Description

Widens requires-python >=3.9,<3.15 to >=3.9,<3.16 and adds Trove classifier Programming Language :: Python :: 3.15. Same next-version pip guard as 3.14.

Metadata and pip upper bound only. This is not customer support. wrap() is live on 3.15 via #19928 (fail-close at 3.16). cp315 wheels are still pruned.

Layer Meaning Which PR
Compiled into artifact packaging metadata this PR
Armed at runtime pip accepts 3.15 this PR
Observable in product/Python classifier this PR

Contributes to #17809

Testing

Inspected pyproject.toml. No runtime tests: publish paths are unchanged.

Risks

pip will accept Python 3.15 while cp315 wheels remain pruned.

Additional Notes

Merge blockers on this stack:

No support or SSI enablement reno: pip bound is not support; SSI gate is #19843.

changelog/no-changelog.

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codeowners resolved as

Resolved from the full PR diff against vlad/py315-current-py-version using the target branch CODEOWNERS file.
CODEOWNERS team requests not listed below are not required by the current file set.

pyproject.toml                                                          @DataDog/python-guild

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Aug 28, 2026

Copy link
Copy Markdown

Circular import analysis

⚠️ Existing circular imports

There are 3 circular imports that already exist on the base branch and have not been changed by this PR.

ddtrace.llmobs -> ddtrace.llmobs._evaluators -> ddtrace.llmobs._evaluators.format -> ddtrace.llmobs._experiment -> ddtrace.llmobs
ddtrace.errortracking._handled_exceptions.bytecode_injector -> ddtrace.errortracking._handled_exceptions.callbacks -> ddtrace.errortracking._handled_exceptions.collector -> ddtrace.errortracking._handled_exceptions.bytecode_reporting -> ddtrace.errortracking._handled_exceptions.bytecode_injector
ddtrace.appsec._asm_request_context -> ddtrace.appsec._iast._iast_request_context_base -> ddtrace.appsec._iast._iast_env -> ddtrace.appsec._iast.reporter -> ddtrace.appsec._exploit_prevention.stack_traces -> ddtrace.appsec._asm_request_context

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Aug 28, 2026

Copy link
Copy Markdown

Dependency direction analysis

⚠️ Existing dependency direction violations

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

Show existing violations (showing 5 of 240 highest severity)
ddtrace.internal.tracemethods -×-> ddtrace.trace  (internal-core -> product:tracing, score=135)
ddtrace.internal.test_visibility.api -×-> ddtrace.trace  (product:ci_visibility -> product:tracing, score=133)
ddtrace.debugging._exception.replay -×-> ddtrace.trace  (product:debugging -> product:tracing, score=133)
ddtrace.llmobs._integrations.langchain -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=133)
ddtrace.llmobs._integrations.langgraph -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=133)

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-prod-us1-3

datadog-prod-us1-3 Bot commented Aug 28, 2026

Copy link
Copy Markdown

Pipelines  Tests

Unblock PR with BitsAI

⚠️ Warnings

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 8 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-py | check_requirements_lockfiles — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

DataDog/apm-reliability/dd-trace-py | contrib/sourcecode 1/1 — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

DataDog/apm-reliability/dd-trace-py | rust ci — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

View all 8 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 04b74d8 | Docs | View more details | Give us feedback!

@pr-commenter

pr-commenter Bot commented Aug 28, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-09-01 03:06:38

Comparing candidate commit 97d913c in PR branch vlad/py315-requires-python-3.15 with baseline commit cc53158 in branch vlad/py315-current-py-version.

📊 Benchmarking dashboard

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

Explanation

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.

More details about the CI and significant changes

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 ----------------------------------'

scenario:httppropagationinject-ids_only

  • 🟥 execution_time [+2.543µs; +2.753µs] or [+15.325%; +16.590%]

scenario:iastaspects-add_aspect

  • 🟥 execution_time [+7.892µs; +9.905µs] or [+8.043%; +10.095%]

scenario:iastaspectsospath-ospathbasename_aspect

  • 🟥 execution_time [+125.442µs; +133.379µs] or [+32.006%; +34.031%]

scenario:iastaspectssplit-rsplit_aspect

  • 🟥 execution_time [+26.638µs; +31.853µs] or [+19.042%; +22.769%]

scenario:telemetryaddmetric-1-count-metric-1-times

  • 🟥 execution_time [+645.132ns; +686.977ns] or [+23.854%; +25.401%]

scenario:tracer-small

  • 🟥 execution_time [+29.665µs; +32.176µs] or [+9.166%; +9.942%]

Unstable benchmarks

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 [-708.041ns; +771.414ns] or [-6.486%; +7.067%]

scenario:coreapiscenario-core_dispatch_1_listener

  • unstable execution_time [-36.064ns; +29.683ns] or [-5.873%; +4.834%]

scenario:coreapiscenario-core_dispatch_50_listeners

  • unstable execution_time [-1407.076ns; +1861.856ns] or [-8.384%; +11.094%]

scenario:coreapiscenario-core_dispatch_exception_listeners

  • unstable execution_time [-727.839ns; +1791.007ns] or [-5.688%; +13.995%]

scenario:coreapiscenario-core_dispatch_listeners

  • unstable execution_time [-259.425ns; +387.155ns] or [-7.169%; +10.699%]

scenario:coreapiscenario-core_dispatch_no_args_listeners

  • unstable execution_time [-192.220ns; +314.281ns] or [-6.683%; +10.927%]

scenario:coreapiscenario-core_dispatch_with_results_1_listener

  • unstable execution_time [-101.264ns; +49.018ns] or [-8.474%; +4.102%]

scenario:coreapiscenario-core_dispatch_with_results_50_listeners

  • unstable execution_time [-4326.725ns; +3588.409ns] or [-10.611%; +8.800%]

scenario:coreapiscenario-core_dispatch_with_results_listeners

  • unstable execution_time [-824.166ns; +730.669ns] or [-10.070%; +8.928%]

scenario:packagesupdateimporteddependencies-import_many_stdlib_cached

  • unstable execution_time [-57.960µs; +60.347µs] or [-9.311%; +9.694%]

Known flaky benchmarks

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

scenario:iastaspects-title_noaspect

  • 🟥 execution_time [+29.682µs; +36.515µs] or [+15.612%; +19.206%]

Known flaky benchmarks without significant changes:

  • scenario:errortrackingflasksqli-baseline
  • scenario:flasksimple-iast-get
  • scenario:iastaspects-casefold_aspect
  • scenario:iastaspects-casefold_noaspect
  • scenario:iastaspects-index_aspect
  • scenario:iastaspects-ljust_noaspect
  • scenario:iastaspects-lower_aspect
  • scenario:iastaspects-replace_aspect
  • scenario:iastaspects-swapcase_aspect
  • scenario:iastaspects-translate_aspect
  • scenario:iastaspects-translate_noaspect
  • scenario:iastaspects-upper_noaspect
  • scenario:packagespackageforrootmodulemapping-cache_off
  • scenario:packagespackageforrootmodulemapping-cache_on
  • scenario:sethttpmeta-all-enabled
  • scenario:span-start
  • scenario:telemetryaddmetric-record-100-metrics

@vlad-scherbich
vlad-scherbich force-pushed the vlad/py315-current-py-version branch from ee96ec3 to cd21a98 Compare August 31, 2026 18:36
@vlad-scherbich
vlad-scherbich force-pushed the vlad/py315-requires-python-3.15 branch from a26fa00 to 461862e Compare August 31, 2026 18:36
@vlad-scherbich
vlad-scherbich force-pushed the vlad/py315-current-py-version branch from cd21a98 to cc53158 Compare September 1, 2026 02:32
@vlad-scherbich
vlad-scherbich force-pushed the vlad/py315-requires-python-3.15 branch 2 times, most recently from 97d913c to 04b74d8 Compare September 1, 2026 17:13
@vlad-scherbich
vlad-scherbich merged commit 04b74d8 into vlad/py315-current-py-version Sep 1, 2026
1 check was pending
@vlad-scherbich
vlad-scherbich force-pushed the vlad/py315-current-py-version branch from cc53158 to 80cf139 Compare September 1, 2026 17:13
@vlad-scherbich
vlad-scherbich deleted the vlad/py315-requires-python-3.15 branch September 1, 2026 17:13
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.

1 participant