litellm/tests/integration/routing
rhea-tk 90dd91d77c
fix(proxy): reserve least-busy picks on Vertex pass-through calls (#53588)
* fix(proxy): reserve least-busy picks on Vertex pass-through calls

* fix(proxy): reserve pass-through picks only inside a Vertex call and give each routed call its own picks

A select(kind="pass_through") made outside a Vertex pass-through call, such as from a routed call's callback, no longer holds a least-busy reservation. A routed call with no call id made inside the Vertex call, such as an LLM guardrail's, now owns its own picks, so it no longer frees the Vertex call's pick when it ends

* test(router): keep a chat call's pick held while a deployment hook makes a routed call

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-23 04:21:20 +00:00
..
_prompt_cache_pin_support.py
_reasoning_effort_levels_support.py test(routing): audit #46601 (#48910) 2026-10-28 15:42:51 -07:00
either_role.json
test_advisor_failure_cooldown.py
test_anthropic_overloaded_cooldown_owned_proxy.py fix(anthropic): answer an upstream Anthropic 529 as 529 overloaded_error on /v1/messages (#46063) 2026-11-03 17:37:09 -08:00
test_audit_any_sweep_chaos.py
test_auto_router_management.py test(auto_router): verify total_spend in session integration responses (#51283) 2026-11-16 12:11:26 -08:00
test_azure_passthrough_spend_row.py
test_base_model_context_window_owned_proxy.py
test_batch_mode_deployments_wire.py fix(router): send managed batch uploads to batch deployments when a chat deployment has a lower order (#50971) 2026-11-10 18:35:19 -08:00
test_caller_credential_failure_cooldown.py fix(router): keep one caller's own bad credential from cooling down a shared deployment (#53431) 2026-11-21 17:09:29 -08:00
test_comma_separated_models_stream.py fix(proxy): reject comma-separated models with stream=true as 400 (#52264) 2026-11-17 13:29:32 -08:00
test_complexity_router_codex_compaction.py
test_complexity_router_databricks_classifier.py
test_complexity_router_llm_classifier.py
test_customer_org_and_key_model_limits_borrow_idle_capacity.py feat(dynamic_rate_limiter): customer organizations and keys borrow idle model capacity and split class shares (#51705) 2026-11-15 12:05:58 -08:00
test_declared_provider_bare_model_routes.py
test_deployment_mode_routing_wire.py
test_deployment_num_retries_generic_routes_wire.py
test_dynamic_limiter_prometheus_metrics_rust.py feat(model_capacity): replace the python dynamic rate limiter v3 with a rust callback (#51540) 2026-11-17 22:20:54 +00:00
test_dynamic_rate_limiter_borrower_regains_share_rust.py feat(model_capacity): replace the python dynamic rate limiter v3 with a rust callback (#51540) 2026-11-17 22:20:54 +00:00
test_encrypted_content_affinity_no_peer.py
test_end_user_region_routing.py
test_enforce_model_rate_limits_daily_limits.py feat(router): add deployment rpd and tpd daily limits to enforce_model_rate_limits (#48875) 2026-10-28 15:52:44 -07:00
test_fallback_hop_foreign_encrypted_reasoning.py fix(router): keep encrypted reasoning when a fallback hops between same-key deployments with no api_base (#49396) 2026-11-02 05:47:04 -08:00
test_fallback_on_gemini_malformed_empty_response.py fix(vertex_ai): fail Gemini malformed replies with no output so retries and fallbacks run (#53231) 2026-11-21 09:49:27 -08:00
test_fallback_on_saturation.py feat(proxy): router_settings.fallback_on_saturation walks key and team fallbacks before a model saturates, replacing team model_preferences (#51439) 2026-11-13 05:57:18 +00:00
test_fallback_rate_limit_check.py fix(router): re-check and reserve per-model rate limits on fallback targets (#50994) 2026-11-10 16:36:10 -08:00
test_fallback_retry_header_contracts.py
test_fallback_settles_serving_model.py fix(rate-limit): settle a fallback's tokens on the model group that served it (#51082) 2026-11-10 18:36:55 -08:00
test_include_fallback_errors_wire.py fix(proxy): send the streamed Responses fallback metadata as a typed Responses event (#50804) 2026-11-10 21:29:32 +00:00
test_key_max_parallel_requests.py
test_key_router_settings_image_generation.py test(images): include cache and SVG fields in image routing fixture (#52898) 2026-11-19 18:37:10 +00:00
test_key_tpm_reservation.py
test_least_busy_concurrent_decisions.py fix(least-busy): reserve the picked deployment so a burst of requests spreads out (#47484) 2026-11-05 00:30:12 +00:00
test_least_busy_concurrent_vertex_passthrough.py fix(proxy): reserve least-busy picks on Vertex pass-through calls (#53588) 2026-11-23 04:21:20 +00:00
test_messages_stream_retry_budget_sources_owned_proxy.py fix(anthropic): answer an upstream Anthropic 529 as 529 overloaded_error on /v1/messages (#46063) 2026-11-03 17:37:09 -08:00
test_model_capability_flags.py
test_non_chat_model_endpoint_gate.py feat(router): opt in to non-chat deployment filtering (#46257) 2026-10-29 08:33:36 -07:00
test_observed_routing.py test: fix integration tests that fail on test order, races and intended changes (#49310) 2026-10-30 13:25:47 -07:00
test_otpm_default_reservation_fraction.py test(routing): wait for the held stream itself before sending the requests beside it (#53519) 2026-11-22 02:56:41 +00:00
test_payment_required_cooldown.py
test_payment_required_mapping.py
test_pdf_document_pre_call_checks_owned_proxy.py
test_per_model_rate_limit_fallbacks.py
test_per_model_rate_limit_fallbacks_lifecycle.py
test_pre_call_response_format_filter.py
test_priority_class_share_light_team_not_starved.py fix(dynamic_rate_limiter): charge tokens used while the model was idle against a team's class share (#51952) 2026-11-15 16:49:47 -08:00
test_priority_class_share_splits_among_active_teams.py feat(dynamic_rate_limiter): customer organizations and keys borrow idle model capacity and split class shares (#51705) 2026-11-15 12:05:58 -08:00
test_priority_model_tpm_enforcement.py
test_priority_rate_limit_headers.py fix(dynamic_rate_limiter): keep counting and reporting priority requests after a priority pool's tokens run out (#52081) 2026-11-16 22:00:36 +00:00
test_priority_scheduler_queue_cleanup.py
test_prompt_cache_pin_memory_routes.py
test_prompt_cache_pin_ttl.py test(routing): expect /v1/responses to pin the served deployment for an hour after #50321 (#50474) 2026-11-07 00:08:05 +00:00
test_prompt_cache_pin_ttl_chaos.py
test_prompt_cache_pin_with_message_logging_off.py fix(router): write the prompt caching pin when turn_off_message_logging is on (#50276) 2026-11-05 15:59:57 -08:00
test_prompt_caching_affinity_tool_call_marks.py fix(router): pin /v1/responses requests for prompt caching affinity (#50321) 2026-11-06 12:56:54 -08:00
test_ptu_shares.py
test_ptu_shares_regex_timing.py
test_rate_limit_fallback_headers.py fix(proxy): check pre-call fallback access with the saved model_group_alias, never the one the client sent (#52077) 2026-11-16 22:02:42 +00:00
test_reasoning_effort_levels_chaos.py
test_reasoning_effort_levels_wire.py fix(bedrock)!: keep Claude's thinking when response_format json_schema is set (#49696) 2026-11-05 04:07:11 +00:00
test_redis_increment_with_floor.py
test_redis_recovery.py
test_rerank_cancel_on_disconnect.py fix(proxy): honor cancel_on_disconnect on the rerank endpoints (#51252) 2026-11-14 03:59:22 -05:00
test_responses_stream_same_group_retry.py fix(responses): forward lifecycle events once output starts (#52858) 2026-11-19 17:49:23 +00:00
test_responses_websocket_turn_admission.py fix(responses): send an HTTP status on websocket guardrail block frames (#52942) 2026-11-19 14:22:22 -08:00
test_router_strategies_count_async_requests_once.py
test_silent_model_shadow_wire.py
test_stale_cost_map_boot.py
test_tag_routing_prefix.py
test_team_model_limit_borrows_idle_capacity.py feat(dynamic_rate_limiter): customer organizations and keys borrow idle model capacity and split class shares (#51705) 2026-11-15 12:05:58 -08:00
test_team_tag_routing.py
test_team_wildcard_precedence.py
test_usage_based_routing_redis_reads.py test(integration): repair tests that merged changes left stale (#50782) 2026-11-10 01:08:35 +00:00
test_user_config_routing.py
test_video_poll_routing_wire.py
test_vllm_passthrough_spend_row.py
test_vllm_passthrough_stream_relay.py
test_vllm_passthrough_stream_usage_settings.py
test_web_search_deployment_filter_owned_proxy.py fix(router): drop supports_web_search false deployments for Anthropic web_search_* and Gemini googleSearch tools (#50275) 2026-11-06 01:58:17 +00:00
test_wildcard_model_listing.py