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): remove duplicate incremental step persistence test
Steven Enamakelcc1ae2655ab7
diff --git a/crates/openhuman-core/src/flows/ops_run_rows_and_notifications_tests.rs b/crates/openhuman-core/src/flows/ops_run_rows_and_notifications_tests.rsindex db1bb89580..4d4992cd98 100644--- a/crates/openhuman-core/src/flows/ops_run_rows_and_notifications_tests.rs+++ b/crates/openhuman-core/src/flows/ops_run_rows_and_notifications_tests.rs@@ -436,77 +436,6 @@ async fn flows_run_finished_event_skips_pending_approval_and_fires_once_on_resumassert_eq!(status, "completed");}-#[tokio::test]-async fn observer_persists_each_step_incrementally() {- // The observer no-ops until the run's start row exists (mirrors- // `start_flow_run_row`), so seed a flow + a running run row first.- let tmp = TempDir::new().unwrap();- let config = test_config(&tmp);- let created = flows_create(&config, "obs".to_string(), passthrough_graph(), false)- .await- .unwrap();- let run_id = format!("flow:{}:run-under-test", created.value.id);- store::insert_flow_run(- &config,- &run_id,- &created.value.id,- &run_id,- "2026-01-01T00:00:00Z",- )- .unwrap();-- let observer = FlowRunObserver::new(- StdArc::new(config.clone()),- created.value.id.clone(),- &run_id,- );- observer.on_step_finish(&ExecutionStep {- node_id: "a".to_string(),- status: StepStatus::Success,- output: json!([{ "json": { "ok": true } }]),- duration_ms: 7,- diagnostics: Vec::new(),- transcript: Vec::new(),- });- observer.on_step_finish(&ExecutionStep {- node_id: "b".to_string(),- status: StepStatus::Error,- output: Value::Null,- duration_ms: 3,- diagnostics: Vec::new(),- transcript: Vec::new(),- });-- // The store now holds both live steps with real status + timing — proof of- // incremental persistence (post-hoc reconstruction leaves status None).- let row = store::get_flow_run(&config, &run_id).unwrap().unwrap();- assert_eq!(row.steps.len(), 2, "both live steps should be persisted");- let a = row.steps.iter().find(|s| s.node_id == "a").unwrap();- assert_eq!(a.status.as_deref(), Some("success"));- assert_eq!(a.duration_ms, Some(7));- let b = row.steps.iter().find(|s| s.node_id == "b").unwrap();- assert_eq!(b.status.as_deref(), Some("error"));- assert_eq!(b.duration_ms, Some(3));-- // Re-firing the same node id replaces its entry rather than duplicating it.- observer.on_step_finish(&ExecutionStep {- node_id: "a".to_string(),- status: StepStatus::Success,- output: json!([{ "json": { "ok": true } }]),- duration_ms: 42,- diagnostics: Vec::new(),- transcript: Vec::new(),- });- let row = store::get_flow_run(&config, &run_id).unwrap().unwrap();- assert_eq!(row.steps.len(), 2, "re-firing a node must not duplicate it");- let a = row.steps.iter().find(|s| s.node_id == "a").unwrap();- assert_eq!(- a.duration_ms,- Some(42),- "the step should be replaced in place"- );-}-#[tokio::test]async fn flows_run_persists_live_steps_with_status_and_timing() {let tmp = TempDir::new().unwrap();