From bd0aecdc087382c2e3411c24e5d252d8b83cfe25 Mon Sep 17 00:00:00 2001 From: Chaojun Zhang Date: Mon, 1 Jun 2026 19:21:36 +0800 Subject: [PATCH] [XPU][CI] Fix test_audio_in_video flake by using module-scoped server fixture (#44146) Signed-off-by: Chaojun Zhang --- .../openai/chat_completion/test_audio_in_video.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/entrypoints/openai/chat_completion/test_audio_in_video.py b/tests/entrypoints/openai/chat_completion/test_audio_in_video.py index 61ee91eab4..14ac7ce043 100644 --- a/tests/entrypoints/openai/chat_completion/test_audio_in_video.py +++ b/tests/entrypoints/openai/chat_completion/test_audio_in_video.py @@ -14,8 +14,12 @@ from tests.utils import ROCM_EXTRA_ARGS, RemoteOpenAIServer MODEL_NAME = "Qwen/Qwen2.5-Omni-3B" -@pytest.fixture +@pytest.fixture(scope="module") def server(): + # Use module scope so the server is started once and shared across all + # tests in this file. Starting a new vLLM server per test on XPU can + # cause the second server startup to hang silently and exceed the + # wait-for-server timeout, resulting in RuntimeError. args = [ "--max-model-len", "16384",