@@ -418,6 +418,7 @@ cp ../python_models/identity_fp32/config.pbtxt ./models/non_existent_model/confi
418418
419419SERVER_LOG=" ./non_existent_model_server.log"
420420CLIENT_LOG=" ./non_existent_model_client.log"
421+ SERVER_ARGS=$BASE_SERVER_ARGS
421422ERROR_MESSAGE_1=" Failed to preinitialize Python stub: Python model file not found in '` pwd` /models/non_existent_model/1/model.py'"
422423ERROR_MESSAGE_2=" failed to load 'non_existent_model'"
423424
@@ -445,6 +446,52 @@ else
445446 fi
446447fi
447448
449+ if [ $current_num_pages -ne $prev_num_pages ]; then
450+ cat $SERVER_LOG
451+ ls /dev/shm
452+ echo -e " \n***\n*** Test Failed. Shared memory pages where not cleaned properly.
453+ Shared memory pages before starting triton equals to $prev_num_pages
454+ and shared memory pages after starting triton equals to $current_num_pages \n***"
455+ exit 1
456+ fi
457+
458+ SERVER_LOG=" ./non_existent_model_server_auto_config_disabled.log"
459+ CLIENT_LOG=" ./non_existent_model_client_auto_config_disabled.log"
460+ SERVER_ARGS=" $BASE_SERVER_ARGS --disable-auto-complete-config"
461+
462+ prev_num_pages=` get_shm_pages`
463+ run_server
464+ if [ " $SERVER_PID " != " 0" ]; then
465+ echo -e " *** FAILED: unexpected success starting $SERVER " >> $CLIENT_LOG
466+ RET=1
467+ kill_server
468+ else
469+ if grep -q " $ERROR_MESSAGE_1 " $SERVER_LOG ; then
470+ echo -e " Found \" $ERROR_MESSAGE_1 \" " >> $CLIENT_LOG
471+ else
472+ echo -e " Not found \" $ERROR_MESSAGE_1 \" in $SERVER_LOG " >> $CLIENT_LOG
473+ cat $SERVER_LOG >> $CLIENT_LOG
474+ RET=1
475+ fi
476+
477+ if grep -q " $ERROR_MESSAGE_2 " $SERVER_LOG ; then
478+ echo -e " Found \" $ERROR_MESSAGE_2 \" " >> $CLIENT_LOG
479+ else
480+ echo -e " Not found \" $ERROR_MESSAGE_2 \" in $SERVER_LOG " >> $CLIENT_LOG
481+ cat $SERVER_LOG >> $CLIENT_LOG
482+ RET=1
483+ fi
484+ fi
485+
486+ if [ $current_num_pages -ne $prev_num_pages ]; then
487+ cat $SERVER_LOG
488+ ls /dev/shm
489+ echo -e " \n***\n*** Test Failed. Shared memory pages where not cleaned properly.
490+ Shared memory pages before starting triton equals to $prev_num_pages
491+ and shared memory pages after starting triton equals to $current_num_pages \n***"
492+ exit 1
493+ fi
494+
448495# Disable env test for Jetson since cloud storage repos are not supported
449496# Disable ensemble, io and bls tests for Jetson since GPU Tensors are not supported
450497# Disable variants test for Jetson since already built without GPU Tensor support
0 commit comments