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
test(embed): build profile tests on the testkit memory backend
oxoxDevdf6698770a3c
diff --git a/Cargo.lock b/Cargo.lockindex 97691f849d..c8d171b51d 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -5976,6 +5976,7 @@ dependencies = ["tinymcp-bus","tinymemory-api","tinymemory-tools",+ "tinystoragedrivers-testkit","tinytools 0.6.0","tinytools-std","tokio",diff --git a/crates/openhuman-embed/Cargo.toml b/crates/openhuman-embed/Cargo.tomlindex 990932703d..d3d4e366ea 100644--- a/crates/openhuman-embed/Cargo.toml+++ b/crates/openhuman-embed/Cargo.toml@@ -120,6 +120,7 @@ env_logger = "0.11"# the dev graph adds no reqwest feature (see the unification note below).reqwest = { version = "0.12", default-features = false, features = ["json", "blocking", "rustls-tls", "stream", "http2", "multipart", "socks"] }wiremock = "0.6"+tinystoragedrivers-testkit = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "05eaada962decbab33bafa4763d2bd1a67f6b456" }# Feature unification with openhuman-cli's dev-dependencies. Cargo builds the# core once per distinct feature set of its dependencies, and the tests of# openhuman-embed, openhuman-tinyhumans and openhuman-cli each pull in the corediff --git a/crates/openhuman-embed/tests/cron_reminder_no_reply.rs b/crates/openhuman-embed/tests/cron_reminder_no_reply.rsindex f0923da97a..13295e1dec 100644--- a/crates/openhuman-embed/tests/cron_reminder_no_reply.rs+++ b/crates/openhuman-embed/tests/cron_reminder_no_reply.rs@@ -80,7 +80,7 @@ async fn scenario() {.mount(&inference).await;PointedInference::install(&inference.uri());- openhuman_core::storage::install(Arc::new(openhuman_core::storage::MemoryStorage::new()));+ openhuman_core::storage::install(Arc::new(tinystoragedrivers_testkit::MemoryBackend::new()));let root = tempfile::tempdir().unwrap();let recorder = Arc::new(Recorder::default());diff --git a/crates/openhuman-embed/tests/profile_cron_sweep.rs b/crates/openhuman-embed/tests/profile_cron_sweep.rsindex 9ab4de348a..72703ca478 100644--- a/crates/openhuman-embed/tests/profile_cron_sweep.rs+++ b/crates/openhuman-embed/tests/profile_cron_sweep.rs@@ -65,7 +65,7 @@ async fn scenario() {.await;PointedInference::install(&inference.uri());// The shared backend every sweeper would contend on.- openhuman_core::storage::install(Arc::new(openhuman_core::storage::MemoryStorage::new()));+ openhuman_core::storage::install(Arc::new(tinystoragedrivers_testkit::MemoryBackend::new()));let root = tempfile::tempdir().unwrap();let recorder = Arc::new(Recorder::default());diff --git a/crates/openhuman-embed/tests/profile_operator_tools.rs b/crates/openhuman-embed/tests/profile_operator_tools.rsindex 5dae147bf0..b0f7e163b2 100644--- a/crates/openhuman-embed/tests/profile_operator_tools.rs+++ b/crates/openhuman-embed/tests/profile_operator_tools.rs@@ -119,7 +119,7 @@ async fn scenario() {.mount(&managed).await;PointedInference::install(&managed.uri());- openhuman_core::storage::install(Arc::new(openhuman_core::storage::MemoryStorage::new()));+ openhuman_core::storage::install(Arc::new(tinystoragedrivers_testkit::MemoryBackend::new()));let root = tempfile::tempdir().unwrap();let recorder = Arc::new(Recorder::default());diff --git a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs b/crates/openhuman-embed/tests/profile_refused_tool_generation.rsindex b5760668fa..57688eef1f 100644--- a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs+++ b/crates/openhuman-embed/tests/profile_refused_tool_generation.rs@@ -105,7 +105,7 @@ async fn scenario() {.mount(&managed).await;PointedInference::install(&managed.uri());- openhuman_core::storage::install(Arc::new(openhuman_core::storage::MemoryStorage::new()));+ openhuman_core::storage::install(Arc::new(tinystoragedrivers_testkit::MemoryBackend::new()));let root = tempfile::tempdir().unwrap();let store = Arc::new(InMemorySessionStores::new());diff --git a/crates/openhuman-embed/tests/profile_turn_serialization.rs b/crates/openhuman-embed/tests/profile_turn_serialization.rsindex 22b2756cf1..581c8032f3 100644--- a/crates/openhuman-embed/tests/profile_turn_serialization.rs+++ b/crates/openhuman-embed/tests/profile_turn_serialization.rs@@ -83,7 +83,7 @@ async fn scenario() {.mount(&inference).await;PointedInference::install(&inference.uri());- openhuman_core::storage::install(Arc::new(openhuman_core::storage::MemoryStorage::new()));+ openhuman_core::storage::install(Arc::new(tinystoragedrivers_testkit::MemoryBackend::new()));let root = tempfile::tempdir().unwrap();let runtime = ProfileRuntime::builder(SaasConfig::new(root.path()))