Repository navigation
test(otel): fix main's Langfuse destination tests after the stdout opt-in change - #49129
Merged
Merged
Conversation
…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
approved these changes
Oct 29, 2026
6 of 8 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
8 of 9 tasks
Closed
4 of 7 tasks
2 of 6 tasks
This was referenced Oct 29, 2026
Merged
Merged
4 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main's
integrationsunit 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 theotelcallback does, so their "the operator's own exporter gets no Langfuse fields" checks still have an exporter to read.Details
TLDR
Problem this solves:
TestLangfuseDestinationFieldstests fail on main withKeyError: NoneHow it solves it:
console_default=True, theotelcallback's settingPre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
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 moreScreenshots / Proof of Fix
E2E exception at 2c7f5c2: test-only change, no product code touched.
TestLangfuseDestinationFieldsfailures,KeyError: None/ missingNonekeypytest tests/unit/integrations/otel/test_otel_v2_destinations.py -k TestLangfuseDestinationFieldson this branch: 19 passedruff checkandruff format --checkcleanType
✅ Test