Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed tests/in_process/agent_approval_memory_coverage_e2e.rs,tests/in_process/agent_p

Steven Enamakelf00c5b97258d
diff --git a/tests/in_process/agent_approval_memory_coverage_e2e.rs b/tests/in_process/agent_approval_memory_coverage_e2e.rs
index 901ee0bc56..28b7eefe47 100644
--- a/tests/in_process/agent_approval_memory_coverage_e2e.rs
+++ b/tests/in_process/agent_approval_memory_coverage_e2e.rs
@@ -20,7 +20,7 @@
//! JSON-RPC router (`build_core_http_router`) and asserted on, so the number the
//! gate reports and the coverage that exists are the same thing.
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::rpc_auth::{ensure_rpc_auth, rpc_token};
use crate::rpc_harness::{error_message, payload};
diff --git a/tests/in_process/agent_prompt_comprehension_e2e.rs b/tests/in_process/agent_prompt_comprehension_e2e.rs
index c44f5d14b0..aa1eeb9f8e 100644
--- a/tests/in_process/agent_prompt_comprehension_e2e.rs
+++ b/tests/in_process/agent_prompt_comprehension_e2e.rs
@@ -16,9 +16,7 @@
//! `env_lock()` across `.await` on purpose, as there.
#![allow(clippy::await_holding_lock)]
-use crate::env_guard::{
- env_lock_with_file_keyring as env_lock, env_lock_with_file_keyring_async as env_lock_async,
-};
+use crate::env_guard::env_lock_with_file_keyring_async as env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::rpc_auth::{ensure_rpc_auth, rpc_token};
use crate::scripted_stack::{
diff --git a/tests/in_process/agent_turn_overrides_e2e.rs b/tests/in_process/agent_turn_overrides_e2e.rs
index d485213f59..2549aa4cf8 100644
--- a/tests/in_process/agent_turn_overrides_e2e.rs
+++ b/tests/in_process/agent_turn_overrides_e2e.rs
@@ -25,7 +25,7 @@
//! positive here.
#![allow(clippy::await_holding_lock)]
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::noop_memory;
use async_trait::async_trait;
diff --git a/tests/in_process/channels_default_channel_e2e.rs b/tests/in_process/channels_default_channel_e2e.rs
index a826ce4446..f6065f082c 100644
--- a/tests/in_process/channels_default_channel_e2e.rs
+++ b/tests/in_process/channels_default_channel_e2e.rs
@@ -49,7 +49,7 @@
//!
//! Run with: `cargo test -p openhuman-cli --test in_process_all`
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::rpc_auth::ensure_rpc_auth;
use crate::rpc_harness::rpc;
diff --git a/tests/in_process/domain_modules_e2e.rs b/tests/in_process/domain_modules_e2e.rs
index 90edeb3345..775a4944ac 100644
--- a/tests/in_process/domain_modules_e2e.rs
+++ b/tests/in_process/domain_modules_e2e.rs
@@ -5,7 +5,7 @@
//! exercises cheap read/status handlers through HTTP. Mutating or networked
//! domain behavior remains covered by the focused `*_e2e.rs` suites.
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::memory_module;
use crate::rpc_harness::serve_rpc;
diff --git a/tests/in_process/embeddings_rpc_e2e.rs b/tests/in_process/embeddings_rpc_e2e.rs
index a3357302ef..d3f77ed963 100644
--- a/tests/in_process/embeddings_rpc_e2e.rs
+++ b/tests/in_process/embeddings_rpc_e2e.rs
@@ -7,7 +7,7 @@
//!
//! Run with: `cargo test -p openhuman-cli --test in_process_all`
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::rpc_auth::{ensure_rpc_auth, rpc_token};
use std::net::SocketAddr;
diff --git a/tests/in_process/memory_graph_roundtrip_e2e.rs b/tests/in_process/memory_graph_roundtrip_e2e.rs
index 0649e08712..1512a22672 100644
--- a/tests/in_process/memory_graph_roundtrip_e2e.rs
+++ b/tests/in_process/memory_graph_roundtrip_e2e.rs
@@ -73,7 +73,7 @@
//! A large stack is also needed — `RUST_MIN_STACK=67108864` — because
//! publishing the policy touches deeply nested config types.
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::rpc_auth::ensure_rpc_auth;
use crate::rpc_harness::{ok, rpc};
diff --git a/tests/in_process/memory_sources_e2e.rs b/tests/in_process/memory_sources_e2e.rs
index 7680c608e2..5189b8162a 100644
--- a/tests/in_process/memory_sources_e2e.rs
+++ b/tests/in_process/memory_sources_e2e.rs
@@ -6,7 +6,7 @@
//!
//! Run with: `cargo test -p openhuman-cli --test in_process_all`
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::memory_rpc::{ok, serve, write_config};
use crate::rpc_auth::rpc_token;
diff --git a/tests/in_process/memory_tree_health_e2e.rs b/tests/in_process/memory_tree_health_e2e.rs
index 03163ae621..fab26c5c4d 100644
--- a/tests/in_process/memory_tree_health_e2e.rs
+++ b/tests/in_process/memory_tree_health_e2e.rs
@@ -24,7 +24,7 @@
//! cross-method invariant that IS reachable and says so in a comment, rather
//! than asserting `0 == 0` and calling it coverage.
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::memory_rpc::{ok, serve, write_config};
use crate::rpc_auth::rpc_token;
diff --git a/tests/in_process/skill_registry_e2e.rs b/tests/in_process/skill_registry_e2e.rs
index 1ef74d2e2f..fc5f4a053d 100644
--- a/tests/in_process/skill_registry_e2e.rs
+++ b/tests/in_process/skill_registry_e2e.rs
@@ -6,9 +6,7 @@
//! The test uses a local fixture catalog and local SKILL.md download URL so CI
//! does not depend on the live Hermes API.
-use crate::env_guard::{
- env_lock_with_file_keyring as env_lock, env_lock_with_file_keyring_async as env_lock_async,
-};
+use crate::env_guard::env_lock_with_file_keyring_async as env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::rpc_auth::{ensure_rpc_auth, rpc_token};
use openhuman_core::core::auth::CORE_TOKEN_ENV_VAR;
diff --git a/tests/in_process/transcript_search_e2e.rs b/tests/in_process/transcript_search_e2e.rs
index 20f0a86125..ad9847115a 100644
--- a/tests/in_process/transcript_search_e2e.rs
+++ b/tests/in_process/transcript_search_e2e.rs
@@ -9,7 +9,7 @@
//!
//! Run with: `cargo test -p openhuman-cli --test in_process_all`
-use crate::env_guard::{env_lock, env_lock_async, EnvVarGuard};
+use crate::env_guard::{env_lock_async, EnvVarGuard};
use std::path::Path;
use serde_json::json;
diff --git a/tests/in_process/tree_summarizer_e2e.rs b/tests/in_process/tree_summarizer_e2e.rs
index d61af3742d..515c22069e 100644
--- a/tests/in_process/tree_summarizer_e2e.rs
+++ b/tests/in_process/tree_summarizer_e2e.rs
@@ -20,7 +20,7 @@
//!
//! Run with: `cargo test -p openhuman-cli --test in_process_all`
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::memory_rpc::{serve, write_config};
use crate::rpc_auth::rpc_token;
diff --git a/tests/in_process/worker_b_domain_e2e.rs b/tests/in_process/worker_b_domain_e2e.rs
index a2ea567e63..8a3cf48039 100644
--- a/tests/in_process/worker_b_domain_e2e.rs
+++ b/tests/in_process/worker_b_domain_e2e.rs
@@ -5,7 +5,7 @@
//! deterministic controller paths. External-service paths are asserted at
//! validation/config boundaries so the suite stays hermetic.
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::rpc_harness::serve_rpc;
use crate::rpc_harness::{ok, payload, rpc, schema, write_min_config};
diff --git a/tests/in_process/worker_c_modules_e2e.rs b/tests/in_process/worker_c_modules_e2e.rs
index 8ab4d8759a..702c1fa3fe 100644
--- a/tests/in_process/worker_c_modules_e2e.rs
+++ b/tests/in_process/worker_c_modules_e2e.rs
@@ -4,7 +4,7 @@
//! composio / threads slice and drives the real HTTP JSON-RPC router against
//! an isolated workspace. It avoids live network calls.
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::rpc_auth::ensure_rpc_auth;
use crate::rpc_harness::{ok, rpc};
diff --git a/tests/inference_provider_e2e.rs b/tests/inference_provider_e2e.rs
index fb7918068d..6b1bacd6c9 100644
--- a/tests/inference_provider_e2e.rs
+++ b/tests/inference_provider_e2e.rs
@@ -32,11 +32,6 @@ use openhuman_rpc::server::build_core_http_router;
static ENV_LOCK: OnceLock<tokio::sync::Mutex<()>> = OnceLock::new();
static RPC_AUTH_INIT: OnceLock<()> = OnceLock::new();
-fn env_lock() -> tokio::sync::MutexGuard<'static, ()> {
- let m = ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(()));
- m.blocking_lock()
-}
-
async fn env_lock_async() -> tokio::sync::MutexGuard<'static, ()> {
let m = ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(()));
m.lock().await
diff --git a/tests/keyring_secretstore_fresh_e2e.rs b/tests/keyring_secretstore_fresh_e2e.rs
index 01eb50ec19..e15f99251b 100644
--- a/tests/keyring_secretstore_fresh_e2e.rs
+++ b/tests/keyring_secretstore_fresh_e2e.rs
@@ -5,11 +5,6 @@ use openhuman_core::config::schema::{Config, StreamMode, TelegramConfig};
use openhuman_core::security::keyring;
use std::sync::OnceLock;
-fn env_lock() -> tokio::sync::MutexGuard<'static, ()> {
- static LOCK: OnceLock<tokio::sync::Mutex<()>> = OnceLock::new();
- LOCK.get_or_init(|| tokio::sync::Mutex::new(())).blocking_lock()
-}
-
async fn env_lock_async() -> tokio::sync::MutexGuard<'static, ()> {
static LOCK: OnceLock<tokio::sync::Mutex<()>> = OnceLock::new();
LOCK.get_or_init(|| tokio::sync::Mutex::new(())).lock().await
diff --git a/tests/live_flows_demo_e2e.rs b/tests/live_flows_demo_e2e.rs
index 20b8800a76..a3152b2b8f 100644
--- a/tests/live_flows_demo_e2e.rs
+++ b/tests/live_flows_demo_e2e.rs
@@ -39,11 +39,6 @@ static LIVE_E2E_ENV_LOCK: OnceLock<tokio::sync::Mutex<()>> = OnceLock::new();
static LIVE_RPC_AUTH_INIT: OnceLock<()> = OnceLock::new();
const TEST_RPC_TOKEN: &str = "live-flows-demo-e2e-local-token";
-fn live_e2e_env_lock() -> tokio::sync::MutexGuard<'static, ()> {
- let mutex = LIVE_E2E_ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(()));
- mutex.blocking_lock()
-}
-
async fn live_e2e_env_lock_async() -> tokio::sync::MutexGuard<'static, ()> {
let mutex = LIVE_E2E_ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(()));
mutex.lock().await
diff --git a/tests/live_routing_e2e.rs b/tests/live_routing_e2e.rs
index b2daac43fa..0d18feaf50 100644
--- a/tests/live_routing_e2e.rs
+++ b/tests/live_routing_e2e.rs
@@ -33,11 +33,6 @@ static LIVE_E2E_ENV_LOCK: OnceLock<tokio::sync::Mutex<()>> = OnceLock::new();
static LIVE_RPC_AUTH_INIT: OnceLock<()> = OnceLock::new();
const TEST_RPC_TOKEN: &str = "live-routing-e2e-local-token";
-fn live_e2e_env_lock() -> tokio::sync::MutexGuard<'static, ()> {
- let mutex = LIVE_E2E_ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(()));
- mutex.blocking_lock()
-}
-
async fn live_e2e_env_lock_async() -> tokio::sync::MutexGuard<'static, ()> {
let mutex = LIVE_E2E_ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(()));
mutex.lock().await
diff --git a/tests/memory_roundtrip_e2e.rs b/tests/memory_roundtrip_e2e.rs
index f0994ac144..39090e3cef 100644
--- a/tests/memory_roundtrip_e2e.rs
+++ b/tests/memory_roundtrip_e2e.rs
@@ -57,10 +57,6 @@ static ENV_LOCK: OnceLock<tokio::sync::Mutex<()>> = OnceLock::new();
static MEMORY_SEAMS_INIT: OnceLock<()> = OnceLock::new();
static TEST_ROOT: OnceLock<tempfile::TempDir> = OnceLock::new();
-fn env_lock() -> tokio::sync::MutexGuard<'static, ()> {
- ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(())).blocking_lock()
-}
-
async fn env_lock_async() -> tokio::sync::MutexGuard<'static, ()> {
ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(())).lock().await
}
diff --git a/tests/skills_mcp_registry_live.rs b/tests/skills_mcp_registry_live.rs
index 007c985309..0a2a9f3d2a 100644
--- a/tests/skills_mcp_registry_live.rs
+++ b/tests/skills_mcp_registry_live.rs
@@ -37,12 +37,6 @@ const TEST_RPC_TOKEN: &str = "skills-mcp-live-token";
static AUTH_INIT: OnceLock<()> = OnceLock::new();
static ENV_LOCK: OnceLock<tokio::sync::Mutex<()>> = OnceLock::new();
-fn env_lock() -> tokio::sync::MutexGuard<'static, ()> {
- let mutex = ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(()));
- mutex
- .blocking_lock()
-}
-
async fn env_lock_async() -> tokio::sync::MutexGuard<'static, ()> {
let mutex = ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(()));
mutex