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
5 changes: 0 additions & 5 deletions .github/workflows/configs/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ services:
- "9000:8080"
volumes:
- weaviate_data:/var/lib/weaviate
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/v1/.well-known/ready"]
interval: 10s
timeout: 5s
retries: 5
networks:
bifrost_network:
ipv4_address: 172.38.0.12
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/scripts/test-api-integrations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,24 @@ if [ $ELAPSED -ge $MAX_WAIT ]; then
exit 1
fi

echo "⏳ Waiting for Weaviate readiness via host..."
WEAVIATE_WAIT=60
WEAVIATE_ELAPSED=0
WEAVIATE_READY=false
while [ $WEAVIATE_ELAPSED -lt $WEAVIATE_WAIT ]; do
if curl -fsS -o /dev/null "http://localhost:9000/v1/.well-known/ready"; then
WEAVIATE_READY=true
echo "✅ Weaviate ready (${WEAVIATE_ELAPSED}s)"
break
fi
sleep 2
WEAVIATE_ELAPSED=$((WEAVIATE_ELAPSED + 2))
done
if [ "$WEAVIATE_READY" = false ]; then
echo "❌ Weaviate failed readiness check within ${WEAVIATE_WAIT}s"
exit 1
fi

echo "🔄 Resetting PostgreSQL database..."
POSTGRES_CONTAINER=$(docker compose -f "$COMPOSE_FILE" ps -q postgres)
if [ -n "$POSTGRES_CONTAINER" ]; then
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/scripts/test-bifrost-http.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,24 @@ if [ "$SERVICES_READY" = false ]; then
exit 1
fi

echo "⏳ Waiting for Weaviate readiness via host..."
WEAVIATE_WAIT=60
WEAVIATE_ELAPSED=0
WEAVIATE_READY=false
while [ $WEAVIATE_ELAPSED -lt $WEAVIATE_WAIT ]; do
if curl -fsS -o /dev/null "http://localhost:9000/v1/.well-known/ready"; then
WEAVIATE_READY=true
echo "✅ Weaviate ready (${WEAVIATE_ELAPSED}s)"
break
fi
sleep 2
WEAVIATE_ELAPSED=$((WEAVIATE_ELAPSED + 2))
done
if [ "$WEAVIATE_READY" = false ]; then
echo "❌ Weaviate failed readiness check within ${WEAVIATE_WAIT}s"
exit 1
fi

for config in "${CONFIGS_TO_TEST[@]}"; do
echo " 🔍 Testing with config: $config"
config_path="$CONFIGS_DIR/$config"
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/scripts/test-e2e-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,24 @@ if [ "$SERVICES_READY" = false ]; then
exit 1
fi

echo "⏳ Waiting for Weaviate readiness via host..."
WEAVIATE_WAIT=60
WEAVIATE_ELAPSED=0
WEAVIATE_READY=false
while [ $WEAVIATE_ELAPSED -lt $WEAVIATE_WAIT ]; do
if curl -fsS -o /dev/null "http://localhost:9000/v1/.well-known/ready"; then
WEAVIATE_READY=true
echo "✅ Weaviate ready (${WEAVIATE_ELAPSED}s)"
break
fi
sleep 2
WEAVIATE_ELAPSED=$((WEAVIATE_ELAPSED + 2))
done
if [ "$WEAVIATE_READY" = false ]; then
echo "❌ Weaviate failed readiness check within ${WEAVIATE_WAIT}s"
exit 1
fi

# Reset PostgreSQL database to clean state
echo "🧹 Resetting PostgreSQL database..."
docker exec -e PGPASSWORD=bifrost_password "$(docker compose -f "$CONFIGS_DIR/docker-compose.yml" ps -q postgres)" \
Expand Down
Loading