Skip to content

Commit 347b9ae

Browse files
authored
Fixes for 25.04 release L0_grpc_* and L0_http_* tests (#8152) (#8164)
1 parent 402f574 commit 347b9ae

File tree

3 files changed

+14
-21
lines changed

3 files changed

+14
-21
lines changed

Dockerfile.QA

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,13 @@ RUN apt update -q=2 \
7474
&& apt-get update -q=2 \
7575
&& apt-get install -y --no-install-recommends cmake=3.28.3* cmake-data=3.28.3*
7676

77-
# Add inception_graphdef model to example repo
77+
# Add densenet_onnx model to example repo
7878
# FIXME: This should be changed to using the fetch_models.sh script
7979
# in order to ensure the public facing docs are up-to-date.
8080
WORKDIR /workspace/docs/examples/model_repository
81-
RUN mkdir -p model_repository/inception_onnx/1 && \
82-
wget -O /tmp/inception_v3_2016_08_28_frozen.pb.tar.gz \
83-
https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz && \
84-
(cd /tmp && tar xzf inception_v3_2016_08_28_frozen.pb.tar.gz) && \
85-
python3 -m venv tf2onnx && \
86-
source ./tf2onnx/bin/activate && \
87-
pip3 install "numpy<2" tensorflow tf2onnx && \
88-
python3 -m tf2onnx.convert --graphdef /tmp/inception_v3_2016_08_28_frozen.pb --output inception_v3_onnx.model.onnx --inputs input:0 --outputs InceptionV3/Predictions/Softmax:0 && \
89-
deactivate && \
90-
mv inception_v3_onnx.model.onnx model_repository/inception_onnx/1/model.onnx
81+
RUN mkdir -p densenet_onnx/1 && \
82+
wget -O densenet_onnx/1/model.onnx \
83+
https://github.com/onnx/models/raw/main/validated/vision/classification/densenet-121/model/densenet-7.onnx
9184

9285
# Update the qa/ directory with test executables, models, etc.
9386
WORKDIR /workspace
@@ -117,7 +110,7 @@ RUN mkdir -p qa/common && \
117110
cp -r docs/examples/model_repository/simple_identity qa/L0_grpc/models && \
118111
cp -r docs/examples/model_repository/simple_sequence qa/L0_grpc/models && \
119112
cp -r docs/examples/model_repository/simple_string qa/L0_grpc/models && \
120-
cp -r docs/examples/model_repository/inception_onnx qa/L0_grpc/models && \
113+
cp -r docs/examples/model_repository/densenet_onnx qa/L0_grpc/models && \
121114
mkdir qa/L0_grpc_state_cleanup/models && \
122115
cp -r /workspace/src/test/models/repeat_int32 qa/L0_grpc_state_cleanup/models/ && \
123116
mkdir qa/L0_http/models && \
@@ -126,7 +119,7 @@ RUN mkdir -p qa/common && \
126119
cp -r docs/examples/model_repository/simple_identity qa/L0_http/models && \
127120
cp -r docs/examples/model_repository/simple_sequence qa/L0_http/models && \
128121
cp -r docs/examples/model_repository/simple_string qa/L0_http/models && \
129-
cp -r docs/examples/model_repository/inception_onnx qa/L0_grpc/models && \
122+
cp -r docs/examples/model_repository/densenet_onnx qa/L0_http/models && \
130123
mkdir qa/L0_https/models && \
131124
cp -r docs/examples/model_repository/simple qa/L0_https/models/. && \
132125
mkdir qa/L0_secure_grpc/models && \

qa/L0_grpc/test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,19 +205,19 @@ for i in \
205205
EXTRA_ARGS="-i grpc -u localhost:8001"
206206
fi
207207
if [[ ($SUFFIX == "image_client") || ($SUFFIX == "grpc_image_client") ]]; then
208-
python $i -m inception_onnx -s INCEPTION -a -c 1 -b 1 $EXTRA_ARGS $IMAGE >> "${CLIENT_LOG}.async.${SUFFIX}" 2>&1
208+
python $i -m densenet_onnx -s INCEPTION -a -c 1 -b 1 $EXTRA_ARGS $IMAGE >> "${CLIENT_LOG}.async.${SUFFIX}" 2>&1
209209
if [ `grep -c VULTURE ${CLIENT_LOG}.async.${SUFFIX}` != "1" ]; then
210210
echo -e "\n***\n*** Failed. Expected 1 VULTURE results\n***"
211211
cat $CLIENT_LOG.async.${SUFFIX}
212212
RET=1
213213
fi
214-
python $i -m inception_onnx -s INCEPTION -a --streaming -c 1 -b 1 $EXTRA_ARGS $IMAGE >> "${CLIENT_LOG}.streaming.${SUFFIX}" 2>&1
214+
python $i -m densenet_onnx -s INCEPTION -a --streaming -c 1 -b 1 $EXTRA_ARGS $IMAGE >> "${CLIENT_LOG}.streaming.${SUFFIX}" 2>&1
215215
if [ `grep -c VULTURE ${CLIENT_LOG}.streaming.${SUFFIX}` != "1" ]; then
216216
echo -e "\n***\n*** Failed. Expected 1 VULTURE results\n***"
217217
cat $CLIENT_LOG.streaming.${SUFFIX}
218218
RET=1
219219
fi
220-
python $i -m inception_onnx -s INCEPTION -c 1 -b 1 $EXTRA_ARGS $IMAGE >> "${CLIENT_LOG}.${SUFFIX}" 2>&1
220+
python $i -m densenet_onnx -s INCEPTION -c 1 -b 1 $EXTRA_ARGS $IMAGE >> "${CLIENT_LOG}.${SUFFIX}" 2>&1
221221
if [ `grep -c VULTURE ${CLIENT_LOG}.${SUFFIX}` != "1" ]; then
222222
echo -e "\n***\n*** Failed. Expected 1 VULTURE results\n***"
223223
cat $CLIENT_LOG.${SUFFIX}
@@ -270,19 +270,19 @@ for i in \
270270
BASE=$(basename -- $i)
271271
SUFFIX="${BASE%.*}"
272272
if [[ $SUFFIX == "image_client" ]]; then
273-
$i -m inception_onnx -s INCEPTION -a -c 1 -b 1 -i grpc -u localhost:8001 $IMAGE >> "${CLIENT_LOG}.c++.async.${SUFFIX}" 2>&1
273+
$i -m densenet_onnx -s INCEPTION -a -c 1 -b 1 -i grpc -u localhost:8001 $IMAGE >> "${CLIENT_LOG}.c++.async.${SUFFIX}" 2>&1
274274
if [ `grep -c VULTURE ${CLIENT_LOG}.c++.async.${SUFFIX}` != "1" ]; then
275275
echo -e "\n***\n*** Failed. Expected 1 VULTURE results\n***"
276276
cat $CLIENT_LOG.c++.${SUFFIX}
277277
RET=1
278278
fi
279-
$i -m inception_onnx -s INCEPTION -a --streaming -c 1 -b 1 -i grpc -u localhost:8001 $IMAGE >> "${CLIENT_LOG}.c++.streaming.${SUFFIX}" 2>&1
279+
$i -m densenet_onnx -s INCEPTION -a --streaming -c 1 -b 1 -i grpc -u localhost:8001 $IMAGE >> "${CLIENT_LOG}.c++.streaming.${SUFFIX}" 2>&1
280280
if [ `grep -c VULTURE ${CLIENT_LOG}.c++.streaming.${SUFFIX}` != "1" ]; then
281281
echo -e "\n***\n*** Failed. Expected 1 VULTURE results\n***"
282282
cat $CLIENT_LOG.c++.${SUFFIX}
283283
RET=1
284284
fi
285-
$i -m inception_onnx -s INCEPTION -c 1 -b 1 -i grpc -u localhost:8001 $IMAGE >> "${CLIENT_LOG}.c++.${SUFFIX}" 2>&1
285+
$i -m densenet_onnx -s INCEPTION -c 1 -b 1 -i grpc -u localhost:8001 $IMAGE >> "${CLIENT_LOG}.c++.${SUFFIX}" 2>&1
286286
if [ `grep -c VULTURE ${CLIENT_LOG}.c++.${SUFFIX}` != "1" ]; then
287287
echo -e "\n***\n*** Failed. Expected 1 VULTURE results\n***"
288288
cat $CLIENT_LOG.c++.${SUFFIX}

qa/L0_http/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ for i in \
163163
BASE=$(basename -- $i)
164164
SUFFIX="${BASE%.*}"
165165
if [ $SUFFIX == "image_client" ]; then
166-
python $i -m inception_onnx -s INCEPTION -a -c 1 -b 1 $IMAGE >> "${CLIENT_LOG}.async.${SUFFIX}" 2>&1
166+
python $i -m densenet_onnx -s INCEPTION -a -c 1 -b 1 $IMAGE >> "${CLIENT_LOG}.async.${SUFFIX}" 2>&1
167167
if [ `grep -c VULTURE ${CLIENT_LOG}.async.${SUFFIX}` != "1" ]; then
168168
echo -e "\n***\n*** Failed. Expected 1 VULTURE results\n***"
169169
cat $CLIENT_LOG.async.${SUFFIX}
170170
RET=1
171171
fi
172-
python $i -m inception_onnx -s INCEPTION -c 1 -b 1 $IMAGE >> "${CLIENT_LOG}.${SUFFIX}" 2>&1
172+
python $i -m densenet_onnx -s INCEPTION -c 1 -b 1 $IMAGE >> "${CLIENT_LOG}.${SUFFIX}" 2>&1
173173
if [ `grep -c VULTURE ${CLIENT_LOG}.${SUFFIX}` != "1" ]; then
174174
echo -e "\n***\n*** Failed. Expected 1 VULTURE results\n***"
175175
cat $CLIENT_LOG.${SUFFIX}

0 commit comments

Comments
 (0)