haiku.rag/tests/cassettes/test_chunk
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
..
test_chunk_content_fts[populated].yaml Consolidate duplicated client-side tests 2026-07-26 13:30:59 +03:00
test_chunk_content_fts[without_headings].yaml Consolidate duplicated client-side tests 2026-07-26 13:30:59 +03:00
test_chunk_repository_get_by_id_and_list_all_pagination.yaml Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_chunk_repository_operations.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_chunk_repository_pagination.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_chunk_search_returns_empty_for_blank_query.yaml Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_chunk_search_with_precomputed_vector_skips_text_query.yaml Cover store engine and repository paths 2026-07-26 19:36:37 +03:00
test_chunking_pipeline.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00