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(orchestration): gate async child failure test on sqlite storage
Steven Enamakel194c9504cd4f
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rsindex 06a06f38b5..86aa4529fe 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs@@ -666,6 +666,21 @@ pub(super) fn core_backed_live_parent() -> (tinyagents_harness::context::RunContext<crate::agent::tinyagents::host::OpenHumanRunContext>,Arc<crate::core::runtime::CoreContext>,+) {+ let mut config = crate::config::Config::default();+ config.workspace_dir = workspace.to_path_buf();+ core_backed_live_parent_with_config(workspace, parent, session_id, thread_id, config)+}++pub(super) fn core_backed_live_parent_with_config(+ workspace: &std::path::Path,+ parent: crate::agent::subagent_host::ParentExecutionContext,+ session_id: &str,+ thread_id: &str,+ mut config: crate::config::Config,+) -> (+ tinyagents_harness::context::RunContext<crate::agent::tinyagents::host::OpenHumanRunContext>,+ Arc<crate::core::runtime::CoreContext>,) {use crate::core::runtime::{ContextOverlay, CoreContext, DomainSet};use crate::tools::toolpacks::ToolGroups;@@ -677,7 +692,6 @@ pub(super) fn core_backed_live_parent(definition.model = tinyagents_definition::ModelSpec::Inherit;let definitions =Arc::new(AgentDefinitionRegistry::builtins_only().with_definitions([definition]));- let mut config = crate::config::Config::default();config.workspace_dir = workspace.to_path_buf();config.components.juice = false;let core = CoreContext::for_test_with_config(DomainSet::full(), config.clone()).derive_with(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 9359604aa1..40f162c91d 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@@ -281,6 +281,7 @@ async fn spawn_subagent_reports_a_stopped_child_as_incomplete_progress() {}#[tokio::test]+#[cfg(feature = "storage-sqlite")]async fn failed_async_child_is_reported_to_the_parent_without_a_success_result() {let _ = AgentDefinitionRegistry::init_global_builtins();let workspace = tempfile::TempDir::new().expect("workspace");@@ -294,11 +295,20 @@ async fn failed_async_child_is_reported_to_the_parent_without_a_success_result()vec![],);parent.on_progress = Some(progress_tx);- let (live, _core) = continuation_tests::core_backed_live_parent(+ let storage = crate::storage::test_support::sqlite_backend()+ .expect("SQLite backend supports durable child claims");+ let _storage_guard = crate::storage::test_support::install_for_test(+ &storage.url,+ Arc::clone(&storage.backend),+ );+ let mut config = crate::config::Config::default();+ config.storage.url = Some(storage.url.clone());+ let (live, _core) = continuation_tests::core_backed_live_parent_with_config(workspace.path(),parent,"failed-async-child-session","failed-async-child-thread",+ config,);let accepted = SpawnSubagentTool::new().execute_with_live_parent_context(