Skip to content

Commit

Permalink
Update MMQnA xeon test to wait for LVM to be ready (#18)
Browse files Browse the repository at this point in the history
Signed-off-by: dmsuehir <[email protected]>
  • Loading branch information
dmsuehir authored Nov 7, 2024
1 parent df2511b commit 6631601
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion MultimodalQnA/tests/test_compose_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,18 @@ function validate_microservices() {
"retriever-multimodal-redis" \
"{\"text\":\"test\",\"embedding\":${your_embedding}}"

sleep 10s
echo "Wait for lvm-llava service to be ready"
max_retries=10
for i in $(seq $max_retries)
do
lvm_logs=$(docker logs lvm-llava 2>&1 | grep "Uvicorn running on http://0.0.0.0")
if [[ "$lvm_logs" != *"Uvicorn running on http://0.0.0.0"* ]]; then
sleep 10s
else
echo "lvm-llava service is ready"
break
fi
done

# llava server
echo "Evaluating lvm-llava"
Expand Down

0 comments on commit 6631601

Please sign in to comment.