2024-10-28 20:05:06 -04:00
|
|
|
#/bin/bash
|
|
|
|
|
# if any of the commands fail, the script will exit
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
. ./common_scripts.sh
|
|
|
|
|
|
2024-10-30 17:54:51 -07:00
|
|
|
print_disk_usage
|
|
|
|
|
|
2025-12-23 18:37:58 -08:00
|
|
|
mkdir -p ~/plano_logs
|
|
|
|
|
touch ~/plano_logs/modelserver.log
|
2024-10-30 17:54:51 -07:00
|
|
|
|
2024-10-28 20:05:06 -04:00
|
|
|
print_debug() {
|
|
|
|
|
log "Received signal to stop"
|
|
|
|
|
log "Printing debug logs for docker"
|
|
|
|
|
log "===================================="
|
2024-11-26 13:13:02 -08:00
|
|
|
tail -n 100 ../build.log
|
2025-12-23 19:26:51 -08:00
|
|
|
planoai logs --debug | tail -n 100
|
2024-10-28 20:05:06 -04:00
|
|
|
}
|
|
|
|
|
|
2024-11-26 13:13:02 -08:00
|
|
|
trap 'print_debug' INT TERM ERR
|
2024-10-28 20:05:06 -04:00
|
|
|
|
|
|
|
|
log starting > ../build.log
|
|
|
|
|
|
2025-06-10 12:53:27 -07:00
|
|
|
log building and running function_calling demo
|
2024-10-30 17:54:51 -07:00
|
|
|
log ===========================================
|
2025-02-07 18:45:42 -08:00
|
|
|
cd ../../demos/samples_python/weather_forecast/
|
2024-11-07 22:11:00 -06:00
|
|
|
docker compose up weather_forecast_service --build -d
|
2024-10-28 20:05:06 -04:00
|
|
|
cd -
|
|
|
|
|
|
2025-12-23 18:37:58 -08:00
|
|
|
log building and installing plano cli
|
2024-10-30 17:54:51 -07:00
|
|
|
log ==================================
|
2025-12-25 14:55:29 -08:00
|
|
|
cd ../../cli
|
2025-12-26 11:21:42 -08:00
|
|
|
uv sync
|
|
|
|
|
uv tool install .
|
2024-10-30 17:54:51 -07:00
|
|
|
cd -
|
|
|
|
|
|
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
|
|
|
log building docker image for plano gateway
|
2024-10-30 17:54:51 -07:00
|
|
|
log ======================================
|
2024-12-20 13:25:01 -08:00
|
|
|
cd ../../
|
2025-12-23 19:26:51 -08:00
|
|
|
planoai build
|
2024-10-30 17:54:51 -07:00
|
|
|
cd -
|
|
|
|
|
|
2025-12-23 18:37:58 -08:00
|
|
|
# Once we build plano we have to install the dependencies again to a new virtual environment.
|
2025-12-26 11:21:42 -08:00
|
|
|
uv sync
|
2025-09-10 07:40:30 -07:00
|
|
|
|
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
|
|
|
log startup plano gateway with function calling demo
|
2024-12-20 13:25:01 -08:00
|
|
|
cd ../../
|
2025-12-23 19:26:51 -08:00
|
|
|
planoai down
|
|
|
|
|
planoai up demos/samples_python/weather_forecast/config.yaml
|
2024-10-28 20:05:06 -04:00
|
|
|
cd -
|
|
|
|
|
|
2025-09-16 11:12:08 -07:00
|
|
|
log running e2e tests for prompt gateway
|
|
|
|
|
log ====================================
|
2025-12-26 11:21:42 -08:00
|
|
|
uv run pytest test_prompt_gateway.py
|
2024-10-28 20:05:06 -04:00
|
|
|
|
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
|
|
|
log shutting down the plano gateway service for prompt_gateway demo
|
2025-09-16 11:12:08 -07:00
|
|
|
log ===============================================================
|
2025-12-23 19:26:51 -08:00
|
|
|
planoai down
|
2024-10-28 20:05:06 -04:00
|
|
|
|
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
|
|
|
log startup plano gateway with model alias routing demo
|
2025-09-16 11:12:08 -07:00
|
|
|
cd ../../
|
2025-12-23 19:26:51 -08:00
|
|
|
planoai up demos/use_cases/model_alias_routing/config_with_aliases.yaml
|
2025-09-16 11:12:08 -07:00
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
log running e2e tests for model alias routing
|
|
|
|
|
log ========================================
|
2025-12-26 11:21:42 -08:00
|
|
|
uv run pytest test_model_alias_routing.py
|
2025-09-16 11:12:08 -07:00
|
|
|
|
2025-12-03 14:58:26 -08:00
|
|
|
log running e2e tests for openai responses api client
|
|
|
|
|
log ========================================
|
2025-12-26 11:21:42 -08:00
|
|
|
uv run pytest test_openai_responses_api_client.py
|
2025-12-03 14:58:26 -08:00
|
|
|
|
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
|
|
|
log startup plano gateway with state storage for openai responses api client demo
|
2025-12-23 19:26:51 -08:00
|
|
|
planoai down
|
|
|
|
|
planoai up config_memory_state_v1_responses.yaml
|
2025-12-17 12:18:38 -08:00
|
|
|
|
|
|
|
|
log running e2e tests for openai responses api client
|
|
|
|
|
log ========================================
|
2025-12-26 11:21:42 -08:00
|
|
|
uv run pytest test_openai_responses_api_client_with_state.py
|
2025-12-17 12:18:38 -08:00
|
|
|
|
2024-11-07 22:11:00 -06:00
|
|
|
log shutting down the weather_forecast demo
|
2024-10-28 20:05:06 -04:00
|
|
|
log =======================================
|
2025-02-07 18:45:42 -08:00
|
|
|
cd ../../demos/samples_python/weather_forecast
|
2024-10-30 17:54:51 -07:00
|
|
|
docker compose down
|
2024-10-28 20:05:06 -04:00
|
|
|
cd -
|