Skip to content

tests: skip vector-search integration tests when chromadb/sentence-transformers unavailable - #14

Merged
vicentebolea merged 1 commit into
masterfrom
fix/skip-vector-search-integration-without-deps
Aug 13, 2026
Merged

tests: skip vector-search integration tests when chromadb/sentence-transformers unavailable#14
vicentebolea merged 1 commit into
masterfrom
fix/skip-vector-search-integration-without-deps

Conversation

@vicentebolea

Copy link
Copy Markdown
Member

Summary

  • CI's test job never installs chromadb/sentence-transformers (they're not in pyproject.toml), so vector_search_vtk_examples (in the legacy vtk_mcp_server package) always hit its own "missing dependencies" branch in this environment.
  • The embeddings_database fixture in tests/test_vector_search_integration.py only skipped when podman was unavailable. It used to pass because the runner didn't have podman (whole class skipped); now that podman is available on the runner, the fixture proceeds and the tests fail on assertions they were never able to satisfy in CI.
  • Add pytest.importorskip("chromadb") / pytest.importorskip("sentence_transformers") to the fixture so it skips for the right reason, same pattern as the existing podman check.

Test plan

  • pytest tests/test_vector_search_integration.py -v → 3 skipped (chromadb not installed locally, matches CI)
  • pytest -m integration -v → 11 passed, 3 skipped, no failures

…ansformers unavailable

CI's test job never installs chromadb/sentence-transformers, so
vector_search_vtk_examples always returned its "missing dependencies"
message. The fixture only skipped on missing podman, so once podman
became available on the runner these tests started failing outright
instead of skipping.
@vicentebolea
vicentebolea merged commit 1f8aee5 into master Aug 13, 2026
7 checks passed
@vicentebolea
vicentebolea deleted the fix/skip-vector-search-integration-without-deps branch August 13, 2026 00:33
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