Merge branch 'main' into update-triagers

This commit is contained in:
Francisco Arceo 2025-08-18 11:21:36 -06:00 committed by GitHub
commit 2fa9e9141b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,6 +133,10 @@ else
EXTRA_PARAMS="" EXTRA_PARAMS=""
fi fi
THIS_DIR=$(dirname "$0")
ROOT_DIR="$THIS_DIR/.."
cd $ROOT_DIR
# Set recording directory # Set recording directory
if [[ "$RUN_VISION_TESTS" == "true" ]]; then if [[ "$RUN_VISION_TESTS" == "true" ]]; then
export LLAMA_STACK_TEST_RECORDING_DIR="tests/integration/recordings/vision" export LLAMA_STACK_TEST_RECORDING_DIR="tests/integration/recordings/vision"
@ -142,24 +146,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