Skip to content

Run testcontainers integration tests in CI (Neo4j/Kuzu/property-graph currently skip) #827

Closed

Description

@AmitoVrito

Summary

Testcontainers-based integration tests exist (Neo4j/Memgraph, Kuzu, property graph) but never run in CI — testcontainers isn't a declared dependency and no CI job installs neo4j/kuzu, so every one of these tests silently pytest.importorskip-skips. This is how the #826 Neo4j parity bug reached main: the live Cypher path was never exercised.

For a production framework, real-backend tests must actually execute in CI, not skip.

Current state

  • tests/retrieval/test_world_model.py and tests/retrieval/test_property_graph.py use testcontainers (Neo4j) + kuzu.
  • testcontainers is declared nowhere in pyproject.toml.
  • The test CI job runs uv sync --group dev (no neo4j/kuzu/testcontainers) → container tests skip.

Change

  • Add a [dependency-groups] integration group: testcontainers, neo4j, networkx, kuzu.
  • Add an integration CI job that runs uv sync --group dev --group integration and executes the container-backed test files. GitHub ubuntu-latest ships a running Docker daemon, so testcontainers works there. Keep the fast test job lean (container tests still skip there for quick feedback).

Acceptance criteria

  • integration dependency-group added.
  • integration CI job runs the Neo4j + Kuzu + property-graph tests for real (not skipped) and is green.
  • Fast test job unchanged / still fast.

Follow-up

  • Audit other external-backend tests (Postgres, Redis, Elasticsearch, Mongo vector stores/loaders) and convert mock/skip-based coverage to real testcontainers tests under the same integration job.

Related: introduced alongside the #826 fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    v2.0.1

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions