plano/tests/e2e/run_e2e_tests.sh
Adil Hafeez 02a76c53b0
Rename all arch references to plano across the codebase
Complete rebrand from "Arch"/"archgw" to "Plano" including:
- Config files: arch_config_schema.yaml, workflow, demo configs
- Environment variables: ARCH_CONFIG_* → PLANO_CONFIG_*
- Python CLI: variables, functions, file paths, docker mounts
- Rust crates: config paths, log messages, metadata keys
- Docker/build: Dockerfile, supervisord, .dockerignore, .gitignore
- Docker Compose: volume mounts and env vars across all demos/tests
- GitHub workflows: job/step names
- Shell scripts: log messages
- Demos: Python code, READMEs, VS Code configs, Grafana dashboard
- Docs: RST includes, code comments, config references
- Package metadata: package.json, pyproject.toml, uv.lock

External URLs (docs.archgw.com, github.com/katanemo/archgw) left as-is.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 20:15:37 -08:00

85 lines
2.2 KiB
Bash

#/bin/bash
# if any of the commands fail, the script will exit
set -e
. ./common_scripts.sh
print_disk_usage
mkdir -p ~/plano_logs
touch ~/plano_logs/modelserver.log
print_debug() {
log "Received signal to stop"
log "Printing debug logs for docker"
log "===================================="
tail -n 100 ../build.log
planoai logs --debug | tail -n 100
}
trap 'print_debug' INT TERM ERR
log starting > ../build.log
log building and running function_calling demo
log ===========================================
cd ../../demos/samples_python/weather_forecast/
docker compose up weather_forecast_service --build -d
cd -
log building and installing plano cli
log ==================================
cd ../../cli
uv sync
uv tool install .
cd -
log building docker image for plano gateway
log ======================================
cd ../../
planoai build
cd -
# Once we build plano we have to install the dependencies again to a new virtual environment.
uv sync
log startup plano gateway with function calling demo
cd ../../
planoai down
planoai up demos/samples_python/weather_forecast/config.yaml
cd -
log running e2e tests for prompt gateway
log ====================================
uv run pytest test_prompt_gateway.py
log shutting down the plano gateway service for prompt_gateway demo
log ===============================================================
planoai down
log startup plano gateway with model alias routing demo
cd ../../
planoai up demos/use_cases/model_alias_routing/config_with_aliases.yaml
cd -
log running e2e tests for model alias routing
log ========================================
uv run pytest test_model_alias_routing.py
log running e2e tests for openai responses api client
log ========================================
uv run pytest test_openai_responses_api_client.py
log startup plano gateway with state storage for openai responses api client demo
planoai down
planoai up config_memory_state_v1_responses.yaml
log running e2e tests for openai responses api client
log ========================================
uv run pytest test_openai_responses_api_client_with_state.py
log shutting down the weather_forecast demo
log =======================================
cd ../../demos/samples_python/weather_forecast
docker compose down
cd -