← Back to Pull requests

Add Python 3.15 support #5833

Merged
pylaterreur merged 59 files (2286 lines) on Dec 02, 2026 16:40 UTC
View on GitHub
pylaterreur pylaterreur commented on Oct 26, 2026 09:31 UTC
Author

Description

Add Python 3.15 and 3.15t to the test matrix and classifiers (3.15t without the gRPC packages: no grpcio 3.15t wheels). Bumps test pins that don't work on 3.15 (typing_extensions 4.14.0, grpcio 1.84.0, rpds-py). Lint stays on 3.14 (pylint's dill reads co_lnotab, removed in 3.15).

Fixes #5832

Type of change

  • New feature (non-breaking change which adds functionality)
  • Checklist:

    See contributing.md for styleguide, changelog guidelines, and more.

  • I am a human and not a bot

  • I have run tox -e precommit

  • I have run tox -e typecheck

  • I have run the relevant tests and linting tox environments

  • This requires the following PR in contrib:
  • Assisted-by: Claude Opus 5.5

    Diff: 2286 lines (+1955 / -331) across 59 files Reviewer: emdneto Review duration: 53708m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.77) × (1 − Review Confidence (0.64)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.77 · 2286 lines diff across 59 files
    0.77
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.28 · 5 substantive comment(s)
    0.28
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    64%
    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.400
    Shallow Review Depth shallow_review_depth
    0.252
    Mass File Touch mass_file_touch
    0.080
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    9 items
    opentelemetry-pr-dashboard[bot] opentelemetry-pr-dashboard[bot] commented on Oct 26, 2026 09:32 UTC
    Bot

    <!-- pull-request-dashboard-status -->
    <!-- pull-request-dashboard-status-revision:25 -->

    Pull request dashboard status

    Merged · refreshed 2026-12-02 16:47 UTC

    <details>
    <summary>Status above doesn't look right?</summary>

    <br>

  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.
  • </details>

    herin049 herin049 commented on code on Nov 05, 2026 20:38 UTC
    Code Review
    tox.ini:1
    @@ -8,117 +8,117 @@ envlist =
         ; Environments are organized by individual package, allowing
         ; for specifying supported Python versions per package.
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-api
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-api
         pypy3-test-opentelemetry-api
         lint-opentelemetry-api
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-proto-gen-{oldest,latest}
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-proto-gen-{oldest,latest}
         pypy3-test-opentelemetry-proto-gen-{oldest,latest}
         lint-opentelemetry-proto-gen-latest
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-protojson-gen-{oldest,latest}
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-protojson-gen-{oldest,latest}
         pypy3-test-opentelemetry-protojson-gen-{oldest,latest}
         lint-opentelemetry-protojson-gen-latest
     
    -    py3{10,11,12,13,14}-test-opentelemetry-codegen-json
    +    py3{10,11,12,13,14,15}-test-opentelemetry-codegen-json
         ; intentionally excluded from pypy3
         lint-opentelemetry-codegen-json
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-sdk
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-sdk
         pypy3-test-opentelemetry-sdk
         lint-opentelemetry-sdk
         benchmark-opentelemetry-sdk
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-configuration
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-configuration
         pypy3-test-opentelemetry-configuration
         lint-opentelemetry-configuration
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-semantic-conventions
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-semantic-conventions
         pypy3-test-opentelemetry-semantic-conventions
         lint-opentelemetry-semantic-conventions
     
    -    py3{10,11,12,13,14}-test-opentelemetry-getting-started
    +    py3{10,11,12,13,14,15}-test-opentelemetry-getting-started
         lint-opentelemetry-getting-started
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-opentracing-shim
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-opentracing-shim
         pypy3-test-opentelemetry-opentracing-shim
         lint-opentelemetry-opentracing-shim
     
    -    py3{10,11,12,13,14}-test-opentelemetry-opencensus-shim
    +    py3{10,11,12,13,14,15}-test-opentelemetry-opencensus-shim
         ; opencensus-shim intentionally excluded from pypy3 (grpcio install fails)
         lint-opentelemetry-opencensus-shim
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-http-transport-{oldest,latest}
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-http-transport-{oldest,latest}
         ; exporter-http-transport intentionally excluded from pypy3
         lint-opentelemetry-exporter-http-transport
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlpcommon-{oldest,latest}
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlpcommon-{oldest,latest}
         ; exporter-otlpcommon intentionally excluded from pypy3
         lint-opentelemetry-exporter-otlpcommon-latest
     
    -    py3{10,11,12,13,14}-test-opentelemetry-exporter-opencensus
    +    py3{10,11,12,13,14,15}-test-opentelemetry-exporter-opencensus
         ; exporter-opencensus intentionally excluded from pypy3
         lint-opentelemetry-exporter-opencensus
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlp-proto-common
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlp-proto-common
         pypy3-test-opentelemetry-exporter-otlp-proto-common
         lint-opentelemetry-exporter-otlp-proto-common
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlp-json-common
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlp-json-common
         pypy3-test-opentelemetry-exporter-otlp-json-common
         lint-opentelemetry-exporter-otlp-json-common
         benchmark-opentelemetry-exporter-otlp-json-common
     
         ; opentelemetry-exporter-otlp
    -    py3{10,11,12,13,14}-test-opentelemetry-exporter-otlp-combined
    +    py3{10,11,12,13,14,15}-test-opentelemetry-exporter-otlp-combined
         ; intentionally excluded from pypy3
         lint-opentelemetry-exporter-otlp-combined
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlp-json-file
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlp-json-file
         pypy3-test-opentelemetry-exporter-otlp-json-file
         lint-opentelemetry-exporter-otlp-json-file
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlp-json-http
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlp-json-http
         pypy3-test-opentelemetry-exporter-otlp-json-http
         lint-opentelemetry-exporter-otlp-json-http
     
    -    py3{10,11,12,13,14}-test-opentelemetry-exporter-otlp-proto-grpc-{oldest,latest}
    +    py3{10,11,12,13,14,15}-test-opentelemetry-exporter-otlp-proto-grpc-{oldest,latest}
         ; intentionally excluded from pypy3
         lint-opentelemetry-exporter-otlp-proto-grpc-latest
         benchmark-opentelemetry-exporter-otlp-proto-grpc-latest
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlp-proto-http
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlp-proto-http
         pypy3-test-opentelemetry-exporter-otlp-proto-http
         lint-opentelemetry-exporter-otlp-proto-http
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-prometheus
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-prometheus
         pypy3-test-opentelemetry-exporter-prometheus
         lint-opentelemetry-exporter-prometheus
     
         ; opentelemetry-exporter-zipkin
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-zipkin-combined
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-zipkin-combined
         pypy3-test-opentelemetry-exporter-zipkin-combined
         lint-opentelemetry-exporter-zipkin-combined
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-zipkin-proto-http
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-zipkin-proto-http
         pypy3-test-opentelemetry-exporter-zipkin-proto-http
         lint-opentelemetry-exporter-zipkin-proto-http
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-zipkin-json
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-zipkin-json
         pypy3-test-opentelemetry-exporter-zipkin-json
         lint-opentelemetry-exporter-zipkin-json
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-propagator-b3
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-propagator-b3
         pypy3-test-opentelemetry-propagator-b3
         lint-opentelemetry-propagator-b3
         benchmark-opentelemetry-propagator-b3
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-propagator-jaeger
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-propagator-jaeger

    We should drop 14t if we have 15t for each environment.

    pylaterreur pylaterreur commented on code on Nov 07, 2026 18:44 UTC
    Code Review
    tox.ini:1
    @@ -8,117 +8,117 @@ envlist =
         ; Environments are organized by individual package, allowing
         ; for specifying supported Python versions per package.
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-api
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-api
         pypy3-test-opentelemetry-api
         lint-opentelemetry-api
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-proto-gen-{oldest,latest}
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-proto-gen-{oldest,latest}
         pypy3-test-opentelemetry-proto-gen-{oldest,latest}
         lint-opentelemetry-proto-gen-latest
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-protojson-gen-{oldest,latest}
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-protojson-gen-{oldest,latest}
         pypy3-test-opentelemetry-protojson-gen-{oldest,latest}
         lint-opentelemetry-protojson-gen-latest
     
    -    py3{10,11,12,13,14}-test-opentelemetry-codegen-json
    +    py3{10,11,12,13,14,15}-test-opentelemetry-codegen-json
         ; intentionally excluded from pypy3
         lint-opentelemetry-codegen-json
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-sdk
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-sdk
         pypy3-test-opentelemetry-sdk
         lint-opentelemetry-sdk
         benchmark-opentelemetry-sdk
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-configuration
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-configuration
         pypy3-test-opentelemetry-configuration
         lint-opentelemetry-configuration
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-semantic-conventions
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-semantic-conventions
         pypy3-test-opentelemetry-semantic-conventions
         lint-opentelemetry-semantic-conventions
     
    -    py3{10,11,12,13,14}-test-opentelemetry-getting-started
    +    py3{10,11,12,13,14,15}-test-opentelemetry-getting-started
         lint-opentelemetry-getting-started
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-opentracing-shim
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-opentracing-shim
         pypy3-test-opentelemetry-opentracing-shim
         lint-opentelemetry-opentracing-shim
     
    -    py3{10,11,12,13,14}-test-opentelemetry-opencensus-shim
    +    py3{10,11,12,13,14,15}-test-opentelemetry-opencensus-shim
         ; opencensus-shim intentionally excluded from pypy3 (grpcio install fails)
         lint-opentelemetry-opencensus-shim
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-http-transport-{oldest,latest}
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-http-transport-{oldest,latest}
         ; exporter-http-transport intentionally excluded from pypy3
         lint-opentelemetry-exporter-http-transport
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlpcommon-{oldest,latest}
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlpcommon-{oldest,latest}
         ; exporter-otlpcommon intentionally excluded from pypy3
         lint-opentelemetry-exporter-otlpcommon-latest
     
    -    py3{10,11,12,13,14}-test-opentelemetry-exporter-opencensus
    +    py3{10,11,12,13,14,15}-test-opentelemetry-exporter-opencensus
         ; exporter-opencensus intentionally excluded from pypy3
         lint-opentelemetry-exporter-opencensus
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlp-proto-common
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlp-proto-common
         pypy3-test-opentelemetry-exporter-otlp-proto-common
         lint-opentelemetry-exporter-otlp-proto-common
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlp-json-common
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlp-json-common
         pypy3-test-opentelemetry-exporter-otlp-json-common
         lint-opentelemetry-exporter-otlp-json-common
         benchmark-opentelemetry-exporter-otlp-json-common
     
         ; opentelemetry-exporter-otlp
    -    py3{10,11,12,13,14}-test-opentelemetry-exporter-otlp-combined
    +    py3{10,11,12,13,14,15}-test-opentelemetry-exporter-otlp-combined
         ; intentionally excluded from pypy3
         lint-opentelemetry-exporter-otlp-combined
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlp-json-file
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlp-json-file
         pypy3-test-opentelemetry-exporter-otlp-json-file
         lint-opentelemetry-exporter-otlp-json-file
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlp-json-http
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlp-json-http
         pypy3-test-opentelemetry-exporter-otlp-json-http
         lint-opentelemetry-exporter-otlp-json-http
     
    -    py3{10,11,12,13,14}-test-opentelemetry-exporter-otlp-proto-grpc-{oldest,latest}
    +    py3{10,11,12,13,14,15}-test-opentelemetry-exporter-otlp-proto-grpc-{oldest,latest}
         ; intentionally excluded from pypy3
         lint-opentelemetry-exporter-otlp-proto-grpc-latest
         benchmark-opentelemetry-exporter-otlp-proto-grpc-latest
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlp-proto-http
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-otlp-proto-http
         pypy3-test-opentelemetry-exporter-otlp-proto-http
         lint-opentelemetry-exporter-otlp-proto-http
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-prometheus
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-prometheus
         pypy3-test-opentelemetry-exporter-prometheus
         lint-opentelemetry-exporter-prometheus
     
         ; opentelemetry-exporter-zipkin
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-zipkin-combined
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-zipkin-combined
         pypy3-test-opentelemetry-exporter-zipkin-combined
         lint-opentelemetry-exporter-zipkin-combined
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-zipkin-proto-http
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-zipkin-proto-http
         pypy3-test-opentelemetry-exporter-zipkin-proto-http
         lint-opentelemetry-exporter-zipkin-proto-http
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-zipkin-json
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-exporter-zipkin-json
         pypy3-test-opentelemetry-exporter-zipkin-json
         lint-opentelemetry-exporter-zipkin-json
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-propagator-b3
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-propagator-b3
         pypy3-test-opentelemetry-propagator-b3
         lint-opentelemetry-propagator-b3
         benchmark-opentelemetry-propagator-b3
     
    -    py3{10,11,12,13,14,14t}-test-opentelemetry-propagator-jaeger
    +    py3{10,11,12,13,14,14t,15,15t}-test-opentelemetry-propagator-jaeger

    done

    emdneto emdneto requested changes on Nov 12, 2026 13:44 UTC
    Changes Requested Reviewer

    Thanks. Can you also update benchmarks.yml to run on py3.15?

    emdneto emdneto approved these changes on Nov 18, 2026 14:37 UTC
    Approved Reviewer

    Approved these changes.

    opentelemetry-pr-dashboard[bot] opentelemetry-pr-dashboard[bot] commented on Nov 19, 2026 14:27 UTC
    Bot

    <!-- pull-request-dashboard-author-nudge:1cb35082a83446ccbea090f99c0560dc -->
    Hi @pylaterreur — just a friendly reminder that this pull request is waiting on you. The dashboard status comment has the open items and is kept current.

  • Replying is enough to hand it off — answer, explain why no change is needed, or ask a follow-up. The dashboard routes it onward once nothing on the list is waiting on you.

  • To hand it back for any other reason, including the dashboard getting this wrong, comment /dashboard route:reviewers.
  • <!-- pull-request-dashboard-author-nudge-completed:1cb35082a83446ccbea090f99c0560dc -->

    _Outdated as of 2026-11-19 14:27 UTC: this reminder no longer reflects the current dashboard state. Check the dashboard status comment to see whether action is needed._

    pylaterreur pylaterreur commented on Nov 19, 2026 22:03 UTC
    Author

    @herin049 the 14t environments are dropped in 5432f9377, and every environment that had 14t now has 15t. emdneto also approved after the benchmarks.yml change. Could you take another look?

    lzchen lzchen approved these changes on Dec 02, 2026 16:22 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    pylaterreur pylaterreur
    Labels
    risk: low confidence: 64.2% 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: 76.5% (HIGH) · Higher = larger blast radius
    76.5%
    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: 64.2% · Lower = rushed or shallow review
    64.2%
    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: 27.4% · Safe to merge
    27.4%