Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/smoke_test/index_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ope

docker logs openrag-openrag-cpu-1

sleep 180s
while true; do
STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" "${OPENRAG_ADDR}:8080/health_check")
if [ "$STATUS_CODE" -eq 200 ]; then
echo "$(date): API is up and running"
break
else
echo "$(date): Health check failed with status $STATUS_CODE, retrying..."
sleep 10
fi
done

sleep 30s

python3 utility/data_indexer.py \
-u http://${OPENRAG_ADDR}:8080 \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/smoke_test/wait_for_tasks_completed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ do
break
fi

curl -fs "${ADDR}:${PORT}/queue/info" | jq

echo "Waiting: ${tc} tasks completed, ${tf} tasks failed on ${ADDR}:${PORT}"
sleep 10s
done
Expand Down