mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 21:59:49 +00:00
chore(ci): dont run llama stack server always
This commit is contained in:
parent
a8091d0c6a
commit
4997552268
1 changed files with 22 additions and 17 deletions
|
|
@ -142,24 +142,29 @@ fi
|
||||||
|
|
||||||
# Start Llama Stack Server if needed
|
# Start Llama Stack Server if needed
|
||||||
if [[ "$STACK_CONFIG" == *"server:"* ]]; then
|
if [[ "$STACK_CONFIG" == *"server:"* ]]; then
|
||||||
echo "=== Starting Llama Stack Server ==="
|
# check if server is already running
|
||||||
nohup uv run llama stack run ci-tests --image-type venv > server.log 2>&1 &
|
if curl -s http://localhost:8321/v1/health 2>/dev/null | grep -q "OK"; then
|
||||||
|
echo "Llama Stack Server is already running, skipping start"
|
||||||
|
else
|
||||||
|
echo "=== Starting Llama Stack Server ==="
|
||||||
|
nohup uv run llama stack run ci-tests --image-type venv > server.log 2>&1 &
|
||||||
|
|
||||||
echo "Waiting for Llama Stack Server to start..."
|
echo "Waiting for Llama Stack Server to start..."
|
||||||
for i in {1..30}; do
|
for i in {1..30}; do
|
||||||
if curl -s http://localhost:8321/v1/health 2>/dev/null | grep -q "OK"; then
|
if curl -s http://localhost:8321/v1/health 2>/dev/null | grep -q "OK"; then
|
||||||
echo "✅ Llama Stack Server started successfully"
|
echo "✅ Llama Stack Server started successfully"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
if [[ $i -eq 30 ]]; then
|
if [[ $i -eq 30 ]]; then
|
||||||
echo "❌ Llama Stack Server failed to start"
|
echo "❌ Llama Stack Server failed to start"
|
||||||
echo "Server logs:"
|
echo "Server logs:"
|
||||||
cat server.log
|
cat server.log
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue