Skip to content

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

test(flows): add diagnostic logging to validation tests

Steven Enamakel7ad0f8ed047b
diff --git a/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs b/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs
index f4b00c7ec5..aa250f5b1a 100644
--- a/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs
@@ -139,6 +139,15 @@ async fn flows_validate_reports_error_for_graph_without_trigger() {
graph,
)
.await;
+ if std::env::var_os("OPENHUMAN_TINYFLOWS_RUN_DIAGNOSTICS").is_some() {
+ eprintln!(
+ "flows_validate structural diagnostic: valid={} errors={:?} warnings={:?} error_details={:?}",
+ outcome.value.valid,
+ outcome.value.errors,
+ outcome.value.warnings,
+ outcome.value.error_details
+ );
+ }
assert!(!outcome.value.valid);
assert_eq!(outcome.value.errors.len(), 1);
assert!(outcome.value.errors[0].contains("trigger"));