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-core): isolate storage and tracing in e2e tests
Steven Enamakel47b0f41e4a4a
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rsindex 691ec24ad2..a85639b573 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs@@ -58,6 +58,7 @@ async fn force_fresh_cancels_old_driver_before_creating_a_new_session() {let scratch = tempfile::tempdir().expect("isolated force-fresh fixture");let workspace = scratch.path().join("workspace");std::fs::create_dir_all(&workspace).expect("create workspace");+ crate::storage::local::use_persistent_default_for_test(&workspace);let (first_started_tx, mut first_started_rx) = tokio::sync::mpsc::channel(1);let (second_started_tx, mut second_started_rx) = tokio::sync::mpsc::channel(1);let release_first = Arc::new(tokio::sync::Notify::new());diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rsindex db46cda995..023851a6e9 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs@@ -25,6 +25,7 @@ async fn spawn_subagent_tool_runs_child_agent_e2e() {// tests in this file initialise is not there for this one.let _ = AgentDefinitionRegistry::init_global_builtins();let workspace = tempfile::TempDir::new().expect("workspace");+ crate::storage::local::use_persistent_default_for_test(workspace.path());let provider = Arc::new(ScriptedModel::new(vec![(SPAWN_SUBAGENT_CANARY,"spawn-subagent-child-answer",diff --git a/crates/openhuman-core/src/flows/ops_builder_trail_off_tests.rs b/crates/openhuman-core/src/flows/ops_builder_trail_off_tests.rsindex d4142d8f05..6dbd9bb0f7 100644--- a/crates/openhuman-core/src/flows/ops_builder_trail_off_tests.rs+++ b/crates/openhuman-core/src/flows/ops_builder_trail_off_tests.rs@@ -443,7 +443,7 @@ async fn boot_sweep_logs_storage_open_failure_and_continues_boot() {.with_writer(capture.clone()).with_ansi(false).finish();- let _subscriber_guard = tracing::subscriber::set_default(subscriber);+ tracing::subscriber::set_global_default(subscriber).expect("install test tracing subscriber");// Registration is lazy and does not open the workspace backend. The// module's BootSweep reaches the scoped callback, whose backend open mustdiff --git a/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs b/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rsindex 6c9cb9a227..77364ab7bd 100644--- a/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs+++ b/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs@@ -314,7 +314,7 @@ async fn flows_build_copilot_toolset_unhides_the_live_run_tools() {.with_writer(capture.clone()).with_ansi(false).finish();- let _subscriber_guard = tracing::subscriber::set_default(subscriber);+ tracing::subscriber::set_global_default(subscriber).expect("install test tracing subscriber");restrict_builder_toolset_for_copilot(&mut agent);