add --docker flag to E2E tests and demo scripts

This commit is contained in:
Adil Hafeez 2026-03-03 15:08:50 -08:00
parent 9d223d54f9
commit 53d11ae235
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
14 changed files with 35 additions and 35 deletions

View file

@ -20,7 +20,7 @@ start_demo() {
# Step 3: Start Plano # Step 3: Start Plano
echo "Starting Plano with config.yaml..." echo "Starting Plano with config.yaml..."
planoai up config.yaml planoai up --docker config.yaml
# Step 4: Start developer services # Step 4: Start developer services
echo "Starting Network Agent using Docker Compose..." echo "Starting Network Agent using Docker Compose..."
@ -35,7 +35,7 @@ stop_demo() {
# Step 2: Stop Plano # Step 2: Stop Plano
echo "Stopping Plano..." echo "Stopping Plano..."
planoai down planoai down --docker
} }
# Main script logic # Main script logic

View file

@ -19,7 +19,7 @@ start_demo() {
# Step 3: Start Plano # Step 3: Start Plano
echo "Starting Plano with arch_config_with_aliases.yaml..." echo "Starting Plano with arch_config_with_aliases.yaml..."
planoai up arch_config_with_aliases.yaml planoai up --docker arch_config_with_aliases.yaml
echo "\n\nPlano started successfully." echo "\n\nPlano started successfully."
echo "Please run the following command to test the setup: python bench.py\n" echo "Please run the following command to test the setup: python bench.py\n"
@ -29,7 +29,7 @@ start_demo() {
stop_demo() { stop_demo() {
# Step 2: Stop Plano # Step 2: Stop Plano
echo "Stopping Plano..." echo "Stopping Plano..."
planoai down planoai down --docker
} }
# Main script logic # Main script logic

View file

@ -20,7 +20,7 @@ start_demo() {
# Step 3: Start Plano # Step 3: Start Plano
echo "Starting Plano with config.yaml..." echo "Starting Plano with config.yaml..."
planoai up config.yaml planoai up --docker config.yaml
# Step 4: Start Network Agent # Step 4: Start Network Agent
echo "Starting HR Agent using Docker Compose..." echo "Starting HR Agent using Docker Compose..."
@ -35,7 +35,7 @@ stop_demo() {
# Step 2: Stop Plano # Step 2: Stop Plano
echo "Stopping Plano..." echo "Stopping Plano..."
planoai down planoai down --docker
} }
# Main script logic # Main script logic

View file

@ -20,7 +20,7 @@ start_demo() {
# Step 3: Start Plano # Step 3: Start Plano
echo "Starting Plano with config.yaml..." echo "Starting Plano with config.yaml..."
planoai up config.yaml planoai up --docker config.yaml
# Step 4: Start developer services # Step 4: Start developer services
echo "Starting Network Agent using Docker Compose..." echo "Starting Network Agent using Docker Compose..."
@ -35,7 +35,7 @@ stop_demo() {
# Step 2: Stop Plano # Step 2: Stop Plano
echo "Stopping Plano..." echo "Stopping Plano..."
planoai down planoai down --docker
} }
# Main script logic # Main script logic

View file

@ -20,7 +20,7 @@ start_demo() {
# Step 3: Start Plano # Step 3: Start Plano
echo "Starting Plano with config.yaml..." echo "Starting Plano with config.yaml..."
planoai up config.yaml planoai up --docker config.yaml
# Step 4: Start LLM Routing # Step 4: Start LLM Routing
echo "Starting LLM Routing using Docker Compose..." echo "Starting LLM Routing using Docker Compose..."
@ -35,7 +35,7 @@ stop_demo() {
# Step 2: Stop Plano # Step 2: Stop Plano
echo "Stopping Plano..." echo "Stopping Plano..."
planoai down planoai down --docker
} }
# Main script logic # Main script logic

View file

@ -74,7 +74,7 @@ start_demo() {
# Step 4: Start Plano # Step 4: Start Plano
echo "Starting Plano with config.yaml..." echo "Starting Plano with config.yaml..."
planoai up config.yaml planoai up --docker config.yaml
# Step 5: Start Network Agent with the chosen Docker Compose file # Step 5: Start Network Agent with the chosen Docker Compose file
echo "Starting Network Agent with $COMPOSE_FILE..." echo "Starting Network Agent with $COMPOSE_FILE..."
@ -93,7 +93,7 @@ stop_demo() {
# Stop Plano # Stop Plano
echo "Stopping Plano..." echo "Stopping Plano..."
planoai down planoai down --docker
} }
# Main script logic # Main script logic

View file

@ -20,7 +20,7 @@ start_demo() {
# Step 3: Start Plano # Step 3: Start Plano
echo "Starting Plano with config.yaml..." echo "Starting Plano with config.yaml..."
planoai up config.yaml planoai up --docker config.yaml
# Step 4: Start developer services # Step 4: Start developer services
echo "Starting Network Agent using Docker Compose..." echo "Starting Network Agent using Docker Compose..."
@ -35,7 +35,7 @@ stop_demo() {
# Step 2: Stop Plano # Step 2: Stop Plano
echo "Stopping Plano..." echo "Stopping Plano..."
planoai down planoai down --docker
} }
# Main script logic # Main script logic

View file

@ -20,7 +20,7 @@ start_demo() {
# Step 3: Start Plano # Step 3: Start Plano
echo "Starting Plano with config.yaml..." echo "Starting Plano with config.yaml..."
planoai up config.yaml planoai up --docker config.yaml
# Step 4: Start developer services # Step 4: Start developer services
echo "Starting Network Agent using Docker Compose..." echo "Starting Network Agent using Docker Compose..."
@ -35,7 +35,7 @@ stop_demo() {
# Step 2: Stop Plano # Step 2: Stop Plano
echo "Stopping Plano..." echo "Stopping Plano..."
planoai down planoai down --docker
} }
# Main script logic # Main script logic

View file

@ -26,7 +26,7 @@ start_demo() {
# Step 3: Start Plano # Step 3: Start Plano
echo "Starting Plano with arch_config_with_aliases.yaml..." echo "Starting Plano with arch_config_with_aliases.yaml..."
planoai up arch_config_with_aliases.yaml planoai up --docker arch_config_with_aliases.yaml
echo "\n\nPlano started successfully." echo "\n\nPlano started successfully."
echo "Please run the following CURL command to test model alias routing. Additional instructions are in the README.md file. \n" echo "Please run the following CURL command to test model alias routing. Additional instructions are in the README.md file. \n"
@ -48,7 +48,7 @@ start_demo() {
stop_demo() { stop_demo() {
# Step 2: Stop Plano # Step 2: Stop Plano
echo "Stopping Plano..." echo "Stopping Plano..."
planoai down planoai down --docker
} }
# Main script logic # Main script logic

View file

@ -21,7 +21,7 @@ do
echo "****************************************" echo "****************************************"
cd ../../$demo cd ../../$demo
echo "starting plano" echo "starting plano"
planoai up config.yaml planoai up --docker config.yaml
echo "starting docker containers" echo "starting docker containers"
# only execute docker compose if demo is llm_routing/preference_based_routing # only execute docker compose if demo is llm_routing/preference_based_routing
if [ "$demo" == "llm_routing/preference_based_routing" ]; then if [ "$demo" == "llm_routing/preference_based_routing" ]; then
@ -38,7 +38,7 @@ do
exit 1 exit 1
fi fi
echo "stopping docker containers and plano" echo "stopping docker containers and plano"
planoai down planoai down --docker
docker compose down -v docker compose down -v
cd ../../shared/test_runner cd ../../shared/test_runner
done done

View file

@ -45,8 +45,8 @@ uv sync
log startup plano gateway with function calling demo log startup plano gateway with function calling demo
cd ../../ cd ../../
planoai down planoai down --docker
planoai up demos/getting_started/weather_forecast/config.yaml planoai up --docker demos/getting_started/weather_forecast/config.yaml
cd - cd -
log running e2e tests for prompt gateway log running e2e tests for prompt gateway
@ -55,11 +55,11 @@ uv run pytest test_prompt_gateway.py
log shutting down the plano gateway service for prompt_gateway demo log shutting down the plano gateway service for prompt_gateway demo
log =============================================================== log ===============================================================
planoai down planoai down --docker
log startup plano gateway with model alias routing demo log startup plano gateway with model alias routing demo
cd ../../ cd ../../
planoai up demos/llm_routing/model_alias_routing/config_with_aliases.yaml planoai up --docker demos/llm_routing/model_alias_routing/config_with_aliases.yaml
cd - cd -
log running e2e tests for model alias routing log running e2e tests for model alias routing
@ -71,8 +71,8 @@ log ========================================
uv run pytest test_openai_responses_api_client.py uv run pytest test_openai_responses_api_client.py
log startup plano gateway with state storage for openai responses api client demo log startup plano gateway with state storage for openai responses api client demo
planoai down planoai down --docker
planoai up config_memory_state_v1_responses.yaml planoai up --docker config_memory_state_v1_responses.yaml
log running e2e tests for openai responses api client log running e2e tests for openai responses api client
log ======================================== log ========================================

View file

@ -36,8 +36,8 @@ uv sync
# Start gateway with model alias routing config # Start gateway with model alias routing config
log "startup plano gateway with model alias routing demo" log "startup plano gateway with model alias routing demo"
cd ../../ cd ../../
planoai down || true planoai down --docker || true
planoai up demos/llm_routing/model_alias_routing/config_with_aliases.yaml planoai up --docker demos/llm_routing/model_alias_routing/config_with_aliases.yaml
cd - cd -
# Run both test suites that share this config in a single pytest invocation # Run both test suites that share this config in a single pytest invocation
@ -46,4 +46,4 @@ uv run pytest -n auto test_model_alias_routing.py test_openai_responses_api_clie
# Cleanup # Cleanup
log "shutting down" log "shutting down"
planoai down || true planoai down --docker || true

View file

@ -41,8 +41,8 @@ cd -
# Start gateway with prompt_gateway config # Start gateway with prompt_gateway config
log "startup plano gateway with function calling demo" log "startup plano gateway with function calling demo"
cd ../../ cd ../../
planoai down || true planoai down --docker || true
planoai up demos/getting_started/weather_forecast/config.yaml planoai up --docker demos/getting_started/weather_forecast/config.yaml
cd - cd -
# Run tests # Run tests
@ -51,7 +51,7 @@ uv run pytest test_prompt_gateway.py
# Cleanup # Cleanup
log "shutting down" log "shutting down"
planoai down || true planoai down --docker || true
cd ../../demos/getting_started/weather_forecast cd ../../demos/getting_started/weather_forecast
docker compose down docker compose down
cd - cd -

View file

@ -35,8 +35,8 @@ uv sync
# Start gateway with state storage config # Start gateway with state storage config
log "startup plano gateway with state storage config" log "startup plano gateway with state storage config"
cd ../../ cd ../../
planoai down || true planoai down --docker || true
planoai up tests/e2e/config_memory_state_v1_responses.yaml planoai up --docker tests/e2e/config_memory_state_v1_responses.yaml
cd - cd -
# Run tests # Run tests
@ -45,4 +45,4 @@ uv run pytest test_openai_responses_api_client_with_state.py
# Cleanup # Cleanup
log "shutting down" log "shutting down"
planoai down || true planoai down --docker || true