You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 refactor: use TEST_OLLAMA env var to control Ollama tests
Simplifies CI by using an explicit environment variable instead of
path filtering:
**Test Changes:**
- Ollama tests now require both TEST_INTEGRATION=1 and TEST_OLLAMA=1
- Uses `describeOllama` that checks `process.env.TEST_OLLAMA === '1'`
- Auto-skips when TEST_OLLAMA is not set (no manual filtering needed)
**CI Changes:**
- `integration-test` job: runs all tests, Ollama tests skip automatically
- `ollama-test` job: sets TEST_OLLAMA=1 to enable Ollama tests
- Removed `--testPathIgnorePatterns` (no longer needed)
- Cleaner and more explicit test gating
Benefits:
- Simpler CI configuration (no path filtering)
- Consistent pattern with TEST_INTEGRATION
- Easy to run Ollama tests locally: TEST_INTEGRATION=1 TEST_OLLAMA=1 bun x jest tests/ipcMain/ollama.test.ts
_Generated with `cmux`_
#Exclude Ollama tests (run separately in ollama-test job)
108
-
run: TEST_INTEGRATION=1 bun x jest --coverage --maxWorkers=100% --silent --testPathIgnorePatterns=ollama.test.ts ${{ github.event.inputs.test_filter || 'tests' }}
107
+
# Ollama tests are skipped automatically (require TEST_OLLAMA=1)
108
+
run: TEST_INTEGRATION=1 bun x jest --coverage --maxWorkers=100% --silent ${{ github.event.inputs.test_filter || 'tests' }}
0 commit comments