The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(ci): add tinysearch module to CI workflows and test infrastructure
Steven Enamakelf45302ba0de6
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.ymlindex bd9651ff5b..2662a90866 100644--- a/.github/workflows/ci-full.yml+++ b/.github/workflows/ci-full.yml@@ -138,10 +138,11 @@ jobs:memory_dir="$module_root/tinymemory"juice_dir="$module_root/tinyjuice"connectors_dir="$module_root/tinyconnectors"+ search_dir="$module_root/tinysearch"memory_archive="$memory_dir/tinymemory-module-${memory_version}-ubuntu-22.04-x86_64.tar.gz"juice_archive="$juice_dir/tinyjuice-module-0.2.2-ubuntu-22.04-x86_64.tar.gz"rm -rf "$memory_dir" "$juice_dir" "$connectors_dir"- mkdir -p "$memory_dir" "$juice_dir" "$connectors_dir"+ mkdir -p "$memory_dir" "$juice_dir" "$connectors_dir" "$search_dir"curl --fail --location --silent --show-error --retry 4 --retry-delay 2 \"https://github.com/tinyhumansai/tinymemory/releases/download/v${memory_version}/$(basename "$memory_archive")" \--output "$memory_archive"@@ -158,12 +159,18 @@ jobs:--manifest-path vendor/tinyconnectors/crates/tinyconnectors/Cargo.tomlcp vendor/tinyconnectors/target/release/libtinyconnectors.so \"$connectors_dir/libtinyconnectors.so"+ bash scripts/ci-cancel-aware.sh cargo build --release \+ --manifest-path vendor/tinysearch/crates/tinysearch/Cargo.toml+ cp vendor/tinysearch/target/release/libtinysearch.so \+ "$search_dir/libtinysearch.so"echo "TINYMEMORY_TEST_MODULE=$memory_dir/libtinymemory_module.so" \>> "$GITHUB_ENV"echo "TINYJUICE_TEST_MODULE=$juice_dir/libtinyjuice_module.so" \>> "$GITHUB_ENV"echo "TINYCONNECTORS_TEST_MODULE=$connectors_dir/libtinyconnectors.so" \>> "$GITHUB_ENV"+ echo "TINYSEARCH_TEST_MODULE=$search_dir/libtinysearch.so" \+ >> "$GITHUB_ENV"- name: Run Rust E2E suite# Wrapped so the cancellation watchdog covers the whole suite (mock@@ -332,10 +339,11 @@ jobs:memory_dir="$module_root/tinymemory"juice_dir="$module_root/tinyjuice"connectors_dir="$module_root/tinyconnectors"+ search_dir="$module_root/tinysearch"memory_archive="$memory_dir/tinymemory-module-${memory_version}-ubuntu-22.04-x86_64.tar.gz"juice_archive="$juice_dir/tinyjuice-module-0.2.2-ubuntu-22.04-x86_64.tar.gz"rm -rf "$memory_dir" "$juice_dir" "$connectors_dir"- mkdir -p "$memory_dir" "$juice_dir" "$connectors_dir"+ mkdir -p "$memory_dir" "$juice_dir" "$connectors_dir" "$search_dir"curl --fail --location --silent --show-error --retry 4 --retry-delay 2 \"https://github.com/tinyhumansai/tinymemory/releases/download/v${memory_version}/$(basename "$memory_archive")" \--output "$memory_archive"@@ -351,9 +359,14 @@ jobs:--manifest-path vendor/tinyconnectors/crates/tinyconnectors/Cargo.tomlcp vendor/tinyconnectors/target/release/libtinyconnectors.so \"$connectors_dir/libtinyconnectors.so"+ bash scripts/ci-cancel-aware.sh cargo build --release \+ --manifest-path vendor/tinysearch/crates/tinysearch/Cargo.toml+ cp vendor/tinysearch/target/release/libtinysearch.so \+ "$search_dir/libtinysearch.so"echo "TINYMEMORY_TEST_MODULE=$memory_dir/libtinymemory_module.so" >> "$GITHUB_ENV"echo "TINYJUICE_TEST_MODULE=$juice_dir/libtinyjuice_module.so" >> "$GITHUB_ENV"echo "TINYCONNECTORS_TEST_MODULE=$connectors_dir/libtinyconnectors.so" >> "$GITHUB_ENV"+ echo "TINYSEARCH_TEST_MODULE=$search_dir/libtinysearch.so" >> "$GITHUB_ENV"- name: Install Playwright Chromium headless shellrun: pnpm --filter openhuman-app exec playwright install chromium-headless-shelldiff --git a/.github/workflows/ci-lite.yml b/.github/workflows/ci-lite.ymlindex 7815eccb71..08d37ce8c7 100644--- a/.github/workflows/ci-lite.yml+++ b/.github/workflows/ci-lite.yml@@ -681,10 +681,11 @@ jobs:memory_dir="$module_root/tinymemory"juice_dir="$module_root/tinyjuice"connectors_dir="$module_root/tinyconnectors"+ search_dir="$module_root/tinysearch"memory_archive="$memory_dir/tinymemory-module-${memory_version}-ubuntu-22.04-x86_64.tar.gz"juice_archive="$juice_dir/tinyjuice-module-0.2.2-ubuntu-22.04-x86_64.tar.gz"rm -rf "$memory_dir" "$juice_dir" "$connectors_dir"- mkdir -p "$memory_dir" "$juice_dir" "$connectors_dir"+ mkdir -p "$memory_dir" "$juice_dir" "$connectors_dir" "$search_dir"curl --fail --location --silent --show-error --retry 4 --retry-delay 2 \"https://github.com/tinyhumansai/tinymemory/releases/download/v${memory_version}/$(basename "$memory_archive")" \--output "$memory_archive"@@ -702,12 +703,18 @@ jobs:--manifest-path vendor/tinyconnectors/crates/tinyconnectors/Cargo.tomlcp vendor/tinyconnectors/target/release/libtinyconnectors.so \"$connectors_dir/libtinyconnectors.so"+ bash scripts/ci-cancel-aware.sh cargo build --release \+ --manifest-path vendor/tinysearch/crates/tinysearch/Cargo.toml+ cp vendor/tinysearch/target/release/libtinysearch.so \+ "$search_dir/libtinysearch.so"echo "TINYMEMORY_TEST_MODULE=$memory_dir/libtinymemory_module.so" \>> "$GITHUB_ENV"echo "TINYJUICE_TEST_MODULE=$juice_dir/libtinyjuice_module.so" \>> "$GITHUB_ENV"echo "TINYCONNECTORS_TEST_MODULE=$connectors_dir/libtinyconnectors.so" \>> "$GITHUB_ENV"+ echo "TINYSEARCH_TEST_MODULE=$search_dir/libtinysearch.so" \+ >> "$GITHUB_ENV"- name: Run TinyJuice host-module regressionrun: |diff --git a/.github/workflows/test-reusable.yml b/.github/workflows/test-reusable.ymlindex d1bab5bf91..1c59059cdb 100644--- a/.github/workflows/test-reusable.yml+++ b/.github/workflows/test-reusable.yml@@ -170,8 +170,9 @@ jobs:memory_dir="$module_root/tinymemory"juice_dir="$module_root/tinyjuice"connectors_dir="$module_root/tinyconnectors"+ search_dir="$module_root/tinysearch"rm -rf "$module_root"- mkdir -p "$memory_dir" "$juice_dir" "$connectors_dir"+ mkdir -p "$memory_dir" "$juice_dir" "$connectors_dir" "$search_dir"bash scripts/ci-cancel-aware.sh cargo build --release \--manifest-path vendor/tinymemory/crates/tinymemory-module/Cargo.tomlcp vendor/tinymemory/crates/tinymemory-module/target/release/libtinymemory_module.so \@@ -184,9 +185,14 @@ jobs:--manifest-path vendor/tinyconnectors/crates/tinyconnectors/Cargo.tomlcp vendor/tinyconnectors/target/release/libtinyconnectors.so \"$connectors_dir/libtinyconnectors.so"+ bash scripts/ci-cancel-aware.sh cargo build --release \+ --manifest-path vendor/tinysearch/crates/tinysearch/Cargo.toml+ cp vendor/tinysearch/target/release/libtinysearch.so \+ "$search_dir/libtinysearch.so"echo "TINYMEMORY_TEST_MODULE=$memory_dir/libtinymemory_module.so" >> "$GITHUB_ENV"echo "TINYJUICE_TEST_MODULE=$juice_dir/libtinyjuice_module.so" >> "$GITHUB_ENV"echo "TINYCONNECTORS_TEST_MODULE=$connectors_dir/libtinyconnectors.so" >> "$GITHUB_ENV"+ echo "TINYSEARCH_TEST_MODULE=$search_dir/libtinysearch.so" >> "$GITHUB_ENV"- name: Test core crate (openhuman)# This script uses Bash-only process substitution below. Reusable# workflows do not inherit the caller's `defaults.run.shell`, anddiff --git a/crates/openhuman-core/src/modules/ops.rs b/crates/openhuman-core/src/modules/ops.rsindex 157311b006..0bc09182a3 100644--- a/crates/openhuman-core/src/modules/ops.rs+++ b/crates/openhuman-core/src/modules/ops.rs@@ -617,6 +617,12 @@ fn local_override(config: &Config, id: &str) -> Option<PathBuf> {.flatten().map(PathBuf::from)})+ .or_else(|| {+ (id == super::search::MODULE_ID)+ .then(|| std::env::var_os("TINYSEARCH_TEST_MODULE"))+ .flatten()+ .map(PathBuf::from)+ }).or_else(|| {// TinyConnectors exposes its contract to the host, but has no// host-side module namespace: it is resolved by its registry ID.diff --git a/scripts/test-rust-with-mock.sh b/scripts/test-rust-with-mock.shindex 911ad25d6f..b843575d7e 100755--- a/scripts/test-rust-with-mock.sh+++ b/scripts/test-rust-with-mock.sh@@ -137,6 +137,17 @@ if [ -z "${TINYJUICE_TEST_MODULE:-}" ]; thenexport TINYJUICE_TEST_MODULE="$REPO_ROOT/$juice_module"fi+# Search JSON-RPC/agent coverage calls the TinySearch module against the mock+# backend's managed Exa/Gemini routes. Build the pinned submodule so the suite+# never depends on a published release.+if [ -z "${TINYSEARCH_TEST_MODULE:-}" ]; then+ search_manifest="vendor/tinysearch/crates/tinysearch/Cargo.toml"+ search_module="vendor/tinysearch/target/release/libtinysearch.$module_ext"+ echo "Building TinySearch test module from the pinned submodule ..."+ cargo build --release --manifest-path "$search_manifest"+ export TINYSEARCH_TEST_MODULE="$REPO_ROOT/$search_module"+fi+# Wallet JSON-RPC E2E sends a recovery phrase only to an attested module. Build# artifacts are deliberately not treated as release-pinned recipients, so use# the checksum-pinned release archive and its accompanying `modules.toml`.