Skip to content

Commit e336150

Browse files
committed
fix e2e tests: start weather_forecast agent natively instead of docker
1 parent 1285bd0 commit e336150

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

tests/e2e/run_e2e_tests.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ trap 'print_debug' INT TERM ERR
2121

2222
log starting > ../build.log
2323

24-
log building and running function_calling demo
24+
log starting weather_forecast agent natively
2525
log ===========================================
2626
cd ../../demos/getting_started/weather_forecast/
27-
docker compose up weather_forecast_service --build -d
27+
bash start_agents.sh &
28+
AGENTS_PID=$!
2829
cd -
2930

3031
log building and installing plano cli
@@ -78,8 +79,6 @@ log running e2e tests for openai responses api client
7879
log ========================================
7980
uv run pytest test_openai_responses_api_client_with_state.py
8081

81-
log shutting down the weather_forecast demo
82+
log shutting down the weather_forecast agent
8283
log =======================================
83-
cd ../../demos/getting_started/weather_forecast
84-
docker compose down
85-
cd -
84+
kill $AGENTS_PID 2>/dev/null || true

tests/e2e/run_prompt_gateway_tests.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ cd -
3232
# Re-sync e2e deps
3333
uv sync
3434

35-
# Start weather_forecast service (needed for prompt_gateway tests)
36-
log "building and running weather_forecast service"
35+
# Start weather_forecast service natively (needed for prompt_gateway tests)
36+
log "starting weather_forecast agent natively"
3737
cd ../../demos/getting_started/weather_forecast/
38-
docker compose up weather_forecast_service --build -d
38+
bash start_agents.sh &
39+
AGENTS_PID=$!
3940
cd -
4041

4142
# Start gateway with prompt_gateway config
@@ -52,6 +53,4 @@ uv run pytest test_prompt_gateway.py
5253
# Cleanup
5354
log "shutting down"
5455
planoai down --docker || true
55-
cd ../../demos/getting_started/weather_forecast
56-
docker compose down
57-
cd -
56+
kill $AGENTS_PID 2>/dev/null || true

0 commit comments

Comments
 (0)