solution for the conda-forge not available issue (#341)

Signed-off-by: chensuyue <suyue.chen@intel.com>
This commit is contained in:
chen, suyue
2024-06-28 17:55:11 +08:00
committed by GitHub
parent 7dd0506e08
commit 84a91bb990
15 changed files with 147 additions and 144 deletions

View File

@@ -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 }}\"},"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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
}

View File

@@ -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

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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

View File

@@ -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

View File

@@ -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() {

View File

@@ -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() {