Skip to content

chore: change ollama model versions in CI #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 17, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
37 changes: 18 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,19 @@ jobs:
run: |
set -e
cargo binstall --force --locked cargo-component@0.21.1
cargo binstall golem-cli@1.2.3 --locked --force --no-confirm
cargo binstall wac-cli --locked --force --no-confirm
- name: Start Ollama in Docker
run: |
set -e
docker run -d --name ollama -p 11434:11434 ollama/ollama:latest
timeout 60 bash -c 'until curl -f http://localhost:11434/api/version; do sleep 2; done'
echo "Pulling Qwen2.5:1.5b"
docker exec ollama ollama pull qwen2.5:1.5b
echo "Pulling Gemma2:2b"
docker exec ollama ollama pull gemma2:2b
echo "Pulling Qwen3:1.7b"
docker exec ollama ollama pull qwen3:1.7b
echo "Pulling Gemma3:4b"
docker exec ollama ollama pull gemma3:4b
echo "Verifying models are available"
docker exec ollama ollama list | grep -q "qwen2.5:1.5b" || exit 1
docker exec ollama ollama list | grep -q "gemma2:2b" || exit 1
docker exec ollama ollama list | grep -q "qwen3:1.7b" || exit 1
docker exec ollama ollama list | grep -q "gemma3:4b" || exit 1
echo "Ollama setup completed."
- name: Install and Run latest Golem Server
run: |
Expand All @@ -136,20 +135,20 @@ jobs:
echo "Golem server started."
- name: Build and test Ollama integration
run: |
set -e
set -eo pipefail
cargo make --cwd llm build-ollama
cd test
golem-cli app build -b ollama-debug
golem-cli app deploy -b ollama-debug
golem-cli worker new -e GOLEM_OLLAMA_BASE_URL=http://localhost:11434 test:llm/ollama-1
golem-cli worker invoke test:llm/ollama-1 test1
golem-cli worker invoke test:llm/ollama-1 test2
golem-cli worker invoke test:llm/ollama-1 test3
golem-cli worker invoke test:llm/ollama-1 test4
golem-cli worker invoke test:llm/ollama-1 test5
golem-cli worker invoke test:llm/ollama-1 test6
golem-cli worker invoke test:llm/ollama-1 test7
golem-cli worker invoke test:llm/ollama-1 test8
golem app build -b ollama-debug
golem app deploy -b ollama-debug
golem worker new -e GOLEM_OLLAMA_BASE_URL=http://localhost:11434 test:llm/ollama-1
golem worker invoke test:llm/ollama-1 test1 | grep -v "ERROR: "
golem worker invoke test:llm/ollama-1 test2 | grep -v "ERROR: "
golem worker invoke test:llm/ollama-1 test3 | grep -v "ERROR: "
golem worker invoke test:llm/ollama-1 test4 | grep -v "ERROR: "
golem worker invoke test:llm/ollama-1 test5 | grep -v "ERROR: "
golem worker invoke test:llm/ollama-1 test6 | grep -v "ERROR: "
golem worker invoke test:llm/ollama-1 test7 | grep -v "ERROR: "
golem worker invoke test:llm/ollama-1 test8 | grep -v "ERROR: "
publish-all:
needs:
- tests
Expand Down
4 changes: 2 additions & 2 deletions test/components-rust/test-llm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl Guest for Component {
}
llm::ChatEvent::Error(error) => {
println!(
"ERROR 1: {:?} {} ({})",
"ERROR: (1) {:?} {} ({})",
error.code,
error.message,
error.provider_error_json.unwrap_or_default()
Expand Down Expand Up @@ -195,7 +195,7 @@ impl Guest for Component {
}
llm::ChatEvent::Error(error) => {
format!(
"ERROR 2: {:?} {} ({})",
"ERROR: (2) {:?} {} ({})",
error.code,
error.message,
error.provider_error_json.unwrap_or_default()
Expand Down
Loading