Repository navigation
test(integration): backport five integration flake fixes to rc/1.108.0 - #49555
Merged
Merged
Conversation
…before reading its spend row (#47303) test_client_disconnect_before_any_content_sends_no_response_scan released the gated upstream right after the client closed, so the upstream's next chunk raced the disconnect into the proxy. When the chunk won, the proxy had " tail" on record for the client and the cut-short scan recorded a post_call success on the spend row, which the test asserts is absent (CircleCI integration-extensions job 2263560 on 68db022: `AssertionError: (('success',),)`). The test now reads the spend row first, which is written once the proxy has settled the disconnect, and releases the upstream after it. The proxy's behavior is unchanged; only the test's ordering is. Co-authored-by: yucheng-berri <293926326+yucheng-berri@users.noreply.github.com> (cherry picked from commit 89a194b)
Scope the Prisma migration lock test's advisory lock check to its own database, so a lock another xdist worker holds in its database no longer trips it
Keep in-process MCP peers' idle connections open for 30s instead of 1s, so the gateway's pooled HTTP client doesn't reuse a connection the peer is closing and hang the tool call
Delete database guardrails in the logging-only scope tests through DELETE /guardrails/{id} on the shared gateway instead of raw SQL, so a default-on guardrail stops applying to the next test on the same worker right away
Bound the wedged coordination Redis /customer/update check by the shortest Redis wait the proxy uses, like the burst check, so a slow runner can't fail it while a handler that waits on Redis still does
(cherry picked from commit 4f2c75d)
kerry-berri
approved these changes
Nov 2, 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.
TLDR
Problem this solves:
How it solves it:
This should merge after #49554 lands on main. No product code changes
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 ba18de8. The scope is test files and one test config under
tests/integration, with no product code, so there is no user request to replay. Each test ran one node at a time throughtests/integration/run.pyagainst native Postgres and Redis, at this branch and at rc's tipBefore (8f3af1b)
Disconnect scan
test_client_disconnect_before_any_content_sends_no_response_scanfailed withAssertionError: (('success',),)Logging-only scope guardrail leak
MCP keep-alive
post_writerReadErrorPrisma migration lock
Wedged Redis customer update
/customer/update took 1.340s with a wedged coordination Redis, against the 0.75s boundAfter (ba18de8)
Disconnect scan
Logging-only scope guardrail leak
DELETE /guardrails/{id}test_logging_only_scope_config.pyplus X2 passed 37 of 37MCP keep-alive
Prisma migration lock
Wedged Redis customer update
/customer/update, then once with a mutant where/customer/updatewaits on the wedged Redissocket_timeoutfrom the test yaml on rcA gauntlet-mini review with five lenses found no regression. All three picks match their source commits line for line
Type
✅ Test
Caveats (if any)
Medium
Low
/customer/updateand burst checks now allow up to 2s, the shortest wait the proxy puts on Redisfinally, which can hide the test's own failuretest_pre_call_reject_on_cache_hit_stays_blank, the fix(security)!: build proxy-only failure logs from an allowlist and drop caller guardrail info #48599 owner calltest_cache_hit_reject_after_ttl_expiry_is_a_miss, a real response cache TTL bug on rc and maintest_team_update_adds_model_on_peer_for_inference_routes[messages], cause unprovenFinal Attestation