Skip to content

Commit 67e1697

Browse files
committed
fsa
1 parent 9f458dd commit 67e1697

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ci/L0_check_health_vllm/test.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pip3 install tritonclient[grpc]
3434
RET=0
3535

3636
function 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
9997
PREV_SERVER_TIMEOUT=$SERVER_TIMEOUT
10098
SERVER_TIMEOUT=240
99+
setup_model_repository
101100
test_check_health "health_check_unspecified" "test_vllm_is_healthy"
102101
SERVER_TIMEOUT=$PREV_SERVER_TIMEOUT
103102

104103
# Test health check disabled
104+
setup_model_repository
105105
enable_health_check "false"
106106
test_check_health "health_check_disabled" "test_vllm_is_healthy"
107107

108108
# Test health check enabled
109+
setup_model_repository
109110
enable_health_check "true"
110111
test_check_health "health_check_enabled" "test_vllm_is_healthy"
111112

112113
# Mock check_health() from vLLM
113114
mock_vllm_async_llm_engine
114115

115116
# Test health check unspecified with mocked vLLM check_health() failure
117+
setup_model_repository
116118
test_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
119122
enable_health_check "false"
120123
test_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
123127
enable_health_check "true"
124128
test_check_health "health_check_enabled_mocked_failure" "test_vllm_not_healthy"
125129

0 commit comments

Comments
 (0)