Skip to content

test(elevenlabs): test elevenlabs 2.75.0 [SIGN-22] - #21484

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
mainfrom
signal/SIGN-22-elevenlabs-2.75
Nov 3, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
mainfrom
signal/SIGN-22-elevenlabs-2.75

Conversation

@wconti27

@wconti27 wconti27 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Description

Adds test coverage for elevenlabs 2.75.0, the latest release, alongside 2.70.0, the oldest supported version. Both are tested on Python 3.12, 3.13, 3.14 and 3.15. The integration needs no changes: every method it patches is unchanged in 2.75.0, and no new functionality is traced.

2.75.0 changes how Agents conversations shut down (elevenlabs-python#907, v2.75.0 release):

  • The SDK now sets its stop flag before cleanup.
  • A server-closed session now ends without calling end_session().

The existing aborted-shutdown test relies on the old order, so it now runs only on SDKs older than 2.75.0. Two new tests run the real SDK against a local WebSocket server and cover a server close and an aborted shutdown on both versions.

Testing

scripts/run-tests on all 8 llmobs::elevenlabs environments:

  • 2.70.0: 144 passed.
  • 2.75.0: 138 passed, 6 skipped (the version-gated test).

scripts/lint checks passes.

Risks

None. The diff only touches tests and test metadata.

Additional Notes

No release note, because nothing users run changes (changelog/no-changelog).

🤖 Generated with Claude Code

wconti27 and others added 3 commits November 3, 2026 16:18
Add an elevenlabs 2.75.0 test row next to the 2.70.0 floor and update
the tested-version metadata. No integration change is needed: every
patched target is unchanged in 2.75.0. The upstream shutdown rework
(elevenlabs-python#907) now sets the stop flag before cleanup and ends
server-closed sessions without calling end_session(). Make the aborted
shutdown test assert each version's contract and cover server close.

Environment: Datadog workspace

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Drive the new server-close and aborted-shutdown tests through the real
SDK against a real localhost WebSocket server (public base_url), with no
transport monkeypatching or SDK private attributes. Test elevenlabs
2.70.0 and 2.75.0 on Python 3.10 and 3.15, the newest version both
releases support.

Environment: Datadog workspace

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-22]

Test elevenlabs 2.70.0 and 2.75.0 on every Python from 3.12 to 3.15.
Restore the existing aborted-shutdown test to its original body and gate
it to SDKs before 2.75.0, where its premise (cleanup aborting before the
stop flag) can still occur; the real-server variant now runs as a
separate test on both versions.

Environment: Datadog workspace

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@wconti27 wconti27 added the changelog/no-changelog A changelog entry is not required for this PR. label Nov 3, 2026 — with ddtool CLI
@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Pipelines  Tests

❌ Errors

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

🚦 1 Pipeline job failed

Changelog | Validate changelog

View more details · View in GitHub Actions

ℹ️ 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: 423fc05 | Docs | View more details | Give us feedback!

@cit-pr-commenter-54b7da

Copy link
Copy Markdown

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.

scripts/integration_registry/registry.yaml                              @DataDog/apm-idm-python @DataDog/ml-observability
supported_versions.json                                                 @DataDog/python-guild @DataDog/apm-idm-python @DataDog/ml-observability
tests/contrib/elevenlabs/test_elevenlabs_llmobs.py                      @DataDog/python-guild @DataDog/apm-idm-python
tests/llmobs/suitespec.yml                                              @DataDog/ml-observability
tests/requirements_locks/2847c04b551e.txt                               @DataDog/apm-python
tests/requirements_locks/8aa5d5d65307.txt                               @DataDog/apm-python
tests/requirements_locks/9c242c06bab3.txt                               @DataDog/apm-python
tests/requirements_locks/a1cd023edd9d.txt                               @DataDog/apm-python
tests/requirements_locks/b9a159b25c98.txt                               @DataDog/apm-python
tests/requirements_locks/ec7b32f5138e.txt                               @DataDog/apm-python
tests/requirements_locks/fb3842f73daa.txt                               @DataDog/apm-python

@cit-pr-commenter-54b7da

Copy link
Copy Markdown

Dependency direction analysis

⚠️ Existing dependency direction violations

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

Show existing violations (showing 5 of 102 highest severity)
ddtrace.internal.tracemethods -×-> ddtrace.trace  (internal-core -> product:tracing, score=122)
ddtrace.llmobs._integrations.pydantic_ai -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=120)
ddtrace.llmobs._integrations.vertexai -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=120)
ddtrace.llmobs._evaluators.runner -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=120)
ddtrace.llmobs._integrations.langchain -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=120)

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

