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
fix(composio): replace blocking lock with async lock in tests
Steven Enamakela40e065239f0
diff --git a/crates/openhuman-core/src/integrations/composio/action_tool_tests.rs b/crates/openhuman-core/src/integrations/composio/action_tool_tests.rsindex feaac308db..186c3bb4e8 100644--- a/crates/openhuman-core/src/integrations/composio/action_tool_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/action_tool_tests.rs@@ -171,7 +171,7 @@ fn sandbox_unset_leaves_per_action_execute_to_downstream() {use crate::config::TEST_ENV_LOCK;// Lock order module -> env, matching the ops tests (no inversion).let _serialised = super::super::module_client::module_guard().await;- let _env_guard = TEST_ENV_LOCK.blocking_lock();+ let _env_guard = TEST_ENV_LOCK.lock().await;let tmp = tempfile::tempdir().expect("tempdir");let _workspace_guard = EnvVarGuard::workspace_unlocked(tmp.path());@@ -206,7 +206,7 @@ fn contract_gate_surfaces_full_contract_then_proceeds_on_retry() {// the network.use crate::config::TEST_ENV_LOCK;use crate::integrations::composio::catalog::{seed_live_catalog_cache, ToolContract};- let _env_guard = TEST_ENV_LOCK.blocking_lock();+ let _env_guard = TEST_ENV_LOCK.lock().await;let toolkit = "cgateexec";let slug = "CGATEEXEC_FETCH_ITEMS";@@ -359,7 +359,7 @@ fn mode_toggle_between_calls_is_observed() {// that also points it somewhere. Taken before `TEST_ENV_LOCK`, the// order the ops tests use, so the two never deadlock.let _serialised = super::super::module_client::module_guard().await;- let _env_guard = TEST_ENV_LOCK.blocking_lock();+ let _env_guard = TEST_ENV_LOCK.lock().await;// ── Backend half ────────────────────────────────────────────let tmp_backend = tempfile::tempdir().expect("tempdir backend");@@ -439,7 +439,7 @@ fn deferred_instance_returns_live_config_for_redaction() {use crate::integrations::composio::catalog::{seed_live_catalog_cache, ToolContract};// Lock order module -> env, matching the ops tests (no inversion).let _serialised = super::super::module_client::module_guard().await;- let _env_guard = TEST_ENV_LOCK.blocking_lock();+ let _env_guard = TEST_ENV_LOCK.lock().await;let toolkit = "deferredredact";let slug = "DEFERREDREDACT_FETCH_ITEMS";@@ -507,7 +507,7 @@ fn configured_instance_resolves_live_config_not_the_stale_snapshot() {// `Some(snapshot)` branch, which reloads from `config_path` rather than// trusting the captured snapshot.use crate::config::TEST_ENV_LOCK;- let _env_guard = TEST_ENV_LOCK.blocking_lock();+ let _env_guard = TEST_ENV_LOCK.lock().await;let tmp = tempfile::tempdir().expect("tempdir");diff --git a/tests/in_process/agent_prompt_comprehension_e2e.rs b/tests/in_process/agent_prompt_comprehension_e2e.rsindex 06e05588e5..c44f5d14b0 100644--- a/tests/in_process/agent_prompt_comprehension_e2e.rs+++ b/tests/in_process/agent_prompt_comprehension_e2e.rs@@ -958,7 +958,7 @@ fn max_consecutive_counts_the_longest_run() {#[test]fn orchestrator_prompt_names_only_discoverable_delegates() {run_on_agent_stack("orchestrator_discoverable_delegates", || async {- let _lock = env_lock();+ let _lock = env_lock_async().await;reset_script(vec![text_completion("Hello.")]);let stack = boot_stack("").await;let client_id = "prompt-discoverable";