Skip to content

CICD-435 · Vector database integration testing ​

Encyclopedia · AI and LLM application pipelines · All snippets

Previous · CICD-434 · Next · CICD-436

1. Where it fits ​

  • Placement CI run step.
  • Prerequisites approved synthetic evaluation data, authorized model artifacts and pinned runtime tools.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
docker compose up -d --wait vector-db
pytest -q tests/integration/test_vector_search.py

3. How it works ​

Compose starts the selected project services. With --wait, completion depends on running or healthy state under its project configuration. Pytest discovers the selected test files or markers and returns a process exit status reflecting the test outcome.

4. Verify the result ​

Insert synthetic vectors, verify top-k order and delete the test collection in teardown.

Validation syntax-validated (Bash parse). Status definitions.