test(memory): add integration tests for store_session_summary → Qdrant upsert roundtrip#1936
Merged
test(memory): add integration tests for store_session_summary → Qdrant upsert roundtrip#1936
Conversation
…t roundtrip (#1916) Add four #[ignore] integration tests to crates/zeph-memory/tests/qdrant_integration.rs using testcontainers (real Qdrant) and SQLite :memory:: - store_session_summary_roundtrip: stores one summary, searches it back, verifies summary_text, conversation_id, and score (epsilon for f32 rounding) - store_session_summary_multiple_conversations: stores 3 summaries, verifies unfiltered count=3, filtered exclusion removes correct conversation, and remaining two conversation IDs are present - store_shutdown_summary_full_roundtrip: verifies both the SQLite path (has_session_summary + content via load_summaries) and the Qdrant path (vector search returns the stored summary) - search_session_summaries_returns_empty_when_no_data: verifies Ok(vec![]) on empty collection, not an error Each test guards against silent Qdrant=None construction via has_vector_store() and is_vector_store_connected() assertions. New helper setup_semantic_memory_with_qdrant() provides real Qdrant + SQLite :memory: + MockProvider with fixed 384-dim embedding. Closes #1916
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1916
#[ignore]integration tests tocrates/zeph-memory/tests/qdrant_integration.rsusing testcontainers (real Qdrant) to verify the fullstore_session_summary → Qdrant upsertroundtrip that was previously completely untestedsetup_semantic_memory_with_qdrant()helper: real Qdrant via testcontainers, SQLite:memory:,MockProviderwith fixed 384-dim embeddingQdrant=Noneconstruction viahas_vector_store()+is_vector_store_connected()assertionsTests added
store_session_summary_roundtripsummary_text,conversation_id, score ≈ 1.0store_session_summary_multiple_conversationsstore_shutdown_summary_full_roundtriphas_session_summary+ content viaload_summaries) AND Qdrant vector search pathsearch_session_summaries_returns_empty_when_no_dataOk(vec![]), not an errorTest plan
cargo nextest run -p zeph-memory -- --ignored)cargo +nightly fmt --checkcleancargo clippy --workspace --features full -- -D warningsclean