Skip to content

Commit 4d65271

Browse files
authored
Fix issue opea-project#1607 Signed-off-by: Chun Tao <chun.tao@intel.com>
1 parent 7b7728c commit 4d65271

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

AvatarChatbot/tests/test_compose_on_gaudi.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,16 @@ function start_services() {
8686
docker compose up -d > ${LOG_PATH}/start_services_with_compose.log
8787
n=0
8888
until [[ "$n" -ge 200 ]]; do
89-
docker logs tgi-gaudi-server > $LOG_PATH/tgi_service_start.log
90-
if grep -q Connected $LOG_PATH/tgi_service_start.log; then
89+
docker logs tgi-gaudi-server > $LOG_PATH/tgi_service_start.log && docker logs whisper-service 2>&1 | tee $LOG_PATH/whisper_service_start.log && docker logs speecht5-service 2>&1 | tee $LOG_PATH/speecht5_service_start.log
90+
if grep -q Connected $LOG_PATH/tgi_service_start.log && grep -q running $LOG_PATH/whisper_service_start.log && grep -q running $LOG_PATH/speecht5_service_start.log; then
9191
break
9292
fi
93-
sleep 5s
93+
sleep 10s
9494
n=$((n+1))
9595
done
9696
echo "All services are up and running"
97-
sleep 5s
97+
# sleep 5s
98+
sleep 1m
9899
}
99100

100101

AvatarChatbot/tests/test_compose_on_xeon.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,16 @@ function start_services() {
8585
# Start Docker Containers
8686
docker compose up -d
8787
n=0
88-
until [[ "$n" -ge 100 ]]; do
89-
docker logs tgi-service > $LOG_PATH/tgi_service_start.log
90-
if grep -q Connected $LOG_PATH/tgi_service_start.log; then
88+
until [[ "$n" -ge 200 ]]; do
89+
docker logs tgi-service > $LOG_PATH/tgi_service_start.log && docker logs whisper-service 2>&1 | tee $LOG_PATH/whisper_service_start.log && docker logs speecht5-service 2>&1 | tee $LOG_PATH/speecht5_service_start.log
90+
if grep -q Connected $LOG_PATH/tgi_service_start.log && grep -q running $LOG_PATH/whisper_service_start.log && grep -q running $LOG_PATH/speecht5_service_start.log; then
9191
break
9292
fi
93-
sleep 5s
93+
sleep 10s
9494
n=$((n+1))
9595
done
9696
echo "All services are up and running"
97+
sleep 1m
9798
}
9899

99100

@@ -104,6 +105,7 @@ function validate_megaservice() {
104105
if [[ $result == *"mp4"* ]]; then
105106
echo "Result correct."
106107
else
108+
echo "Result wrong, print docker logs."
107109
docker logs whisper-service > $LOG_PATH/whisper-service.log
108110
docker logs speecht5-service > $LOG_PATH/speecht5-service.log
109111
docker logs tgi-service > $LOG_PATH/tgi-service.log
@@ -117,19 +119,13 @@ function validate_megaservice() {
117119
}
118120

119121

120-
#function validate_frontend() {
121-
122-
#}
123-
124-
125122
function stop_docker() {
126123
cd $WORKPATH/docker_compose/intel/cpu/xeon
127124
docker compose down
128125
}
129126

130127

131128
function main() {
132-
133129
stop_docker
134130
if [[ "$IMAGE_REPO" == "opea" ]]; then build_docker_images; fi
135131
start_services

0 commit comments

Comments
 (0)