From cfa4afd58c3e0490c0cf142c198294821c8d39f4 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Wed, 1 Apr 2026 20:20:03 -0700 Subject: [PATCH] Normalize attach JSON snapshot ordering --- lib/crates/fabro-cli/tests/it/cmd/attach.rs | 54 ++++++++++----------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/lib/crates/fabro-cli/tests/it/cmd/attach.rs b/lib/crates/fabro-cli/tests/it/cmd/attach.rs index 38b2d93d7..750652c86 100644 --- a/lib/crates/fabro-cli/tests/it/cmd/attach.rs +++ b/lib/crates/fabro-cli/tests/it/cmd/attach.rs @@ -289,31 +289,9 @@ fn attach_json_errors_without_prompting_for_human_input() { fabro_json_snapshot!(context, &progress, @r#" [ { - "id": "[EVENT_ID]", - "ts": "[TIMESTAMP]", - "run_id": "[ULID]", "event": "run.created", + "id": "[EVENT_ID]", "properties": { - "workflow_slug": "human-gate", - "settings": { - "goal": "Wait for approval", - "llm": { - "fallbacks": null, - "model": "gpt-5.4", - "provider": "openai" - }, - "mode": "standalone", - "no_retro": true, - "sandbox": { - "daytona": null, - "devcontainer": null, - "env": null, - "local": null, - "preserve": null, - "provider": "local" - }, - "storage_dir": "[STORAGE_DIR]" - }, "graph": { "attrs": { "goal": { @@ -414,12 +392,34 @@ fn attach_json_errors_without_prompting_for_human_input() { } } }, - "workflow_source": "digraph HumanGate {/n graph [goal=\"Wait for approval\"]/n start [shape=Mdiamond, label=\"Start\"]/n exit [shape=Msquare, label=\"Exit\"]/n approve [shape=hexagon, label=\"Approve?\"]/n ship [shape=parallelogram, script=\"echo shipped\"]/n revise [shape=parallelogram, script=\"echo revised\"]/n start -> approve/n approve -> ship [label=\"[A] Approve\"]/n approve -> revise [label=\"[R] Revise\"]/n ship -> exit/n revise -> exit/n}/n", + "host_repo_path": "[TEMP_DIR]", "labels": {}, "run_dir": "[STORAGE_DIR]/runs/20260401-[ULID]", - "working_directory": "[TEMP_DIR]", - "host_repo_path": "[TEMP_DIR]" - } + "settings": { + "goal": "Wait for approval", + "llm": { + "fallbacks": null, + "model": "gpt-5.4", + "provider": "openai" + }, + "mode": "standalone", + "no_retro": true, + "sandbox": { + "daytona": null, + "devcontainer": null, + "env": null, + "local": null, + "preserve": null, + "provider": "local" + }, + "storage_dir": "[STORAGE_DIR]" + }, + "workflow_slug": "human-gate", + "workflow_source": "digraph HumanGate {/n graph [goal=\"Wait for approval\"]/n start [shape=Mdiamond, label=\"Start\"]/n exit [shape=Msquare, label=\"Exit\"]/n approve [shape=hexagon, label=\"Approve?\"]/n ship [shape=parallelogram, script=\"echo shipped\"]/n revise [shape=parallelogram, script=\"echo revised\"]/n start -> approve/n approve -> ship [label=\"[A] Approve\"]/n approve -> revise [label=\"[R] Revise\"]/n ship -> exit/n revise -> exit/n}/n", + "working_directory": "[TEMP_DIR]" + }, + "run_id": "[ULID]", + "ts": "[TIMESTAMP]" }, { "event": "sandbox.initializing",