Skip to content

Commit f402339

Browse files
eicherseijiSeiji Eicher
andauthored
[Serve.llm] Clean up serve test directory structure (#52547)
Signed-off-by: Seiji Eicher <seiji@anyscale.com> Co-authored-by: Seiji Eicher <seiji@seiji-HX94WY42LN.local>
1 parent ede4d8b commit f402339

26 files changed

+9
-45
lines changed

python/ray/llm/tests/BUILD

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ py_library(
1212
# Common tests
1313
py_test_module_list(
1414
size = "small",
15-
files = glob(["common/**/test_cloud_utils.py"]),
15+
files = glob(["common/**/test_*.py"]),
1616
tags = [
1717
"cpu",
1818
"exclusive",
@@ -54,43 +54,11 @@ py_test_module_list(
5454
)
5555

5656
# Serve test
57-
# Small tests
57+
# CPU tests
5858
py_test_module_list(
59-
size = "small",
60-
data = glob(["serve/**/*.yaml"]),
61-
files = [
62-
"serve/config_generator/test_input_converter.py",
63-
"serve/config_generator/test_text_completion.py",
64-
"serve/configs/test_json_mode_utils.py",
65-
"serve/configs/test_models.py",
66-
"serve/configs/test_prompt_formats.py",
67-
"serve/deployments/llm/multiplex/test_lora_model_loader.py",
68-
"serve/deployments/llm/multiplex/test_multiplex_deployment.py",
69-
"serve/deployments/llm/multiplex/test_multiplex_utils.py",
70-
"serve/deployments/llm/test_image_retriever.py",
71-
"serve/deployments/llm/vllm/test_vllm_engine.py",
72-
"serve/deployments/test_streaming_error_handler.py",
73-
"serve/observability/usage_telemetry/test_usage.py",
74-
],
75-
tags = [
76-
"cpu",
77-
"exclusive",
78-
"team:llm",
79-
],
80-
deps = [
81-
":conftest",
82-
"//:ray_lib",
83-
],
84-
)
85-
86-
# Medium tests
87-
py_test_module_list(
88-
size = "medium",
59+
size = "large",
8960
data = glob(["serve/**/*.yaml"]),
90-
files = [
91-
"serve/builders/test_application_builders.py",
92-
"serve/deployments/llm/multiplex/test_lora_deployment_base_client.py",
93-
],
61+
files = glob(["serve/cpu/**/test_*.py"]),
9462
tags = [
9563
"cpu",
9664
"exclusive",
@@ -106,11 +74,7 @@ py_test_module_list(
10674
py_test_module_list(
10775
size = "large",
10876
data = glob(["serve/**/*.yaml"]),
109-
files = [
110-
"serve/deployments/llm/vllm/test_vllm_engine_gpu.py",
111-
"serve/integration/test_openai_compatibility.py",
112-
"serve/integration/test_openai_compatibility_no_accelerator_type.py",
113-
],
77+
files = glob(["serve/gpu/**/test_*.py"]),
11478
tags = [
11579
"exclusive",
11680
"gpu",

python/ray/llm/tests/serve/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def shutdown_ray_and_serve():
3434
def use_mock_vllm_engine(monkeypatch):
3535
monkeypatch.setenv(
3636
RAYLLM_VLLM_ENGINE_CLS_ENV,
37-
"ray.llm.tests.serve.deployments.mock_vllm_engine.MockVLLMEngine",
37+
"ray.llm.tests.serve.mocks.mock_vllm_engine.MockVLLMEngine",
3838
)
3939
yield
4040

0 commit comments

Comments
 (0)