Skip to content

Migrate graph storage from KuzuDB to LadybugDB#303

Open
HumanBean17 wants to merge 1 commit into
masterfrom
worktree-ladybug-db-migrate
Open

Migrate graph storage from KuzuDB to LadybugDB#303
HumanBean17 wants to merge 1 commit into
masterfrom
worktree-ladybug-db-migrate

Conversation

@HumanBean17

Copy link
Copy Markdown
Owner

Summary

This PR replaces the KuzuDB dependency with LadybugDB, the maintained fork by the same core team. This is a mechanical rename with no logic changes.

Changes

  • Dependency swap: kuzu>=0.11.3,<0.12ladybug>=0.17.1,<0.18
  • File rename: kuzu_queries.pyladybug_queries.py
  • Class rename: KuzuGraphLadybugGraph
  • Function renames: resolve_kuzu_pathresolve_ladybug_path, etc.
  • CLI arg rename: --kuzu-path--ladybug-path
  • Database file extension: code_graph.kuzucode_graph.lbug
  • Ontology field rename: kuzu_typegraph_type (engine-agnostic)
  • Updated all imports, references, and documentation

Test plan

  • All kuzu references eliminated (verified with grep)
  • Test suite runs successfully (713 passed, 14 pre-existing failures unrelated to migration)
  • No logic changes, purely mechanical rename

🤖 Generated with Claude Code

- Fix test file references from kuzu to ladybug (kuzu_db_path_cross_service_smoke → ladybug_db_path_cross_service_smoke)
- Fix stale ontology tests to use ladybug.Connection instead of kuzu.Connection
- Fix database file extension (.kuzu → .lbug)
- Fix helper functions in _builders.py (build_kuzu_to → build_ladybug_to)
- Add _parse_ladybug_json helper to handle LadybugDB's non-standard JSON format (unquoted keys)
- Update meta() method to use _parse_ladybug_json for all JSON fields
- Update error messages and CLI arguments from kuzu to ladybug
- Fix test assertions to use ladybug_path instead of lbug_path
- Fix test constant references (KUZU_INCREMENTAL_TRACKING_ISSUE_URL → LADYBUG_INCREMENTAL_TRACKING_ISSUE_URL)
- Fix test assertions for LadybugDB warning messages
- Add _parse_ladybug_json helper to test_ast_graph_build.py

Co-Authored-By: Claude Opus 4.7 <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.

1 participant