Skip to content

Commit ca96a07

Browse files
HumanBean17claude
andcommitted
fix(tests): gate LanceDB CLI test behind RUN_HEAVY to prevent Kuzu segfault
test_increment_updates_lance_after_touch_java_file imports lancedb which spawns a LanceDBBackgroundEventLoop daemon thread. This thread conflicts with Kuzu C++ queries in subsequent tests, causing segfaults. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c8c1854 commit ca96a07

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_java_codebase_rag_cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,10 @@ def test_increment_first_run_falls_back_to_full(
544544

545545

546546

547+
@pytest.mark.skipif(
548+
os.environ.get("JAVA_CODEBASE_RAG_RUN_HEAVY", "").strip() != "1",
549+
reason="imports lancedb which spawns background thread that causes Kuzu segfaults",
550+
)
547551
@pytest.mark.skipif(not _cocoindex_available(), reason="cocoindex not installed in venv")
548552
def test_increment_updates_lance_after_touch_java_file(corpus_root: Path, tmp_path: Path) -> None:
549553
import lancedb # noqa: PLC0415

0 commit comments

Comments
 (0)