@wconti27 wconti27 added the apm-integration-toolkit Generated by APM AI Integration Toolkit label Nov 3, 2026
@wconti27
wconti27 marked this pull request as ready for review November 3, 2026 18:42
@wconti27
wconti27 requested review from a team as code owners November 3, 2026 18:42
@wconti27
wconti27 requested a review from a team November 3, 2026 18:42
@wconti27
wconti27 requested a review from a team as a code owner November 3, 2026 18:42
@wconti27
wconti27 requested review from quinna-h and removed request for a team November 3, 2026 18:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T18:46:07.376476Z 423fc05 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-03T18:46:32.798169Z 423fc05 Draft marked ready
ℹ️ 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" 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.

@datadog-prod-us1-4 datadog-prod-us1-4 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

The shutdown tests account for ElevenLabs 2.75.0 setting its stop flag before cleanup and ending server-closed sessions internally. Runtime behavior remains unverified locally because the required test environments were unavailable.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 423fc05

@wconti27 wconti27 added changelog/no-changelog A changelog entry is not required for this PR. and removed changelog/no-changelog A changelog entry is not required for this PR. labels Nov 3, 2026
@wconti27 wconti27 self-assigned this Nov 3, 2026
@pr-commenter

pr-commenter Bot commented Nov 3, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-11-03 19:03:15

Comparing candidate commit 423fc05 in PR branch signal/SIGN-22-elevenlabs-2.75 with baseline commit 96e3c67 in branch main.

📊 Benchmarking dashboard

Found 6 performance improvements and 0 performance regressions! Performance is the same for 587 metrics, 10 unstable metrics, 1 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:httppropagationextract-empty_headers

  • 🟩 execution_time [-74.281ns; -63.501ns] or [-9.658%; -8.256%]

scenario:httppropagationextract-wsgi_empty_headers

  • 🟩 execution_time [-67.957ns; -55.442ns] or [-8.869%; -7.236%]

scenario:httppropagationextract-wsgi_invalid_span_id_header

  • 🟩 execution_time [-64.093ns; -53.576ns] or [-8.420%; -7.038%]

scenario:telemetryaddmetric-100-count-metrics-100-times

  • 🟩 execution_time [-1.410ms; -1.201ms] or [-8.702%; -7.414%]

scenario:telemetryaddmetric-100-rate-metrics-100-times

  • 🟩 execution_time [-136.833µs; -119.938µs] or [-8.374%; -7.340%]

scenario:telemetryaddmetric-record-1000-metrics

  • 🟩 execution_time [-146.051µs; -122.201µs] or [-8.685%; -7.267%]

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 [-649.834ns; +798.699ns] or [-6.080%; +7.473%]

scenario:coreapiscenario-core_dispatch_1_listener

  • unstable execution_time [-27.260ns; +43.663ns] or [-3.995%; +6.399%]

scenario:coreapiscenario-core_dispatch_50_listeners

  • unstable execution_time [-1771.049ns; +2039.691ns] or [-8.951%; +10.309%]

scenario:coreapiscenario-core_dispatch_exception_listeners

  • unstable execution_time [-1793.627ns; +1858.243ns] or [-9.378%; +9.716%]

scenario:coreapiscenario-core_dispatch_listeners

  • unstable execution_time [-261.564ns; +490.627ns] or [-6.167%; +11.568%]

scenario:coreapiscenario-core_dispatch_no_args_listeners

  • unstable execution_time [-197.792ns; +248.097ns] or [-7.400%; +9.282%]

scenario:coreapiscenario-core_dispatch_with_results_1_listener

  • unstable execution_time [-82.225ns; +98.089ns] or [-5.813%; +6.935%]

scenario:coreapiscenario-core_dispatch_with_results_50_listeners

  • unstable execution_time [-4760.208ns; +4857.489ns] or [-9.481%; +9.674%]

scenario:coreapiscenario-core_dispatch_with_results_listeners

  • unstable execution_time [-1070.100ns; +930.526ns] or [-9.999%; +8.695%]

scenario:packagesupdateimporteddependencies-import_many_stdlib_cached

  • unstable execution_time [-50.306µs; +62.914µs] or [-8.608%; +10.766%]

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.

Known flaky benchmarks without significant changes:

  • scenario:packagespackageforrootmodulemapping-cache_off

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit e15e7eb into main Nov 3, 2026
875 of 880 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the signal/SIGN-22-elevenlabs-2.75 branch November 3, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apm-integration-toolkit Generated by APM AI Integration Toolkit changelog/no-changelog A changelog entry is not required for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants