Repository navigation
test: backport three test fixes from main to rc/1.108.0 - #49486
Merged
Merged
Conversation
yucheng-berri
approved these changes
Oct 31, 2026
yucheng-berri
approved these changes
Oct 31, 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:
The other test fixes merged on main since the 10-30 integration triage are left out on purpose. The PRs that broke those tests are not on rc/1.108.0, so their fixes would turn passing rc tests red
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 cd84c7e. The change is test-only, so the proof is the tests themselves run on rc/1.108.0 before and after, with real Postgres and Redis behind the integration harness and the license set
Scope is the five changed test files. Rationale is that no product code changes, so there is no user request to replay. The integration nodes ran one at a time through
tests/integration/run.py extensions --workers 2 <node>, not as a suite. The unit file ran with pytest on 2026-10-31, the date that triggers its bugBefore (4d51856)
Monthly budget reset test
pytest tests/unit/proxy/hooks/test_unit_test_max_model_budget_limiter.pytest_user_model_budget_window_resets_when_the_period_elapsesfails withassert 3.0 == 1.5OTel stalled-tenant test
tests/integration/run.py extensions --workers 2 tests/integration/observability/test_otel_team_capture_message_content.py::test_stalled_tenant_during_a_mixed_burst_keeps_serving_and_each_teams_policy, run twiceassert len(roots) == 1with[], the same failure main hadRestart-mid-burst timeouts
After (cd84c7e)
Monthly budget reset test
pytest tests/unit/proxy/hooks/test_unit_test_max_model_budget_limiter.pyOTel stalled-tenant test
Restart-mid-burst timeouts
tests/integration/run.py extensions --workers 2with the arize c10, logging-only chaos K1 and K2, and s3 hour restart nodesA gauntlet-mini review with five lenses found nothing that flips the result. The picked hunks match main byte for byte apart from the added import, and the budget test passes on every day of 2026 to 2028 in a replay where the old one failed on 450 of 1,096 days
Type
✅ Test
Caveats (if any)
Medium
Low
test_K4_proxy_restart_after_fifteen_responses_records_lost_idsstill has a fixed 180s timeout on rcFinal Attestation