Repository navigation
test: update integration tests left stale by recent product changes - #49143
Merged
Merged
Conversation
Contributor
Author
|
bugbot run |
Contributor
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit c86e433. Configure here.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
yucheng-berri
approved these changes
Oct 30, 2026
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.
Several merged PRs changed product behavior on purpose but left integration tests asserting the old behavior, so 149 integration cases fail on main for reasons that are not bugs. This updates those tests to the current behavior while keeping what each test protects, and changes no product code
Details
TLDR
Problem this solves:
How it solves it:
Causes, by the PR that changed behavior:
test_idle_upstream_reconnect_rust_messages_wire.pyis removed, becausetest_idle_upstream_reconnect_routes_wire.pyalready runs the same three rows on Python/health/backloginstead (1 case)Pre-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 moreDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
E2E exception at b6a5969. The change is test-only, so the proof is the integration harness itself, run before and after against real Postgres and Redis with the license set
Scope is the 24 changed files, one of them removed. Rationale is that no product code changes, so there is no user-facing request to replay
Before, on main. Scheduled run https://github.com/BerriAI/litellm/actions/runs/40956051816 at 4ce724e failed these 149 cases. Each one was reproduced locally on this branch before its edit, with the same assertion as CI
After, at c86e433, every changed file was run in full locally through
tests/integration/run.py <group> --workers 4 <files>The 14 providers failures in that table were the anthropic Rust Messages cases, which b6a5969 updates. At b6a5969 the safeguards wire and chaos files, both keepalive files and the Python reconnect routes file that covers the removed one ran in full, with 40 passed and 0 failed
None of the other failures is one this PR targets
test_sigterm_http_drain_consumes_callback_budget[True], which fails the same way locally on unmodified main because gunicorn workers crash on macOS. It passes in CImake lintpasses at c86e433, including every lint gate. At b6a5969 ruff, the test quality gate and the CI coverage check passType
Test
Caveats (if any)
Medium
Low
Final Attestation
Note
Low Risk
Changes are limited to integration tests and golden fixtures; runtime behavior is unchanged, so merge risk is misaligned expectations rather than production regressions.
Overview
Test-only PR — no product code changes. Integration expectations are brought in line with behavior shipped in recent merges so CI/main no longer fails on stale assertions while keeping the same isolation and regression intent.
MCP catalog / guardrails: Catalog-echo tests now use peers that return a fresh tool description on each list/fetch, asserting cold probes see a fetched description that differs from the caller’s served listing (not an empty “unlisted” sentinel). Credential, access-matrix, toolset, OAuth token-exchange, resilience, and LLM-bridge tests follow the same pattern. MCP guardrail denial expectations move from 400 to 403 with structured
detail. OAuth UI session cookies are built with a livescenario.keyembedded in JWT claims.Spend, routing, providers: Databricks serving-endpoint classifier/decisions tests expect non-zero spend from
model_prices_and_context_window.jsoninstead of0.0. Daily-activity goldens drop the__ptu_flat_cost__breakdown entry. Shutdown-flush concurrency waits on/health/backlogin-flight count instead of a removed log line. Responses-bridge translation cases expectprovider_specific_fields(phase,openai_responses_replay) and strip replay from follow-up fixtures where needed. Provider wire tests update for clienttool_searchon Anthropic, hosted_vllm decisions with images, inferenceapis public endpoints matching bundled provider data, and Vertex/Deepseek safeguard routes not using Rust.Reviewed by Cursor Bugbot for commit c86e433. Bugbot is set up for automated code reviews on this repo. Configure here.