mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-26 01:12:21 +00:00
test(ci): mark Railway-dependent router/overhead tests as flaky
Two more CircleCI tests intermittently fail with the Railway-hosted fake openai endpoint (https://exampleopenaiendpoint-production.up.railway.app) returning 404 'Application not found' on cold-start: - tests/local_testing/test_router.py::test_router_text_completion_client (litellm_router_testing job) - tests/litellm_utils_tests/test_litellm_overhead.py::test_litellm_overhead_non_streaming[openai/self_hosted] - tests/litellm_utils_tests/test_litellm_overhead.py::test_litellm_overhead_stream[openai/self_hosted] (litellm_utils_testing job) Same upstream-flake root cause as PR #28315; mirror that fix by adding @pytest.mark.flaky(reruns=2, reruns_delay=5) so transient endpoint unavailability doesn't fail the build. Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
This commit is contained in:
parent
e59e34bed3
commit
dbcc67a603
2 changed files with 3 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ async def _vertex_ai_mocks():
|
|||
yield
|
||||
|
||||
|
||||
@pytest.mark.flaky(reruns=2, reruns_delay=5)
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.parametrize(
|
||||
"model",
|
||||
|
|
@ -141,6 +142,7 @@ async def test_litellm_overhead_non_streaming(model):
|
|||
pass
|
||||
|
||||
|
||||
@pytest.mark.flaky(reruns=2, reruns_delay=5)
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.parametrize(
|
||||
"model",
|
||||
|
|
|
|||
|
|
@ -1628,6 +1628,7 @@ def test_router_add_deployment():
|
|||
assert new_model_id_list[1] != new_model_id_list[0]
|
||||
|
||||
|
||||
@pytest.mark.flaky(reruns=2, reruns_delay=5)
|
||||
@pytest.mark.asyncio
|
||||
async def test_router_text_completion_client():
|
||||
# This tests if we re-use the Async OpenAI client
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue