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(openhuman-embed): drop debug tracing and turn timeout from tests
Steven Enamakelb48412a4186b
diff --git a/crates/openhuman-embed/tests/common/mod.rs b/crates/openhuman-embed/tests/common/mod.rsindex bfe044f0b5..31cfa8ec89 100644--- a/crates/openhuman-embed/tests/common/mod.rs+++ b/crates/openhuman-embed/tests/common/mod.rs@@ -50,6 +50,10 @@ pub fn offline_config() -> Config {// but unrelated to these tests' contracts and would race the final// ephemeral-workspace cleanup assertion.config.memory.conversations.enabled = false;+ // These tests use canned providers and do not exercise jailed tool+ // execution. Avoid recursively inspecting host toolchain trees for local+ // jail grants on every test turn.+ config.runtime.local_jail.toolchain_homes = false;// Session-store dual writes and shadow reads are also deliberately// fire-and-forget; leaving them on makes their detached filesystem work// race the synchronous ephemeral cleanup.diff --git a/crates/openhuman-embed/tests/isolation_state.rs b/crates/openhuman-embed/tests/isolation_state.rsindex 2c2e2629ff..987e915392 100644--- a/crates/openhuman-embed/tests/isolation_state.rs+++ b/crates/openhuman-embed/tests/isolation_state.rs@@ -47,21 +47,18 @@ fn skill_tools() -> AgentDefinitionSpec {}async fn send(agent: &Agent, message: &str) {- eprintln!("isolation-state: {} turn starting", agent.id());agent.turn(message).session(SESSION).send().await.unwrap_or_else(|error| panic!("{}'s turn: {error}", agent.id()));- eprintln!("isolation-state: {} turn finished", agent.id());}#[test]fn agents_on_one_workspace_keep_their_own_state() {let _ = env_logger::builder().is_test(true).try_init();runtime().block_on(async {- eprintln!("isolation-state: starting backend/runtime");tokio::spawn(async move {let backend = stub_backend().await;let session_store = std::sync::Arc::new(InMemorySessionStores::new());@@ -74,7 +71,6 @@ fn agents_on_one_workspace_keep_their_own_state() {.build().await.expect("runtime builds");- eprintln!("isolation-state: runtime built");let name = skill_name();let a_provider = scripted_provider(@@ -102,29 +98,11 @@ fn agents_on_one_workspace_keep_their_own_state() {.definition(skill_tools()),).expect("b instantiates");- eprintln!("isolation-state: agents instantiated");assert_eq!(a.workspace_dir(), b.workspace_dir());// ── the same session id, concurrently, on both agents ──- let first_pair = tokio::time::timeout(- std::time::Duration::from_secs(10),- async {- tokio::join!(send(&a, "alpha-secret-one"), send(&b, "beta-secret-one"))- },- )- .await;- if first_pair.is_err() {- let a_requests = chat_requests(&a_provider).await;- let b_requests = chat_requests(&b_provider).await;- panic!(- "first turn pair stalled: a_requests={}, b_requests={}",- a_requests.len(),- b_requests.len()- );- }- eprintln!("isolation-state: first pair sent");+ tokio::join!(send(&a, "alpha-secret-one"), send(&b, "beta-secret-one"));tokio::join!(send(&a, "alpha-secret-two"), send(&b, "beta-secret-two"));- eprintln!("isolation-state: second pair sent");let a_requests = chat_requests(&a_provider).await;let b_requests = chat_requests(&b_provider).await;diff --git a/crates/openhuman-embed/tests/route_headers.rs b/crates/openhuman-embed/tests/route_headers.rsindex cc3662ea0d..b479520898 100644--- a/crates/openhuman-embed/tests/route_headers.rs+++ b/crates/openhuman-embed/tests/route_headers.rs@@ -11,7 +11,6 @@ fn attribution_headers_are_scoped_to_each_agent_and_turn_route() {}async fn scenario() {- eprintln!("route-headers: starting backend/runtime");let backend = stub_backend().await;let (a_provider, b_provider) = tokio::join!(provider("a"), provider("b"));let runtime = Runtime::builder()@@ -21,7 +20,6 @@ async fn scenario() {.build().await.unwrap();- eprintln!("route-headers: runtime built");let a_route = Route::openai_compatible(format!("{}/v1", a_provider.uri()), "a-key").header("x-medulla-agent-id", "worker-a").header("x-medulla-run-id", "a-run")@@ -37,7 +35,6 @@ async fn scenario() {let a = runtime.agent(AgentSpec::new("worker-a").provider(route(&a_provider, "fixture"))).unwrap();- eprintln!("route-headers: agents instantiated");let b = runtime.agent(AgentSpec::new("worker-b").provider(@@ -58,10 +55,8 @@ async fn scenario() {);a_result.unwrap();b_result.unwrap();- eprintln!("route-headers: first pair sent");// The next turn inherits the agent provider, not the previous turn's headers.a.run("next a").await.unwrap();- eprintln!("route-headers: final turn sent");let a_requests = chat_requests(&a_provider).await;let b_requests = chat_requests(&b_provider).await;assert_eq!(a_requests.len(), 2);