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
chore: clean up test code and dependencies
Steven Enamakela57ef0cebe40
diff --git a/Cargo.lock b/Cargo.lockindex 41c51cd42c..a166be4eba 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -6507,6 +6507,7 @@ dependencies = ["tinytools-agent","tokio","tracing",+ "uuid",][[package]]diff --git a/crates/openhuman-core/src/agent/tinyagents/budget_stop_turn_tests.rs b/crates/openhuman-core/src/agent/tinyagents/budget_stop_turn_tests.rsindex 9ad77c2186..0ee7ed58cf 100644--- a/crates/openhuman-core/src/agent/tinyagents/budget_stop_turn_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/budget_stop_turn_tests.rs@@ -5,7 +5,6 @@ use crate::agent::stop_hooks::{BudgetStopHook, StopDecision, StopHook, TurnStateuse crate::agent::tinyagents::TurnModelSource;use async_trait::async_trait;use std::sync::Arc;-use tinyagents_harness::host::{ContextComposer, TurnContextRequest};use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};use tinyinference_llm::tool::ToolCall;use tinyinference_llm::usage::Usage;@@ -98,7 +97,6 @@ fn hosted_base() -> Arc<crate::agent::tinyagents::host::OpenHumanHostBase> {crate::agent::harness::definition::AgentDefinitionRegistry::builtins_only(),),security_policy: Arc::new(crate::security::policy::SecurityPolicy::default()),- memory: crate::memory::test_support::noop_memory(),post_turn_hooks: Vec::new(),session_definition: None,})diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rsindex 3182849be6..29f2f5215c 100644--- a/crates/openhuman-core/src/core/all_tests.rs+++ b/crates/openhuman-core/src/core/all_tests.rs@@ -200,7 +200,7 @@ fn all_controller_schemas_matches_registered_count() {let visible: Vec<_> = view.iter().filter(|g| group_allowed(g.group)).collect();let schemas = visible.iter().map(|g| &g.controller.schema).count();let controllers = visible.len();- assert_eq!(schemas.len(), controllers);+ assert_eq!(schemas, controllers);}/// With the `voice` feature on (the default), the voice + audio_toolkitdiff --git a/crates/openhuman-core/src/integrations/composio/bus_tests.rs b/crates/openhuman-core/src/integrations/composio/bus_tests.rsindex 1f6aea1505..f1227b6d39 100644--- a/crates/openhuman-core/src/integrations/composio/bus_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/bus_tests.rs@@ -6,6 +6,7 @@ use super::*;use crate::core::events::DomainEvent;use serde_json::json;use tinybus::EventHandler;+use tokio::sync::Mutex;static TRIAGE_ENV_GUARD: Mutex<()> = Mutex::new(());diff --git a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rsindex 25555f51c7..f6792798a5 100644--- a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs+++ b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs@@ -1,11 +1,8 @@use super::*;#[tokio::test]-#[allow(clippy::await_holding_lock)]async fn call_tool_records_write_argument_rejection() {- let _env_lock = crate::config::TEST_ENV_LOCK- .lock()- .unwrap_or_else(|err| err.into_inner());+ let _env_lock = crate::config::TEST_ENV_LOCK.lock().await;let tmp = tempfile::tempdir().expect("tempdir");unsafe {std::env::set_var("OPENHUMAN_WORKSPACE", tmp.path());