diff --git a/AgentQnA/tests/test_compose_on_gaudi.sh b/AgentQnA/tests/test_compose_on_gaudi.sh index 66084f67f..f6e7e9599 100644 --- a/AgentQnA/tests/test_compose_on_gaudi.sh +++ b/AgentQnA/tests/test_compose_on_gaudi.sh @@ -88,22 +88,21 @@ echo "::endgroup::" cd $WORKPATH/tests -echo "::group::=================== #1 Building docker images====================" +echo "::group::=================== Building docker images====================" bash step1_build_images.sh gaudi_vllm > docker_image_build.log echo "::endgroup::" -echo "::endgroup::=================== #4 Start agent, API server, retrieval, and ingest data====================" +echo "::group::=================== Start agent, API server, retrieval, and ingest data====================" bash step4_launch_and_validate_agent_gaudi.sh echo "::endgroup::" -echo "::endgroup::=================== #5 Stop agent and API server====================" +echo "::group::=================== Stop agent and API server====================" stop_llm stop_crag stop_agent_containers stop_retrieval_tool stop_telemetry_containers +echo y | docker system prune echo "::endgroup::" -echo y | docker system prune - echo "ALL DONE!!" diff --git a/AudioQnA/Dockerfile b/AudioQnA/Dockerfile index 1294c218c..82d8d3540 100644 --- a/AudioQnA/Dockerfile +++ b/AudioQnA/Dockerfile @@ -1,8 +1,10 @@ # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 +ARG IMAGE_REPO=opea ARG BASE_TAG=latest FROM opea/comps-base:$BASE_TAG +FROM $IMAGE_REPO/comps-base:$BASE_TAG COPY ./audioqna.py $HOME/audioqna.py diff --git a/AudioQnA/Dockerfile.multilang b/AudioQnA/Dockerfile.multilang index 997e4bed3..8b9550784 100644 --- a/AudioQnA/Dockerfile.multilang +++ b/AudioQnA/Dockerfile.multilang @@ -1,8 +1,10 @@ # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 +ARG IMAGE_REPO=opea ARG BASE_TAG=latest FROM opea/comps-base:$BASE_TAG +FROM $IMAGE_REPO/comps-base:$BASE_TAG COPY ./audioqna_multilang.py $HOME/audioqna_multilang.py diff --git a/AudioQnA/docker_image_build/build.yaml b/AudioQnA/docker_image_build/build.yaml index 309c9e4cd..e7688555c 100644 --- a/AudioQnA/docker_image_build/build.yaml +++ b/AudioQnA/docker_image_build/build.yaml @@ -5,6 +5,8 @@ services: audioqna: build: args: + IMAGE_REPO: ${REGISTRY} + BASE_TAG: ${TAG} http_proxy: ${http_proxy} https_proxy: ${https_proxy} no_proxy: ${no_proxy} @@ -85,10 +87,7 @@ services: image: ${REGISTRY:-opea}/vllm-gaudi:${TAG:-latest} vllm-rocm: build: - args: - http_proxy: ${http_proxy} - https_proxy: ${https_proxy} - no_proxy: ${no_proxy} context: GenAIComps dockerfile: comps/third_parties/vllm/src/Dockerfile.amd_gpu + extends: audioqna image: ${REGISTRY:-opea}/vllm-rocm:${TAG:-latest} diff --git a/AudioQnA/tests/test_compose_multilang_on_xeon.sh b/AudioQnA/tests/test_compose_multilang_on_xeon.sh index 2bb636502..2bf05b352 100644 --- a/AudioQnA/tests/test_compose_multilang_on_xeon.sh +++ b/AudioQnA/tests/test_compose_multilang_on_xeon.sh @@ -17,19 +17,13 @@ ip_address=$(hostname -I | awk '{print $1}') function build_docker_images() { opea_branch=${opea_branch:-"main"} - # If the opea_branch isn't main, replace the git clone branch in Dockerfile. - if [[ "${opea_branch}" != "main" ]]; then - cd $WORKPATH - OLD_STRING="RUN git clone --depth 1 https://github.com/opea-project/GenAIComps.git" - NEW_STRING="RUN git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git" - find . -type f -name "Dockerfile*" | while read -r file; do - echo "Processing file: $file" - sed -i "s|$OLD_STRING|$NEW_STRING|g" "$file" - done - fi cd $WORKPATH/docker_image_build git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git + pushd GenAIComps + echo "GenAIComps test commit is $(git rev-parse HEAD)" + docker build --no-cache -t ${REGISTRY}/comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile . + popd && sleep 1s git clone https://github.com/vllm-project/vllm.git cd ./vllm/ @@ -103,14 +97,26 @@ function stop_docker() { function main() { + echo "::group::stop_docker" stop_docker + echo "::endgroup::" + + echo "::group::build_docker_images" if [[ "$IMAGE_REPO" == "opea" ]]; then build_docker_images; fi + echo "::endgroup::" + + echo "::group::start_services" start_services + echo "::endgroup::" + echo "::group::validate_megaservice" validate_megaservice + echo "::endgroup::" + echo "::group::stop_docker" stop_docker - echo y | docker system prune + docker system prune -f + echo "::endgroup::" } diff --git a/AudioQnA/tests/test_compose_on_gaudi.sh b/AudioQnA/tests/test_compose_on_gaudi.sh index c5e45c3e6..d999cf518 100644 --- a/AudioQnA/tests/test_compose_on_gaudi.sh +++ b/AudioQnA/tests/test_compose_on_gaudi.sh @@ -17,19 +17,13 @@ ip_address=$(hostname -I | awk '{print $1}') function build_docker_images() { opea_branch=${opea_branch:-"main"} - # If the opea_branch isn't main, replace the git clone branch in Dockerfile. - if [[ "${opea_branch}" != "main" ]]; then - cd $WORKPATH - OLD_STRING="RUN git clone --depth 1 https://github.com/opea-project/GenAIComps.git" - NEW_STRING="RUN git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git" - find . -type f -name "Dockerfile*" | while read -r file; do - echo "Processing file: $file" - sed -i "s|$OLD_STRING|$NEW_STRING|g" "$file" - done - fi cd $WORKPATH/docker_image_build git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git + pushd GenAIComps + echo "GenAIComps test commit is $(git rev-parse HEAD)" + docker build --no-cache -t ${REGISTRY}/comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile . + popd && sleep 1s git clone https://github.com/HabanaAI/vllm-fork.git cd vllm-fork/ @@ -105,34 +99,8 @@ function validate_megaservice() { echo "Result wrong." exit 1 fi - } -#function validate_frontend() { -# cd $WORKPATH/ui/svelte -# local conda_env_name="OPEA_e2e" -# export PATH=${HOME}/miniforge3/bin/:$PATH -## conda remove -n ${conda_env_name} --all -y -## conda create -n ${conda_env_name} python=3.12 -y -# source activate ${conda_env_name} -# -# sed -i "s/localhost/$ip_address/g" playwright.config.ts -# -## conda install -c conda-forge nodejs=22.6.0 -y -# npm install && npm ci && npx playwright install --with-deps -# node -v && npm -v && pip list -# -# exit_status=0 -# npx playwright test || exit_status=$? -# -# if [ $exit_status -ne 0 ]; then -# echo "[TEST INFO]: ---------frontend test failed---------" -# exit $exit_status -# else -# echo "[TEST INFO]: ---------frontend test passed---------" -# fi -#} - function stop_docker() { cd $WORKPATH/docker_compose/intel/hpu/gaudi docker compose -f compose.yaml stop && docker compose rm -f @@ -140,15 +108,26 @@ function stop_docker() { function main() { + echo "::group::stop_docker" stop_docker + echo "::endgroup::" + + echo "::group::build_docker_images" if [[ "$IMAGE_REPO" == "opea" ]]; then build_docker_images; fi + echo "::endgroup::" + + echo "::group::start_services" start_services + echo "::endgroup::" + echo "::group::validate_megaservice" validate_megaservice - # validate_frontend + echo "::endgroup::" + echo "::group::stop_docker" stop_docker - echo y | docker system prune + docker system prune -f + echo "::endgroup::" } diff --git a/AudioQnA/tests/test_compose_on_rocm.sh b/AudioQnA/tests/test_compose_on_rocm.sh index 94fe88925..117e92971 100644 --- a/AudioQnA/tests/test_compose_on_rocm.sh +++ b/AudioQnA/tests/test_compose_on_rocm.sh @@ -18,25 +18,18 @@ export PATH="~/miniconda3/bin:$PATH" function build_docker_images() { opea_branch=${opea_branch:-"main"} - # If the opea_branch isn't main, replace the git clone branch in Dockerfile. - if [[ "${opea_branch}" != "main" ]]; then - cd $WORKPATH - OLD_STRING="RUN git clone --depth 1 https://github.com/opea-project/GenAIComps.git" - NEW_STRING="RUN git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git" - find . -type f -name "Dockerfile*" | while read -r file; do - echo "Processing file: $file" - sed -i "s|$OLD_STRING|$NEW_STRING|g" "$file" - done - fi cd $WORKPATH/docker_image_build git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git + pushd GenAIComps + echo "GenAIComps test commit is $(git rev-parse HEAD)" + docker build --no-cache -t ${REGISTRY}/comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile . + popd && sleep 1s echo "Build all the images with --no-cache, check docker_image_build.log for details..." service_list="audioqna audioqna-ui whisper speecht5" docker compose -f build.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log - echo "docker pull ghcr.io/huggingface/text-generation-inference:2.4.1-rocm" - docker pull ghcr.io/huggingface/text-generation-inference:2.4.1-rocm + docker images && sleep 1s } @@ -56,8 +49,6 @@ function start_services() { export BACKEND_SERVICE_ENDPOINT=http://${ip_address}:3008/v1/audioqna - # sed -i "s/backend_address/$ip_address/g" $WORKPATH/ui/svelte/.env - # Start Docker Containers docker compose up -d > ${LOG_PATH}/start_services_with_compose.log n=0 @@ -88,32 +79,6 @@ function validate_megaservice() { } -#function validate_frontend() { -# Frontend tests are currently disabled -# cd $WORKPATH/ui/svelte -# local conda_env_name="OPEA_e2e" -# export PATH=${HOME}/miniforge3/bin/:$PATH -## conda remove -n ${conda_env_name} --all -y -## conda create -n ${conda_env_name} python=3.12 -y -# source activate ${conda_env_name} -# -# sed -i "s/localhost/$ip_address/g" playwright.config.ts -# -## conda install -c conda-forge nodejs -y -# npm install && npm ci && npx playwright install --with-deps -# node -v && npm -v && pip list -# -# exit_status=0 -# npx playwright test || exit_status=$? -# -# if [ $exit_status -ne 0 ]; then -# echo "[TEST INFO]: ---------frontend test failed---------" -# exit $exit_status -# else -# echo "[TEST INFO]: ---------frontend test passed---------" -# fi -#} - function stop_docker() { cd $WORKPATH/docker_compose/amd/gpu/rocm/ docker compose stop && docker compose rm -f @@ -121,16 +86,26 @@ function stop_docker() { function main() { + echo "::group::stop_docker" stop_docker + echo "::endgroup::" + + echo "::group::build_docker_images" if [[ "$IMAGE_REPO" == "opea" ]]; then build_docker_images; fi + echo "::endgroup::" + + echo "::group::start_services" start_services + echo "::endgroup::" + echo "::group::validate_megaservice" validate_megaservice - # Frontend tests are currently disabled - # validate_frontend + echo "::endgroup::" + echo "::group::stop_docker" stop_docker - echo y | docker system prune + docker system prune -f + echo "::endgroup::" } diff --git a/AudioQnA/tests/test_compose_on_xeon.sh b/AudioQnA/tests/test_compose_on_xeon.sh index cf135c948..8abda5502 100644 --- a/AudioQnA/tests/test_compose_on_xeon.sh +++ b/AudioQnA/tests/test_compose_on_xeon.sh @@ -17,19 +17,13 @@ ip_address=$(hostname -I | awk '{print $1}') function build_docker_images() { opea_branch=${opea_branch:-"main"} - # If the opea_branch isn't main, replace the git clone branch in Dockerfile. - if [[ "${opea_branch}" != "main" ]]; then - cd $WORKPATH - OLD_STRING="RUN git clone --depth 1 https://github.com/opea-project/GenAIComps.git" - NEW_STRING="RUN git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git" - find . -type f -name "Dockerfile*" | while read -r file; do - echo "Processing file: $file" - sed -i "s|$OLD_STRING|$NEW_STRING|g" "$file" - done - fi cd $WORKPATH/docker_image_build git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git + pushd GenAIComps + echo "GenAIComps test commit is $(git rev-parse HEAD)" + docker build --no-cache -t ${REGISTRY}/comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile . + popd && sleep 1s git clone https://github.com/vllm-project/vllm.git cd ./vllm/ @@ -95,31 +89,6 @@ function validate_megaservice() { } -#function validate_frontend() { -# cd $WORKPATH/ui/svelte -# local conda_env_name="OPEA_e2e" -# export PATH=${HOME}/miniforge3/bin/:$PATH -## conda remove -n ${conda_env_name} --all -y -## conda create -n ${conda_env_name} python=3.12 -y -# source activate ${conda_env_name} -# -# sed -i "s/localhost/$ip_address/g" playwright.config.ts -# -## conda install -c conda-forge nodejs=22.6.0 -y -# npm install && npm ci && npx playwright install --with-deps -# node -v && npm -v && pip list -# -# exit_status=0 -# npx playwright test || exit_status=$? -# -# if [ $exit_status -ne 0 ]; then -# echo "[TEST INFO]: ---------frontend test failed---------" -# exit $exit_status -# else -# echo "[TEST INFO]: ---------frontend test passed---------" -# fi -#} - function stop_docker() { cd $WORKPATH/docker_compose/intel/cpu/xeon/ docker compose -f compose.yaml stop && docker compose rm -f @@ -127,15 +96,26 @@ function stop_docker() { function main() { + echo "::group::stop_docker" stop_docker + echo "::endgroup::" + + echo "::group::build_docker_images" if [[ "$IMAGE_REPO" == "opea" ]]; then build_docker_images; fi + echo "::endgroup::" + + echo "::group::start_services" start_services + echo "::endgroup::" + echo "::group::validate_megaservice" validate_megaservice - # validate_frontend + echo "::endgroup::" + echo "::group::stop_docker" stop_docker - echo y | docker system prune + docker system prune -f + echo "::endgroup::" } diff --git a/AudioQnA/tests/test_compose_tgi_on_gaudi.sh b/AudioQnA/tests/test_compose_tgi_on_gaudi.sh index 5a046adfd..156dce92c 100644 --- a/AudioQnA/tests/test_compose_tgi_on_gaudi.sh +++ b/AudioQnA/tests/test_compose_tgi_on_gaudi.sh @@ -17,25 +17,18 @@ ip_address=$(hostname -I | awk '{print $1}') function build_docker_images() { opea_branch=${opea_branch:-"main"} - # If the opea_branch isn't main, replace the git clone branch in Dockerfile. - if [[ "${opea_branch}" != "main" ]]; then - cd $WORKPATH - OLD_STRING="RUN git clone --depth 1 https://github.com/opea-project/GenAIComps.git" - NEW_STRING="RUN git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git" - find . -type f -name "Dockerfile*" | while read -r file; do - echo "Processing file: $file" - sed -i "s|$OLD_STRING|$NEW_STRING|g" "$file" - done - fi cd $WORKPATH/docker_image_build git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git + pushd GenAIComps + echo "GenAIComps test commit is $(git rev-parse HEAD)" + docker build --no-cache -t ${REGISTRY}/comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile . + popd && sleep 1s echo "Build all the images with --no-cache, check docker_image_build.log for details..." service_list="audioqna audioqna-ui whisper-gaudi speecht5-gaudi" docker compose -f build.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log - docker pull ghcr.io/huggingface/tgi-gaudi:2.0.6 docker images && sleep 1s } @@ -55,7 +48,6 @@ function start_services() { export BACKEND_SERVICE_ENDPOINT=http://${ip_address}:3008/v1/audioqna export host_ip=${ip_address} - # sed -i "s/backend_address/$ip_address/g" $WORKPATH/ui/svelte/.env # Start Docker Containers docker compose -f compose_tgi.yaml up -d > ${LOG_PATH}/start_services_with_compose.log @@ -99,31 +91,6 @@ function validate_megaservice() { } -#function validate_frontend() { -# cd $WORKPATH/ui/svelte -# local conda_env_name="OPEA_e2e" -# export PATH=${HOME}/miniforge3/bin/:$PATH -## conda remove -n ${conda_env_name} --all -y -## conda create -n ${conda_env_name} python=3.12 -y -# source activate ${conda_env_name} -# -# sed -i "s/localhost/$ip_address/g" playwright.config.ts -# -## conda install -c conda-forge nodejs=22.6.0 -y -# npm install && npm ci && npx playwright install --with-deps -# node -v && npm -v && pip list -# -# exit_status=0 -# npx playwright test || exit_status=$? -# -# if [ $exit_status -ne 0 ]; then -# echo "[TEST INFO]: ---------frontend test failed---------" -# exit $exit_status -# else -# echo "[TEST INFO]: ---------frontend test passed---------" -# fi -#} - function stop_docker() { cd $WORKPATH/docker_compose/intel/hpu/gaudi docker compose -f compose_tgi.yaml stop && docker compose rm -f @@ -131,15 +98,26 @@ function stop_docker() { function main() { + echo "::group::stop_docker" stop_docker + echo "::endgroup::" + + echo "::group::build_docker_images" if [[ "$IMAGE_REPO" == "opea" ]]; then build_docker_images; fi + echo "::endgroup::" + + echo "::group::start_services" start_services + echo "::endgroup::" + echo "::group::validate_megaservice" validate_megaservice - # validate_frontend + echo "::endgroup::" + echo "::group::stop_docker" stop_docker - echo y | docker system prune + docker system prune -f + echo "::endgroup::" } diff --git a/AudioQnA/tests/test_compose_tgi_on_xeon.sh b/AudioQnA/tests/test_compose_tgi_on_xeon.sh index d735c87b9..319081812 100644 --- a/AudioQnA/tests/test_compose_tgi_on_xeon.sh +++ b/AudioQnA/tests/test_compose_tgi_on_xeon.sh @@ -17,25 +17,18 @@ ip_address=$(hostname -I | awk '{print $1}') function build_docker_images() { opea_branch=${opea_branch:-"main"} - # If the opea_branch isn't main, replace the git clone branch in Dockerfile. - if [[ "${opea_branch}" != "main" ]]; then - cd $WORKPATH - OLD_STRING="RUN git clone --depth 1 https://github.com/opea-project/GenAIComps.git" - NEW_STRING="RUN git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git" - find . -type f -name "Dockerfile*" | while read -r file; do - echo "Processing file: $file" - sed -i "s|$OLD_STRING|$NEW_STRING|g" "$file" - done - fi cd $WORKPATH/docker_image_build git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git + pushd GenAIComps + echo "GenAIComps test commit is $(git rev-parse HEAD)" + docker build --no-cache -t ${REGISTRY}/comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile . + popd && sleep 1s echo "Build all the images with --no-cache, check docker_image_build.log for details..." service_list="audioqna audioqna-ui whisper speecht5" docker compose -f build.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log - docker pull ghcr.io/huggingface/text-generation-inference:2.4.0-intel-cpu docker images && sleep 1s } @@ -56,8 +49,6 @@ function start_services() { export BACKEND_SERVICE_ENDPOINT=http://${ip_address}:3008/v1/audioqna export host_ip=${ip_address} - # sed -i "s/backend_address/$ip_address/g" $WORKPATH/ui/svelte/.env - # Start Docker Containers docker compose -f compose_tgi.yaml up -d > ${LOG_PATH}/start_services_with_compose.log n=0 @@ -90,31 +81,6 @@ function validate_megaservice() { } -#function validate_frontend() { -# cd $WORKPATH/ui/svelte -# local conda_env_name="OPEA_e2e" -# export PATH=${HOME}/miniforge3/bin/:$PATH -## conda remove -n ${conda_env_name} --all -y -## conda create -n ${conda_env_name} python=3.12 -y -# source activate ${conda_env_name} -# -# sed -i "s/localhost/$ip_address/g" playwright.config.ts -# -## conda install -c conda-forge nodejs=22.6.0 -y -# npm install && npm ci && npx playwright install --with-deps -# node -v && npm -v && pip list -# -# exit_status=0 -# npx playwright test || exit_status=$? -# -# if [ $exit_status -ne 0 ]; then -# echo "[TEST INFO]: ---------frontend test failed---------" -# exit $exit_status -# else -# echo "[TEST INFO]: ---------frontend test passed---------" -# fi -#} - function stop_docker() { cd $WORKPATH/docker_compose/intel/cpu/xeon/ docker compose -f compose_tgi.yaml stop && docker compose rm -f @@ -122,15 +88,26 @@ function stop_docker() { function main() { + echo "::group::stop_docker" stop_docker + echo "::endgroup::" + + echo "::group::build_docker_images" if [[ "$IMAGE_REPO" == "opea" ]]; then build_docker_images; fi + echo "::endgroup::" + + echo "::group::start_services" start_services + echo "::endgroup::" + echo "::group::validate_megaservice" validate_megaservice - # validate_frontend + echo "::endgroup::" + echo "::group::stop_docker" stop_docker - echo y | docker system prune + docker system prune -f + echo "::endgroup::" } diff --git a/AudioQnA/tests/test_compose_vllm_on_rocm.sh b/AudioQnA/tests/test_compose_vllm_on_rocm.sh index 29b402739..982bc74de 100644 --- a/AudioQnA/tests/test_compose_vllm_on_rocm.sh +++ b/AudioQnA/tests/test_compose_vllm_on_rocm.sh @@ -17,19 +17,13 @@ export PATH="~/miniconda3/bin:$PATH" function build_docker_images() { opea_branch=${opea_branch:-"main"} - # If the opea_branch isn't main, replace the git clone branch in Dockerfile. - if [[ "${opea_branch}" != "main" ]]; then - cd $WORKPATH - OLD_STRING="RUN git clone --depth 1 https://github.com/opea-project/GenAIComps.git" - NEW_STRING="RUN git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git" - find . -type f -name "Dockerfile*" | while read -r file; do - echo "Processing file: $file" - sed -i "s|$OLD_STRING|$NEW_STRING|g" "$file" - done - fi cd $WORKPATH/docker_image_build git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git + pushd GenAIComps + echo "GenAIComps test commit is $(git rev-parse HEAD)" + docker build --no-cache -t ${REGISTRY}/comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile . + popd && sleep 1s echo "Build all the images with --no-cache, check docker_image_build.log for details..." service_list="audioqna audioqna-ui whisper speecht5 vllm-rocm" @@ -92,32 +86,6 @@ function validate_megaservice() { } -#function validate_frontend() { -## Frontend tests are currently disabled -# cd $WORKPATH/ui/svelte -# local conda_env_name="OPEA_e2e" -# export PATH=${HOME}/miniforge3/bin/:$PATH -## conda remove -n ${conda_env_name} --all -y -## conda create -n ${conda_env_name} python=3.12 -y -# source activate ${conda_env_name} -# -# sed -i "s/localhost/$ip_address/g" playwright.config.ts -# -## conda install -c conda-forge nodejs -y -# npm install && npm ci && npx playwright install --with-deps -# node -v && npm -v && pip list -# -# exit_status=0 -# npx playwright test || exit_status=$? -# -# if [ $exit_status -ne 0 ]; then -# echo "[TEST INFO]: ---------frontend test failed---------" -# exit $exit_status -# else -# echo "[TEST INFO]: ---------frontend test passed---------" -# fi -#} - function stop_docker() { cd $WORKPATH/docker_compose/amd/gpu/rocm/ docker compose -f compose_vllm.yaml stop && docker compose -f compose_vllm.yaml rm -f @@ -125,16 +93,26 @@ function stop_docker() { function main() { + echo "::group::stop_docker" stop_docker + echo "::endgroup::" + + echo "::group::build_docker_images" if [[ "$IMAGE_REPO" == "opea" ]]; then build_docker_images; fi + echo "::endgroup::" + + echo "::group::start_services" start_services + echo "::endgroup::" + echo "::group::validate_megaservice" validate_megaservice - # Frontend tests are currently disabled - # validate_frontend + echo "::endgroup::" + echo "::group::stop_docker" stop_docker - echo y | docker system prune + docker system prune -f + echo "::endgroup::" } diff --git a/AudioQnA/tests/test_gmc_on_gaudi.sh b/AudioQnA/tests/test_gmc_on_gaudi.sh index 21f6f351b..abb5fdc7c 100755 --- a/AudioQnA/tests/test_gmc_on_gaudi.sh +++ b/AudioQnA/tests/test_gmc_on_gaudi.sh @@ -2,6 +2,8 @@ # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 +# ===== Deprecated ===== + set -xe USER_ID=$(whoami) LOG_PATH=/home/$(whoami)/logs diff --git a/AudioQnA/tests/test_gmc_on_xeon.sh b/AudioQnA/tests/test_gmc_on_xeon.sh index f4d961a7a..dd1754378 100755 --- a/AudioQnA/tests/test_gmc_on_xeon.sh +++ b/AudioQnA/tests/test_gmc_on_xeon.sh @@ -2,6 +2,8 @@ # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 +# ===== Deprecated ===== + set -xe USER_ID=$(whoami) LOG_PATH=/home/$(whoami)/logs