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): gate testkit-dependent tests behind the testkit feature
Steven Enamakel415d9b3d6d88
diff --git a/crates/openhuman-embed/src/runtime/builder.rs b/crates/openhuman-embed/src/runtime/builder.rsindex b1fd9908c3..d7ce4c45d4 100644--- a/crates/openhuman-embed/src/runtime/builder.rs+++ b/crates/openhuman-embed/src/runtime/builder.rs@@ -240,8 +240,8 @@ impl RuntimeBuilder {////// For a host serving many users from one process out of its own/// database; pair it with [`Workspace::Stateless`] so nothing durable is- /// left on disk. [`InMemorySessionStores`](crate::InMemorySessionStores)- /// keeps everything in memory. It is process-wide, as the runtime is, and+ /// left on disk. A provider from the `testkit` feature can keep everything+ /// in memory. It is process-wide, as the runtime is, and/// is removed with the runtime.pub fn session_store(mut self, provider: Arc<dyn SessionStoreProvider>) -> Self {self.session_store = Some(provider);diff --git a/crates/openhuman-embed/src/runtime/run_tests.rs b/crates/openhuman-embed/src/runtime/run_tests.rsindex fc72061d81..a61f9f5f70 100644--- a/crates/openhuman-embed/src/runtime/run_tests.rs+++ b/crates/openhuman-embed/src/runtime/run_tests.rs@@ -53,6 +53,7 @@ fn the_launcher_takes_the_handed_over_builder_once() {}#[test]+#[cfg(feature = "testkit")]fn split_for_cli_keeps_the_session_store_for_a_stateless_workspace() {use crate::session_store::InMemorySessionStores;let store: Arc<dyn SessionStoreProvider> = Arc::new(InMemorySessionStores::new());diff --git a/crates/openhuman-embed/tests/attached_tools.rs b/crates/openhuman-embed/tests/attached_tools.rsindex 4f7b008216..a38bec3b59 100644--- a/crates/openhuman-embed/tests/attached_tools.rs+++ b/crates/openhuman-embed/tests/attached_tools.rs@@ -1,3 +1,5 @@+#![cfg(feature = "testkit")]+mod common;use common::{chat_completion, chat_requests, offline_config, runtime, stub_backend};use openhuman_embed::session_store::SessionRef;diff --git a/crates/openhuman-embed/tests/cron_host_delivery.rs b/crates/openhuman-embed/tests/cron_host_delivery.rsindex 1c0ab53c49..b4b435464b 100644--- a/crates/openhuman-embed/tests/cron_host_delivery.rs+++ b/crates/openhuman-embed/tests/cron_host_delivery.rs@@ -1,3 +1,5 @@+#![cfg(feature = "testkit")]+//! A library agent's scheduled reply reaches the host's `CronDelivery`.//!//! The agent makes a one-shot job through the `cron` tool in a chat turn on adiff --git a/crates/openhuman-embed/tests/named_admitted_tools.rs b/crates/openhuman-embed/tests/named_admitted_tools.rsindex b3b4065d15..e4df2ce37a 100644--- a/crates/openhuman-embed/tests/named_admitted_tools.rs+++ b/crates/openhuman-embed/tests/named_admitted_tools.rs@@ -1,3 +1,5 @@+#![cfg(feature = "testkit")]+//! An embedded agent on the harness domains gets the scheduler and clock tools//! it names, although their domain family is off, and nothing else from that//! family: not the shell or file tools, even when it names them too. `cron` isdiff --git a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs b/crates/openhuman-embed/tests/profile_refused_tool_generation.rsindex f5ef7d7956..b5760668fa 100644--- a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs+++ b/crates/openhuman-embed/tests/profile_refused_tool_generation.rs@@ -1,3 +1,5 @@+#![cfg(feature = "testkit")]+//! A refused tool call must not rewrite an earlier turn's result. Providers//! reuse tool-call ids across turns (`call_1` again), so a failure in this turn//! used to mark the earlier turn's successful `cron` result as failed; thediff --git a/crates/openhuman-embed/tests/runtime_observation.rs b/crates/openhuman-embed/tests/runtime_observation.rsindex d565aa56a8..a0401c7d1b 100644--- a/crates/openhuman-embed/tests/runtime_observation.rs+++ b/crates/openhuman-embed/tests/runtime_observation.rs@@ -1,3 +1,5 @@+#![cfg(feature = "testkit")]+//! Isolation and lifecycle checks for custom inference and runtime observation.mod common;use async_trait::async_trait;diff --git a/crates/openhuman-embed/tests/session_store.rs b/crates/openhuman-embed/tests/session_store.rsindex 92a8063ee8..e5c78a95a1 100644--- a/crates/openhuman-embed/tests/session_store.rs+++ b/crates/openhuman-embed/tests/session_store.rs@@ -1,3 +1,5 @@+#![cfg(feature = "testkit")]+//! End-to-end proof that a host session store owns every conversation.//!//! A stateless runtime with an [`InMemorySessionStores`] runs two agents