From 6a6c79d9922a07eae21e6cfa404e686b3c2571a1 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Mon, 4 May 2026 20:48:26 -0700 Subject: [PATCH] [Fix] CI: Enable VCR replay for test_azure_o_series The Azure o-series tests were excluded from the conftest's VCR auto-marker because of a respx/vcrpy transport-patching conflict, but the only respx reference in the file was an unused `MockRouter` import. Drop the dead import and remove the file from the conflict set so cassettes record on first run and replay thereafter, eliminating the 60-95s live Azure latency that was crashing xdist workers under --timeout=120 thread-mode timeouts. --- tests/llm_translation/conftest.py | 1 - tests/llm_translation/test_azure_o_series.py | 1 - 2 files changed, 2 deletions(-) diff --git a/tests/llm_translation/conftest.py b/tests/llm_translation/conftest.py index 09da0520be0..17ffb800ea0 100644 --- a/tests/llm_translation/conftest.py +++ b/tests/llm_translation/conftest.py @@ -36,7 +36,6 @@ _controller_terminal_reporter = None # silently win, so respx-using files opt out of the auto-marker. _RESPX_CONFLICTING_FILES = frozenset( { - "test_azure_o_series.py", "test_gpt4o_audio.py", "test_nvidia_nim.py", "test_openai.py", diff --git a/tests/llm_translation/test_azure_o_series.py b/tests/llm_translation/test_azure_o_series.py index 181d3b677d2..ab122d3ff6a 100644 --- a/tests/llm_translation/test_azure_o_series.py +++ b/tests/llm_translation/test_azure_o_series.py @@ -11,7 +11,6 @@ sys.path.insert( import httpx import pytest -from respx import MockRouter import litellm from litellm import Choices, Message, ModelResponse