Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,14 @@ jobs:
if: github.actor != 'release-please[bot]'
services:
ollama:
image: ollama/ollama:latest
# Pin the embedding runtime. The lang E2E suite (TestLang_*) asserts on
# committed embedding snapshots (testdata/snapshots/), so all-minilm must
# return identical vectors run-to-run. The `:latest` tag drifted from
# 0.24.0 to a newer build between 2026-05-20 and 2026-06-04, which shifted
# the ranked results and broke every snapshot. 0.24.0 is the last runtime
# the snapshots were verified green against (== digest
# sha256:a6149234667efc71d37766d61c1a16f24c33e4cd7a0bf4125c44a7e47e2419c4).
image: ollama/ollama:0.24.0
Comment thread
keith-mvs marked this conversation as resolved.
ports:
- 11434:11434
steps:
Expand Down
15 changes: 12 additions & 3 deletions scripts/run
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@ case "$ARCH" in
aarch64) ARCH="arm64" ;;
esac

# Normalize Windows-flavored uname. Git Bash/MSYS2/Cygwin report uname -s as
# mingw*/msys*/cygwin* (and embed the Windows build number), not "windows", and
# their binaries carry a .exe suffix. Without this the loop below misses the
# bundled bin/lumen-windows-amd64.exe and falls through to a doomed download.
EXT=""
case "$OS" in
mingw*|msys*|cygwin*|windows*) OS="windows"; EXT=".exe" ;;
esac

# Find binary: check bin/ first, then goreleaser dist/ output, then download
BINARY=""
for candidate in \
"${PLUGIN_ROOT}/bin/lumen" \
"${PLUGIN_ROOT}/bin/lumen-${OS}-${ARCH}"; do
"${PLUGIN_ROOT}/bin/lumen${EXT}" \
"${PLUGIN_ROOT}/bin/lumen-${OS}-${ARCH}${EXT}"; do
if [ -x "$candidate" ]; then
BINARY="$candidate"
break
Expand All @@ -27,7 +36,7 @@ done

# Download on first run if no binary found
if [ -z "$BINARY" ]; then
BINARY="${PLUGIN_ROOT}/bin/lumen-${OS}-${ARCH}"
BINARY="${PLUGIN_ROOT}/bin/lumen-${OS}-${ARCH}${EXT}"

REPO="ory/lumen"

Expand Down
Loading