Skip to content

Pin ollama in CI to stop the intermittent runner segfault#595

Merged
tobocop2 merged 1 commit into
mainfrom
fix/pin-ollama-version
Jul 22, 2026
Merged

Pin ollama in CI to stop the intermittent runner segfault#595
tobocop2 merged 1 commit into
mainfrom
fix/pin-ollama-version

Conversation

@tobocop2

Copy link
Copy Markdown
Owner

Problem

  • The integration warm-up (ollama run qwen3:0.6b) intermittently segfaults in ollama's own runner.
  • ollama installs unpinned latest every run, so a bad release lands mid-run and the version drifts. Removing LD_LIBRARY_PATH (earlier attempt) did not stop it.

Solution

  • Pin all three OS installs to ollama 0.31.2 (last 0.31 stable, before the 0.32 line the crashes were seen on): OLLAMA_VERSION for the Linux install.sh, versioned GitHub release URLs for macOS/Windows.
  • Fold the pin into the Windows binary-cache key so a stale cached binary can't defeat it.

Tests whether the version is the variable. If it still segfaults on the pin, the cause is environmental and a warm-up retry is next.

The integration warm-up ('ollama run qwen3:0.6b') intermittently segfaults in
ollama's own runner. It installs unpinned latest on every run, so a bad release
can land mid-run and the version drifts underneath us. Pin all three OS installs
to 0.31.2 (last 0.31 stable, before the 0.32 line the crashes were seen on) via
OLLAMA_VERSION for the Linux install.sh and versioned GitHub release URLs for
macOS/Windows, and fold the pin into the Windows binary-cache key so a stale
cached binary can't defeat it.

Removing LD_LIBRARY_PATH (an earlier attempt) did not stop the crash, so this
tests whether the version is the variable. If it still segfaults on a pinned
version the cause is environmental and a warm-up retry is the next step.
@tobocop2
tobocop2 merged commit a56da2a into main Jul 22, 2026
15 of 17 checks passed
@tobocop2
tobocop2 deleted the fix/pin-ollama-version branch July 22, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant