Skip to content

Commit 5500f75

Browse files
committed
add failed logs
1 parent 30875ea commit 5500f75

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

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

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,50 @@ jobs:
155155
for test in "${failed_tests[@]}"; do
156156
echo " ❌ $test"
157157
done
158+
159+
echo ""
160+
echo "========================================="
161+
echo "AGENTEX SERVER CONTAINER LOGS"
162+
echo "========================================="
163+
164+
# Show AgentEx server container logs
165+
echo "📋 AgentEx server container logs:"
166+
echo "----------------------------------------"
167+
cd ../scale-agentex/agentex
168+
docker compose logs agentex --tail=100
169+
echo "----------------------------------------"
170+
171+
echo ""
172+
echo "📋 All running containers:"
173+
docker compose ps
174+
echo ""
175+
176+
echo "========================================="
177+
echo "TUTORIAL AGENT LOGS FOR FAILED TESTS"
178+
echo "========================================="
179+
180+
# Show logs for failed tests
181+
cd ../../examples/tutorials
182+
for test in "${failed_tests[@]}"; do
183+
test_name=$(basename "$test")
184+
logfile="/tmp/agentex-${test_name}.log"
185+
186+
echo ""
187+
echo "📋 Tutorial agent logs for $test ($logfile):"
188+
echo "----------------------------------------"
189+
190+
if [ -f "$logfile" ]; then
191+
echo "Last 100 lines of tutorial agent logs:"
192+
tail -100 "$logfile"
193+
else
194+
echo "⚠️ No log file found at: $logfile"
195+
echo "Available log files:"
196+
ls -la /tmp/agentex-*.log 2>/dev/null || echo " (none)"
197+
fi
198+
199+
echo "----------------------------------------"
200+
done
201+
158202
exit 1
159203
else
160204
echo ""

0 commit comments

Comments
 (0)