plano/e2e_tests/run_e2e_tests.sh

53 lines
1.1 KiB
Bash
Raw Normal View History

2024-10-26 15:32:46 -07:00
#/bin/bash
2024-10-26 14:14:10 -07:00
# if any of the commands fail, the script will exit
set -e
2024-10-26 14:21:53 -07:00
pwd
2024-10-26 14:23:05 -07:00
2024-10-26 14:23:54 -07:00
. ./common_scripts.sh
2024-10-26 14:14:10 -07:00
log building function_callling demo
2024-10-26 15:19:29 -07:00
log ===============================
2024-10-26 14:29:46 -07:00
cd ../demos/function_calling
2024-10-26 14:14:10 -07:00
docker compose build
log starting the function_calling demo
docker compose up -d
2024-10-26 14:29:46 -07:00
cd -
2024-10-26 14:14:10 -07:00
log building model server
2024-10-26 15:19:29 -07:00
log =====================
2024-10-26 14:29:46 -07:00
cd ../model_server
2024-10-26 14:14:10 -07:00
poetry install
log starting model server
2024-10-26 14:34:12 -07:00
poetry run archgw_modelserver restart
2024-10-26 14:29:46 -07:00
cd -
2024-10-26 14:14:10 -07:00
2024-10-26 15:21:46 -07:00
log building llm and prompt gateway rust modules
log ============================================
cd ../arch
sh build_filter_image.sh
log starting the arch gateway service
2024-10-26 15:30:05 -07:00
log =================================
2024-10-26 15:21:46 -07:00
docker compose -f docker-compose.yaml down
2024-10-26 15:44:06 -07:00
docker compose -f docker-compose.yaml up -d
2024-10-26 15:21:46 -07:00
wait_for_healthz "http://localhost:10000/healthz" 60
cd -
2024-10-26 14:14:10 -07:00
log running e2e tests
2024-10-26 15:19:29 -07:00
log =================
2024-10-26 14:14:10 -07:00
poetry install
poetry run pytest
log shutting down the arch gateway service
2024-10-26 15:19:29 -07:00
log ======================================
2024-10-26 14:29:46 -07:00
cd ../arch
2024-10-26 15:10:48 -07:00
docker compose -f docker-compose.yaml stop
2024-10-26 14:29:46 -07:00
cd -
2024-10-26 14:14:10 -07:00
log shutting down the function_calling demo
2024-10-26 15:19:29 -07:00
log =======================================
2024-10-26 14:29:46 -07:00
cd ../demos/function_calling
2024-10-26 14:14:10 -07:00
docker compose down
2024-10-26 14:29:46 -07:00
cd -