Skip to content

Commit d0d8e49

Browse files
authored
🤖 ci: use smaller llama3.2:3b model for Ollama integration tests (#711)
Switches the Ollama model used in integration tests from `gpt-oss:20b` (approx 10-20GB) to `llama3.2:3b` (approx 2GB). This significantly reduces the time and resources required to download and load the model in CI, while still providing sufficient capability for the tool usage tests (bash, file operations). _Generated with `mux`_
1 parent d307930 commit d0d8e49

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ jobs:
134134
- name: Run all integration tests with coverage
135135
# TEST_OLLAMA=1 enables Ollama-specific tests (now included with all integration tests)
136136
# --silent suppresses per-test output (17+ test files × workers = overwhelming logs)
137-
run: TEST_INTEGRATION=1 bun x jest --coverage --maxWorkers=100% --silent ${{ github.event.inputs.test_filter || 'tests' }}
137+
run: TEST_INTEGRATION=1 TEST_OLLAMA=1 bun x jest --coverage --maxWorkers=100% --silent ${{ github.event.inputs.test_filter || 'tests' }}
138138
env:
139139
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
140140
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

tests/ipcMain/ollama.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ const describeOllama = shouldRunOllamaTests ? describe : describe.skip;
1717
// Tests require Ollama to be running and will pull models idempotently
1818
// Set TEST_OLLAMA=1 to enable these tests
1919

20-
const OLLAMA_MODEL = "gpt-oss:20b";
20+
// Use a smaller model for CI to reduce resource usage and download time
21+
// while maintaining sufficient capability for tool calling tests
22+
const OLLAMA_MODEL = "llama3.2:3b";
2123

2224
/**
2325
* Ensure Ollama model is available (idempotent).

0 commit comments

Comments
 (0)