Skip to content

Commit f6090f1

Browse files
committed
Added: Rust setup - this was missing
1 parent 6a67768 commit f6090f1

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/test-mcp-server.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,13 @@ jobs:
384384
with:
385385
python-version: '3.10'
386386

387+
# Add Rust setup - this was missing
388+
- name: Set up Rust
389+
uses: actions-rs/toolchain@v1
390+
with:
391+
toolchain: stable
392+
profile: minimal
393+
387394
- name: Install jq and curl
388395
run: sudo apt-get install -y jq curl
389396

@@ -399,15 +406,29 @@ jobs:
399406
- name: Start API server with external LLM
400407
run: |
401408
echo "Starting API server with external Gaia node..."
402-
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 &
409+
# Redirect output to log file for debugging
410+
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 > server.log 2>&1 &
411+
SERVER_PID=$!
412+
echo "Server started with PID: $SERVER_PID"
403413
sleep 10 # Give the server time to start
414+
415+
# Check if server process is still running
416+
if ps -p $SERVER_PID > /dev/null; then
417+
echo "Server process is running"
418+
else
419+
echo "Server process died. Check server logs:"
420+
cat server.log
421+
exit 1
422+
fi
404423
405424
- name: Verify API server is running
406425
run: |
407426
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8000/docs || echo "CURL_FAILED")
408427
if [[ "$HTTP_CODE" != "200" ]]; then
409428
echo "API server is not running properly. Status code: $HTTP_CODE"
410429
ps aux | grep uvicorn
430+
echo "Server logs:"
431+
cat server.log
411432
exit 1
412433
fi
413434
echo "API server is running correctly"

0 commit comments

Comments
 (0)