Skip to content

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

chore: files changed crates/openhuman-core/src/flows/ops_run_lifecycle_tests.rs

Steven Enamakeldd3f8da3117f
diff --git a/crates/openhuman-core/src/flows/ops_run_lifecycle_tests.rs b/crates/openhuman-core/src/flows/ops_run_lifecycle_tests.rs
index ec0d181920..05a36b7fe2 100644
--- a/crates/openhuman-core/src/flows/ops_run_lifecycle_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_run_lifecycle_tests.rs
@@ -49,6 +49,37 @@ async fn stale_graph_refusal_leaves_a_resume_claimed_run_and_summary_untouched()
assert!(flow.last_status.is_none());
}
+#[tokio::test]
+async fn compatibility_refusal_does_not_label_a_resume_claimed_run_failed() {
+ let tmp = TempDir::new().unwrap();
+ let config = test_config(&tmp);
+ let flow = store::create_flow(
+ &config,
+ "compatibility-race".to_string(),
+ structurally_valid_graph(trigger_only_graph()),
+ false,
+ true,
+ )
+ .unwrap();
+ let run_id = "compatibility-race-run";
+ insert_parked_run(&config, &flow.id, run_id).await;
+ assert!(store::mark_run_resuming(&config, run_id).unwrap());
+
+ assert!(!run_management::settle_parked_run(
+ &config,
+ run_id,
+ &flow.id,
+ "failed",
+ "unsupported graph topology",
+ )
+ .await);
+
+ let row = store::get_flow_run(&config, run_id).unwrap().unwrap();
+ assert_eq!(row.status, "running");
+ let flow = store::get_flow(&config, &flow.id).unwrap().unwrap();
+ assert!(flow.last_status.is_none());
+}
+
#[tokio::test]
async fn cancel_observed_parked_does_not_tear_down_a_resume_starting() {
let tmp = TempDir::new().unwrap();