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

Fix L0_http_fuzz #5776

Merged
merged 4 commits into from
May 19, 2023
Merged
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
18 changes: 16 additions & 2 deletions qa/L0_http_fuzz/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,21 @@ FUZZ_LOG=`pwd`/fuzz.log
DATADIR=`pwd`/models
SERVER=/opt/tritonserver/bin/tritonserver
SERVER_ARGS="--model-repository=$DATADIR"
source ../common/util.sh
source ../common/util.sh

# Remove this once foobuzz and tornado packages upgrade to work with python 3.10
# This test tests the server's ability to handle poor input and not the compatibility
# with python 3.10. Python 3.8 is ok to use here.
function_install_python38() {
source ../L0_backend_python/common.sh
install_conda
create_conda_env "3.8" "python-3-8"

# Install test script dependencies
pip3 install --upgrade wheel setuptools boofuzz==0.3.0 numpy pillow attrdict future grpcio requests gsutil \
awscli six grpcio-channelz prettytable virtualenv
}
function_install_python38

run_server
if [ "$SERVER_PID" == "0" ]; then
Expand All @@ -65,7 +79,7 @@ fi
set +e

# Test health
python $FUZZTEST -v >> ${FUZZ_LOG} 2>&1
python3 $FUZZTEST -v >> ${FUZZ_LOG} 2>&1
if [ $? -ne 0 ]; then
cat ${FUZZ_LOG}
RET=1
Expand Down