diff --git a/.github/workflows/reuse-get-test-matrix.yml b/.github/workflows/reuse-get-test-matrix.yml index fae0e8b00..12f7ed835 100644 --- a/.github/workflows/reuse-get-test-matrix.yml +++ b/.github/workflows/reuse-get-test-matrix.yml @@ -64,7 +64,7 @@ jobs: run_hardware="" if [ $(printf '%s\n' "${changed_files[@]}" | grep ${example} | grep -c gaudi) != 0 ]; then run_hardware="gaudi"; fi if [ $(printf '%s\n' "${changed_files[@]}" | grep ${example} | grep -c xeon) != 0 ]; then run_hardware="xeon ${run_hardware}"; fi - if [ "$run_hardware" == "" ]; then run_hardware="xeon"; fi + if [ "$run_hardware" == "" ]; then run_hardware="gaudi"; fi for hw in ${run_hardware}; do if [ "$hw" == "gaudi" ] && [ "${{ inputs.gaudi_server_label }}" != "" ]; then run_matrix="${run_matrix}{\"example\":\"${example}\",\"hardware\":\"${{ inputs.gaudi_server_label }}\"}," diff --git a/AudioQnA/tests/test_audioqna_on_gaudi.sh b/AudioQnA/tests/test_audioqna_on_gaudi.sh index efbdfd80e..9de823436 100644 --- a/AudioQnA/tests/test_audioqna_on_gaudi.sh +++ b/AudioQnA/tests/test_audioqna_on_gaudi.sh @@ -85,29 +85,30 @@ function validate_megaservice() { } -# function validate_frontend() { -# cd $WORKPATH/docker/ui/svelte -# local conda_env_name="ChatQnA_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 validate_frontend() { +# cd $WORKPATH/docker/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/gaudi diff --git a/AudioQnA/tests/test_audioqna_on_xeon.sh b/AudioQnA/tests/test_audioqna_on_xeon.sh index b95b47c5d..3695cdbd4 100644 --- a/AudioQnA/tests/test_audioqna_on_xeon.sh +++ b/AudioQnA/tests/test_audioqna_on_xeon.sh @@ -81,30 +81,30 @@ function validate_megaservice() { } -# function validate_frontend() { -# cd $WORKPATH/docker/ui/svelte -# local conda_env_name="ChatQnA_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 validate_frontend() { +# cd $WORKPATH/docker/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/xeon diff --git a/ChatQnA/tests/test_chatqna_on_gaudi.sh b/ChatQnA/tests/test_chatqna_on_gaudi.sh index 3467f36ae..5c6bf1114 100644 --- a/ChatQnA/tests/test_chatqna_on_gaudi.sh +++ b/ChatQnA/tests/test_chatqna_on_gaudi.sh @@ -185,15 +185,16 @@ function validate_megaservice() { function validate_frontend() { cd $WORKPATH/docker/ui/svelte - local conda_env_name="ChatQnA_e2e" + 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 +# 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 +# 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 diff --git a/ChatQnA/tests/test_chatqna_on_xeon.sh b/ChatQnA/tests/test_chatqna_on_xeon.sh index 29946fabb..5ec9d2ced 100644 --- a/ChatQnA/tests/test_chatqna_on_xeon.sh +++ b/ChatQnA/tests/test_chatqna_on_xeon.sh @@ -178,15 +178,16 @@ function validate_megaservice() { function validate_frontend() { cd $WORKPATH/docker/ui/svelte - local conda_env_name="ChatQnA_e2e" + 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 +# 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 +# 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 @@ -198,7 +199,6 @@ function validate_frontend() { else echo "[TEST INFO]: ---------frontend test passed---------" fi - } function stop_docker() { diff --git a/CodeGen/tests/test_codegen_on_gaudi.sh b/CodeGen/tests/test_codegen_on_gaudi.sh index ad06ca889..d5c20c847 100644 --- a/CodeGen/tests/test_codegen_on_gaudi.sh +++ b/CodeGen/tests/test_codegen_on_gaudi.sh @@ -112,15 +112,16 @@ function validate_megaservice() { function validate_frontend() { cd $WORKPATH/docker/ui/svelte - local conda_env_name="CodeGen_e2e" + 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 +# 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 +# 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 @@ -132,7 +133,6 @@ function validate_frontend() { else echo "[TEST INFO]: ---------frontend test passed---------" fi - } function stop_docker() { diff --git a/CodeGen/tests/test_codegen_on_xeon.sh b/CodeGen/tests/test_codegen_on_xeon.sh index 62f36eb92..2f8729ee4 100644 --- a/CodeGen/tests/test_codegen_on_xeon.sh +++ b/CodeGen/tests/test_codegen_on_xeon.sh @@ -110,15 +110,16 @@ function validate_megaservice() { function validate_frontend() { cd $WORKPATH/docker/ui/svelte - local conda_env_name="CodeGen_e2e" + 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 +# 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 +# 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 @@ -130,7 +131,6 @@ function validate_frontend() { else echo "[TEST INFO]: ---------frontend test passed---------" fi - } diff --git a/CodeTrans/tests/test_codetrans_on_gaudi.sh b/CodeTrans/tests/test_codetrans_on_gaudi.sh index 7b69e8649..077095f90 100644 --- a/CodeTrans/tests/test_codetrans_on_gaudi.sh +++ b/CodeTrans/tests/test_codetrans_on_gaudi.sh @@ -112,15 +112,16 @@ function validate_megaservice() { function validate_frontend() { cd $WORKPATH/docker/ui/svelte - local conda_env_name="CodeTrans_e2e" + 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 +# 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 +# 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 diff --git a/CodeTrans/tests/test_codetrans_on_xeon.sh b/CodeTrans/tests/test_codetrans_on_xeon.sh index 6d652217f..dc4e0956e 100644 --- a/CodeTrans/tests/test_codetrans_on_xeon.sh +++ b/CodeTrans/tests/test_codetrans_on_xeon.sh @@ -111,15 +111,16 @@ function validate_megaservice() { function validate_frontend() { cd $WORKPATH/docker/ui/svelte - local conda_env_name="CodeTrans_e2e" + 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 +# 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 +# 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 @@ -131,7 +132,6 @@ function validate_frontend() { else echo "[TEST INFO]: ---------frontend test passed---------" fi - } function stop_docker() { diff --git a/DocSum/tests/test_docsum_on_gaudi.sh b/DocSum/tests/test_docsum_on_gaudi.sh index 4c499bab3..a1094a454 100644 --- a/DocSum/tests/test_docsum_on_gaudi.sh +++ b/DocSum/tests/test_docsum_on_gaudi.sh @@ -112,15 +112,16 @@ function validate_megaservice() { function validate_frontend() { cd $WORKPATH/docker/ui/svelte - local conda_env_name="DocSum_e2e" + 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 +# 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 +# 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 @@ -132,7 +133,6 @@ function validate_frontend() { else echo "[TEST INFO]: ---------frontend test passed---------" fi - } function stop_docker() { diff --git a/DocSum/tests/test_docsum_on_xeon.sh b/DocSum/tests/test_docsum_on_xeon.sh index f3cb19268..5d7a6a623 100644 --- a/DocSum/tests/test_docsum_on_xeon.sh +++ b/DocSum/tests/test_docsum_on_xeon.sh @@ -110,15 +110,16 @@ function validate_megaservice() { function validate_frontend() { cd $WORKPATH/docker/ui/svelte - local conda_env_name="DocSum_e2e" + 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 +# 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 +# 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 @@ -130,7 +131,6 @@ function validate_frontend() { else echo "[TEST INFO]: ---------frontend test passed---------" fi - } function stop_docker() { diff --git a/SearchQnA/tests/test_searchqna_on_gaudi.sh b/SearchQnA/tests/test_searchqna_on_gaudi.sh index bf91bc183..6f0109b31 100644 --- a/SearchQnA/tests/test_searchqna_on_gaudi.sh +++ b/SearchQnA/tests/test_searchqna_on_gaudi.sh @@ -95,30 +95,30 @@ function validate_megaservice() { } -# function validate_frontend() { -# cd $WORKPATH/docker/ui/svelte -# local conda_env_name="ChatQnA_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 validate_frontend() { +# cd $WORKPATH/docker/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/gaudi diff --git a/SearchQnA/tests/test_searchqna_on_xeon.sh b/SearchQnA/tests/test_searchqna_on_xeon.sh index 634ad86c6..c068d4d20 100644 --- a/SearchQnA/tests/test_searchqna_on_xeon.sh +++ b/SearchQnA/tests/test_searchqna_on_xeon.sh @@ -89,30 +89,30 @@ function validate_megaservice() { } -# function validate_frontend() { -# cd $WORKPATH/docker/ui/svelte -# local conda_env_name="ChatQnA_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 validate_frontend() { +# cd $WORKPATH/docker/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/xeon diff --git a/Translation/tests/test_translation_on_gaudi.sh b/Translation/tests/test_translation_on_gaudi.sh index de33a4f63..aa4215a2a 100644 --- a/Translation/tests/test_translation_on_gaudi.sh +++ b/Translation/tests/test_translation_on_gaudi.sh @@ -105,15 +105,16 @@ function validate_megaservice() { function validate_frontend() { cd $WORKPATH/docker/ui/svelte - local conda_env_name="Translation_e2e" + 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 +# 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 +# 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 @@ -125,7 +126,6 @@ function validate_frontend() { else echo "[TEST INFO]: ---------frontend test passed---------" fi - } function stop_docker() { diff --git a/Translation/tests/test_translation_on_xeon.sh b/Translation/tests/test_translation_on_xeon.sh index 809bd1c06..a8cfeef69 100644 --- a/Translation/tests/test_translation_on_xeon.sh +++ b/Translation/tests/test_translation_on_xeon.sh @@ -92,15 +92,16 @@ function validate_megaservice() { function validate_frontend() { cd $WORKPATH/docker/ui/svelte - local conda_env_name="Translation_e2e" + 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 +# 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 +# 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 @@ -112,7 +113,6 @@ function validate_frontend() { else echo "[TEST INFO]: ---------frontend test passed---------" fi - } function stop_docker() {