Skip to content

Commit 0b29cb4

Browse files
committed
Update test name
1 parent 8311c92 commit 0b29cb4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

qa/L0_backend_python/model_ready_check/check_model_ready.py renamed to qa/L0_backend_python/model_readiness/check_model_ready.py

File renamed without changes.

qa/L0_backend_python/model_ready_check/test.sh renamed to qa/L0_backend_python/model_readiness/test.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ TEST_RESULT_FILE='test_results.txt'
2929
source ../common.sh
3030
source ../../common/util.sh
3131

32-
SERVER_ARGS="--model-repository=${MODELDIR}/model_ready_check/models --backend-directory=${BACKEND_DIR} --log-verbose=1"
32+
SERVER_ARGS="--model-repository=${MODELDIR}/model_readiness/models --backend-directory=${BACKEND_DIR} --log-verbose=1"
3333

3434
RET=0
3535
rm -fr *.log ./models
@@ -45,9 +45,9 @@ cp ../../python_models/$MODEL_NAME/config.pbtxt ./models/$MODEL_NAME/config.pbtx
4545
# 11 (SIGSEGV) - Segmentation fault / crash
4646
# 9 (SIGKILL) - Force kill
4747
for SIGNAL in 11 9; do
48-
echo -e "\n***\n*** Testing model_ready_check with Signal $SIGNAL\n***"
49-
SERVER_LOG="./model_ready_check_signal_${SIGNAL}_server.log"
50-
CLIENT_LOG="./model_ready_check_${SIGNAL}_client.log"
48+
echo -e "\n***\n*** Testing model_readiness with Signal $SIGNAL\n***"
49+
SERVER_LOG="./model_readiness_signal_${SIGNAL}_server.log"
50+
CLIENT_LOG="./model_readiness_${SIGNAL}_client.log"
5151

5252
run_server
5353
if [ "$SERVER_PID" == "0" ]; then
@@ -62,7 +62,7 @@ for SIGNAL in 11 9; do
6262
echo "Checking Initial Readiness..."
6363
python3 -m unittest check_model_ready.ModelReadyTest.test_model_ready >> ${CLIENT_LOG} 2>&1
6464
if [ $? -ne 0 ]; then
65-
echo -e "\n***\n*** Test model_ready_check Failed (Signal $SIGNAL): Initial readiness check failed \n***"
65+
echo -e "\n***\n*** Test model_readiness Failed (Signal $SIGNAL): Initial readiness check failed \n***"
6666
RET=1
6767
kill_server
6868
exit 1
@@ -72,7 +72,7 @@ for SIGNAL in 11 9; do
7272
stub_pid=$(pgrep -f "triton_python_backend_stub")
7373

7474
if [ -z "$stub_pid" ]; then
75-
echo -e "\n***\n*** Test model_ready_check Failed (Signal $SIGNAL): Could not find stub process \n***"
75+
echo -e "\n***\n*** Test model_readiness Failed (Signal $SIGNAL): Could not find stub process \n***"
7676
RET=1
7777
kill_server
7878
else
@@ -87,16 +87,16 @@ for SIGNAL in 11 9; do
8787
echo "Checking Not Ready Status..."
8888
python3 -m unittest check_model_ready.ModelReadyTest.test_model_not_ready >> ${CLIENT_LOG} 2>&1
8989
if [ $? -ne 0 ]; then
90-
echo -e "\n***\n*** Test model_ready_check Failed (Signal $SIGNAL): Model reported ready after kill \n***"
90+
echo -e "\n***\n*** Test model_readiness Failed (Signal $SIGNAL): Model reported ready after kill \n***"
9191
RET=1
9292
else
9393
# Verify correct error message in logs
9494
# Expect 2 occurrences: HTTP and gRPC checks
9595
error_count=$(grep -c "Model '${MODEL_NAME}' version 1 is not ready: Stub process '${MODEL_NAME}_0_0' is not healthy." $SERVER_LOG)
9696
if [ "$error_count" -eq 2 ]; then
97-
echo -e "\n***\n Test model_ready_check Passed for Signal $SIGNAL \n***"
97+
echo -e "\n***\n Test model_readiness Passed for Signal $SIGNAL \n***"
9898
else
99-
echo -e "\n***\n*** Test model_ready_check Failed (Signal $SIGNAL): Expected 2 error messages, found $error_count \n***"
99+
echo -e "\n***\n*** Test model_readiness Failed (Signal $SIGNAL): Expected 2 error messages, found $error_count \n***"
100100
cat $SERVER_LOG
101101
RET=1
102102
fi

qa/L0_backend_python/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ SUBTESTS="lifecycle argument_validation logging custom_metrics parameters"
522522
# [DLIS-6123] Disable examples test for Windows since it requires updates to the example clients
523523
if [[ ${TEST_WINDOWS} == 0 ]]; then
524524
# TODO: Reimplement restart on decoupled data pipeline and enable restart.
525-
SUBTESTS+=" model_control examples request_rescheduling model_ready_check"
525+
SUBTESTS+=" model_control examples request_rescheduling model_readiness"
526526
fi
527527
for TEST in ${SUBTESTS}; do
528528
# Run each subtest in a separate virtual environment to avoid conflicts

0 commit comments

Comments
 (0)