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 Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_from_directory.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_from_file_stores_docling_json.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_from_source.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
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 Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_from_url_with_different_content_types.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_stores_docling_json.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_with_html_format.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_update_no_op_behavior.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_document_crud.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_expand_context.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_file_update_stores_docling_json.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_import_document_stores_docling_data.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_import_document_with_custom_chunks.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_metadata_content_type_and_md5.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_search.yaml Stabilize test_client_search ranking assertion 2026-05-14 14:37:27 +03:00
test_client_update_document.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_update_document_content_docling_mutually_exclusive.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_update_document_docling_with_chunks.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_update_document_stores_docling_json.yaml Search results now show rank position instead of raw scores. Consolidate cassettes 2026-01-21 14:54:15 +02:00
test_client_update_document_with_custom_chunks_no_docling_json.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_update_document_with_docling_rechunks.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_update_title_noop_behavior.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_url_create_update_no_op_behavior.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_visualize_chunk_no_bounding_boxes.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_visualize_chunk_returns_list.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_visualize_chunk_with_pdf.yaml Disable ocr in tests previously marked as integration 2026-01-12 16:19:25 +02:00
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 Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
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 Security fixes for RLM. Fix type() builtin, AST validation for dict key access, sql injection 2026-02-06 12:07:19 +01:00
test_update_document_embeds_chunks_without_embeddings.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00