Skip to content

teach ollamock TEI and Ollama behaviour and add a tei-routing validation area - #251

Merged
thushan merged 7 commits into
mainfrom
test/ollamock-tei-ollama
Oct 27, 2026
Merged

thushan merged 7 commits into
mainfrom
test/ollamock-tei-ollama

Conversation

@thushan

@thushan thushan commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

test/cmd/ollamock could not stand in for the Ollama and TEI behaviour the recent routing work depends on, so the /olla-validate harness could not exercise it.

ollamock (handlers.go, main.go) now serves:

  • Ollama GET /api/ps, with resident models set by --loaded so instances can hold different sets
  • Ollama POST /api/embed (404 for a model the instance doesn't serve, empty embeddings for empty input)
  • per-model capabilities in GET /api/tags behind --tags-capabilities, as newer Ollama releases report them

test/validate/config.validate.kinds.yaml adds a model-kinds fleet: three TEI instances (one per kind), two Ollamas (with and without capabilities), and vLLM, SGLang and LMDeploy hosts, on ollamock ports 19438-19445 behind a third Olla on 41143. The nightly-only tei-routing area (.claude/skills/olla-validate/areas/tei-routing.md) uses it. It lives apart from the main fleet so existing endpoint counts stay fixed, and --quick never boots it. Section B checks for features that may not be merged are probed first and recorded as skips, never failures.

Type of change

  • Test tooling
  • Documentation

How was this tested?

New tests in ollamock_test.go: TestOllamaTags_Capabilities, TestOllamaPS, TestOllamaEmbed.

Tested together with the other October follow-up branches on a local integration branch at 0c25e0a:

  • make ready and make test-race pass at 0c25e0a
  • /olla-validate --quick: 42 pass, 0 fail (warnings and skips are nightly-only items)
  • tei-routing validation area: Section A 12/12, Section B B1 to B6 pass
  • /test-sticky-sessions: no new failures (the 7 provider-route 404s are the known shared-mock-URL limitation)
  • /claude-code-e2e against real Ollama: Tier A 16/0 on both the passthrough and translation legs, same as main
  • curl checks per feature against real Ollama and ollamock; log scan shows no panics, races or per-request WARN floods

Checklist

  • make ready passes at a8beb73
  • Tests added or updated for the change
  • Documentation updated: docs/content/development/validation.md, test/cmd/ollamock/README.md, .claude/skills/olla-validate/SKILL.md
  • No new dependencies added

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 53 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between e8ef6af and a8beb73.

Files selected for processing: 8
  • .claude/skills/olla-validate/SKILL.md
  • .claude/skills/olla-validate/areas/tei-routing.md
  • docs/content/development/validation.md
  • test/cmd/ollamock/README.md
  • test/cmd/ollamock/handlers.go
  • test/cmd/ollamock/main.go
  • test/cmd/ollamock/ollamock_test.go
  • test/validate/config.validate.kinds.yaml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thushan
thushan merged commit 779fbfd into main Oct 27, 2026
8 checks passed
@thushan
thushan deleted the test/ollamock-tei-ollama branch October 27, 2026 21:45
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