Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 7eb57d6

Browse files
authored
Run ollama in debug mode and extend the timeout for fetching the model (#949)
* Run Ollama in verbose mode Signed-off-by: Radoslav Dimitrov <[email protected]> * Increase the ollama timeout for downloading the model Signed-off-by: Radoslav Dimitrov <[email protected]> --------- Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent 8da7955 commit 7eb57d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/integration-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167
cleanup_container
168168
169169
echo "Starting Ollama container (Attempt $(($retry_count + 1))/$MAX_RETRIES)"
170-
docker run -d -v ollama:/root/.ollama --network host --name ollama ollama/ollama
170+
docker run -d -v ollama:/root/.ollama --network host --name ollama -e OLLAMA_LOG_LEVEL=DEBUG ollama/ollama
171171
172172
# Wait for endpoint to be available
173173
endpoint_wait=0
@@ -191,7 +191,7 @@ jobs:
191191
192192
# Monitor container and model status
193193
monitor_count=0
194-
while [ $monitor_count -lt 60 ]; do # 5 minute timeout per attempt
194+
while [ $monitor_count -lt 90 ]; do # 7.5 minutes
195195
# Check if container is still running
196196
if ! docker ps | grep -q ollama; then
197197
echo "Container crashed, logs:"
@@ -206,12 +206,12 @@ jobs:
206206
exit 0 # Success!
207207
fi
208208
209-
echo "Model not ready yet. Waiting... ($(($monitor_count + 1))/60)"
209+
echo "Model not ready yet. Waiting... ($(($monitor_count + 1))/90)"
210210
sleep 5
211211
monitor_count=$((monitor_count + 1))
212212
done
213213
214-
if [ $monitor_count -eq 60 ]; then
214+
if [ $monitor_count -eq 90 ]; then
215215
echo "Timeout waiting for model, container logs:"
216216
docker logs ollama
217217
retry_count=$((retry_count + 1))

0 commit comments

Comments
 (0)