Skip to content

Commit 79b16c5

Browse files
committed
checking tutorial ports
1 parent ea16c53 commit 79b16c5

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/agentex-tutorials-test.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
cd scale-agentex/agentex
3030
echo "🚀 Starting dependencies (Postgres, Redis, Temporal, MongoDB)..."
3131
32-
# Start all services except the agentex service
32+
# Start all services
3333
docker compose up -d
3434
3535
echo "⏳ Waiting for dependencies to be healthy..."
@@ -44,8 +44,26 @@ jobs:
4444
sleep 5
4545
done
4646
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:"
4860
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"
4967
5068
- name: Build AgentEx SDK
5169
run: |
@@ -126,7 +144,7 @@ jobs:
126144
127145
# Run test in background with unique port
128146
(
129-
AGENTEX_API_BASE_URL="http://host.docker.internal:5003" \
147+
AGENTEX_API_BASE_URL="http://localhost:5003" \
130148
./run_agent_test.sh --build-cli "$tutorial"
131149
132150
if [ $? -eq 0 ]; then

0 commit comments

Comments
 (0)