Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Merged
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
8 changes: 4 additions & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ jobs:
cleanup_container

echo "Starting Ollama container (Attempt $(($retry_count + 1))/$MAX_RETRIES)"
docker run -d -v ollama:/root/.ollama --network host --name ollama ollama/ollama
docker run -d -v ollama:/root/.ollama --network host --name ollama -e OLLAMA_LOG_LEVEL=DEBUG ollama/ollama

# Wait for endpoint to be available
endpoint_wait=0
Expand All @@ -191,7 +191,7 @@ jobs:

# Monitor container and model status
monitor_count=0
while [ $monitor_count -lt 60 ]; do # 5 minute timeout per attempt
while [ $monitor_count -lt 90 ]; do # 7.5 minutes
# Check if container is still running
if ! docker ps | grep -q ollama; then
echo "Container crashed, logs:"
Expand All @@ -206,12 +206,12 @@ jobs:
exit 0 # Success!
fi

echo "Model not ready yet. Waiting... ($(($monitor_count + 1))/60)"
echo "Model not ready yet. Waiting... ($(($monitor_count + 1))/90)"
sleep 5
monitor_count=$((monitor_count + 1))
done

if [ $monitor_count -eq 60 ]; then
if [ $monitor_count -eq 90 ]; then
echo "Timeout waiting for model, container logs:"
docker logs ollama
retry_count=$((retry_count + 1))
Expand Down
Loading