Skip to content

test(otel): fix main's Langfuse destination tests after the stdout opt-in change - #49129

Merged
yucheng-berri merged 1 commit into
mainfrom
litellm_otel_dest_tests_console_default
Oct 29, 2026
Merged

yucheng-berri merged 1 commit into
mainfrom
litellm_otel_dest_tests_console_default

Conversation

@yucheng-berri

Copy link
Copy Markdown
Contributor

Main's integrations unit job is red on six OTel destination tests. #48718 added them while #48723 made the stdout placeholder exporter opt-in, and the two merged a minute apart, so neither PR's CI saw the other. This updates the tests only: they now build the provider the way the otel callback does, so their "the operator's own exporter gets no Langfuse fields" checks still have an exporter to read.

Details

TLDR

Problem this solves:

How it solves it:

  • Build those three providers with console_default=True, the otel callback's setting
  • No product code changes

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Screenshots / Proof of Fix

E2E exception at 2c7f5c2: test-only change, no product code touched.

  1. Red on main 4ce724e: integrations job, six TestLangfuseDestinationFields failures, KeyError: None / missing None key
  2. pytest tests/unit/integrations/otel/test_otel_v2_destinations.py -k TestLangfuseDestinationFields on this branch: 19 passed
  3. Whole file: 342 passed; ruff check and ruff format --check clean

Type

✅ Test

…tdout exporter

#48718 added TestLangfuseDestinationFields while #48723 made the unconfigured
stdout placeholder opt-in (console_default=True, the otel callback's setting).
Both merged within a minute, so main's integrations job fails six tests that
read the placeholder's exporter. Build those providers with console_default=True
so the operator-exporter checks keep their target.

@mateo-berri mateo-berri 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.

TestLangfuseDestinationFields passes at 2c7f5c2 on my side, 19 of 19, and this clears the integrations red that main and #48949 both carry

@mateo-berri mateo-berri 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.

LGTM. Thanks!

@codecov

codecov Bot commented Oct 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants