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: remove duplicated workflow run engine e2e test
Steven Enamakeldae0e2772e7a
diff --git a/tests/json_rpc_flows_e2e.rs b/tests/json_rpc_flows_e2e.rsindex b816a05391..1636ae7c2e 100644--- a/tests/json_rpc_flows_e2e.rs+++ b/tests/json_rpc_flows_e2e.rs@@ -922,7 +922,6 @@ async fn json_rpc_retired_workflow_run_methods_are_not_found() {let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;let rpc_base = format!("http://{rpc_addr}");- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;let rpc_base = format!("http://{rpc_addr}");for (id, method) in [@@ -2417,145 +2416,6 @@ async fn json_rpc_flows_list_connections_aggregates_secret_free() {/// `OPENHUMAN_TEST_REPLY_SPEECH_SEAM` env var so the call is recorded/// without contacting the ElevenLabs proxy.-#[test]-fn json_rpc_workflow_run_engine_executes_builtin_to_completion() {- run_json_rpc_e2e_on_agent_stack(- "json_rpc_workflow_run_engine_executes_builtin_to_completion",- json_rpc_workflow_run_engine_executes_builtin_to_completion_inner,- );-}--async fn json_rpc_workflow_run_engine_executes_builtin_to_completion_inner() {- let _env_lock = json_rpc_e2e_env_lock_async().await;- let tmp = tempdir().expect("tempdir");- let home = tmp.path();- let openhuman_home = home.join(".openhuman");-- let _home_guard = EnvVarGuard::set_to_path("HOME", home);- let _workspace_guard = EnvVarGuard::unset("OPENHUMAN_WORKSPACE");- let _backend_url_guard = EnvVarGuard::unset("BACKEND_URL");- let _vite_backend_guard = EnvVarGuard::unset("VITE_BACKEND_URL");-- let (mock_addr, mock_join) = serve_on_ephemeral(mock_upstream_router()).await;- let mock_origin = format!("http://{}", mock_addr);-- write_min_config(&openhuman_home, &mock_origin);- let user_scoped_dir = openhuman_home.join("users").join("e2e-user");- write_min_config(&user_scoped_dir, &mock_origin);-- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;- let rpc_base = format!("http://{}", rpc_addr);-- tokio::time::sleep(Duration::from_millis(100)).await;-- // Authenticate so the child agents' provider has a backend session.- let store = post_json_rpc(- &rpc_base,- 375_001,- "openhuman.auth_store_session",- json!({ "token": "e2e-test-jwt", "user_id": "e2e-user" }),- )- .await;- assert_no_jsonrpc_error(&store, "store_session");-- // Sanity: the builtin definition is listed.- let defs = post_json_rpc(- &rpc_base,- 375_002,- "openhuman.workflow_run_list_definitions",- json!({}),- )- .await;- let defs_result = assert_no_jsonrpc_error(&defs, "list_definitions");- let defs_body = peel_logs_envelope(defs_result.get("result").unwrap_or(defs_result));- let definition_id = defs_body- .get("definitions")- .and_then(Value::as_array)- .and_then(|arr| arr.first())- .and_then(|d| d.get("id"))- .and_then(Value::as_str)- .expect("at least one builtin workflow definition")- .to_string();- assert_eq!(definition_id, "parallel_research_cross_check");-- // Start the workflow. Children inherit the parent (root) provider via the- // `modelOverride` pin → every phase hits the mock chat-completions route.- let start = post_json_rpc(- &rpc_base,- 375_003,- "openhuman.workflow_run_start",- json!({- "definitionId": definition_id,- "input": { "question": "What is the capital of France?", "modelOverride": "e2e-mock-model" },- }),- )- .await;- let start_result = assert_no_jsonrpc_error(&start, "workflow_run_start");- let start_body = peel_logs_envelope(start_result.get("result").unwrap_or(start_result));- let run = start_body- .get("workflowRun")- .expect("workflowRun in start response");- let run_id = run- .get("id")- .and_then(Value::as_str)- .expect("run id")- .to_string();- assert_eq!(- run.get("status").and_then(Value::as_str),- Some("running"),- "fresh run should be running: {run}"- );-- // Poll workflow_run_get until terminal (or timeout). The four-phase builtin- // fans out 5 children total against the mock — completes quickly.- let mut final_status = String::new();- let mut final_summary = String::new();- for attempt in 0..120 {- tokio::time::sleep(Duration::from_millis(250)).await;- let got = post_json_rpc(- &rpc_base,- 37_500_100 + attempt,- "openhuman.workflow_run_get",- json!({ "id": run_id }),- )- .await;- let got_result = assert_no_jsonrpc_error(&got, "workflow_run_get");- let got_body = peel_logs_envelope(got_result.get("result").unwrap_or(got_result));- let wf = got_body- .get("workflowRun")- .expect("workflowRun payload present");- let status = wf- .get("status")- .and_then(Value::as_str)- .unwrap_or_default()- .to_string();- if matches!(- status.as_str(),- "completed" | "failed" | "cancelled" | "interrupted"- ) {- final_status = status;- final_summary = wf- .get("summary")- .and_then(Value::as_str)- .unwrap_or_default()- .to_string();- break;- }- }-- assert_eq!(- final_status, "completed",- "workflow run must reach completed; got status={final_status:?} summary={final_summary:?}"- );- assert!(- !final_summary.trim().is_empty(),- "completed workflow run must carry a non-empty summary"- );-- rpc_join.abort();- mock_join.abort();-}-// ─────────────────────────────────────────────────────────────────────────────// #5846 — the two authoring-gate behaviour changes, driven end-to-end through// the real strict-mode create path.