litellm/tests/e2e/router
devin-ai-integration[bot] 41ca4656cd
test(e2e): tolerate provider-side flakes on five full-suite cells (#42628)
* test(e2e): tolerate provider-side flakes on five full-suite cells

Mistral OCR retries a provider-relayed 429 with backoff, the Vertex vision
probe turns reasoning off so its 32 tokens go to the answer, the Vertex
cache cell spaces eight never-seen prefixes 15s apart around Google's
nondeterministic minimum-token rejection and prices the cached tokens
instead of prompt_tokens, and the Azure content-policy cell resends the
jailbreak prompt while Azure skips its filter

* test(e2e): shorten the new helper docstrings

* test(e2e): accept a relayed provider 429 on the rust OCR cells

The gateway already retries a provider 429 three times per call and the
Mistral key is shared across pipelines, so a throttle can hold across all
four attempts of the OCR cell. After the bounded retries the cell now
accepts the gateway's faithful relay of the provider's 429 (throttling_error,
code 429) as its second expected outcome; the gateway's own 429 and any
other error still fail the cell at once.

* test(e2e): drop the harness unit tests, the live cells cover the helpers

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-09-22 20:12:14 -07:00
..
complexity_router_client.py
conftest.py
reliability_support.py
test_auto_router_regressions_e2e.py
test_complexity_router_e2e.py
test_reliability_cache_e2e.py
test_reliability_cancel_on_disconnect_e2e.py
test_reliability_cooldowns_e2e.py
test_reliability_fallbacks_e2e.py
test_reliability_memory_e2e.py
test_reliability_prompt_caching_e2e.py
test_reliability_retries_e2e.py
test_reliability_routing_strategies_e2e.py
test_reliability_timeouts_e2e.py