haiku.rag/tests/cassettes/test_client
Yiorgis Gozadinos 73944f91ea
Close the source adapter one-shot ingestion builds
create_document_from_source resolves a fetcher per call and never closed
it, so every one-shot URL or WebDAV ingest leaked an httpx connection
pool. Close it, but only when we built it: resolve_adhoc_fetcher returns
a caller-supplied source when one matches the URI, and the ingester keeps
those open across jobs.

Directory ingestion also yielded symlinked files resolving outside the
directory it was given. rglob does not recurse into symlinked
directories, so a symlinked file was the only way out of the tree; skip
those, as FSSource.discover already does.

The chunk repository docstring named client._ensure_chunks_embedded,
which does not exist.
2026-08-19 13:14:21 +03:00
..
test_adhoc_source_is_closed_after_ingest.yaml Close the source adapter one-shot ingestion builds 2026-08-19 13:14:21 +03:00
test_client_ask.yaml replace haiku.skills with native Pydantic AI capabilities 2026-07-24 15:26:17 +03:00
test_client_async_context_manager.yaml
test_client_create_document_from_directory.yaml
test_client_create_document_from_file_stores_docling_json.yaml
test_client_create_document_from_source.yaml
test_client_create_document_from_source_uri_override_dedupes.yaml Allow uri override on create_document_from_source 2026-04-30 16:36:35 +03:00
test_client_create_document_from_source_with_uri_override.yaml Allow uri override on create_document_from_source 2026-04-30 16:36:35 +03:00
test_client_create_document_from_url.yaml
test_client_create_document_from_url_with_different_content_types.yaml
test_client_create_document_stores_docling_json.yaml
test_client_create_document_with_html_format.yaml
test_client_create_update_no_op_behavior.yaml
test_client_document_crud.yaml
test_client_expand_context.yaml
test_client_file_update_stores_docling_json.yaml
test_client_import_document_stores_docling_data.yaml
test_client_import_document_with_custom_chunks.yaml
test_client_metadata_content_type_and_md5.yaml
test_client_search.yaml Stabilize test_client_search ranking assertion 2026-05-14 14:37:27 +03:00
test_client_update_document.yaml
test_client_update_document_content_docling_mutually_exclusive.yaml
test_client_update_document_docling_with_chunks.yaml
test_client_update_document_stores_docling_json.yaml
test_client_update_document_with_custom_chunks_no_docling_json.yaml
test_client_update_document_with_docling_rechunks.yaml
test_client_update_title_noop_behavior.yaml
test_client_url_create_update_no_op_behavior.yaml
test_client_visualize_chunk_no_bounding_boxes.yaml
test_client_visualize_chunk_returns_list.yaml
test_client_visualize_chunk_with_pdf.yaml
test_configured_source_is_not_closed_after_ingest.yaml Close the source adapter one-shot ingestion builds 2026-08-19 13:14:21 +03:00
test_directory_ingest_skips_symlinks_escaping_the_tree.yaml Close the source adapter one-shot ingestion builds 2026-08-19 13:14:21 +03:00
test_import_document_embeds_chunks_without_embeddings.yaml
test_import_documents_schedules_vacuum_per_config[False].yaml Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_import_documents_schedules_vacuum_per_config[True].yaml Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_reingesting_a_source_applies_an_explicit_title.yaml Reach and enforce 100% coverage 2026-07-26 20:11:02 +03:00
test_sql_injection_is_blocked_with_escaping.yaml
test_update_document_embeds_chunks_without_embeddings.yaml