Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add input byte size tests using C APIs #7372

Merged
merged 5 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile.QA
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ RUN mkdir -p qa/common && \
cp bin/request_cancellation_test qa/L0_request_cancellation/. && \
cp bin/triton_json_test qa/L0_json/. && \
cp bin/backend_output_detail_test qa/L0_backend_output_detail/. && \
cp -r deploy/mlflow-triton-plugin qa/L0_mlflow/.
cp -r deploy/mlflow-triton-plugin qa/L0_mlflow/. && \
cp bin/input_byte_size_test qa/L0_input_validation/. && \
cp -r docs/examples/model_repository/simple_identity qa/L0_input_validation/models

RUN mkdir -p qa/pkgs && \
cp python/triton*.whl qa/pkgs/. && \
Expand Down
12 changes: 11 additions & 1 deletion qa/L0_input_validation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ DATADIR=/data/inferenceserver/${REPO_VERSION}
SERVER=/opt/tritonserver/bin/tritonserver
CLIENT_LOG="./input_validation_client.log"
TEST_PY=./input_validation_test.py
SHAPE_TEST_PY=./input_shape_validation_test.py
TEST_RESULT_FILE='./test_results.txt'
SERVER_LOG="./inference_server.log"
TEST_LOG="./input_byte_size_test.log"
TEST_EXEC=./input_byte_size_test

export CUDA_VISIBLE_DEVICES=0

Expand Down Expand Up @@ -143,6 +144,15 @@ set -e
kill $SERVER_PID
wait $SERVER_PID

# input_byte_size_test
set +e
LD_LIBRARY_PATH=/opt/tritonserver/lib:$LD_LIBRARY_PATH $TEST_EXEC >>$TEST_LOG 2>&1
if [ $? -ne 0 ]; then
echo -e "\n***\n*** Query Unit Test Failed\n***"
RET=1
fi
set -e

if [ $RET -eq 0 ]; then
echo -e "\n***\n*** Input Validation Test Passed\n***"
else
Expand Down
Loading