Skip to content

Commit 4600e0c

Browse files
authored
🤖 fix: restore depot integration runner (#727)
## Summary - reverts integration tests to the depot-ubuntu runner - removes the Ollama-specific setup/env vars so TEST_OLLAMA stays disabled ## Testing - not run (workflow-only change) _Generated with `mux`_
1 parent 0e5ff96 commit 4600e0c

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
integration-test:
9696
name: Integration Tests
9797
timeout-minutes: 10
98-
runs-on: ${{ github.repository_owner == 'coder' && 'self-hosted' || 'ubuntu-latest' }}
98+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }}
9999
steps:
100100
- name: Checkout code
101101
uses: actions/checkout@v4
@@ -104,41 +104,15 @@ jobs:
104104

105105
- uses: ./.github/actions/setup-mux
106106

107-
- name: Check if Ollama is pre-installed
108-
id: check-ollama
109-
run: |
110-
if systemctl is-active --quiet ollama 2>/dev/null && curl -sf http://localhost:11434/api/tags > /dev/null 2>&1; then
111-
echo "installed=true" >> $GITHUB_OUTPUT
112-
echo "✅ Ollama already running (self-hosted runner)"
113-
else
114-
echo "installed=false" >> $GITHUB_OUTPUT
115-
echo "⚙️ Ollama not found, will install"
116-
fi
117-
118-
- name: Setup Ollama
119-
# Only install Ollama if not already running (self-hosted runners have it pre-installed)
120-
if: steps.check-ollama.outputs.installed != 'true'
121-
uses: ./.github/actions/setup-ollama
122-
123-
# Ollama server started by setup-ollama action or pre-installed on self-hosted
124-
# Tests will pull models idempotently
125-
- name: Verify Ollama server
126-
run: |
127-
echo "Verifying Ollama server..."
128-
timeout 5 sh -c 'until curl -sf http://localhost:11434/api/tags > /dev/null 2>&1; do sleep 0.2; done'
129-
echo "Ollama ready - integration tests will pull models on demand"
130-
131107
- name: Build worker files
132108
run: make build-main
133109

134110
- name: Run all integration tests with coverage
135-
# TEST_OLLAMA=1 enables Ollama-specific tests (now included with all integration tests)
136111
# --silent suppresses per-test output (17+ test files × workers = overwhelming logs)
137-
run: TEST_INTEGRATION=1 TEST_OLLAMA=1 bun x jest --coverage --maxWorkers=100% --silent ${{ github.event.inputs.test_filter || 'tests' }}
112+
run: TEST_INTEGRATION=1 bun x jest --coverage --maxWorkers=100% --silent ${{ github.event.inputs.test_filter || 'tests' }}
138113
env:
139114
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
140115
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
141-
OLLAMA_BASE_URL: http://localhost:11434/api
142116

143117
- name: Upload coverage to Codecov
144118
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)