haiku.rag/tests/cassettes
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 Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_chunker Store docling-serve chunk bodies via raw_text 2026-06-23 16:35:21 +03:00
test_client Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_client_analyze replace haiku.skills with native Pydantic AI capabilities 2026-07-24 15:26:17 +03:00
test_context_enhancement replace haiku.skills with native Pydantic AI capabilities 2026-07-24 15:26:17 +03:00
test_converters Re-record remaining docling-serve cassettes against 1.25.0 2026-06-23 16:44:58 +03:00
test_database_autocreate Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_document_tools Reach and enforce 100% coverage 2026-07-26 20:11:02 +03:00
test_duplicate_ingestion Re-check URI under the write lock to prevent duplicate ingestion 2026-07-08 11:26:45 +03:00
test_embedder Add Cohere multimodal embedder 2026-06-23 15:23:10 +03:00
test_filter Rename document_meta identity column document_id to id 2026-07-08 16:32:55 +03:00
test_picture_in_context auto-append /v1 to per-model Ollama base_url, fix flaky tests 2026-05-04 13:12:37 +03:00
test_read_only Search results now show rank position instead of raw scores. Consolidate cassettes 2026-01-21 14:54:15 +02:00
test_rebuild Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_reranker Support for jina reranker, both local and API 2026-01-21 10:39:21 +02:00
test_revision_round_trip Pass fetched FetchResult to ingester metadata providers 2026-06-16 16:37:26 +03:00
test_s3_source cover s3 uri override, unsupported extension, watcher error path 2026-05-11 11:29:56 +03:00
test_sandbox Run analysis sandbox VFS reads on the calling loop via the skill connection 2026-06-05 16:20:11 +03:00
test_search Pin FTS search column to content_fts 2026-04-24 14:42:53 +03:00
test_search_tools replace haiku.skills with native Pydantic AI capabilities 2026-07-24 15:26:17 +03:00
test_versioning Track all in-flight background vacuum tasks, not just the last one 2026-04-24 14:42:53 +03:00