Skip to content

Commit 789e2e7

Browse files
committed
Solve test failure
1 parent f474c52 commit 789e2e7

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

CodeGen/tests/test_compose_on_xeon.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ function start_services() {
4545
bash grafana/dashboards/download_opea_dashboard.sh
4646

4747
# Start Docker Containers
48+
for i in {1..5}; do
49+
docker compose -f "${compose_file}" pull && break
50+
sleep 20
51+
done
52+
4853
docker compose -f ${compose_file} -f compose.monitoring.yaml up -d > ${LOG_PATH}/start_services_with_compose.log
4954

5055
n=0

CodeGen/tests/test_compose_opengauss_on_xeon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function start_services() {
4444
export GS_DB="postgres"
4545
export GS_CONNECTION_STRING="opengauss+psycopg2://${GS_USER}:${GS_PASSWORD}@$ip_address:5432/${GS_DB}"
4646

47-
source ../docker_compose/intel/set_env_opengauss.sh
47+
source $WORKPATH/docker_compose/intel/set_env_opengauss.sh
4848

4949
# Start Docker Containers
5050
docker compose -f compose_opengauss.yaml up -d --quiet-pull > ${LOG_PATH}/start_services_with_compose.log

CodeGen/tests/test_ui_on_xeon.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,15 @@ function start_services() {
3939
local compose_file="$1"
4040
local llm_container_name="$2"
4141
export no_proxy="localhost,127.0.0.1,$ip_address"
42+
export host_ip="${ip_address}"
4243
cd $WORKPATH/docker_compose/intel/cpu/xeon/
4344

4445
# Start Docker Containers
46+
for i in {1..5}; do
47+
docker compose -f "${compose_file}" pull && break
48+
sleep 20
49+
done
50+
4551
docker compose -f ${compose_file} up -d > ${LOG_PATH}/start_services_with_compose.log
4652

4753
n=0

0 commit comments

Comments
 (0)