From 7bda068599c120dd60aaedd64601c01d27863ed8 Mon Sep 17 00:00:00 2001 From: Josh Stevenson Date: Mon, 28 Sep 2026 17:06:43 -0500 Subject: [PATCH] test: align replay import gate with Libraries owner --- .github/workflows/paired-root.yml | 6 ++++++ tests/search_tests.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/paired-root.yml b/.github/workflows/paired-root.yml index 490da05..313d749 100644 --- a/.github/workflows/paired-root.yml +++ b/.github/workflows/paired-root.yml @@ -81,6 +81,12 @@ jobs: cargo fmt --package semantic-memory -- --check cargo check --locked -p semantic-memory --example governed_append_canary cargo clippy --locked -p semantic-memory --all-targets -- -D warnings + # Turbo without testing must not import the testing-only ReplayMode. + cargo clippy --locked -p semantic-memory --test search_tests \ + --no-default-features --features brute-force,turbo-quant-codec -- -D warnings + # The testing lane must still compile and execute its replay tests. + cargo test --locked -q -p semantic-memory --test search_tests \ + --no-default-features --features brute-force,testing cargo test --locked -q -p semantic-memory --lib cargo test --locked -q -p semantic-memory --test foreign_key_integrity cargo test --locked -q -p semantic-memory --test episode_meta_trait diff --git a/tests/search_tests.rs b/tests/search_tests.rs index 6a0abed..bc39b36 100755 --- a/tests/search_tests.rs +++ b/tests/search_tests.rs @@ -3,7 +3,7 @@ use semantic_memory::search::{cosine_similarity, sanitize_fts_query, source_dedup_key}; #[cfg(feature = "turbo-quant-codec")] use semantic_memory::DerivedVectorBackendPolicy; -#[cfg(any(feature = "testing", feature = "turbo-quant-codec"))] +#[cfg(feature = "testing")] use semantic_memory::ReplayMode; use semantic_memory::SearchSource; use semantic_memory::{