Skip to content

Add LangChain Lakebase integration tests#346

Open
dhruv0811 wants to merge 16 commits intomainfrom
lakebase-langchain-integration-tests
Open

Add LangChain Lakebase integration tests#346
dhruv0811 wants to merge 16 commits intomainfrom
lakebase-langchain-integration-tests

Conversation

@dhruv0811
Copy link
Contributor

@dhruv0811 dhruv0811 commented Feb 24, 2026

Summary

Added LangChain Lakebase integration tests covering DatabricksStore (sync + async) and CheckpointSaver (sync + async) wrappers. Tests validate the bridge code's behavior — pool creation, connection borrowing, _with_store handoff, and async with lifecycle management — against a live Databricks Lakebase instance.

Test plan

dhruv0811 and others added 7 commits February 24, 2026 11:43
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ckpoint_ns

- Make cleanup fixtures module-scoped to avoid dropping tables between
  tests (PostgresStore/Saver track migrations internally)
- Add missing checkpoint_ns to all checkpoint config dicts
- Remove stale table-tracking append/extend calls

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Drop store_migrations, vector_migrations, store_vectors tables in
  cleanup fixture (PostgresStore skips setup if migration table exists)
- Add auth_type="pat" to create_workspace_client_with_token to avoid
  oauth+pat conflict when DATABRICKS_CLIENT_ID env var is set

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

@jennsun jennsun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these tests are looking great! my main request is to add a test that tests the core value databricksstore brings to agents (semantic search)

https://github.com/databricks/databricks-ai-bridge/pull/346/changes#r2850132619

@dhruv0811 dhruv0811 requested a review from jennsun February 25, 2026 23:47
Copy link
Contributor

@jennsun jennsun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the updates! can we make sure we have coverage/parallel tests for both sync + async versions of the lakebase langchain classes? good to merge after those are synced :)

dhruv0811 and others added 2 commits February 26, 2026 11:37
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…__/__exit__)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
dhruv0811 and others added 2 commits March 3, 2026 11:39
…pool closed

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… in put_and_get

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dhruv0811 dhruv0811 requested a review from annzhang-db March 3, 2026 19:45
dhruv0811 and others added 2 commits March 3, 2026 13:27
…helper, fixture docs

- Move all imports to top level with pytest.importorskip("langgraph") guard
- Extract _make_checkpoint() helper shared across sync/async tests
- Clarify scope="module" behavior in fixture docstrings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

4 participants