@@ -34,7 +34,7 @@ pip3 install tritonclient[grpc]
3434RET=0
3535
3636function setup_model_repository {
37- local sample_model_repo_path=${1 :- " ../../samples/model_repository" }
37+ local sample_model_repo_path=" ../../samples/model_repository"
3838 mkdir -p models && cp -r $sample_model_repo_path /vllm_model models/vllm_opt
3939}
4040
@@ -92,34 +92,38 @@ function test_check_health {
9292 wait $SERVER_PID
9393}
9494
95- setup_model_repository
96-
9795# Test health check unspecified
9896# Cold start on SBSA device can take longer than default 120 seconds
9997PREV_SERVER_TIMEOUT=$SERVER_TIMEOUT
10098SERVER_TIMEOUT=240
99+ setup_model_repository
101100test_check_health " health_check_unspecified" " test_vllm_is_healthy"
102101SERVER_TIMEOUT=$PREV_SERVER_TIMEOUT
103102
104103# Test health check disabled
104+ setup_model_repository
105105enable_health_check " false"
106106test_check_health " health_check_disabled" " test_vllm_is_healthy"
107107
108108# Test health check enabled
109+ setup_model_repository
109110enable_health_check " true"
110111test_check_health " health_check_enabled" " test_vllm_is_healthy"
111112
112113# Mock check_health() from vLLM
113114mock_vllm_async_llm_engine
114115
115116# Test health check unspecified with mocked vLLM check_health() failure
117+ setup_model_repository
116118test_check_health " health_check_unspecified_mocked_failure" " test_vllm_is_healthy"
117119
118120# Test health check disabled with mocked vLLM check_health() failure
121+ setup_model_repository
119122enable_health_check " false"
120123test_check_health " health_check_disabled_mocked_failure" " test_vllm_is_healthy"
121124
122125# Test health check enabled with mocked vLLM check_health() failure
126+ setup_model_repository
123127enable_health_check " true"
124128test_check_health " health_check_enabled_mocked_failure" " test_vllm_not_healthy"
125129
0 commit comments