Repository navigation
test(integration): size restart-mid-burst timeouts from the proxy boot budget - #49376
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
kerry-berri
approved these changes
Oct 31, 2026
2 of 6 tasks
DeoLeung
pushed a commit
to aiyou178/litellm
that referenced
this pull request
Nov 5, 2026
…t budget (BerriAI#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)
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.
Four integration tests that boot two proxies each had a fixed 180 second timeout, so on a slow runner they timed out while a proxy was still starting or stopping. This sizes their timeout from the same boot budget the harness already uses for proxy readiness, the way the other restart-mid-burst tests do
Details
TLDR
Problem this solves:
How it solves it:
4 * graceful_stop_seconds() + 120, matching sibling restart testsRelevant issues
The scheduled main runs 41078898295 and 40981180045 each failed these same four tests with
Timeout (>180.0s) from pytest-timeout, inside_wait_until_readyorstop_root_process. They passed in the other six runs from 10-29 to 10-31. Those two runs also had the slowest calibration of the eight, with a case budget of 1037s and 1051s against 729s to 990s for the restThe tests are
test_arize_otel_v2_c10_attribute_limit_keeps_tool_prefix,test_s3_v2_hour_proxy_restart_mid_burst_keeps_the_layout_without_duplicates,test_K1_policy_edge_restart_mid_burst_keeps_output_observation_fail_openandtest_K2_policy_edge_delay_does_not_delay_concurrent_callers. Each one starts two 2-worker proxies, and the harness itself gives a single 2-worker boot24 * import_seconds, which is 447s at the import time measured on the VM belowBehavior changes
None. Only the pytest timeout of four integration tests changes, and no product code is touched
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 fb9f6cc. The diff only changes four
pytest.mark.timeoutvalues and one import, so there is no proxy behavior to show before and after. 186 timeout markers undertests/integrationon main already derive fromgraceful_stop_seconds(), and this exact expression is the onetest_mid_stream_fallback_continuation.py,test_per_model_rate_limit_fallbacks_lifecycle.py,test_added_backup_deployment_serves_peer_fallbacks.pyandtest_cache_control_tool_call_marks_owned_proxy.pyuse for their two-proxy cellsThe four tests at the tip pass through the real runner, on a Linux VM with a private Postgres and 4 workers
The new cap at the import times CI measured, against the old fixed one
Type
✅ Test