From 05883ff47065c5cc080d9b2df8191e71596fbd67 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Apr 2026 15:44:03 +0000 Subject: [PATCH] [CI] Fix moss_tts_nano test import paths to unblock collection The test files imported from `tests.utils` (non-existent) and `tests.conftest.OmniServerParams` (not lazy-exported), causing pytest collection to fail for the whole suite. This broke unrelated CI jobs (Diffusion Cache Backend Test, Simple Unit Test) because collection runs across all test files even when they are deselected by marker. Align with the pattern used by sibling TTS tests (e.g. test_cosyvoice3_tts.py, test_voxcpm.py): - hardware_test -> tests.helpers.mark - OmniServerParams -> tests.helpers.runtime https://claude.ai/code/session_01JYESRH7Ua1mc1wqKCQQs5q --- tests/e2e/offline_inference/test_moss_tts_nano.py | 2 +- tests/e2e/online_serving/test_moss_tts_nano.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/offline_inference/test_moss_tts_nano.py b/tests/e2e/offline_inference/test_moss_tts_nano.py index 5596654ef..40561d53f 100644 --- a/tests/e2e/offline_inference/test_moss_tts_nano.py +++ b/tests/e2e/offline_inference/test_moss_tts_nano.py @@ -8,7 +8,7 @@ import pytest import torch from vllm import SamplingParams -from tests.utils import hardware_test +from tests.helpers.mark import hardware_test from vllm_omni import Omni MODEL_NAME = "OpenMOSS-Team/MOSS-TTS-Nano" diff --git a/tests/e2e/online_serving/test_moss_tts_nano.py b/tests/e2e/online_serving/test_moss_tts_nano.py index ec30bd4da..22e305345 100644 --- a/tests/e2e/online_serving/test_moss_tts_nano.py +++ b/tests/e2e/online_serving/test_moss_tts_nano.py @@ -14,9 +14,9 @@ os.environ["VLLM_TEST_CLEAN_GPU_MEMORY"] = "0" import pytest -from tests.conftest import OmniServerParams +from tests.helpers.mark import hardware_test +from tests.helpers.runtime import OmniServerParams from tests.helpers.stage_config import get_deploy_config_path -from tests.utils import hardware_test MODEL = "OpenMOSS-Team/MOSS-TTS-Nano"