haiku.rag/tests/store
Yiorgis Gozadinos f96a428ef1
Fix defects found reviewing the coverage work
check_source_accessible narrowed its handler to ValueError, but Path.exists
re-raises errno values outside its ignored set (EACCES, ENAMETOOLONG). Those
were swallowed before and now escaped into the rebuild sweep the guard exists
to protect. Catch OSError too.

Restore the arity guard in _common_path_prefix: without it an empty list
raises from min() and a single label yields a prefix covering the whole path.

Two tests would have hung rather than failed on regression (the vacuum skip
and the protected-wait cancellation); both are now bounded. The import
vacuum test raced against the done-callback that discards the task, and now
spies on the call instead, with a negative control.

Replace assertions that could not fail: blank-query search against an empty
corpus, a batch flush counted against an empty table, a picture description
asserting its own input state, and an FS scheme check with nothing on disk to
resolve. The get_model matrix asserted only the returned type across 26
cases and now pins the per-provider settings. The three batching tests now
count flushes, which revealed embed-only writes through chunks_table.add
rather than _flush_rebuild_batch.
2026-07-27 10:44:32 +03:00
..
__init__.py Split meta document attributes into a document_meta table 2026-06-12 10:17:17 +03:00
legacy_documents.py Serialize and roll back the multi-table document delete 2026-06-12 10:17:18 +03:00
test_citation.py Search results and citations carry document metadata 2026-07-23 10:23:48 +03:00
test_compression.py Collapse docling compression to a single function 2026-06-24 10:43:27 +03:00
test_database_info.py Extract gather_database_info shared by the info command 2026-06-09 11:09:28 +03:00
test_document_items.py Reach and enforce 100% coverage 2026-07-26 20:11:02 +03:00
test_document_meta_split.py Rename document_meta identity column document_id to id 2026-07-08 16:32:55 +03:00
test_engine.py Group relative-path test with the other connect_lancedb dispatch tests 2026-04-25 09:28:46 +03:00
test_migrations.py Stop writing the schema version on database open 2026-06-05 10:32:30 +03:00
test_read_only.py Read verbs skip the embeddings config-compatibility check 2026-07-24 12:14:31 +03:00
test_restore.py Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_tags.py Protect tag-creation cleanup from cancellation 2026-07-16 13:11:35 +03:00
test_v0_40_0_migration.py Collapse docling compression to a single function 2026-06-24 10:43:27 +03:00
test_v0_45_0_migration.py fix migration failures on pre-v0.48.0 document_items schemas 2026-05-21 10:53:21 +03:00
test_v0_48_0_migration.py Collapse docling compression to a single function 2026-06-24 10:43:27 +03:00
test_v0_50_0_migration.py Reach and enforce 100% coverage 2026-07-26 20:11:02 +03:00
test_v0_58_0_migration.py Rename document_meta identity column document_id to id 2026-07-08 16:32:55 +03:00
test_v0_64_0_migration.py Rename document_meta identity column document_id to id 2026-07-08 16:32:55 +03:00