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(flows): update wiring warning tests for DispatchCtx argument
Steven Enamakela1ab073b6c79
diff --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 cca14a8875..ab56f1863c 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@@ -50,9 +50,9 @@ async fn graph_wiring_warnings_uses_the_probed_output_fields_when_schema_is_unkn]}));assert!(- graph_wiring_warnings(&config, &real_field).await.is_empty(),+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &real_field).await.unwrap().is_empty(),"a probed-real field must not warn: {:?}",- graph_wiring_warnings(&config, &real_field).await+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &real_field).await);// A binding to a field the probe did NOT observe — flagged, using the@@ -72,7 +72,7 @@ async fn graph_wiring_warnings_uses_the_probed_output_fields_when_schema_is_unkn{ "from_node": "post", "to_node": "xform" }]}));- let warnings = graph_wiring_warnings(&config, &fake_field).await;+ let warnings = graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &fake_field).await.unwrap();assert!(warnings.iter()diff --git a/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rs b/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rsindex 573cd4c72d..5584b3c574 100644--- a/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rs+++ b/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rs@@ -342,7 +342,7 @@ async fn graph_wiring_warnings_flags_a_missing_required_arg() {],"edges": [ { "from_node": "t", "to_node": "post" } ]}));- let warnings = graph_wiring_warnings(&config, &g).await;+ let warnings = graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap();assert!(warnings.iter()@@ -373,7 +373,7 @@ async fn graph_wiring_warnings_flags_a_downstream_field_not_in_output_fields() {{ "from_node": "post", "to_node": "xform" }]}));- let warnings = graph_wiring_warnings(&config, &g).await;+ let warnings = graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap();assert!(warnings.iter()@@ -402,7 +402,7 @@ async fn graph_wiring_warnings_is_silent_when_the_downstream_field_is_real() {{ "from_node": "post", "to_node": "xform" }]}));- let warnings = graph_wiring_warnings(&config, &g).await;+ let warnings = graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap();assert!(!warnings.iter().any(|w| w.contains("not in")),"a real output field must not warn: {warnings:?}"@@ -435,7 +435,7 @@ async fn graph_wiring_warnings_flags_a_downstream_binding_missing_the_data_prefi{ "from_node": "post", "to_node": "xform" }]}));- let warnings = graph_wiring_warnings(&config, &g).await;+ let warnings = graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap();assert!(warnings.iter().any(|w| w.contains("item.json.data.ts")&& w.contains("post")@@ -469,9 +469,9 @@ async fn graph_wiring_warnings_is_silent_for_a_whole_payload_binding() {]}));assert!(- graph_wiring_warnings(&config, &g).await.is_empty(),+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.is_empty(),"{:?}",- graph_wiring_warnings(&config, &g).await+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap());}@@ -503,9 +503,9 @@ async fn graph_wiring_warnings_is_silent_for_composio_envelope_metadata_fields()]}));assert!(- graph_wiring_warnings(&config, &g).await.is_empty(),+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.is_empty(),"{:?}",- graph_wiring_warnings(&config, &g).await+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap());}@@ -531,7 +531,7 @@ async fn graph_wiring_warnings_suggests_the_real_split_out_path() {{ "from_node": "post", "to_node": "split" }]}));- let warnings = graph_wiring_warnings(&config, &g).await;+ let warnings = graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap();assert!(warnings.iter().any(|w| w.contains("json.data.messages")),"{warnings:?}"@@ -566,7 +566,7 @@ async fn graph_wiring_warnings_flags_a_split_out_path_that_resolves_to_a_non_arr{ "from_node": "post", "to_node": "split" }]}));- let warnings = graph_wiring_warnings(&config, &g).await;+ let warnings = graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap();assert!(warnings.iter()@@ -607,9 +607,9 @@ async fn graph_wiring_warnings_is_silent_on_split_out_when_schema_is_wholly_unkn]}));assert!(- graph_wiring_warnings(&config, &g).await.is_empty(),+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.is_empty(),"{:?}",- graph_wiring_warnings(&config, &g).await+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap());}@@ -661,7 +661,7 @@ async fn graph_wiring_warnings_suggests_the_probed_split_out_path_when_schema_is{ "from_node": "post", "to_node": "split" }]}));- let warnings = graph_wiring_warnings(&config, &g).await;+ let warnings = graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap();assert!(warnings.iter().any(|w| w.contains("json.data.issues")),"{warnings:?}"@@ -684,8 +684,8 @@ async fn graph_wiring_warnings_suggests_the_probed_split_out_path_when_schema_is]}));assert!(- graph_wiring_warnings(&config, &fixed).await.is_empty(),+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &fixed).await.unwrap().is_empty(),"{:?}",- graph_wiring_warnings(&config, &fixed).await+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &fixed).await);}