From e2090bf3af96843c899d6f5c85d9c12b03b5cabb Mon Sep 17 00:00:00 2001 From: Harry Mellor <19981378+hmellor@users.noreply.github.com> Date: Fri, 6 Mar 2026 11:50:28 +0000 Subject: [PATCH] [CI] Fix startup error test (#36230) A change in engine startup error messages in #35478 caused this test failure. Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> --- pyproject.toml | 1 + tests/v1/shutdown/test_startup_error.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d4fb554d43..ad2a96db39 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -172,6 +172,7 @@ fo = "fo" nd = "nd" eles = "eles" datas = "datas" +ure = "ure" [tool.uv] no-build-isolation-package = ["torch"] diff --git a/tests/v1/shutdown/test_startup_error.py b/tests/v1/shutdown/test_startup_error.py index 7925dc14b7..4b5661a52c 100644 --- a/tests/v1/shutdown/test_startup_error.py +++ b/tests/v1/shutdown/test_startup_error.py @@ -68,7 +68,7 @@ def test_async_llm_startup_error( ) # Confirm we get an exception. - with pytest.raises(Exception, match="initialization failed"): + with pytest.raises(Exception, match=r"initialization fail(ed|ure)"): _ = AsyncLLM.from_engine_args(engine_args) # Confirm all the processes are cleaned up. @@ -111,7 +111,7 @@ def test_llm_startup_error( with pytest.raises( Exception, - match="initialization failed" + match=r"initialization fail(ed|ure)" if enable_multiprocessing else "Simulated Error in startup!", ):