haiku.rag/tests/ingester
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 ingester: add source-adapter scaffolding + FS source 2026-05-26 11:41:53 +03:00
conftest.py Support a dburi for the ingester queue (SQLite + Postgres) 2026-06-03 14:34:09 +03:00
test_api.py Make ingester job retry idempotent against a live sibling 2026-06-16 16:05:05 +03:00
test_circuit_breaker.py Move CircuitBreaker to a shared module 2026-07-08 11:03:30 +03:00
test_cli.py improve coverage 2026-06-22 12:59:44 +03:00
test_config.py Renew job leases from the worker pool; lease-based reaping 2026-06-25 13:26:09 +03:00
test_filter.py Improve test coverage for cli, filter, registry, and migrations 2026-06-01 18:00:47 +03:00
test_fs_source.py Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_http_source.py Cover MCP, ingester and converter error paths 2026-07-26 19:14:26 +03:00
test_metadata.py Pass fetched FetchResult to ingester metadata providers 2026-06-16 16:37:26 +03:00
test_pipeline.py Add run-batch manifest replay 2026-06-22 11:39:12 +03:00
test_pollers.py Cover MCP, ingester and converter error paths 2026-07-26 19:14:26 +03:00
test_queue.py Add last_heartbeat_at lease column to the ingester queue 2026-06-25 13:25:37 +03:00
test_queue_postgres.py Add last_heartbeat_at lease column to the ingester queue 2026-06-25 13:25:37 +03:00
test_resolve_fetcher.py Improve test coverage for cli, filter, registry, and migrations 2026-06-01 18:00:47 +03:00
test_revision_round_trip.py Bump lancedb to 0.34.0 2026-07-16 12:32:56 +03:00
test_run_batch.py Show progress for run-batch drains 2026-06-22 12:51:38 +03:00
test_s3_source.py Add configurable max_file_size to reject oversized files before ingestion 2026-06-01 18:40:46 +03:00
test_serve_integration.py Support a dburi for the ingester queue (SQLite + Postgres) 2026-06-03 14:34:09 +03:00
test_source_plugins.py Add custom ingester sources via entry points 2026-06-16 10:54:24 +03:00
test_sources_base.py Fix shutdown-order bug: close source clients after workers stop 2026-06-01 09:55:39 -04:00
test_webdav_source.py Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_workers.py Add Logfire debugging skills and worker-breaker event 2026-07-10 13:23:17 +03:00