|
29 | 29 | cd scale-agentex/agentex |
30 | 30 | echo "π Starting dependencies (Postgres, Redis, Temporal, MongoDB)..." |
31 | 31 |
|
32 | | - # Start all services except the agentex service |
| 32 | + # Start all services |
33 | 33 | docker compose up -d |
34 | 34 |
|
35 | 35 | echo "β³ Waiting for dependencies to be healthy..." |
|
44 | 44 | sleep 5 |
45 | 45 | done |
46 | 46 |
|
47 | | - # Verify all deps are up |
| 47 | + # Wait specifically for AgentEx server to be ready |
| 48 | + echo "β³ Waiting for AgentEx server to be ready..." |
| 49 | + for i in {1..30}; do |
| 50 | + if curl -s --max-time 5 http://localhost:5003/health >/dev/null 2>&1; then |
| 51 | + echo "β
AgentEx server is ready" |
| 52 | + break |
| 53 | + fi |
| 54 | + echo " Attempt $i/30: Waiting for AgentEx server..." |
| 55 | + sleep 5 |
| 56 | + done |
| 57 | +
|
| 58 | + # Debug port mappings |
| 59 | + echo "π Docker port mappings:" |
48 | 60 | docker compose ps |
| 61 | + echo "" |
| 62 | + echo "π Docker port details:" |
| 63 | + docker compose ps --format "table {{.Name}}\t{{.Image}}\t{{.Ports}}" |
| 64 | + echo "" |
| 65 | + echo "π Testing AgentEx server accessibility:" |
| 66 | + curl -v --max-time 10 http://localhost:5003/health 2>&1 || echo "β AgentEx not accessible on localhost:5003" |
49 | 67 |
|
50 | 68 | - name: Build AgentEx SDK |
51 | 69 | run: | |
@@ -124,9 +142,13 @@ jobs: |
124 | 142 | echo "Updated $manifest_path to use port $port" |
125 | 143 | fi |
126 | 144 |
|
| 145 | + # Debug connectivity before running test |
| 146 | + echo "π Pre-test connectivity check:" |
| 147 | + curl -v --max-time 5 http://localhost:5003/agents 2>&1 || echo "β /agents endpoint not accessible" |
| 148 | +
|
127 | 149 | # Run test in background with unique port |
128 | 150 | ( |
129 | | - AGENTEX_API_BASE_URL="http://host.docker.internal:5003" \ |
| 151 | + AGENTEX_API_BASE_URL="http://localhost:5003" \ |
130 | 152 | ./run_agent_test.sh --build-cli "$tutorial" |
131 | 153 |
|
132 | 154 | if [ $? -eq 0 ]; then |
|
0 commit comments