haiku.rag/tests
Chris McDonough f33a4629e1 Handle sync_state write failure after mark_succeeded without crashing
If sync.upsert() or sync.delete() raises after a job is already
marked succeeded (e.g. disk full, DB locked), the unhandled
exception crashes the worker. The job stays succeeded but sync_state
is stale, and the crashed worker stops processing other jobs.

Wrap the post-success sync_state writes in a try/except. On failure,
log the error and continue. The worst case is a redundant re-ingest
on the next sweep — better than killing the worker.
2026-06-01 08:11:02 -04:00
..
cassettes record cassettes against new fixtures, fix stale assertions 2026-05-26 11:44:46 +03:00
chat rotate chat TUI conversation id per launch / clear-chat 2026-05-21 14:21:51 +03:00
data Remove repliqa from test setup 2026-06-01 10:40:52 +03:00
docker
ingester Handle sync_state write failure after mark_succeeded without crashing 2026-06-01 08:11:02 -04:00
sandbox toc.json nodes carry chunk_ids; fix cite to accept DB-resolvable chunk_ids 2026-05-20 11:37:35 +03:00
skills drop list_documents/get_document from default RAG skill 2026-05-26 11:35:43 +03:00
store Cover unparseable-metadata path 2026-05-26 11:44:47 +03:00
tools remove dead code, add tool descriptions in frontend, update changelog 2026-04-20 15:38:17 +03:00
utils
__init__.py
conftest.py Remove repliqa from test setup 2026-06-01 10:40:52 +03:00
json_body_serializer.py
test_cascade_delete.py Cascade delete_document to children via metadata.parent_uri 2026-05-28 15:36:00 +03:00
test_chunk.py Remove repliqa from test setup 2026-06-01 10:40:52 +03:00
test_chunker.py Remove repliqa from test setup 2026-06-01 10:40:52 +03:00
test_cli.py drop the old monitor, rename serve→mcp, add e2e tests 2026-05-26 11:42:41 +03:00
test_client.py Remove repliqa from test setup 2026-06-01 10:40:52 +03:00
test_client_analyze.py record cassettes against new fixtures, fix stale assertions 2026-05-26 11:44:46 +03:00
test_config.py Drop the multi-agent research workflow 2026-05-20 12:46:48 +03:00
test_context.py search: only attach picture bytes from pre-expansion chunks 2026-05-19 15:03:22 +03:00
test_context_enhancement.py Always use the Store-owned embedder 2026-05-29 11:36:53 +03:00
test_converters.py Let httpx errors flow through DoclingServeClient 2026-05-26 17:38:49 +03:00
test_database_autocreate.py Migrate LanceDB to native async API 2026-04-24 14:42:52 +03:00
test_docling_serve_client.py Fix round-robin docling-serve 2026-05-26 13:07:21 +03:00
test_document.py Remove repliqa from test setup 2026-06-01 10:40:52 +03:00
test_download_models.py Drop the multi-agent research workflow 2026-05-20 12:46:48 +03:00
test_embedder.py Always use the Store-owned embedder 2026-05-29 11:36:53 +03:00
test_embedder_config.py auto-append /v1 to vllm base_url, matching ollama behavior 2026-05-05 16:08:14 +03:00
test_filter.py Push document-id filter into chunk search query 2026-04-24 16:07:07 +03:00
test_info.py Migrate LanceDB to native async API 2026-04-24 14:42:52 +03:00
test_inspector.py render attached pictures in inspector context modal under qa.model.vision 2026-05-06 12:00:12 +03:00
test_lancedb_connection.py Group relative-path test with the other connect_lancedb dispatch tests 2026-04-25 09:28:46 +03:00
test_logging.py
test_mcp.py rename embed_image_query to embed_image; run description check on text path 2026-05-05 16:15:47 +03:00
test_pdf_attachments.py improve coverage 2026-05-28 18:06:47 +03:00
test_pdf_split.py Unlink PDF slice tempfiles when slice write fails 2026-05-26 13:46:24 +03:00
test_picture_description.py cover picture-description provider and rebuild edge cases 2026-05-05 14:20:37 +03:00
test_picture_in_context.py Always use the Store-owned embedder 2026-05-29 11:36:53 +03:00
test_processing.py Replace picture_description.enabled with processing.pictures enum 2026-05-13 16:22:44 +03:00
test_reader.py
test_rebuild.py Remove repliqa from test setup 2026-06-01 10:40:52 +03:00
test_reranker.py coverage 2026-05-14 15:54:43 +03:00
test_s3_integration.py drop the old monitor, rename serve→mcp, add e2e tests 2026-05-26 11:42:41 +03:00
test_s3_source.py canonical metadata keys: source_revision + content_type, bump to 0.50.0 2026-05-26 11:43:30 +03:00
test_search.py Remove repliqa from test setup 2026-06-01 10:40:52 +03:00
test_settings.py drop the old monitor, rename serve→mcp, add e2e tests 2026-05-26 11:42:41 +03:00
test_skill_generator.py Remove documents from state, fix tests 2026-04-20 09:48:18 +03:00
test_skill_tools.py drop list_documents/get_document from default RAG skill 2026-05-26 11:35:43 +03:00
test_title_generation.py drop private title/embedding forwarders from HaikuRAG 2026-04-24 15:52:50 +03:00
test_utils.py Drop the multi-agent research workflow 2026-05-20 12:46:48 +03:00
test_versioning.py Always use the Store-owned embedder 2026-05-29 11:36:53 +03:00