Skip to content

Commit

Permalink
Fix left issues in CI/CD structure refactor (#599)
Browse files Browse the repository at this point in the history
Signed-off-by: chensuyue <[email protected]>
  • Loading branch information
chensuyue authored Aug 15, 2024
1 parent c26d0f6 commit a6385bc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CodeGen/docker/docker_build_compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ services:
context: GenAIComps
dockerfile: comps/llms/text-generation/tgi/Dockerfile
extends: codegen
image: ${REGISTRY}opea/llm-tgi:${TAG:-latest}
image: ${REGISTRY:-opea}/llm-tgi:${TAG:-latest}
2 changes: 1 addition & 1 deletion DocSum/tests/test_docsum_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function validate_megaservice() {
# Curl the Mega Service
validate_services \
"${ip_address}:8888/v1/docsum" \
"versatile toolkit" \
"toolkit" \
"mega-docsum" \
"docsum-gaudi-backend-server" \
'{"messages": "Text Embeddings Inference (TEI) is a toolkit for deploying and serving open source text embeddings and sequence classification models. TEI enables high-performance extraction for the most popular models, including FlagEmbedding, Ember, GTE and E5."}'
Expand Down
2 changes: 1 addition & 1 deletion DocSum/tests/test_docsum_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function validate_megaservice() {
# Curl the Mega Service
validate_services \
"${ip_address}:8888/v1/docsum" \
"versatile toolkit" \
"toolkit" \
"mega-docsum" \
"docsum-xeon-backend-server" \
'{"messages": "Text Embeddings Inference (TEI) is a toolkit for deploying and serving open source text embeddings and sequence classification models. TEI enables high-performance extraction for the most popular models, including FlagEmbedding, Ember, GTE and E5."}'
Expand Down
6 changes: 6 additions & 0 deletions Translation/docker/docker_build_compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ services:
dockerfile: ./docker/Dockerfile
extends: translation
image: ${REGISTRY:-opea}/translation-ui:${TAG:-latest}
llm-tgi:
build:
context: GenAIComps
dockerfile: comps/llms/text-generation/tgi/Dockerfile
extends: translation
image: ${REGISTRY:-opea}/llm-tgi:${TAG:-latest}
6 changes: 3 additions & 3 deletions Translation/tests/test_translation_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

set -x
set -xe
IMAGE_REPO=${IMAGE_REPO:-"opea"}
IMAGE_TAG=${IMAGE_TAG:-"latest"}
echo "REGISTRY=IMAGE_REPO=${IMAGE_REPO}"
Expand Down Expand Up @@ -42,12 +42,12 @@ function start_services() {
docker compose up -d

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
}
Expand Down
2 changes: 1 addition & 1 deletion Translation/tests/test_translation_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

set -x
set -xe
IMAGE_REPO=${IMAGE_REPO:-"opea"}
IMAGE_TAG=${IMAGE_TAG:-"latest"}
echo "REGISTRY=IMAGE_REPO=${IMAGE_REPO}"
Expand Down

0 comments on commit a6385bc

Please sign in to comment.