Skip to content

Commit

Permalink
Merge branch 'main' into issue-209
Browse files Browse the repository at this point in the history
  • Loading branch information
yrobla authored Feb 6, 2025
2 parents 675d638 + 7eb57d6 commit 933721b
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 933721b

Please sign in to comment.