Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/_run-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ jobs:
run_test_cases=$other_test_cases
fi

if [[ "${{ hardware }}" == "xeon"* ]]; then
if [ -f "${{ github.workspace }}/${{ inputs.example }}/tests/test_ui_on_xeon.sh" ]; then
run_test_cases="$run_test_cases test_ui_on_xeon.sh";
fi
fi
test_cases=$(echo $run_test_cases | tr ' ' '\n' | sort -u | jq -R '.' | jq -sc '.')
echo "test_cases=$test_cases"
echo "test_cases=$test_cases" >> $GITHUB_OUTPUT
Expand Down
35 changes: 0 additions & 35 deletions ChatQnA/tests/test_compose_faqgen_on_epyc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,37 +196,6 @@ function validate_megaservice() {

}

function validate_frontend() {
cd $WORKPATH/ui/svelte
local conda_env_name="OPEA_e2e"
export PATH=${HOME}/miniforge3/bin/:$PATH
if conda info --envs | grep -q "$conda_env_name"; then
echo "$conda_env_name exist!"
else
conda create -n ${conda_env_name} python=3.12 -y
fi
CONDA_ROOT=$(conda info --base)
source "${CONDA_ROOT}/etc/profile.d/conda.sh"
conda 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
npm install && npm ci && npx playwright install
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/cpu/epyc
docker compose -f compose_faqgen.yaml down
Expand Down Expand Up @@ -254,10 +223,6 @@ function main() {
validate_megaservice
echo "::endgroup::"

echo "::group::validate_frontend"
validate_frontend
echo "::endgroup::"

echo "::group::stop_docker"
stop_docker
echo "::endgroup::"
Expand Down
32 changes: 0 additions & 32 deletions ChatQnA/tests/test_compose_faqgen_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,34 +185,6 @@ function validate_megaservice() {

}

function validate_frontend() {
cd $WORKPATH/ui/svelte
local conda_env_name="OPEA_e2e"
export PATH=${HOME}/miniforge3/bin/:$PATH
if conda info --envs | grep -q "$conda_env_name"; then
echo "$conda_env_name exist!"
else
conda create -n ${conda_env_name} python=3.12 -y
fi
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_faqgen.yaml down
Expand Down Expand Up @@ -240,10 +212,6 @@ function main() {
validate_megaservice
echo "::endgroup::"

echo "::group::validate_frontend"
validate_frontend
echo "::endgroup::"

echo "::group::stop_docker"
stop_docker
echo "::endgroup::"
Expand Down
34 changes: 0 additions & 34 deletions ChatQnA/tests/test_compose_faqgen_on_rocm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,36 +163,6 @@ function validate_megaservice() {

}

function validate_frontend() {
echo "[ TEST INFO ]: --------- frontend test started ---------"
cd "$WORKPATH"/ui/svelte
local conda_env_name="OPEA_e2e"
export PATH=${HOME}/miniconda3/bin/:$PATH
if conda info --envs | grep -q "$conda_env_name"; then
echo "$conda_env_name exist!"
else
conda create -n ${conda_env_name} python=3.12 -y
fi
source activate ${conda_env_name}
echo "[ TEST INFO ]: --------- conda env activated ---------"

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/amd/gpu/rocm
docker compose -f compose_faqgen.yaml stop && docker compose rm -f
Expand Down Expand Up @@ -220,10 +190,6 @@ function main() {
validate_megaservice
echo "::endgroup::"

echo "::group::validate_frontend"
validate_frontend
echo "::endgroup::"

echo "::group::stop_docker"
stop_docker
echo "::endgroup::"
Expand Down
32 changes: 0 additions & 32 deletions ChatQnA/tests/test_compose_faqgen_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,34 +194,6 @@ function validate_megaservice() {

}

function validate_frontend() {
cd $WORKPATH/ui/svelte
local conda_env_name="OPEA_e2e"
export PATH=${HOME}/miniforge3/bin/:$PATH
if conda info --envs | grep -q "$conda_env_name"; then
echo "$conda_env_name exist!"
else
conda create -n ${conda_env_name} python=3.12 -y
fi
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_faqgen.yaml down
Expand Down Expand Up @@ -249,10 +221,6 @@ function main() {
validate_megaservice
echo "::endgroup::"

echo "::group::validate_frontend"
validate_frontend
echo "::endgroup::"

echo "::group::stop_docker"
stop_docker
echo "::endgroup::"
Expand Down
35 changes: 0 additions & 35 deletions ChatQnA/tests/test_compose_faqgen_tgi_on_epyc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,37 +196,6 @@ function validate_megaservice() {

}

function validate_frontend() {
cd $WORKPATH/ui/svelte
local conda_env_name="OPEA_e2e"
export PATH=${HOME}/miniforge3/bin/:$PATH
if conda info --envs | grep -q "$conda_env_name"; then
echo "$conda_env_name exist!"
else
conda create -n ${conda_env_name} python=3.12 -y
fi
CONDA_ROOT=$(conda info --base)
source "${CONDA_ROOT}/etc/profile.d/conda.sh"
conda 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
npm install && npm ci && npx playwright install
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/cpu/epyc
docker compose -f compose_faqgen_tgi.yaml down
Expand Down Expand Up @@ -254,10 +223,6 @@ function main() {
validate_megaservice
echo "::endgroup::"

echo "::group::validate_frontend"
validate_frontend
echo "::endgroup::"

echo "::group::stop_docker"
stop_docker
echo "::endgroup::"
Expand Down
32 changes: 0 additions & 32 deletions ChatQnA/tests/test_compose_faqgen_tgi_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,34 +186,6 @@ function validate_megaservice() {

}

function validate_frontend() {
cd $WORKPATH/ui/svelte
local conda_env_name="OPEA_e2e"
export PATH=${HOME}/miniforge3/bin/:$PATH
if conda info --envs | grep -q "$conda_env_name"; then
echo "$conda_env_name exist!"
else
conda create -n ${conda_env_name} python=3.12 -y
fi
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_faqgen_tgi.yaml down
Expand Down Expand Up @@ -241,10 +213,6 @@ function main() {
validate_megaservice
echo "::endgroup::"

echo "::group::validate_frontend"
validate_frontend
echo "::endgroup::"

echo "::group::stop_docker"
stop_docker
echo "::endgroup::"
Expand Down
32 changes: 0 additions & 32 deletions ChatQnA/tests/test_compose_faqgen_tgi_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,34 +198,6 @@ function validate_megaservice() {

}

function validate_frontend() {
cd $WORKPATH/ui/svelte
local conda_env_name="OPEA_e2e"
export PATH=${HOME}/miniforge3/bin/:$PATH
if conda info --envs | grep -q "$conda_env_name"; then
echo "$conda_env_name exist!"
else
conda create -n ${conda_env_name} python=3.12 -y
fi
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_faqgen_tgi.yaml down
Expand Down Expand Up @@ -253,10 +225,6 @@ function main() {
validate_megaservice
echo "::endgroup::"

echo "::group::validate_frontend"
validate_frontend
echo "::endgroup::"

echo "::group::stop_docker"
stop_docker
echo "::endgroup::"
Expand Down
33 changes: 0 additions & 33 deletions ChatQnA/tests/test_compose_faqgen_vllm_on_rocm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,35 +138,6 @@ function validate_megaservice() {

}

function validate_frontend() {
cd $WORKPATH/ui/svelte
local conda_env_name="OPEA_e2e"
export PATH=${HOME}/miniconda3/bin/:$PATH
if conda info --envs | grep -q "$conda_env_name"; then
echo "$conda_env_name exist!"
else
conda create -n ${conda_env_name} python=3.12 -y
fi

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/amd/gpu/rocm
docker compose -f compose_vllm.yaml down
Expand Down Expand Up @@ -194,10 +165,6 @@ function main() {
validate_megaservice
echo "::endgroup::"

echo "::group::validate_frontend"
validate_frontend
echo "::endgroup::"

echo "::group::stop_docker"
stop_docker
echo "::endgroup::"
Expand Down
Loading