Skip to content

Commit

Permalink
optimize CI log format (#648)
Browse files Browse the repository at this point in the history
Signed-off-by: chensuyue <suyue.chen@intel.com>
  • Loading branch information
chensuyue authored Aug 22, 2024
1 parent acbaaf8 commit dfaf479
Show file tree
Hide file tree
Showing 24 changed files with 93 additions and 93 deletions.
12 changes: 6 additions & 6 deletions AudioQnA/tests/test_audioqna_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function build_docker_images() {
docker compose -f docker_build_compose.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log

docker pull ghcr.io/huggingface/tgi-gaudi:2.0.1
docker images
docker images && sleep 1s
}

function start_services() {
Expand All @@ -48,24 +48,24 @@ function start_services() {
# sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose up -d
docker compose up -d > ${LOG_PATH}/start_services_with_compose.log
n=0
until [[ "$n" -ge 500 ]]; do
until [[ "$n" -ge 100 ]]; do
docker logs tgi-gaudi-server > $LOG_PATH/tgi_service_start.log
if grep -q Connected $LOG_PATH/tgi_service_start.log; then
break
fi
sleep 1s
sleep 5s
n=$((n+1))
done

n=0
until [[ "$n" -ge 200 ]]; do
until [[ "$n" -ge 100 ]]; do
docker logs whisper-service > $LOG_PATH/whisper_service_start.log
if grep -q "Uvicorn server setup on port" $LOG_PATH/whisper_service_start.log; then
break
fi
sleep 1s
sleep 5s
n=$((n+1))
done
}
Expand Down
8 changes: 4 additions & 4 deletions AudioQnA/tests/test_audioqna_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function build_docker_images() {
docker compose -f docker_build_compose.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log

docker pull ghcr.io/huggingface/tgi-gaudi:2.0.1
docker images
docker images && sleep 1s
}

function start_services() {
Expand All @@ -47,14 +47,14 @@ function start_services() {
# sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose up -d
docker compose up -d > ${LOG_PATH}/start_services_with_compose.log
n=0
until [[ "$n" -ge 500 ]]; do
until [[ "$n" -ge 100 ]]; do
docker logs tgi-service > $LOG_PATH/tgi_service_start.log
if grep -q Connected $LOG_PATH/tgi_service_start.log; then
break
fi
sleep 1s
sleep 5s
n=$((n+1))
done
}
Expand Down
12 changes: 6 additions & 6 deletions ChatQnA/tests/test_chatqna_guardrails_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function build_docker_images() {
docker pull ghcr.io/huggingface/tgi-gaudi:2.0.1
docker pull ghcr.io/huggingface/text-embeddings-inference:cpu-1.5

docker images
docker images && sleep 1s
}

function start_services() {
Expand Down Expand Up @@ -55,25 +55,25 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose -f compose_guardrails.yaml up -d
docker compose -f compose_guardrails.yaml up -d > ${LOG_PATH}/start_services_with_compose.log
n=0
until [[ "$n" -ge 400 ]]; do
until [[ "$n" -ge 100 ]]; do
docker logs tgi-gaudi-server > tgi_service_start.log
if grep -q Connected tgi_service_start.log; then
break
fi
sleep 1s
sleep 5s
n=$((n+1))
done

# Make sure tgi guardrails service is ready
n=0
until [[ "$n" -ge 400 ]]; do
until [[ "$n" -ge 100 ]]; do
docker logs tgi-guardrails-server > tgi_guardrails_service_start.log
if grep -q Connected tgi_guardrails_service_start.log; then
break
fi
sleep 1s
sleep 5s
n=$((n+1))
done
}
Expand Down
6 changes: 3 additions & 3 deletions ChatQnA/tests/test_chatqna_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function build_docker_images() {
docker pull ghcr.io/huggingface/tgi-gaudi:2.0.1
docker pull ghcr.io/huggingface/text-embeddings-inference:cpu-1.5

docker images
docker images && sleep 1s
}

function start_services() {
Expand Down Expand Up @@ -54,10 +54,10 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose up -d
docker compose up -d > ${LOG_PATH}/start_services_with_compose.log

n=0
until [[ "$n" -ge 400 ]]; do
until [[ "$n" -ge 500 ]]; do
docker logs tgi-gaudi-server > ${LOG_PATH}/tgi_service_start.log
if grep -q Connected ${LOG_PATH}/tgi_service_start.log; then
break
Expand Down
4 changes: 2 additions & 2 deletions ChatQnA/tests/test_chatqna_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function build_docker_images() {
docker pull ghcr.io/huggingface/tgi-gaudi:2.0.1
docker pull ghcr.io/huggingface/text-embeddings-inference:cpu-1.5

docker images
docker images && sleep 1s
}

function start_services() {
Expand Down Expand Up @@ -54,7 +54,7 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose up -d
docker compose up -d > ${LOG_PATH}/start_services_with_compose.log
n=0
until [[ "$n" -ge 500 ]]; do
docker logs tgi-service > ${LOG_PATH}/tgi_service_start.log
Expand Down
8 changes: 4 additions & 4 deletions ChatQnA/tests/test_chatqna_qdrant_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function build_docker_images() {
service_list="chatqna chatqna-ui dataprep-qdrant embedding-tei retriever-qdrant reranking-tei llm-tgi"
docker compose -f docker_build_compose.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log

docker images
docker images && sleep 1s
}

function start_services() {
Expand Down Expand Up @@ -53,14 +53,14 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose -f compose_qdrant.yaml up -d
docker compose -f compose_qdrant.yaml up -d > ${LOG_PATH}/start_services_with_compose.log
n=0
until [[ "$n" -ge 200 ]]; do
until [[ "$n" -ge 100 ]]; do
docker logs tgi-service > tgi_service_start.log
if grep -q Connected tgi_service_start.log; then
break
fi
sleep 1s
sleep 5s
n=$((n+1))
done
}
Expand Down
8 changes: 4 additions & 4 deletions ChatQnA/tests/test_chatqna_vllm_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function build_docker_images() {
docker compose -f docker_build_compose.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log

docker pull ghcr.io/huggingface/text-embeddings-inference:cpu-1.2
docker images
docker images && sleep 1s
}

function start_services() {
Expand All @@ -50,15 +50,15 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose -f compose_vllm.yaml up -d
docker compose -f compose_vllm.yaml up -d > ${LOG_PATH}/start_services_with_compose.log
n=0
until [[ "$n" -ge 25 ]]; do
until [[ "$n" -ge 100 ]]; do
echo "n=$n"
docker logs vllm-gaudi-server > vllm_service_start.log
if grep -q "Warmup finished" vllm_service_start.log; then
break
fi
sleep 20s
sleep 5s
n=$((n+1))
done
}
Expand Down
4 changes: 2 additions & 2 deletions ChatQnA/tests/test_chatqna_vllm_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function build_docker_images() {
docker pull ghcr.io/huggingface/tgi-gaudi:2.0.1
docker pull ghcr.io/huggingface/text-embeddings-inference:cpu-1.5

docker images
docker images && sleep 1s
}

function start_services() {
Expand All @@ -53,7 +53,7 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose -f compose_vllm.yaml up -d
docker compose -f compose_vllm.yaml up -d > ${LOG_PATH}/start_services_with_compose.log
n=0
until [[ "$n" -ge 100 ]]; do
docker logs vllm-service > ${LOG_PATH}/vllm_service_start.log
Expand Down
8 changes: 4 additions & 4 deletions ChatQnA/tests/test_chatqna_vllm_ray_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function build_docker_images() {
docker compose -f docker_build_compose.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log

docker pull ghcr.io/huggingface/text-embeddings-inference:cpu-1.2
docker images
docker images && sleep 1s
}

function start_services() {
Expand All @@ -51,15 +51,15 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose -f compose_vllm_ray.yaml up -d
docker compose -f compose_vllm_ray.yaml up -d > ${LOG_PATH}/start_services_with_compose.log
n=0
until [[ "$n" -ge 25 ]]; do
until [[ "$n" -ge 100 ]]; do
echo "n=$n"
docker logs vllm-ray-gaudi-server > vllm_ray_service_start.log
if grep -q "Warmup finished" vllm_ray_service_start.log; then
break
fi
sleep 20s
sleep 5s
n=$((n+1))
done
}
Expand Down
8 changes: 4 additions & 4 deletions ChatQnA/tests/test_chatqna_without_rerank_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function build_docker_images() {
docker pull ghcr.io/huggingface/tgi-gaudi:2.0.1
docker pull ghcr.io/huggingface/text-embeddings-inference:cpu-1.5

docker images
docker images && sleep 1s
}

function start_services() {
Expand All @@ -51,15 +51,15 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose -f compose_without_rerank.yaml up -d
docker compose -f compose_without_rerank.yaml up -d > ${LOG_PATH}/start_services_with_compose.log

n=0
until [[ "$n" -ge 400 ]]; do
until [[ "$n" -ge 100 ]]; do
docker logs tgi-gaudi-server > ${LOG_PATH}/tgi_service_start.log
if grep -q Connected ${LOG_PATH}/tgi_service_start.log; then
break
fi
sleep 1s
sleep 5s
n=$((n+1))
done
}
Expand Down
8 changes: 4 additions & 4 deletions ChatQnA/tests/test_chatqna_without_rerank_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function build_docker_images() {
docker pull ghcr.io/huggingface/tgi-gaudi:2.0.1
docker pull ghcr.io/huggingface/text-embeddings-inference:cpu-1.5

docker images
docker images && sleep 1s
}

function start_services() {
Expand All @@ -51,14 +51,14 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose -f compose_without_rerank.yaml up -d
docker compose -f compose_without_rerank.yaml up -d > ${LOG_PATH}/start_services_with_compose.log
n=0
until [[ "$n" -ge 500 ]]; do
until [[ "$n" -ge 100 ]]; do
docker logs tgi-service > ${LOG_PATH}/tgi_service_start.log
if grep -q Connected ${LOG_PATH}/tgi_service_start.log; then
break
fi
sleep 1s
sleep 5s
n=$((n+1))
done
}
Expand Down
8 changes: 4 additions & 4 deletions CodeGen/tests/test_codegen_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function build_docker_images() {
docker compose -f docker_build_compose.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log

docker pull ghcr.io/huggingface/tgi-gaudi:2.0.1
docker images
docker images && sleep 1s
}

function start_services() {
Expand All @@ -38,15 +38,15 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose up -d
docker compose up -d > ${LOG_PATH}/start_services_with_compose.log

n=0
until [[ "$n" -ge 400 ]]; do
until [[ "$n" -ge 100 ]]; do
docker logs tgi-gaudi-server > ${LOG_PATH}/tgi_service_start.log
if grep -q Connected ${LOG_PATH}/tgi_service_start.log; then
break
fi
sleep 1s
sleep 5s
n=$((n+1))
done
}
Expand Down
8 changes: 4 additions & 4 deletions CodeGen/tests/test_codegen_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function build_docker_images() {
docker compose -f docker_build_compose.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log

docker pull ghcr.io/huggingface/text-generation-inference:sha-e4201f4-intel-cpu
docker images
docker images && sleep 1s
}

function start_services() {
Expand All @@ -39,15 +39,15 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose up -d
docker compose up -d > ${LOG_PATH}/start_services_with_compose.log

n=0
until [[ "$n" -ge 500 ]]; do
until [[ "$n" -ge 100 ]]; do
docker logs tgi-service > ${LOG_PATH}/tgi_service_start.log
if grep -q Connected ${LOG_PATH}/tgi_service_start.log; then
break
fi
sleep 1s
sleep 5s
n=$((n+1))
done
}
Expand Down
8 changes: 4 additions & 4 deletions CodeTrans/tests/test_codetrans_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function build_docker_images() {
docker compose -f docker_build_compose.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log

docker pull ghcr.io/huggingface/tgi-gaudi:2.0.1
docker images
docker images && sleep 1s
}

function start_services() {
Expand All @@ -41,15 +41,15 @@ function start_services() {
sed -i "s/backend_address/$ip_address/g" $WORKPATH/docker/ui/svelte/.env

# Start Docker Containers
docker compose up -d
docker compose up -d > ${LOG_PATH}/start_services_with_compose.log

n=0
until [[ "$n" -ge 400 ]]; do
until [[ "$n" -ge 100 ]]; do
docker logs codetrans-tgi-service > ${LOG_PATH}/tgi_service_start.log
if grep -q Connected ${LOG_PATH}/tgi_service_start.log; then
break
fi
sleep 1s
sleep 5s
n=$((n+1))
done
}
Expand Down
Loading

0 comments on commit dfaf479

Please sign in to comment.