mirror of
https://github.com/katanemo/plano.git
synced 2026-05-15 11:02:39 +02:00
add --docker flag to E2E tests and demo scripts
This commit is contained in:
parent
9d223d54f9
commit
53d11ae235
14 changed files with 35 additions and 35 deletions
|
|
@ -20,7 +20,7 @@ start_demo() {
|
|||
|
||||
# Step 3: Start Plano
|
||||
echo "Starting Plano with config.yaml..."
|
||||
planoai up config.yaml
|
||||
planoai up --docker config.yaml
|
||||
|
||||
# Step 4: Start developer services
|
||||
echo "Starting Network Agent using Docker Compose..."
|
||||
|
|
@ -35,7 +35,7 @@ stop_demo() {
|
|||
|
||||
# Step 2: Stop Plano
|
||||
echo "Stopping Plano..."
|
||||
planoai down
|
||||
planoai down --docker
|
||||
}
|
||||
|
||||
# Main script logic
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ start_demo() {
|
|||
|
||||
# Step 3: Start Plano
|
||||
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 "Please run the following command to test the setup: python bench.py\n"
|
||||
|
|
@ -29,7 +29,7 @@ start_demo() {
|
|||
stop_demo() {
|
||||
# Step 2: Stop Plano
|
||||
echo "Stopping Plano..."
|
||||
planoai down
|
||||
planoai down --docker
|
||||
}
|
||||
|
||||
# Main script logic
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ start_demo() {
|
|||
|
||||
# Step 3: Start Plano
|
||||
echo "Starting Plano with config.yaml..."
|
||||
planoai up config.yaml
|
||||
planoai up --docker config.yaml
|
||||
|
||||
# Step 4: Start Network Agent
|
||||
echo "Starting HR Agent using Docker Compose..."
|
||||
|
|
@ -35,7 +35,7 @@ stop_demo() {
|
|||
|
||||
# Step 2: Stop Plano
|
||||
echo "Stopping Plano..."
|
||||
planoai down
|
||||
planoai down --docker
|
||||
}
|
||||
|
||||
# Main script logic
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ start_demo() {
|
|||
|
||||
# Step 3: Start Plano
|
||||
echo "Starting Plano with config.yaml..."
|
||||
planoai up config.yaml
|
||||
planoai up --docker config.yaml
|
||||
|
||||
# Step 4: Start developer services
|
||||
echo "Starting Network Agent using Docker Compose..."
|
||||
|
|
@ -35,7 +35,7 @@ stop_demo() {
|
|||
|
||||
# Step 2: Stop Plano
|
||||
echo "Stopping Plano..."
|
||||
planoai down
|
||||
planoai down --docker
|
||||
}
|
||||
|
||||
# Main script logic
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ start_demo() {
|
|||
|
||||
# Step 3: Start Plano
|
||||
echo "Starting Plano with config.yaml..."
|
||||
planoai up config.yaml
|
||||
planoai up --docker config.yaml
|
||||
|
||||
# Step 4: Start LLM Routing
|
||||
echo "Starting LLM Routing using Docker Compose..."
|
||||
|
|
@ -35,7 +35,7 @@ stop_demo() {
|
|||
|
||||
# Step 2: Stop Plano
|
||||
echo "Stopping Plano..."
|
||||
planoai down
|
||||
planoai down --docker
|
||||
}
|
||||
|
||||
# Main script logic
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ start_demo() {
|
|||
|
||||
# Step 4: Start Plano
|
||||
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
|
||||
echo "Starting Network Agent with $COMPOSE_FILE..."
|
||||
|
|
@ -93,7 +93,7 @@ stop_demo() {
|
|||
|
||||
# Stop Plano
|
||||
echo "Stopping Plano..."
|
||||
planoai down
|
||||
planoai down --docker
|
||||
}
|
||||
|
||||
# Main script logic
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ start_demo() {
|
|||
|
||||
# Step 3: Start Plano
|
||||
echo "Starting Plano with config.yaml..."
|
||||
planoai up config.yaml
|
||||
planoai up --docker config.yaml
|
||||
|
||||
# Step 4: Start developer services
|
||||
echo "Starting Network Agent using Docker Compose..."
|
||||
|
|
@ -35,7 +35,7 @@ stop_demo() {
|
|||
|
||||
# Step 2: Stop Plano
|
||||
echo "Stopping Plano..."
|
||||
planoai down
|
||||
planoai down --docker
|
||||
}
|
||||
|
||||
# Main script logic
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ start_demo() {
|
|||
|
||||
# Step 3: Start Plano
|
||||
echo "Starting Plano with config.yaml..."
|
||||
planoai up config.yaml
|
||||
planoai up --docker config.yaml
|
||||
|
||||
# Step 4: Start developer services
|
||||
echo "Starting Network Agent using Docker Compose..."
|
||||
|
|
@ -35,7 +35,7 @@ stop_demo() {
|
|||
|
||||
# Step 2: Stop Plano
|
||||
echo "Stopping Plano..."
|
||||
planoai down
|
||||
planoai down --docker
|
||||
}
|
||||
|
||||
# Main script logic
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ start_demo() {
|
|||
|
||||
# Step 3: Start Plano
|
||||
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 "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() {
|
||||
# Step 2: Stop Plano
|
||||
echo "Stopping Plano..."
|
||||
planoai down
|
||||
planoai down --docker
|
||||
}
|
||||
|
||||
# Main script logic
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ do
|
|||
echo "****************************************"
|
||||
cd ../../$demo
|
||||
echo "starting plano"
|
||||
planoai up config.yaml
|
||||
planoai up --docker config.yaml
|
||||
echo "starting docker containers"
|
||||
# only execute docker compose if demo is llm_routing/preference_based_routing
|
||||
if [ "$demo" == "llm_routing/preference_based_routing" ]; then
|
||||
|
|
@ -38,7 +38,7 @@ do
|
|||
exit 1
|
||||
fi
|
||||
echo "stopping docker containers and plano"
|
||||
planoai down
|
||||
planoai down --docker
|
||||
docker compose down -v
|
||||
cd ../../shared/test_runner
|
||||
done
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@ uv sync
|
|||
|
||||
log startup plano gateway with function calling demo
|
||||
cd ../../
|
||||
planoai down
|
||||
planoai up demos/getting_started/weather_forecast/config.yaml
|
||||
planoai down --docker
|
||||
planoai up --docker demos/getting_started/weather_forecast/config.yaml
|
||||
cd -
|
||||
|
||||
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 ===============================================================
|
||||
planoai down
|
||||
planoai down --docker
|
||||
|
||||
log startup plano gateway with model alias routing demo
|
||||
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 -
|
||||
|
||||
log running e2e tests for model alias routing
|
||||
|
|
@ -71,8 +71,8 @@ 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
|
||||
planoai down --docker
|
||||
planoai up --docker config_memory_state_v1_responses.yaml
|
||||
|
||||
log running e2e tests for openai responses api client
|
||||
log ========================================
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ uv sync
|
|||
# Start gateway with model alias routing config
|
||||
log "startup plano gateway with model alias routing demo"
|
||||
cd ../../
|
||||
planoai down || true
|
||||
planoai up demos/llm_routing/model_alias_routing/config_with_aliases.yaml
|
||||
planoai down --docker || true
|
||||
planoai up --docker demos/llm_routing/model_alias_routing/config_with_aliases.yaml
|
||||
cd -
|
||||
|
||||
# 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
|
||||
log "shutting down"
|
||||
planoai down || true
|
||||
planoai down --docker || true
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ cd -
|
|||
# Start gateway with prompt_gateway config
|
||||
log "startup plano gateway with function calling demo"
|
||||
cd ../../
|
||||
planoai down || true
|
||||
planoai up demos/getting_started/weather_forecast/config.yaml
|
||||
planoai down --docker || true
|
||||
planoai up --docker demos/getting_started/weather_forecast/config.yaml
|
||||
cd -
|
||||
|
||||
# Run tests
|
||||
|
|
@ -51,7 +51,7 @@ uv run pytest test_prompt_gateway.py
|
|||
|
||||
# Cleanup
|
||||
log "shutting down"
|
||||
planoai down || true
|
||||
planoai down --docker || true
|
||||
cd ../../demos/getting_started/weather_forecast
|
||||
docker compose down
|
||||
cd -
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ uv sync
|
|||
# Start gateway with state storage config
|
||||
log "startup plano gateway with state storage config"
|
||||
cd ../../
|
||||
planoai down || true
|
||||
planoai up tests/e2e/config_memory_state_v1_responses.yaml
|
||||
planoai down --docker || true
|
||||
planoai up --docker tests/e2e/config_memory_state_v1_responses.yaml
|
||||
cd -
|
||||
|
||||
# Run tests
|
||||
|
|
@ -45,4 +45,4 @@ uv run pytest test_openai_responses_api_client_with_state.py
|
|||
|
||||
# Cleanup
|
||||
log "shutting down"
|
||||
planoai down || true
|
||||
planoai down --docker || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue