Skip to content

test: backport three test fixes from main to rc/1.108.0 - #49486

Merged
yuneng-berri merged 3 commits into
rc/1.108.0from
litellm_chore_935b3f
Oct 31, 2026
Merged

yuneng-berri merged 3 commits into
rc/1.108.0from
litellm_chore_935b3f

Conversation

@yuneng-berri

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • rc/1.108.0 has three test bugs that teammates fixed on main this week
  • Each one fails on rc for the same reason it failed on main

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

  • 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

Delays 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 bug

Before (4d51856)

Monthly budget reset test

  1. pytest tests/unit/proxy/hooks/test_unit_test_max_model_budget_limiter.py
  2. 1 failed, 82 passed. test_user_model_budget_window_resets_when_the_period_elapses fails with assert 3.0 == 1.5

OTel stalled-tenant test

  1. 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 twice
  2. Failed both times at assert len(roots) == 1 with [], the same failure main had

Restart-mid-burst timeouts

  1. Not run. These only time out on a slow runner, so a local run proves nothing about the before side

After (cd84c7e)

Monthly budget reset test

  1. pytest tests/unit/proxy/hooks/test_unit_test_max_model_budget_limiter.py
  2. 83 passed

OTel stalled-tenant test

  1. Same command, run twice
  2. Passed both times

Restart-mid-burst timeouts

  1. tests/integration/run.py extensions --workers 2 with the arize c10, logging-only chaos K1 and K2, and s3 hour restart nodes
  2. 4 passed in 82s. The timeout now comes out around 380s on this machine, up from 180s

A 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

  • I found no integration run on rc/1.108.0 at all
    • Other rc-only failures may still exist, so one full run is needed after this merges

Low

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

yucheng-berri and others added 3 commits October 31, 2026 12:41
…t budget (#49376)

Backport note: rc/1.108.0 also needs graceful_stop_seconds imported in test_logging_only_scope_chaos.py, which main already imported

(cherry picked from commit c8c0248)
…reset test passes on the 31st (#49372)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 5029d02)
@yuneng-berri
yuneng-berri requested a review from a team October 31, 2026 20:01
@yuneng-berri
yuneng-berri merged commit a78f745 into rc/1.108.0 Oct 31, 2026
3 checks passed
@yuneng-berri
yuneng-berri deleted the litellm_chore_935b3f branch October 31, 2026 20:34
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.

3 participants