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(profiles): log provision errors before unwrapping in host tests
Steven Enamakel41f7d2300981
diff --git a/crates/openhuman-core/src/profiles/host_tests.rs b/crates/openhuman-core/src/profiles/host_tests.rsindex 568dd2b879..28203f8298 100644--- a/crates/openhuman-core/src/profiles/host_tests.rs+++ b/crates/openhuman-core/src/profiles/host_tests.rs@@ -26,7 +26,11 @@ async fn provisioning_creates_the_layout_once() {let tmp = tempfile::tempdir().unwrap();let host = host(&tmp, 4, 60);let id = profile("alice");- assert!(host.provision(&id).await.unwrap());+ let provisioned = host.provision(&id).await;+ if let Err(error) = &provisioned {+ eprintln!("profile provision error: {error}");+ }+ assert!(provisioned.unwrap());assert!(!host.provision(&id).await.unwrap(),"second provision is a no-op"@@ -51,7 +55,11 @@ async fn an_open_profile_runs_under_its_own_scope() {let tmp = tempfile::tempdir().unwrap();let host = host(&tmp, 4, 60);let (a, b) = (profile("alice"), profile("bob"));- host.provision(&a).await.unwrap();+ let provisioned = host.provision(&a).await;+ if let Err(error) = &provisioned {+ eprintln!("profile provision error: {error}");+ }+ provisioned.unwrap();host.provision(&b).await.unwrap();let state_a = host.open(&a).await.unwrap();let state_b = host.open(&b).await.unwrap();@@ -372,7 +380,11 @@ async fn the_operators_iteration_cap_binds_every_profile_whatever_its_config_saysaas.max_tool_iterations = Some(4);let host = ProfileHost::new(saas, CoreContext::for_test(DomainSet::full(), None));let id = profile("alice");- host.provision(&id).await.unwrap();+ let provisioned = host.provision(&id).await;+ if let Err(error) = &provisioned {+ eprintln!("enforced profile provision error: {error}");+ }+ provisioned.unwrap();let layout = ProfileLayout::new(tmp.path(), &id);std::fs::write(&layout.config_path,