Skip to content

Commit 6d6b409

Browse files
authored
refactor: update integration test workflow (meta-llama#1856)
workflow - 0. Checkout 1. Install uv 2. Install Ollama 3. Pull Ollama image 4. Start Ollama in background 5. Set Up Environment and Install Dependencies 6. Wait for Ollama to start 7. Start Llama Stack server in background 8. Wait for Llama Stack server to be ready 9. Run Integration Tests changes - (4) starts the loading of the ollama model, it does not start ollama. the model will be loaded when used. this step is removed. (6) is handled in (2). this step is removed. (2) is renamed to reflect it's dual purpose.
1 parent 6955415 commit 6d6b409

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

.github/workflows/integration-tests.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,16 @@ jobs:
3838
with:
3939
python-version: "3.10"
4040

41-
- name: Install Ollama
41+
- name: Install and start Ollama
4242
run: |
43+
# the ollama installer also starts the ollama service
4344
curl -fsSL https://ollama.com/install.sh | sh
4445
4546
- name: Pull Ollama image
4647
run: |
48+
# TODO: cache the model. OLLAMA_MODELS defaults to ~ollama/.ollama/models.
4749
ollama pull llama3.2:3b-instruct-fp16
4850
49-
- name: Start Ollama in background
50-
run: |
51-
nohup ollama run llama3.2:3b-instruct-fp16 > ollama.log 2>&1 &
52-
5351
- name: Set Up Environment and Install Dependencies
5452
run: |
5553
uv sync --extra dev --extra test
@@ -61,21 +59,6 @@ jobs:
6159
uv pip install -e .
6260
llama stack build --template ollama --image-type venv
6361
64-
- name: Wait for Ollama to start
65-
run: |
66-
echo "Waiting for Ollama..."
67-
for i in {1..30}; do
68-
if curl -s http://localhost:11434 | grep -q "Ollama is running"; then
69-
echo "Ollama is running!"
70-
exit 0
71-
fi
72-
sleep 1
73-
done
74-
echo "Ollama failed to start"
75-
ollama ps
76-
ollama.log
77-
exit 1
78-
7962
- name: Start Llama Stack server in background
8063
if: matrix.client-type == 'http'
8164
env:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy