[build] Notify when builder did not rebase change if failures occur.

Since integration is checked out at HEAD but only the patch is not
rebased when `do_not_rebase_patch` is true, build/test failures can
occur if the patch is out-of-date with the rest of integration. This may
not be a problem with the CL itself and just needs the CL to be rebased
on top of HEAD so mention that in the failure summary.

Bug: 335727014
Change-Id: If6b1fe710c5337e38f6c4fcecabb20e66566ac85
Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/recipes/+/1032020
Reviewed-by: Oliver Newman <olivernewman@google.com>
Fuchsia-Auto-Submit: Ina Huh <ihuh@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
diff --git a/recipe_modules/autocorrelator/api.py b/recipe_modules/autocorrelator/api.py
index 4f1730d..0421030 100644
--- a/recipe_modules/autocorrelator/api.py
+++ b/recipe_modules/autocorrelator/api.py
@@ -21,6 +21,8 @@
 class AutocorrelatorApi(recipe_api.RecipeApi):
     """APIs for finding correlations between failures in Fuchsia CI/CQ."""
 
+    AUTOCORRELATOR_HEADER = AUTOCORRELATOR_HEADER
+
     def __init__(self, props, *args, **kwargs):
         super().__init__(*args, **kwargs)
         self.ci_bucket = props.ci_bucket
diff --git a/recipes/fuchsia/build.expected/failed_build_cq.json b/recipes/fuchsia/build.expected/failed_build_cq.json
index 71966a3..aaa5ae1 100644
--- a/recipes/fuchsia/build.expected/failed_build_cq.json
+++ b/recipes/fuchsia/build.expected/failed_build_cq.json
@@ -17,7 +17,8 @@
       "@@@STEP_LOG_LINE@properties@    \"checkout\": {@@@",
       "@@@STEP_LOG_LINE@properties@      \"project\": \"integration\",@@@",
       "@@@STEP_LOG_LINE@properties@      \"manifest\": \"minimal\",@@@",
-      "@@@STEP_LOG_LINE@properties@      \"remote\": \"https://fuchsia.googlesource.com/manifest\"@@@",
+      "@@@STEP_LOG_LINE@properties@      \"remote\": \"https://fuchsia.googlesource.com/manifest\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"do_not_rebase_patch\": true@@@",
       "@@@STEP_LOG_LINE@properties@    },@@@",
       "@@@STEP_LOG_LINE@properties@    \"build\": {@@@",
       "@@@STEP_LOG_LINE@properties@      \"fint_params_path\": \"fint_params/core.textproto\",@@@",
@@ -760,7 +761,6 @@
       "fuchsia",
       "-delete=true",
       "-force=true",
-      "-rebase=true",
       "-rebase-branch",
       "main",
       "refs/changes/00/100/7"
diff --git a/recipes/fuchsia/build.expected/failed_build_cq_no_rebase.json b/recipes/fuchsia/build.expected/failed_build_cq_no_rebase.json
new file mode 100644
index 0000000..4f1da94
--- /dev/null
+++ b/recipes/fuchsia/build.expected/failed_build_cq_no_rebase.json
@@ -0,0 +1,4737 @@
+[
+  {
+    "cmd": [],
+    "name": "parent build",
+    "~followup_annotations": [
+      "@@@STEP_LINK@8945511751514863184@https://ci.chromium.org/b/8945511751514863184@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "input properties",
+    "~followup_annotations": [
+      "@@@STEP_LOG_LINE@properties@{@@@",
+      "@@@STEP_LOG_LINE@properties@  \"parent_id\": \"8945511751514863184\",@@@",
+      "@@@STEP_LOG_LINE@properties@  \"recipe\": \"fuchsia/build\",@@@",
+      "@@@STEP_LOG_LINE@properties@  \"spec\": {@@@",
+      "@@@STEP_LOG_LINE@properties@    \"checkout\": {@@@",
+      "@@@STEP_LOG_LINE@properties@      \"project\": \"integration\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"manifest\": \"minimal\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"remote\": \"https://fuchsia.googlesource.com/manifest\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"do_not_rebase_patch\": true@@@",
+      "@@@STEP_LOG_LINE@properties@    },@@@",
+      "@@@STEP_LOG_LINE@properties@    \"build\": {@@@",
+      "@@@STEP_LOG_LINE@properties@      \"fint_params_path\": \"fint_params/core.textproto\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"upload_results\": true,@@@",
+      "@@@STEP_LOG_LINE@properties@      \"assembly_artifacts_cipd_package\": \"fuchsia/assembly-inputs/core.x64\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"report_binary_sizes\": true,@@@",
+      "@@@STEP_LOG_LINE@properties@      \"check_size_budgets\": true,@@@",
+      "@@@STEP_LOG_LINE@properties@      \"enable_sandboxing\": true@@@",
+      "@@@STEP_LOG_LINE@properties@    },@@@",
+      "@@@STEP_LOG_LINE@properties@    \"gcs_bucket\": \"fuchsia-infra\",@@@",
+      "@@@STEP_LOG_LINE@properties@    \"artifact_gcs_bucket\": \"fuchsia-infra-artifacts\"@@@",
+      "@@@STEP_LOG_LINE@properties@  },@@@",
+      "@@@STEP_LOG_LINE@properties@  \"$recipe_engine/buildbucket\": {@@@",
+      "@@@STEP_LOG_LINE@properties@    \"build\": {@@@",
+      "@@@STEP_LOG_LINE@properties@      \"id\": \"8945511751514863184\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"builder\": {@@@",
+      "@@@STEP_LOG_LINE@properties@        \"project\": \"fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@properties@        \"bucket\": \"try\",@@@",
+      "@@@STEP_LOG_LINE@properties@        \"builder\": \"builder\"@@@",
+      "@@@STEP_LOG_LINE@properties@      },@@@",
+      "@@@STEP_LOG_LINE@properties@      \"createdBy\": \"project:fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"createTime\": \"2018-05-25T23:50:17Z\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"input\": {@@@",
+      "@@@STEP_LOG_LINE@properties@        \"gerritChanges\": [@@@",
+      "@@@STEP_LOG_LINE@properties@          {@@@",
+      "@@@STEP_LOG_LINE@properties@            \"host\": \"fuchsia-review.googlesource.com\",@@@",
+      "@@@STEP_LOG_LINE@properties@            \"project\": \"fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@properties@            \"change\": \"123456\",@@@",
+      "@@@STEP_LOG_LINE@properties@            \"patchset\": \"7\"@@@",
+      "@@@STEP_LOG_LINE@properties@          }@@@",
+      "@@@STEP_LOG_LINE@properties@        ]@@@",
+      "@@@STEP_LOG_LINE@properties@      },@@@",
+      "@@@STEP_LOG_LINE@properties@      \"infra\": {@@@",
+      "@@@STEP_LOG_LINE@properties@        \"resultdb\": {@@@",
+      "@@@STEP_LOG_LINE@properties@          \"invocation\": \"invocations/build:8945511751514863184\"@@@",
+      "@@@STEP_LOG_LINE@properties@        },@@@",
+      "@@@STEP_LOG_LINE@properties@        \"backend\": {@@@",
+      "@@@STEP_LOG_LINE@properties@          \"config\": {@@@",
+      "@@@STEP_LOG_LINE@properties@            \"priority\": 30@@@",
+      "@@@STEP_LOG_LINE@properties@          },@@@",
+      "@@@STEP_LOG_LINE@properties@          \"task\": {@@@",
+      "@@@STEP_LOG_LINE@properties@            \"id\": {@@@",
+      "@@@STEP_LOG_LINE@properties@              \"target\": \"swarming://chromium-swarm\"@@@",
+      "@@@STEP_LOG_LINE@properties@            }@@@",
+      "@@@STEP_LOG_LINE@properties@          }@@@",
+      "@@@STEP_LOG_LINE@properties@        }@@@",
+      "@@@STEP_LOG_LINE@properties@      },@@@",
+      "@@@STEP_LOG_LINE@properties@      \"tags\": [@@@",
+      "@@@STEP_LOG_LINE@properties@        {@@@",
+      "@@@STEP_LOG_LINE@properties@          \"key\": \"cq_experimental\",@@@",
+      "@@@STEP_LOG_LINE@properties@          \"value\": \"false\"@@@",
+      "@@@STEP_LOG_LINE@properties@        }@@@",
+      "@@@STEP_LOG_LINE@properties@      ],@@@",
+      "@@@STEP_LOG_LINE@properties@      \"executionTimeout\": \"36000s\"@@@",
+      "@@@STEP_LOG_LINE@properties@    }@@@",
+      "@@@STEP_LOG_LINE@properties@  }@@@",
+      "@@@STEP_LOG_LINE@properties@}@@@",
+      "@@@STEP_LOG_END@properties@@@",
+      "@@@SET_BUILD_PROPERTY@gcs_bucket@\"fuchsia-infra\"@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "checkout",
+    "~followup_annotations": [
+      "@@@SET_BUILD_PROPERTY@cached_revision@\"\"@@@",
+      "@@@SET_BUILD_PROPERTY@checkout_info@{\"base_manifest_revision\": \"h3ll0\", \"enable_submodules\": false, \"manifest\": \"minimal\", \"manifest_project\": \"integration\", \"manifest_remote\": \"https://fuchsia.googlesource.com/manifest\", \"patches\": [{\"base_revision\": \"abc123\", \"host\": \"https://fuchsia-review.googlesource.com\", \"project\": \"fuchsia\", \"ref\": \"refs/changes/00/100/7\"}]}@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/fuchsia"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.ensure checkout dir",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "checkout.ensure infra/tools/luci/gerrit/${platform}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "checkout.ensure infra/tools/luci/gerrit/${platform}.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::gerrit]/resources/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "checkout.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "infra/tools/luci/gerrit/${platform} version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"infra/tools/luci/gerrit/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
+      "change-detail",
+      "-host",
+      "https://fuchsia-review.googlesource.com",
+      "-input",
+      "{\"change_id\": \"fuchsia~123456\", \"params\": {\"o\": [\"ALL_REVISIONS\"]}}",
+      "-output",
+      "/path/to/tmp/json"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.get change details",
+    "timeout": 600,
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"branch\": \"main\",@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"a1b2c3\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"_number\": 7,@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"ref\": \"refs/changes/00/100/7\"@@@",
+      "@@@STEP_LOG_LINE@json.output@    },@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"d4e5f6\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"_number\": 3,@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"ref\": \"refs/changes/00/100/3\"@@@",
+      "@@@STEP_LOG_LINE@json.output@    },@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"g7h8i9\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"_number\": 9,@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"ref\": \"refs/changes/00/100/9\"@@@",
+      "@@@STEP_LOG_LINE@json.output@    }@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@",
+      "@@@STEP_LOG_LINE@json.input@{@@@",
+      "@@@STEP_LOG_LINE@json.input@  \"change_id\": \"fuchsia~123456\",@@@",
+      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
+      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
+      "@@@STEP_LOG_LINE@json.input@      \"ALL_REVISIONS\"@@@",
+      "@@@STEP_LOG_LINE@json.input@    ]@@@",
+      "@@@STEP_LOG_LINE@json.input@  }@@@",
+      "@@@STEP_LOG_LINE@json.input@}@@@",
+      "@@@STEP_LOG_END@json.input@@@",
+      "@@@STEP_LINK@gerrit link@https://fuchsia-review.googlesource.com/q/fuchsia~123456@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "git",
+      "ls-remote",
+      "--heads",
+      "https://fuchsia.googlesource.com/manifest",
+      "main"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.resolve head of 'main' branch",
+    "timeout": 600.0,
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_LINE@stdout@h3ll0\trefs/heads/main@@@",
+      "@@@STEP_LOG_END@stdout@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "checkout.ensure fuchsia/tools/jiri/${platform}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "checkout.ensure fuchsia/tools/jiri/${platform}.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::jiri]/resources/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.ensure fuchsia/tools/jiri/${platform}.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@fuchsia/tools/jiri/${platform} version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "checkout.ensure fuchsia/tools/jiri/${platform}.install fuchsia/tools/jiri",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.ensure fuchsia/tools/jiri/${platform}.install fuchsia/tools/jiri.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "fuchsia/tools/jiri/${platform} version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.ensure fuchsia/tools/jiri/${platform}.install fuchsia/tools/jiri.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"fuchsia/tools/jiri/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/jiri",
+      "init",
+      "-vv",
+      "-time",
+      "-timefile",
+      "/path/to/tmp/",
+      "-j=8",
+      "-analytics-opt=false",
+      "-rewrite-sso-to-https=true",
+      "-cache",
+      "[CACHE]/git",
+      "-fetch-optional=",
+      "-enable-submodules=false",
+      "[START_DIR]/fuchsia"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.jiri init",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[timing_stats]@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[stderr]@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[START_DIR]/fuchsia/.jiri_root/config",
+      "/path/to/tmp/"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.read jiri config",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@config@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/jiri",
+      "import",
+      "-vv",
+      "-time",
+      "-timefile",
+      "/path/to/tmp/",
+      "-j=8",
+      "-name",
+      "integration",
+      "-revision",
+      "h3ll0",
+      "minimal",
+      "https://fuchsia.googlesource.com/manifest"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.jiri import",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[timing_stats]@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[stderr]@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[CACHE]/git"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.ensure git cache dir",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "",
+      "[CACHE]/git/.GUARD_FILE"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.write git cache guard file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/jiri",
+      "update",
+      "-vv",
+      "-time",
+      "-timefile",
+      "/path/to/tmp/",
+      "-j=8",
+      "-autoupdate=false",
+      "-attempts=1",
+      "-gc=true",
+      "-run-hooks=false",
+      "-fetch-packages=false"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.jiri update",
+    "timeout": 2700,
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[timing_stats]@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[stderr]@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "remove",
+      "[CACHE]/git/.GUARD_FILE"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.remove git cache guard file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/jiri",
+      "project",
+      "-vv",
+      "-time",
+      "-timefile",
+      "/path/to/tmp/",
+      "-j=8",
+      "-json-output",
+      "/path/to/tmp/json",
+      "fuchsia"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.jiri project",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[timing_stats]@@@",
+      "@@@STEP_LOG_LINE@json.output@[@@@",
+      "@@@STEP_LOG_LINE@json.output@  {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"branches\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"(HEAD detached at c22471f)\"@@@",
+      "@@@STEP_LOG_LINE@json.output@    ],@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"current_branch\": \"\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"name\": \"fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"path\": \"[START_DIR]/fuchsia/fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"relativePath\": \"fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"remote\": \"https://fuchsia.googlesource.com/fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"revision\": \"c22471f4e3f842ae18dd9adec82ed9eb78ed1127\"@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@]@@@",
+      "@@@STEP_LOG_END@json.output@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[stderr]@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/jiri",
+      "patch",
+      "-vv",
+      "-time",
+      "-timefile",
+      "/path/to/tmp/",
+      "-j=8",
+      "-host",
+      "https://fuchsia-review.googlesource.com",
+      "-project",
+      "fuchsia",
+      "-delete=true",
+      "-force=true",
+      "-rebase-branch",
+      "main",
+      "refs/changes/00/100/7"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.jiri patch",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[timing_stats]@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[stderr]@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "git",
+      "rev-parse",
+      "origin/main"
+    ],
+    "cwd": "[START_DIR]/fuchsia/fuchsia",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.git rev-parse",
+    "timeout": 300.0,
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[START_DIR]/fuchsia/fuchsia/patches.json",
+      "/path/to/tmp/"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.read patches.json",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_TEXT@no patch file found@@@",
+      "@@@STEP_LOG_LINE@patches.json@\"\"@@@",
+      "@@@STEP_LOG_END@patches.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "git",
+      "log",
+      "-n",
+      "10"
+    ],
+    "cwd": "[START_DIR]/fuchsia/fuchsia",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.git log",
+    "timeout": 300.0,
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[START_DIR]/fuchsia/package_overrides.json",
+      "/path/to/tmp/"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.read package overrides",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_LINE@package_overrides.json@\"\"@@@",
+      "@@@STEP_LOG_END@package_overrides.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/jiri",
+      "run-hooks",
+      "-vv",
+      "-time",
+      "-timefile",
+      "/path/to/tmp/",
+      "-j=8",
+      "-attempts=3",
+      "-hook-timeout=9",
+      "-local-manifest=true"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "env": {
+      "HOME": "[START_DIR]/fuchsia",
+      "INFRA_RECIPES": "1"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.jiri run-hooks",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[timing_stats]@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[stderr]@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/jiri",
+      "project",
+      "-vv",
+      "-time",
+      "-timefile",
+      "/path/to/tmp/",
+      "-j=8",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.source-info",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[timing_stats]@@@",
+      "@@@STEP_LOG_LINE@json.output@[@@@",
+      "@@@STEP_LOG_LINE@json.output@  {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"name\": \"integration\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"relativePath\": \"integration\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"remote\": \"https://fuchsia.googlesource.com/integration\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"revision\": \"a491082dc1b632bbcd60ba3618d20b503c2de738\"@@@",
+      "@@@STEP_LOG_LINE@json.output@  },@@@",
+      "@@@STEP_LOG_LINE@json.output@  {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"name\": \"fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"relativePath\": \".\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"remote\": \"https://fuchsia.googlesource.com/fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"revision\": \"a491082dc1b632bbcd60ba3618d20b503c2de738\"@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@]@@@",
+      "@@@STEP_LOG_END@json.output@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[stderr]@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/jiri",
+      "snapshot",
+      "-vv",
+      "-time",
+      "-timefile",
+      "/path/to/tmp/",
+      "-j=8",
+      "[CLEANUP]/jiri_snapshot.xml"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.jiri snapshot",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[timing_stats]@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[stderr]@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/jiri_snapshot.xml",
+      "/path/to/tmp/"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.read snapshot",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@jiri_snapshot.xml@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/jiri",
+      "check-clean",
+      "-vv",
+      "-time",
+      "-timefile",
+      "/path/to/tmp/",
+      "-j=8"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "checkout.jiri check-clean",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[timing_stats]@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[stderr]@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "got_revision",
+    "~followup_annotations": [
+      "@@@SET_BUILD_PROPERTY@got_revision@\"a491082dc1b632bbcd60ba3618d20b503c2de738\"@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "git",
+      "show",
+      "HEAD",
+      "--format=%B",
+      "--no-patch"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "get commit msg",
+    "timeout": 300.0,
+    "~followup_annotations": [
+      "@@@STEP_LOG_LINE@commit message@[foo] bar@@@",
+      "@@@STEP_LOG_LINE@commit message@baz@@@",
+      "@@@STEP_LOG_END@commit message@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "test multipliers",
+    "~followup_annotations": [
+      "@@@STEP_LOG_LINE@multipliers@[]@@@",
+      "@@@STEP_LOG_END@multipliers@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "upload checkout results",
+    "~followup_annotations": [
+      "@@@SET_BUILD_PROPERTY@integration-revision-count@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "upload checkout results.ensure infra/3pp/tools/gsutil",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "upload checkout results.ensure infra/3pp/tools/gsutil.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::gsutil]/resources/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload checkout results.ensure infra/3pp/tools/gsutil.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@infra/3pp/tools/gsutil version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "upload checkout results.ensure infra/3pp/tools/gsutil.install infra/3pp/tools/gsutil",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/infra/3pp/tools/gsutil/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload checkout results.ensure infra/3pp/tools/gsutil.install infra/3pp/tools/gsutil.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/infra/3pp/tools/gsutil/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "infra/3pp/tools/gsutil version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload checkout results.ensure infra/3pp/tools/gsutil.install infra/3pp/tools/gsutil.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"infra/3pp/tools/gsutil\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/gsutil/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gsutil",
+      "-h",
+      "Custom-Time:2012-05-14T12:53:21.500000Z",
+      "-o",
+      "GSUtil:software_update_check_period=0",
+      "cp",
+      "-n",
+      "[CLEANUP]/jiri_snapshot.xml",
+      "gs://fuchsia-infra-artifacts/builds/8945511751514863184/jiri_snapshot.xml"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload checkout results.upload jiri_snapshot.xml to fuchsia-infra-artifacts",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LINK@jiri_snapshot.xml@https://storage.cloud.google.com/fuchsia-infra-artifacts/builds/8945511751514863184/jiri_snapshot.xml@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "git",
+      "rev-list",
+      "--count",
+      "HEAD"
+    ],
+    "cwd": "[START_DIR]/fuchsia/integration",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload checkout results.set integration-revision-count property",
+    "timeout": 600.0,
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/jiri",
+      "source-manifest",
+      "-vv",
+      "-time",
+      "-timefile",
+      "/path/to/tmp/",
+      "-j=8",
+      "/path/to/tmp/json"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload checkout results.jiri source-manifest",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[timing_stats]@@@",
+      "@@@STEP_LOG_LINE@json.output[source manifest]@{@@@",
+      "@@@STEP_LOG_LINE@json.output[source manifest]@  \"directories\": {@@@",
+      "@@@STEP_LOG_LINE@json.output[source manifest]@    \"manifest\": {@@@",
+      "@@@STEP_LOG_LINE@json.output[source manifest]@      \"git_checkout\": {@@@",
+      "@@@STEP_LOG_LINE@json.output[source manifest]@        \"repo_url\": \"https://fuchsia.googlesource.com/manifest\",@@@",
+      "@@@STEP_LOG_LINE@json.output[source manifest]@        \"revision\": \"4c2b0da3c06341db5cebe4d02c78c93c3b2bd78b\"@@@",
+      "@@@STEP_LOG_LINE@json.output[source manifest]@      }@@@",
+      "@@@STEP_LOG_LINE@json.output[source manifest]@    }@@@",
+      "@@@STEP_LOG_LINE@json.output[source manifest]@  }@@@",
+      "@@@STEP_LOG_LINE@json.output[source manifest]@}@@@",
+      "@@@STEP_LOG_END@json.output[source manifest]@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[stderr]@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "upload checkout results.upload source manifest",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/gsutil/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gsutil",
+      "-h",
+      "Custom-Time:2012-05-14T12:53:23.000000Z",
+      "-o",
+      "GSUtil:software_update_check_period=0",
+      "cp",
+      "-n",
+      "{\"directories\": {\"manifest\": {\"git_checkout\": {\"repo_url\": \"https://fuchsia.googlesource.com/manifest\", \"revision\": \"4c2b0da3c06341db5cebe4d02c78c93c3b2bd78b\"}}}}",
+      "gs://fuchsia-infra-artifacts/builds/8945511751514863184/source_manifest.json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload checkout results.upload source manifest.upload source_manifest.json to fuchsia-infra-artifacts",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LINK@source_manifest.json@https://storage.cloud.google.com/fuchsia-infra-artifacts/builds/8945511751514863184/source_manifest.json@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build",
+    "~followup_annotations": [
+      "@@@STEP_LOG_LINE@fint_params@field: \"value\"@@@",
+      "@@@STEP_LOG_END@fint_params@@@",
+      "@@@STEP_LOG_END@some_cmd_stdout@@@",
+      "@@@SET_BUILD_PROPERTY@fint_params_path@\"fint_params/core.textproto\"@@@",
+      "@@@SET_BUILD_PROPERTY@ninja_action_metrics@{}@@@",
+      "@@@SET_BUILD_PROPERTY@ninja_duration_seconds@900@@@",
+      "@@@STEP_FAILURE@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[START_DIR]/fuchsia/fint_params/core.textproto",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.read fint params",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_LINE@core.textproto@field: \"value\"@@@",
+      "@@@STEP_LOG_END@core.textproto@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.get changed files",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/tools/jiri/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/jiri",
+      "project",
+      "-vv",
+      "-time",
+      "-timefile",
+      "/path/to/tmp/",
+      "-j=8",
+      "-json-output",
+      "/path/to/tmp/json",
+      "fuchsia"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.get changed files.jiri project",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[timing_stats]@@@",
+      "@@@STEP_LOG_LINE@json.output@[@@@",
+      "@@@STEP_LOG_LINE@json.output@  {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"name\": \"fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"path\": \"[START_DIR]/fuchsia/fuchsia\"@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@]@@@",
+      "@@@STEP_LOG_END@json.output@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[stderr]@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "git",
+      "diff-tree",
+      "--no-commit-id",
+      "--name-only",
+      "--find-renames=100%",
+      "--diff-filter=rd",
+      "-r",
+      "-z",
+      "--ignore-submodules=all",
+      "origin/main",
+      "HEAD"
+    ],
+    "cwd": "[START_DIR]/fuchsia/fuchsia",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.get changed files.git diff-tree",
+    "timeout": 300.0,
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@files@[@@@",
+      "@@@STEP_LOG_LINE@files@  \"foo.cc\",@@@",
+      "@@@STEP_LOG_LINE@files@  \"bar.cc\"@@@",
+      "@@@STEP_LOG_LINE@files@]@@@",
+      "@@@STEP_LOG_END@files@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/fuchsia/tools/integration/bootstrap.sh",
+      "-o",
+      "[CLEANUP]/fint_tmp_1/fint"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.bootstrap fint",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "checkout_dir: \"[START_DIR]/fuchsia\"\nbuild_dir: \"[START_DIR]/fuchsia/out/not-default\"\nartifact_dir: \"[CLEANUP]/fint_artifacts_tmp_1\"\nchanged_files {\n  path: \"fuchsia/foo.cc\"\n}\nchanged_files {\n  path: \"fuchsia/bar.cc\"\n}\ncache_dir: \"[CACHE]\"\ngoma_job_count: 80\n",
+      "[CLEANUP]/tmp_tmp_1"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.write fint context",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/fuchsia/out/not-default"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure build directory exists",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure infra/3pp/tools/nsjail/${platform}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure infra/3pp/tools/nsjail/${platform}.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::nsjail]/resources/nsjail/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure infra/3pp/tools/nsjail/${platform}.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@infra/3pp/tools/nsjail/${platform} version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure infra/3pp/tools/nsjail/${platform}.install infra/3pp/tools/nsjail",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/infra/3pp/tools/nsjail/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure infra/3pp/tools/nsjail/${platform}.install infra/3pp/tools/nsjail.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/infra/3pp/tools/nsjail/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "infra/3pp/tools/nsjail/${platform} version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure infra/3pp/tools/nsjail/${platform}.install infra/3pp/tools/nsjail.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"infra/3pp/tools/nsjail/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure fuchsia/infra/dumb_init/${platform}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure fuchsia/infra/dumb_init/${platform}.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::nsjail]/resources/dumb_init/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure fuchsia/infra/dumb_init/${platform}.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@fuchsia/infra/dumb_init/${platform} version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure fuchsia/infra/dumb_init/${platform}.install fuchsia/infra/dumb_init",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/fuchsia/infra/dumb_init/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure fuchsia/infra/dumb_init/${platform}.install fuchsia/infra/dumb_init.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/fuchsia/infra/dumb_init/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "fuchsia/infra/dumb_init/${platform} version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure fuchsia/infra/dumb_init/${platform}.install fuchsia/infra/dumb_init.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"fuchsia/infra/dumb_init/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "which",
+      "awk",
+      "basename",
+      "cat",
+      "chmod",
+      "cmp",
+      "comm",
+      "cp",
+      "cut",
+      "date",
+      "diff",
+      "dirname",
+      "egrep",
+      "env",
+      "expr",
+      "file",
+      "find",
+      "git-upload-pack",
+      "grep",
+      "gzip",
+      "head",
+      "ldd",
+      "ls",
+      "mkdir",
+      "mktemp",
+      "mv",
+      "readlink",
+      "rm",
+      "sed",
+      "sort",
+      "stat",
+      "tail",
+      "tar",
+      "tee",
+      "touch",
+      "tr",
+      "uname",
+      "wc",
+      "which"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.find tool paths",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "which",
+      "-a",
+      "git"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.find all git binaries",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/nsjail/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/nsjail",
+      "--forward_signals",
+      "--disable_clone_newipc",
+      "--disable_clone_newuts",
+      "--disable_clone_newcgroup",
+      "--disable_rlimits",
+      "--time_limit",
+      "43200",
+      "--log",
+      "/path/to/tmp/",
+      "--bindmount",
+      "[CLEANUP]/tmp_tmp_2:/tmp",
+      "--bindmount_ro",
+      "/bin/bash",
+      "--bindmount",
+      "/dev/null",
+      "--bindmount",
+      "/dev/urandom",
+      "--bindmount_ro",
+      "/dev/zero",
+      "--bindmount_ro",
+      "/etc/ssl/certs/ca-certificates.crt",
+      "--bindmount_ro",
+      "/lib",
+      "--bindmount_ro",
+      "/lib64",
+      "--bindmount_ro",
+      "/usr/bin/awk",
+      "--bindmount_ro",
+      "/usr/bin/basename",
+      "--bindmount_ro",
+      "/usr/bin/cat",
+      "--bindmount_ro",
+      "/usr/bin/chmod",
+      "--bindmount_ro",
+      "/usr/bin/cmp",
+      "--bindmount_ro",
+      "/usr/bin/comm",
+      "--bindmount_ro",
+      "/usr/bin/cp",
+      "--bindmount_ro",
+      "/usr/bin/cut",
+      "--bindmount_ro",
+      "/usr/bin/date",
+      "--bindmount_ro",
+      "/usr/bin/diff",
+      "--bindmount_ro",
+      "/usr/bin/dirname",
+      "--bindmount_ro",
+      "/usr/bin/egrep",
+      "--bindmount_ro",
+      "/usr/bin/env",
+      "--bindmount_ro",
+      "/usr/bin/expr",
+      "--bindmount_ro",
+      "/usr/bin/file",
+      "--bindmount_ro",
+      "/usr/bin/find",
+      "--bindmount_ro",
+      "/usr/bin/git-upload-pack",
+      "--bindmount_ro",
+      "/usr/bin/grep",
+      "--bindmount_ro",
+      "/usr/bin/gzip",
+      "--bindmount_ro",
+      "/usr/bin/head",
+      "--bindmount_ro",
+      "/usr/bin/ldd",
+      "--bindmount_ro",
+      "/usr/bin/ls",
+      "--bindmount_ro",
+      "/usr/bin/mkdir",
+      "--bindmount_ro",
+      "/usr/bin/mktemp",
+      "--bindmount_ro",
+      "/usr/bin/mv",
+      "--bindmount_ro",
+      "/usr/bin/openssl",
+      "--bindmount_ro",
+      "/usr/bin/readlink",
+      "--bindmount_ro",
+      "/usr/bin/rm",
+      "--bindmount_ro",
+      "/usr/bin/sed",
+      "--bindmount_ro",
+      "/usr/bin/sort",
+      "--bindmount_ro",
+      "/usr/bin/stat",
+      "--bindmount_ro",
+      "/usr/bin/tail",
+      "--bindmount_ro",
+      "/usr/bin/tar",
+      "--bindmount_ro",
+      "/usr/bin/tee",
+      "--bindmount_ro",
+      "/usr/bin/touch",
+      "--bindmount_ro",
+      "/usr/bin/tr",
+      "--bindmount_ro",
+      "/usr/bin/uname",
+      "--bindmount_ro",
+      "/usr/bin/wc",
+      "--bindmount_ro",
+      "/usr/bin/which",
+      "--bindmount",
+      "[CACHE]",
+      "--bindmount",
+      "[CLEANUP]/fint_artifacts_tmp_1",
+      "--bindmount_ro",
+      "[CLEANUP]/fint_tmp_1/fint",
+      "--bindmount_ro",
+      "[CLEANUP]/tmp_tmp_1",
+      "--bindmount_ro",
+      "[START_DIR]/cipd_tool/fuchsia/infra/dumb_init/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/dumb_init",
+      "--bindmount",
+      "[START_DIR]/fuchsia",
+      "--bindmount",
+      "[START_DIR]/fuchsia/out/not-default",
+      "--symlink",
+      "/bin/bash:/bin/sh",
+      "--symlink",
+      "/proc/self/fd:/dev/fd",
+      "--symlink",
+      "/proc/self/fd/1:/dev/stdout",
+      "--env",
+      "BUILDBUCKET_BUILDER=fuchsia/try/builder",
+      "--env",
+      "BUILDBUCKET_ID=8945511751514863184",
+      "--env",
+      "HOME=/tmp",
+      "--env",
+      "PATH=/usr/bin:/bin",
+      "--env",
+      "TMPDIR=/tmp",
+      "--env",
+      "XDG_CACHE_HOME=/tmp",
+      "--env",
+      "XDG_CONFIG_HOME=/tmp",
+      "--env",
+      "XDG_DATA_HOME=/tmp",
+      "--env",
+      "XDG_HOME=/tmp",
+      "--env",
+      "XDG_STATE_HOME=/tmp",
+      "--",
+      "[START_DIR]/cipd_tool/fuchsia/infra/dumb_init/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/dumb_init",
+      "[CLEANUP]/fint_tmp_1/fint",
+      "set",
+      "-static",
+      "[START_DIR]/fuchsia/fint_params/core.textproto",
+      "-context",
+      "[CLEANUP]/tmp_tmp_1"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.gn gen",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_TEXT@run by `fint set`@@@",
+      "@@@STEP_LOG_END@raw_io.output_text[nsjail_log]@@@",
+      "@@@STEP_LOG_LINE@context.textproto@checkout_dir: \"[START_DIR]/fuchsia\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@build_dir: \"[START_DIR]/fuchsia/out/not-default\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@artifact_dir: \"[CLEANUP]/fint_artifacts_tmp_1\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@changed_files {@@@",
+      "@@@STEP_LOG_LINE@context.textproto@  path: \"fuchsia/foo.cc\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@}@@@",
+      "@@@STEP_LOG_LINE@context.textproto@changed_files {@@@",
+      "@@@STEP_LOG_LINE@context.textproto@  path: \"fuchsia/bar.cc\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@}@@@",
+      "@@@STEP_LOG_LINE@context.textproto@cache_dir: \"[CACHE]\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@goma_job_count: 80@@@",
+      "@@@STEP_LOG_END@context.textproto@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/fint_artifacts_tmp_1/set_artifacts.json",
+      "/path/to/tmp/json"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.read fint set artifacts",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@{@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@  \"enable_rbe\": true,@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@  \"gn_trace_path\": \"[CLEANUP]/fint_artifacts_tmp_1/mock-gn-trace.json\",@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@  \"metadata\": {@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@    \"board\": \"boards/x64.gni\",@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@    \"optimize\": \"debug\",@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@    \"product\": \"products/core.gni\",@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@    \"target_arch\": \"x64\",@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@    \"variants\": [@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@      \"asan\"@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@    ]@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@  },@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@  \"use_goma\": true@@@",
+      "@@@STEP_LOG_LINE@set_artifacts.json@}@@@",
+      "@@@STEP_LOG_END@set_artifacts.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "rdb",
+      "stream",
+      "--",
+      "vpython3",
+      "RECIPE_MODULE[fuchsia::reported_step]/resources/resultdb.py",
+      "{\"testId\": \"gn_gen\", \"expected\": true, \"summaryHtml\": \"<ul><li><a href=\\\"https://cr-buildbucket.appspot.com/log/8945511751514863184/build|gn gen?log=raw_io.output_text[nsjail_log]\\\" target=\\\"_blank\\\">raw_io.output_text[nsjail_log]</a></li>\\n<li><a href=\\\"https://cr-buildbucket.appspot.com/log/8945511751514863184/build|gn gen?log=context.textproto\\\" target=\\\"_blank\\\">context.textproto</a></li>\\n<li><a href=\\\"https://cr-buildbucket.appspot.com/log/8945511751514863184/build|gn gen?log=stdout\\\" target=\\\"_blank\\\">stdout</a></li></ul>\", \"status\": \"PASS\"}"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.gn gen - upload to resultdb",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[START_DIR]/fuchsia/out/not-default/tool_paths.json",
+      "/path/to/tmp/"
+    ],
+    "cwd": "[START_DIR]/fuchsia",
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.read tool_paths manifest",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_LINE@tool_paths.json@[@@@",
+      "@@@STEP_LOG_LINE@tool_paths.json@  {@@@",
+      "@@@STEP_LOG_LINE@tool_paths.json@    \"cpu\": \"x64\",@@@",
+      "@@@STEP_LOG_LINE@tool_paths.json@    \"name\": \"foo\",@@@",
+      "@@@STEP_LOG_LINE@tool_paths.json@    \"os\": \"linux\",@@@",
+      "@@@STEP_LOG_LINE@tool_paths.json@    \"path\": \"linux_x64/foo\"@@@",
+      "@@@STEP_LOG_LINE@tool_paths.json@  }@@@",
+      "@@@STEP_LOG_LINE@tool_paths.json@]@@@",
+      "@@@STEP_LOG_END@tool_paths.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[START_DIR]/fuchsia/out/not-default/tests.json",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.read tests.json",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_END@tests.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[START_DIR]/fuchsia/out/not-default/rbe_config.json",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.read rbe_config manifest",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_LINE@rbe_config.json@[@@@",
+      "@@@STEP_LOG_LINE@rbe_config.json@  {@@@",
+      "@@@STEP_LOG_LINE@rbe_config.json@    \"path\": \"../../path/to/rbe/config.cfg\"@@@",
+      "@@@STEP_LOG_LINE@rbe_config.json@  }@@@",
+      "@@@STEP_LOG_LINE@rbe_config.json@]@@@",
+      "@@@STEP_LOG_END@rbe_config.json@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.setup goma",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.setup goma.ensure infra/3pp/tools/cpython3/${platform}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.setup goma.ensure infra/3pp/tools/cpython3/${platform}.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::python3]/resources/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GLOG_log_dir": "[CLEANUP]",
+      "GOMA_CACHE_DIR": "[CACHE]/goma",
+      "GOMA_DEPS_CACHE_FILE": "goma_deps_cache",
+      "GOMA_DUMP_STATS_FILE": "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_stats.json",
+      "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache",
+      "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256",
+      "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog",
+      "GOMA_STORE_LOCAL_RUN_OUTPUT": "True",
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.setup goma.ensure infra/3pp/tools/cpython3/${platform}.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@infra/3pp/tools/cpython3/${platform} version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.setup goma.ensure infra/3pp/tools/cpython3/${platform}.install infra/3pp/tools/cpython3",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/infra/3pp/tools/cpython3/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "env": {
+      "GLOG_log_dir": "[CLEANUP]",
+      "GOMA_CACHE_DIR": "[CACHE]/goma",
+      "GOMA_DEPS_CACHE_FILE": "goma_deps_cache",
+      "GOMA_DUMP_STATS_FILE": "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_stats.json",
+      "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache",
+      "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256",
+      "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog",
+      "GOMA_STORE_LOCAL_RUN_OUTPUT": "True",
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.setup goma.ensure infra/3pp/tools/cpython3/${platform}.install infra/3pp/tools/cpython3.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/infra/3pp/tools/cpython3/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "infra/3pp/tools/cpython3/${platform} version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "env": {
+      "GLOG_log_dir": "[CLEANUP]",
+      "GOMA_CACHE_DIR": "[CACHE]/goma",
+      "GOMA_DEPS_CACHE_FILE": "goma_deps_cache",
+      "GOMA_DUMP_STATS_FILE": "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_stats.json",
+      "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache",
+      "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256",
+      "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog",
+      "GOMA_STORE_LOCAL_RUN_OUTPUT": "True",
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.setup goma.ensure infra/3pp/tools/cpython3/${platform}.install infra/3pp/tools/cpython3.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"infra/3pp/tools/cpython3/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/cpython3/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/bin/python3",
+      "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_ctl.py",
+      "restart"
+    ],
+    "env": {
+      "GLOG_log_dir": "[CLEANUP]",
+      "GOMA_CACHE_DIR": "[CACHE]/goma",
+      "GOMA_DEPS_CACHE_FILE": "goma_deps_cache",
+      "GOMA_DUMP_STATS_FILE": "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_stats.json",
+      "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache",
+      "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256",
+      "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog",
+      "GOMA_STORE_LOCAL_RUN_OUTPUT": "True",
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.setup goma.start goma",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[CACHE]/rbe/deps"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.create rbe cache dir",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.setup remote execution",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/fuchsia/out/not-default/linux_x64/bootstrap",
+      "--re_proxy=[START_DIR]/fuchsia/out/not-default/linux_x64/reproxy",
+      "--cfg=[START_DIR]/fuchsia/path/to/rbe/config.cfg"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.setup remote execution.start reproxy",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "checkout_dir: \"[START_DIR]/fuchsia\"\nbuild_dir: \"[START_DIR]/fuchsia/out/not-default\"\nartifact_dir: \"[CLEANUP]/fint_artifacts_tmp_1\"\nchanged_files {\n  path: \"fuchsia/foo.cc\"\n}\nchanged_files {\n  path: \"fuchsia/bar.cc\"\n}\ncache_dir: \"[CACHE]\"\ngoma_job_count: 80\n",
+      "[CLEANUP]/tmp_tmp_3"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.write fint context (2)",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/cpython3/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/bin/python3",
+      "RECIPE_MODULE[fuchsia::buildproxywrap]/resources/render_config.py",
+      "--input",
+      "RECIPE_MODULE[fuchsia::buildproxywrap]/resources/config.json",
+      "--output",
+      "/path/to/tmp/json"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.render buildproxywrap config",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_LINE@json.output@[@@@",
+      "@@@STEP_LOG_LINE@json.output@  {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"name\": \"foo\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"server_address\": \"foobar.com\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"socket_file_name\": \"foo.sock\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"socket_path_env_var\": \"FOO\"@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@]@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure fuchsia/infra/buildproxywrap/${platform}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure fuchsia/infra/buildproxywrap/${platform}.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::buildproxywrap]/resources/buildproxywrap/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure fuchsia/infra/buildproxywrap/${platform}.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@fuchsia/infra/buildproxywrap/${platform} version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure fuchsia/infra/buildproxywrap/${platform}.install fuchsia/infra/buildproxywrap",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/fuchsia/infra/buildproxywrap/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure fuchsia/infra/buildproxywrap/${platform}.install fuchsia/infra/buildproxywrap.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/fuchsia/infra/buildproxywrap/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "fuchsia/infra/buildproxywrap/${platform} version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure fuchsia/infra/buildproxywrap/${platform}.install fuchsia/infra/buildproxywrap.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"fuchsia/infra/buildproxywrap/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure fuchsia/third_party/socat/${platform}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure fuchsia/third_party/socat/${platform}.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::buildproxywrap]/resources/socat/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure fuchsia/third_party/socat/${platform}.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@fuchsia/third_party/socat/${platform} version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.ensure fuchsia/third_party/socat/${platform}.install fuchsia/third_party/socat",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/fuchsia/third_party/socat/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure fuchsia/third_party/socat/${platform}.install fuchsia/third_party/socat.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/fuchsia/third_party/socat/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "fuchsia/third_party/socat/${platform} version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ensure fuchsia/third_party/socat/${platform}.install fuchsia/third_party/socat.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"fuchsia/third_party/socat/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/infra/buildproxywrap/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/buildproxywrap",
+      "-socat",
+      "[START_DIR]/cipd_tool/fuchsia/third_party/socat/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/bin/socat",
+      "-socket_dir",
+      "[CLEANUP]/buildproxy_socket_dir_tmp_1",
+      "-cfg",
+      "[{\"name\": \"foo\", \"server_address\": \"foobar.com\", \"socket_file_name\": \"foo.sock\", \"socket_path_env_var\": \"FOO\"}]",
+      "--",
+      "RECIPE_MODULE[fuchsia::buildproxywrap]/resources/auth_wrapper.sh",
+      "[START_DIR]/cipd_tool/fuchsia/third_party/socat/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/bin/socat",
+      "[CLEANUP]/fint_tmp_1/fint",
+      "build",
+      "-static",
+      "[START_DIR]/fuchsia/fint_params/core.textproto",
+      "-context",
+      "[CLEANUP]/tmp_tmp_3"
+    ],
+    "env": {
+      "BUILDBUCKET_BUILDER": "fuchsia/try/builder",
+      "BUILDBUCKET_ID": "8945511751514863184",
+      "FOO": "[CLEANUP]/buildproxy_socket_dir_tmp_1/foo.sock",
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "HOME": "[CLEANUP]",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true",
+      "XDG_CACHE_HOME": "[CLEANUP]",
+      "XDG_CONFIG_HOME": "[CLEANUP]",
+      "XDG_DATA_HOME": "[CLEANUP]",
+      "XDG_HOME": "[CLEANUP]",
+      "XDG_STATE_HOME": "[CLEANUP]"
+    },
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ninja",
+    "timeout": 5400,
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_TEXT@run by `fint build`@@@",
+      "@@@STEP_LOG_LINE@context.textproto@checkout_dir: \"[START_DIR]/fuchsia\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@build_dir: \"[START_DIR]/fuchsia/out/not-default\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@artifact_dir: \"[CLEANUP]/fint_artifacts_tmp_1\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@changed_files {@@@",
+      "@@@STEP_LOG_LINE@context.textproto@  path: \"fuchsia/foo.cc\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@}@@@",
+      "@@@STEP_LOG_LINE@context.textproto@changed_files {@@@",
+      "@@@STEP_LOG_LINE@context.textproto@  path: \"fuchsia/bar.cc\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@}@@@",
+      "@@@STEP_LOG_LINE@context.textproto@cache_dir: \"[CACHE]\"@@@",
+      "@@@STEP_LOG_LINE@context.textproto@goma_job_count: 80@@@",
+      "@@@STEP_LOG_END@context.textproto@@@",
+      "@@@SET_BUILD_PROPERTY@build_failed@true@@@",
+      "@@@STEP_FAILURE@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.teardown remote execution",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@SET_BUILD_PROPERTY@rpl_files@[\"reproxy_2021-10-16_22_52_23.rrpl\"]@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/fuchsia/out/not-default/linux_x64/bootstrap",
+      "--shutdown",
+      "--cfg=[START_DIR]/fuchsia/path/to/rbe/config.cfg"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.stop reproxy",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/rbe_tmp_1/bootstrap.INFO",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.read bootstrap.INFO",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@bootstrap.INFO@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/rbe_tmp_1/scandeps_server.INFO",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.read scandeps_server.INFO",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@scandeps_server.INFO@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/rbe_tmp_1/rbe_metrics.txt",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.read rbe_metrics.txt",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@rbe_metrics.txt@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/rbe_tmp_1/reproxy.INFO",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.read reproxy.INFO",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@reproxy.INFO@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/rbe_tmp_1/reproxy-gomaip.INFO",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.read reproxy-gomaip.INFO",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@reproxy-gomaip.INFO@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/rbe_tmp_1/reproxy_outerr.log",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.read reproxy_outerr.log",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@reproxy_outerr.log@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/rbe_tmp_1/rewrapper.INFO",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.read rewrapper.INFO",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@rewrapper.INFO@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "glob",
+      "[CLEANUP]/rbe_tmp_1",
+      "*.rrpl"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.find rrpl files",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@glob@[CLEANUP]/rbe_tmp_1/reproxy_2021-10-16_22_52_23.rrpl@@@",
+      "@@@STEP_LOG_END@glob@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/rbe_tmp_1/reproxy_2021-10-16_22_52_23.rrpl",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.read reproxy_2021-10-16_22_52_23.rrpl",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@reproxy_2021-10-16_22_52_23.rrpl@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/rbe_tmp_1/rbe_metrics.pb",
+      "/path/to/tmp/pb"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.read rbe_metrics.pb",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.teardown remote execution.ensure infra/tools/bqupload/${platform}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.teardown remote execution.ensure infra/tools/bqupload/${platform}.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::bqupload]/resources/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.ensure infra/tools/bqupload/${platform}.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/bqupload/${platform} version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.teardown remote execution.ensure infra/tools/bqupload/${platform}.install infra/tools/bqupload",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/infra/tools/bqupload/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.ensure infra/tools/bqupload/${platform}.install infra/tools/bqupload.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/infra/tools/bqupload/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "infra/tools/bqupload/${platform} version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.ensure infra/tools/bqupload/${platform}.install infra/tools/bqupload.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"infra/tools/bqupload/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/tools/bqupload/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/bqupload",
+      "fuchsia-engprod-metrics-prod.metrics.rbe_client_metrics_raw",
+      "{\"build_id\": \"8945511751514863184\", \"builder_name\": \"builder\", \"created_at\": \"2012-05-14T12:53:24.500Z\", \"instance\": \"fake_rbe_instance\", \"stats\": \"{\\\"environment\\\": {\\\"bar\\\": \\\"42\\\", \\\"foo\\\": \\\"false\\\"}}\"}"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.upload metrics",
+    "tags": {
+      "fuchsia.failure_alert_emails": "olivernewman@google.com"
+    },
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"environment\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"bar\": \"42\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"foo\": \"false\"@@@",
+      "@@@STEP_LOG_LINE@json.output@    }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/fuchsia/out/not-default/linux_x64/logdump",
+      "--proxy_log_dir",
+      "[CLEANUP]/rbe_tmp_1",
+      "--output_dir",
+      "[CLEANUP]/rbe_tmp_1"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.convert reproxy command log to binary proto",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/rbe_tmp_1/reproxy_log.pb",
+      "/path/to/tmp/pb"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False",
+      "RBE_cache_dir": "[CACHE]/rbe/deps",
+      "RBE_deps_cache_max_mb": "512",
+      "RBE_enable_deps_cache": "true",
+      "RBE_experimental_credentials_helper": "",
+      "RBE_instance": "fake_rbe_instance",
+      "RBE_invocation_id": "bbid:8945511751514863184",
+      "RBE_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_log_format": "reducedtext",
+      "RBE_output_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_platform": "fake_rbe_platform",
+      "RBE_proxy_log_dir": "[CLEANUP]/rbe_tmp_1",
+      "RBE_server_address": "unix://[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_service": "remotebuildexecution.googleapis.com:443",
+      "RBE_socket_path": "[CLEANUP]/rbe_tmp_1/reproxy.sock",
+      "RBE_use_application_default_credentials": "false",
+      "RBE_use_gce_credentials": "true"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown remote execution.read reproxy_log.pb",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.teardown goma",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/cpython3/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/bin/python3",
+      "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_ctl.py",
+      "jsonstatus",
+      "/path/to/tmp/json"
+    ],
+    "env": {
+      "GLOG_log_dir": "[CLEANUP]",
+      "GOMA_CACHE_DIR": "[CACHE]/goma",
+      "GOMA_DEPS_CACHE_FILE": "goma_deps_cache",
+      "GOMA_DUMP_STATS_FILE": "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_stats.json",
+      "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache",
+      "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256",
+      "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog",
+      "GOMA_STORE_LOCAL_RUN_OUTPUT": "True",
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown goma.goma jsonstatus",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"foo\": \"bar\"@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/cpython3/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/bin/python3",
+      "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_ctl.py",
+      "stat"
+    ],
+    "env": {
+      "GLOG_log_dir": "[CLEANUP]",
+      "GOMA_CACHE_DIR": "[CACHE]/goma",
+      "GOMA_DEPS_CACHE_FILE": "goma_deps_cache",
+      "GOMA_DUMP_STATS_FILE": "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_stats.json",
+      "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache",
+      "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256",
+      "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog",
+      "GOMA_STORE_LOCAL_RUN_OUTPUT": "True",
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown goma.goma stats",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/cpython3/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/bin/python3",
+      "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_ctl.py",
+      "stop"
+    ],
+    "env": {
+      "GLOG_log_dir": "[CLEANUP]",
+      "GOMA_CACHE_DIR": "[CACHE]/goma",
+      "GOMA_DEPS_CACHE_FILE": "goma_deps_cache",
+      "GOMA_DUMP_STATS_FILE": "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_stats.json",
+      "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache",
+      "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256",
+      "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog",
+      "GOMA_STORE_LOCAL_RUN_OUTPUT": "True",
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown goma.stop goma",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/compiler_proxy.WARNING",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown goma.read goma_client warning log",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@compiler_proxy.WARNING@test log@@@",
+      "@@@STEP_LOG_END@compiler_proxy.WARNING@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[START_DIR]/fuchsia/out/not-default/linux_x64/goma_stats.json",
+      "/path/to/tmp/"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown goma.read goma_stats.json",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"build_info\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"build_id\": 8945511751514863184,@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"builder\": \"builder\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"time_stamp\": \"2012-05-14 12:53:26\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"time_stamp_int\": 1337000007500@@@",
+      "@@@STEP_LOG_LINE@json.output@    }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/tools/bqupload/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/bqupload",
+      "fuchsia-infra.artifacts.builds_beta_goma",
+      "{\"build_info\": {\"build_id\": 8945511751514863184, \"builder\": \"builder\", \"time_stamp\": \"2012-05-14 12:53:26\", \"time_stamp_int\": 1337000007500}}"
+    ],
+    "env": {
+      "GOMA_TMP_DIR": "[CLEANUP]/goma",
+      "GOMA_USE_LOCAL": "False"
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.teardown goma.upload goma stats to bigquery",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/fint_artifacts_tmp_1/build_artifacts.json",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.read fint build artifacts",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@{@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  \"affected_tests\": [@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@    \"test1\",@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@    \"test2\"@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  ],@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  \"built_archives\": [@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@    {@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@      \"name\": \"archive\",@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@      \"path\": \"build-archive.tgz\",@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@      \"type\": \"tgz\"@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@    }@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  ],@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  \"built_images\": [@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@    {@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@      \"name\": \"foo\",@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@      \"path\": \"foo.img\",@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@      \"type\": \"blk\"@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@    }@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  ],@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  \"log_files\": {@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@    \"some_cmd_stdout\": \"/tmp/stdout.txt\"@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  },@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  \"ninja_compdb_path\": \"/tmp/ninja_compdb.json\",@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  \"ninja_duration_seconds\": 900,@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  \"ninja_graph_path\": \"/tmp/ninja_graph.dot\",@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@  \"ninja_log_path\": \"/tmp/ninja_log.txt\"@@@",
+      "@@@STEP_LOG_LINE@build_artifacts.json@}@@@",
+      "@@@STEP_LOG_END@build_artifacts.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "rdb",
+      "stream",
+      "--",
+      "vpython3",
+      "RECIPE_MODULE[fuchsia::reported_step]/resources/resultdb.py",
+      "{\"testId\": \"ninja\", \"expected\": false, \"summaryHtml\": \"<ul><li><a href=\\\"https://cr-buildbucket.appspot.com/log/8945511751514863184/build|ninja?log=context.textproto\\\" target=\\\"_blank\\\">context.textproto</a></li>\\n<li><a href=\\\"https://cr-buildbucket.appspot.com/log/8945511751514863184/build|ninja?log=stdout\\\" target=\\\"_blank\\\">stdout</a></li></ul>\", \"status\": \"FAIL\"}"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ninja - upload to resultdb",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.read fint log files",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "/tmp/stdout.txt",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.read fint log files.read stdout.txt",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/fuchsia/out/not-default/linux_x64/buildstats",
+      "--ninjalog",
+      "/tmp/ninja_log.txt",
+      "--compdb",
+      "/tmp/ninja_compdb.json",
+      "--graph",
+      "/tmp/ninja_graph.dot",
+      "--output",
+      "[CLEANUP]/buildstats_tmp_1/fuchsia-buildstats.json"
+    ],
+    "cwd": "[START_DIR]/fuchsia/out/not-default",
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.fuchsia buildstats",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/gsutil/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gsutil",
+      "-h",
+      "Custom-Time:2012-05-14T12:53:29.000000Z",
+      "-o",
+      "GSUtil:software_update_check_period=0",
+      "cp",
+      "-n",
+      "[CLEANUP]/buildstats_tmp_1/fuchsia-buildstats.json",
+      "gs://fuchsia-infra-artifacts/builds/8945511751514863184/fuchsia-buildstats.json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.upload fuchsia-buildstats.json to fuchsia-infra-artifacts",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LINK@fuchsia-buildstats.json@https://storage.cloud.google.com/fuchsia-infra-artifacts/builds/8945511751514863184/fuchsia-buildstats.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/fuchsia/out/not-default/linux_x64/ninjatrace",
+      "-ninjalog",
+      "/tmp/ninja_log.txt",
+      "-compdb",
+      "/tmp/ninja_compdb.json",
+      "-graph",
+      "/tmp/ninja_graph.dot",
+      "-critical-path",
+      "-trace-json",
+      "[CLEANUP]/fuchsia_ninja_trace.json_tmp_1"
+    ],
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.ninjatrace",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.upload traces",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LINK@fuchsia.dev guide@https://fuchsia.dev/fuchsia-src/development/tracing/tutorial/converting-visualizing-a-trace#html-trace@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/gsutil/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gsutil",
+      "-h",
+      "Custom-Time:2012-05-14T12:53:30.500000Z",
+      "-o",
+      "GSUtil:software_update_check_period=0",
+      "cp",
+      "-n",
+      "[CLEANUP]/fint_artifacts_tmp_1/mock-gn-trace.json",
+      "gs://fuchsia-infra-artifacts/builds/8945511751514863184/fuchsia_gn_trace.json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.upload traces.upload fuchsia_gn_trace.json to fuchsia-infra-artifacts",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LINK@fuchsia_gn_trace.json@https://storage.cloud.google.com/fuchsia-infra-artifacts/builds/8945511751514863184/fuchsia_gn_trace.json@@@",
+      "@@@STEP_LINK@perfetto_ui@https://ui.perfetto.dev/#!?url=https://storage.googleapis.com/fuchsia-infra-artifacts/builds/8945511751514863184/fuchsia_gn_trace.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/gsutil/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gsutil",
+      "-h",
+      "Custom-Time:2012-05-14T12:53:32.000000Z",
+      "-o",
+      "GSUtil:software_update_check_period=0",
+      "cp",
+      "-n",
+      "[CLEANUP]/fuchsia_ninja_trace.json_tmp_1",
+      "gs://fuchsia-infra-artifacts/builds/8945511751514863184/fuchsia_ninja_trace.json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.upload traces.upload fuchsia_ninja_trace.json to fuchsia-infra-artifacts",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LINK@fuchsia_ninja_trace.json@https://storage.cloud.google.com/fuchsia-infra-artifacts/builds/8945511751514863184/fuchsia_ninja_trace.json@@@",
+      "@@@STEP_LINK@perfetto_ui@https://ui.perfetto.dev/#!?url=https://storage.googleapis.com/fuchsia-infra-artifacts/builds/8945511751514863184/fuchsia_ninja_trace.json@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.sponge links",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LINK@sponge invocations@http://sponge/invocations/?q=BUILDBUCKET_ID:8945511751514863184@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "check for correlated failures",
+    "~followup_annotations": [
+      "@@@SET_BUILD_PROPERTY@num_autocorrelator_findings@0@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "check for correlated failures.check try",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::autocorrelator]/resources/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@fuchsia/infra/autocorrelator/${platform} version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}.install fuchsia/infra/autocorrelator",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/fuchsia/infra/autocorrelator/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}.install fuchsia/infra/autocorrelator.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/fuchsia/infra/autocorrelator/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "fuchsia/infra/autocorrelator/${platform} version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}.install fuchsia/infra/autocorrelator.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"fuchsia/infra/autocorrelator/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/infra/autocorrelator/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/autocorrelator",
+      "check-try",
+      "-builder",
+      "fuchsia/try/builder",
+      "-change-num",
+      "123456",
+      "-build-status",
+      "20",
+      "-summary-markdown-path",
+      "Unrecognized fint build failure, see stdout for details.\n\nYou can reproduce this build by running `fx repro 8945511751514863184`",
+      "-scrub-header",
+      "This failure may be a false rejection.",
+      "-scrub-footer",
+      "Original failure continues below.",
+      "-json-output",
+      "/path/to/tmp/json",
+      "-ignore-skipped-build"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "check for correlated failures.check try.run autocorrelator",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@json.output (invalid)@@@",
+      "@@@STEP_LOG_LINE@json.output (exception)@No JSON object could be decoded@@@",
+      "@@@STEP_LOG_END@json.output (exception)@@@"
+    ]
+  },
+  {
+    "failure": {
+      "failure": {},
+      "humanReason": "This builder does not rebase on top of HEAD, which may have caused the following build failure. If it looks unrelated to your CL, try rebasing the CL and relaunching the builder.\n\nUnrecognized fint build failure, see stdout for details.\n\nYou can reproduce this build by running `fx repro 8945511751514863184`"
+    },
+    "name": "$result"
+  }
+]
\ No newline at end of file
diff --git a/recipes/fuchsia/build.py b/recipes/fuchsia/build.py
index aee3155..beb0560 100644
--- a/recipes/fuchsia/build.py
+++ b/recipes/fuchsia/build.py
@@ -122,12 +122,33 @@
         with api.context(cwd=checkout.root_dir):
             repo_path = api.path.abs_to_path(checkout.project(project)["path"])
 
-    with api.autocorrelator.context(
-        ci_base_commit=checkout.integration_revision, ignore_skipped_build=True
-    ):
-        run_build_steps(
-            api, props, spec, upload_namespace, checkout, multipliers, without_cl=False
-        )
+    try:
+        with api.autocorrelator.context(
+            ci_base_commit=checkout.integration_revision, ignore_skipped_build=True
+        ):
+            run_build_steps(
+                api,
+                props,
+                spec,
+                upload_namespace,
+                checkout,
+                multipliers,
+                without_cl=False,
+            )
+    except api.step.StepFailure as exc:
+        if (
+            spec.checkout.do_not_rebase_patch
+            and api.buildbucket_util.is_tryjob
+            and api.autocorrelator.AUTOCORRELATOR_HEADER not in exc.reason
+        ):
+            summary_markdown = (
+                "This builder does not rebase on top of HEAD, which may have caused "
+                + "the following build failure. If it looks unrelated to your CL, "
+                + "try rebasing the CL and relaunching the builder.\n\n"
+                + exc.reason
+            )
+            raise api.step.StepFailure(summary_markdown)
+        raise exc
 
     if props.perfcompare:
         with api.step.nest("build without CL"):
@@ -583,6 +604,7 @@
         # ID for ci_build_message and the builds returned by get().
         parent_id=str(api.buildbucket.ci_build_message().id),
         is_release_version=False,
+        do_not_rebase_patch=False,
         **kwargs,
     ):
         test_spec = None
@@ -619,6 +641,7 @@
                     manifest="minimal",
                     remote="https://fuchsia.googlesource.com/manifest",
                     is_release_version=is_release_version,
+                    do_not_rebase_patch=do_not_rebase_patch,
                 ),
                 build=Fuchsia.Build(
                     run_tests=run_tests,
@@ -908,6 +931,7 @@
         + properties(
             gcs_bucket="fuchsia-infra",
             run_tests=False,
+            do_not_rebase_patch=True,
             **{"$fuchsia/autocorrelator": {"ci_bucket": "ci", "ci_builder": "builder"}},
         )
         + api.step_data("build.ninja", retcode=1)
@@ -923,3 +947,13 @@
             }
         )
     )
+
+    yield (
+        test("failed_build_cq_no_rebase", tryjob=True, status="FAILURE")
+        + properties(
+            gcs_bucket="fuchsia-infra",
+            run_tests=False,
+            do_not_rebase_patch=True,
+        )
+        + api.step_data("build.ninja", retcode=1)
+    )
diff --git a/recipes/fuchsia/fuchsia.expected/failed_tests_cq.json b/recipes/fuchsia/fuchsia.expected/failed_tests_cq.json
index eedc8e9..323d17e 100644
--- a/recipes/fuchsia/fuchsia.expected/failed_tests_cq.json
+++ b/recipes/fuchsia/fuchsia.expected/failed_tests_cq.json
@@ -8,7 +8,8 @@
       "@@@STEP_LOG_LINE@properties@  \"spec\": {@@@",
       "@@@STEP_LOG_LINE@properties@    \"checkout\": {@@@",
       "@@@STEP_LOG_LINE@properties@      \"manifest\": \"manifest\",@@@",
-      "@@@STEP_LOG_LINE@properties@      \"remote\": \"remote\"@@@",
+      "@@@STEP_LOG_LINE@properties@      \"remote\": \"remote\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"do_not_rebase_patch\": true@@@",
       "@@@STEP_LOG_LINE@properties@    },@@@",
       "@@@STEP_LOG_LINE@properties@    \"build\": {@@@",
       "@@@STEP_LOG_LINE@properties@      \"run_tests\": true,@@@",
diff --git a/recipes/fuchsia/fuchsia.expected/failed_tests_cq_no_rebase.json b/recipes/fuchsia/fuchsia.expected/failed_tests_cq_no_rebase.json
new file mode 100644
index 0000000..9086768
--- /dev/null
+++ b/recipes/fuchsia/fuchsia.expected/failed_tests_cq_no_rebase.json
@@ -0,0 +1,2180 @@
+[
+  {
+    "cmd": [],
+    "name": "input properties",
+    "~followup_annotations": [
+      "@@@STEP_LOG_LINE@properties@{@@@",
+      "@@@STEP_LOG_LINE@properties@  \"recipe\": \"fuchsia/fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@properties@  \"spec\": {@@@",
+      "@@@STEP_LOG_LINE@properties@    \"checkout\": {@@@",
+      "@@@STEP_LOG_LINE@properties@      \"manifest\": \"manifest\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"remote\": \"remote\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"do_not_rebase_patch\": true@@@",
+      "@@@STEP_LOG_LINE@properties@    },@@@",
+      "@@@STEP_LOG_LINE@properties@    \"build\": {@@@",
+      "@@@STEP_LOG_LINE@properties@      \"run_tests\": true,@@@",
+      "@@@STEP_LOG_LINE@properties@      \"upload_results\": true@@@",
+      "@@@STEP_LOG_LINE@properties@    },@@@",
+      "@@@STEP_LOG_LINE@properties@    \"test\": {@@@",
+      "@@@STEP_LOG_LINE@properties@      \"pool\": \"fuchsia.tests\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"swarming_expiration_timeout_secs\": 600,@@@",
+      "@@@STEP_LOG_LINE@properties@      \"swarming_io_timeout_secs\": 300,@@@",
+      "@@@STEP_LOG_LINE@properties@      \"swarming_grace_period_secs\": 30,@@@",
+      "@@@STEP_LOG_LINE@properties@      \"botanist_grace_period_secs\": 60,@@@",
+      "@@@STEP_LOG_LINE@properties@      \"timeout_secs\": 1800,@@@",
+      "@@@STEP_LOG_LINE@properties@      \"max_attempts\": 1,@@@",
+      "@@@STEP_LOG_LINE@properties@      \"upload_results\": true@@@",
+      "@@@STEP_LOG_LINE@properties@    },@@@",
+      "@@@STEP_LOG_LINE@properties@    \"artifact_gcs_bucket\": \"gcs-bucket\"@@@",
+      "@@@STEP_LOG_LINE@properties@  },@@@",
+      "@@@STEP_LOG_LINE@properties@  \"$fuchsia/autocorrelator\": {@@@",
+      "@@@STEP_LOG_LINE@properties@    \"ci_bucket\": \"ci\",@@@",
+      "@@@STEP_LOG_LINE@properties@    \"ci_builder\": \"builder\"@@@",
+      "@@@STEP_LOG_LINE@properties@  },@@@",
+      "@@@STEP_LOG_LINE@properties@  \"$recipe_engine/buildbucket\": {@@@",
+      "@@@STEP_LOG_LINE@properties@    \"build\": {@@@",
+      "@@@STEP_LOG_LINE@properties@      \"id\": \"8945511751514863184\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"builder\": {@@@",
+      "@@@STEP_LOG_LINE@properties@        \"project\": \"fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@properties@        \"bucket\": \"try\",@@@",
+      "@@@STEP_LOG_LINE@properties@        \"builder\": \"builder\"@@@",
+      "@@@STEP_LOG_LINE@properties@      },@@@",
+      "@@@STEP_LOG_LINE@properties@      \"createdBy\": \"project:fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"createTime\": \"2018-05-25T23:50:17Z\",@@@",
+      "@@@STEP_LOG_LINE@properties@      \"input\": {@@@",
+      "@@@STEP_LOG_LINE@properties@        \"gerritChanges\": [@@@",
+      "@@@STEP_LOG_LINE@properties@          {@@@",
+      "@@@STEP_LOG_LINE@properties@            \"host\": \"fuchsia-review.googlesource.com\",@@@",
+      "@@@STEP_LOG_LINE@properties@            \"project\": \"fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@properties@            \"change\": \"123456\",@@@",
+      "@@@STEP_LOG_LINE@properties@            \"patchset\": \"7\"@@@",
+      "@@@STEP_LOG_LINE@properties@          }@@@",
+      "@@@STEP_LOG_LINE@properties@        ]@@@",
+      "@@@STEP_LOG_LINE@properties@      },@@@",
+      "@@@STEP_LOG_LINE@properties@      \"infra\": {@@@",
+      "@@@STEP_LOG_LINE@properties@        \"resultdb\": {@@@",
+      "@@@STEP_LOG_LINE@properties@          \"invocation\": \"invocations/build:8945511751514863184\"@@@",
+      "@@@STEP_LOG_LINE@properties@        },@@@",
+      "@@@STEP_LOG_LINE@properties@        \"backend\": {@@@",
+      "@@@STEP_LOG_LINE@properties@          \"config\": {@@@",
+      "@@@STEP_LOG_LINE@properties@            \"priority\": 30@@@",
+      "@@@STEP_LOG_LINE@properties@          },@@@",
+      "@@@STEP_LOG_LINE@properties@          \"task\": {@@@",
+      "@@@STEP_LOG_LINE@properties@            \"id\": {@@@",
+      "@@@STEP_LOG_LINE@properties@              \"target\": \"swarming://chromium-swarm\"@@@",
+      "@@@STEP_LOG_LINE@properties@            }@@@",
+      "@@@STEP_LOG_LINE@properties@          }@@@",
+      "@@@STEP_LOG_LINE@properties@        }@@@",
+      "@@@STEP_LOG_LINE@properties@      },@@@",
+      "@@@STEP_LOG_LINE@properties@      \"tags\": [@@@",
+      "@@@STEP_LOG_LINE@properties@        {@@@",
+      "@@@STEP_LOG_LINE@properties@          \"key\": \"cq_experimental\",@@@",
+      "@@@STEP_LOG_LINE@properties@          \"value\": \"false\"@@@",
+      "@@@STEP_LOG_LINE@properties@        }@@@",
+      "@@@STEP_LOG_LINE@properties@      ],@@@",
+      "@@@STEP_LOG_LINE@properties@      \"executionTimeout\": \"36000s\"@@@",
+      "@@@STEP_LOG_LINE@properties@    }@@@",
+      "@@@STEP_LOG_LINE@properties@  }@@@",
+      "@@@STEP_LOG_LINE@properties@}@@@",
+      "@@@STEP_LOG_END@properties@@@",
+      "@@@SET_BUILD_PROPERTY@gcs_bucket@\"\"@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build",
+    "~followup_annotations": [
+      "@@@STEP_SUMMARY_TEXT@a summary@@@",
+      "@@@STEP_LINK@builder-subbuild@https://ci.chromium.org/b/8945511751514863184@@@",
+      "@@@STEP_LINK@foo.txt@https://logs.example.com/foo.txt@@@",
+      "@@@STEP_LINK@bar.txt@https://logs.example.com/bar.txt@@@",
+      "@@@STEP_LINK@build_artifacts@http://console.cloud.google.com/storage/browser/gcs-bucket/builds/8945511751514863184@@@",
+      "@@@SET_BUILD_PROPERTY@checkout_info@{\"manifest\": \"foo\"}@@@",
+      "@@@SET_BUILD_PROPERTY@child_build_id@\"8945511751514863184\"@@@",
+      "@@@SET_BUILD_PROPERTY@got_revision@\"abcdef\"@@@",
+      "@@@SET_BUILD_PROPERTY@integration-revision-count@1.0@@@",
+      "@@@SET_BUILD_PROPERTY@test_orchestration_inputs_digest@\"abc\"@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "bb",
+      "batch",
+      "-host",
+      "cr-buildbucket.appspot.com"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.schedule",
+    "stdin": "{\"requests\": [{\"scheduleBuild\": {\"builder\": {\"bucket\": \"try\", \"builder\": \"builder-subbuild\", \"project\": \"fuchsia\"}, \"experimental\": \"NO\", \"experiments\": {\"luci.buildbucket.parent_tracking\": false}, \"fields\": \"builder,createTime,createdBy,critical,endTime,id,infra,input,number,output,startTime,status,updateTime\", \"gerritChanges\": [{\"change\": \"123456\", \"host\": \"fuchsia-review.googlesource.com\", \"patchset\": \"7\", \"project\": \"fuchsia\"}], \"properties\": {\"parent_id\": \"8945511751514863184\"}, \"requestId\": \"8945511751514863184-00000000-0000-0000-0000-000000001337\", \"swarming\": {\"parentRunId\": \"fake-task-id\"}, \"tags\": [{\"key\": \"cq_experimental\", \"value\": \"false\"}, {\"key\": \"hide-in-gerrit\", \"value\": \"subbuild\"}, {\"key\": \"parent_buildbucket_id\", \"value\": \"8945511751514863184\"}, {\"key\": \"skip-retry-in-gerrit\", \"value\": \"subbuild\"}, {\"key\": \"user_agent\", \"value\": \"recipe\"}]}}]}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"responses\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@    {@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"scheduleBuild\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"builder\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"bucket\": \"ci\",@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"builder\": \"builder-subbuild\",@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"project\": \"fuchsia\"@@@",
+      "@@@STEP_LOG_LINE@json.output@        },@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"id\": \"8945511751514863184\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    }@@@",
+      "@@@STEP_LOG_LINE@json.output@  ]@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@",
+      "@@@STEP_LOG_LINE@request@{@@@",
+      "@@@STEP_LOG_LINE@request@  \"requests\": [@@@",
+      "@@@STEP_LOG_LINE@request@    {@@@",
+      "@@@STEP_LOG_LINE@request@      \"scheduleBuild\": {@@@",
+      "@@@STEP_LOG_LINE@request@        \"builder\": {@@@",
+      "@@@STEP_LOG_LINE@request@          \"bucket\": \"try\",@@@",
+      "@@@STEP_LOG_LINE@request@          \"builder\": \"builder-subbuild\",@@@",
+      "@@@STEP_LOG_LINE@request@          \"project\": \"fuchsia\"@@@",
+      "@@@STEP_LOG_LINE@request@        },@@@",
+      "@@@STEP_LOG_LINE@request@        \"experimental\": \"NO\",@@@",
+      "@@@STEP_LOG_LINE@request@        \"experiments\": {@@@",
+      "@@@STEP_LOG_LINE@request@          \"luci.buildbucket.parent_tracking\": false@@@",
+      "@@@STEP_LOG_LINE@request@        },@@@",
+      "@@@STEP_LOG_LINE@request@        \"fields\": \"builder,createTime,createdBy,critical,endTime,id,infra,input,number,output,startTime,status,updateTime\",@@@",
+      "@@@STEP_LOG_LINE@request@        \"gerritChanges\": [@@@",
+      "@@@STEP_LOG_LINE@request@          {@@@",
+      "@@@STEP_LOG_LINE@request@            \"change\": \"123456\",@@@",
+      "@@@STEP_LOG_LINE@request@            \"host\": \"fuchsia-review.googlesource.com\",@@@",
+      "@@@STEP_LOG_LINE@request@            \"patchset\": \"7\",@@@",
+      "@@@STEP_LOG_LINE@request@            \"project\": \"fuchsia\"@@@",
+      "@@@STEP_LOG_LINE@request@          }@@@",
+      "@@@STEP_LOG_LINE@request@        ],@@@",
+      "@@@STEP_LOG_LINE@request@        \"properties\": {@@@",
+      "@@@STEP_LOG_LINE@request@          \"parent_id\": \"8945511751514863184\"@@@",
+      "@@@STEP_LOG_LINE@request@        },@@@",
+      "@@@STEP_LOG_LINE@request@        \"requestId\": \"8945511751514863184-00000000-0000-0000-0000-000000001337\",@@@",
+      "@@@STEP_LOG_LINE@request@        \"swarming\": {@@@",
+      "@@@STEP_LOG_LINE@request@          \"parentRunId\": \"fake-task-id\"@@@",
+      "@@@STEP_LOG_LINE@request@        },@@@",
+      "@@@STEP_LOG_LINE@request@        \"tags\": [@@@",
+      "@@@STEP_LOG_LINE@request@          {@@@",
+      "@@@STEP_LOG_LINE@request@            \"key\": \"cq_experimental\",@@@",
+      "@@@STEP_LOG_LINE@request@            \"value\": \"false\"@@@",
+      "@@@STEP_LOG_LINE@request@          },@@@",
+      "@@@STEP_LOG_LINE@request@          {@@@",
+      "@@@STEP_LOG_LINE@request@            \"key\": \"hide-in-gerrit\",@@@",
+      "@@@STEP_LOG_LINE@request@            \"value\": \"subbuild\"@@@",
+      "@@@STEP_LOG_LINE@request@          },@@@",
+      "@@@STEP_LOG_LINE@request@          {@@@",
+      "@@@STEP_LOG_LINE@request@            \"key\": \"parent_buildbucket_id\",@@@",
+      "@@@STEP_LOG_LINE@request@            \"value\": \"8945511751514863184\"@@@",
+      "@@@STEP_LOG_LINE@request@          },@@@",
+      "@@@STEP_LOG_LINE@request@          {@@@",
+      "@@@STEP_LOG_LINE@request@            \"key\": \"skip-retry-in-gerrit\",@@@",
+      "@@@STEP_LOG_LINE@request@            \"value\": \"subbuild\"@@@",
+      "@@@STEP_LOG_LINE@request@          },@@@",
+      "@@@STEP_LOG_LINE@request@          {@@@",
+      "@@@STEP_LOG_LINE@request@            \"key\": \"user_agent\",@@@",
+      "@@@STEP_LOG_LINE@request@            \"value\": \"recipe\"@@@",
+      "@@@STEP_LOG_LINE@request@          }@@@",
+      "@@@STEP_LOG_LINE@request@        ]@@@",
+      "@@@STEP_LOG_LINE@request@      }@@@",
+      "@@@STEP_LOG_LINE@request@    }@@@",
+      "@@@STEP_LOG_LINE@request@  ]@@@",
+      "@@@STEP_LOG_LINE@request@}@@@",
+      "@@@STEP_LOG_END@request@@@",
+      "@@@STEP_LINK@8945511751514863184@https://cr-buildbucket.appspot.com/build/8945511751514863184@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.collect",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "bb",
+      "collect",
+      "-host",
+      "cr-buildbucket.appspot.com",
+      "-interval",
+      "20s",
+      "8945511751514863184"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.collect.wait",
+    "timeout": 86400.0,
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "bb",
+      "batch",
+      "-host",
+      "cr-buildbucket.appspot.com"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.collect.get",
+    "stdin": "{\"requests\": [{\"getBuild\": {\"fields\": \"builder,createTime,createdBy,critical,endTime,id,infra,input,number,output,startTime,status,steps.*.logs.*.name,steps.*.logs.*.viewUrl,steps.*.name,steps.*.summaryMarkdown,summaryMarkdown,updateTime\", \"id\": \"8945511751514863184\"}}]}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"responses\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@    {@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"getBuild\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"builder\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"bucket\": \"ci\",@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"builder\": \"builder-subbuild\",@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"project\": \"fuchsia\"@@@",
+      "@@@STEP_LOG_LINE@json.output@        },@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"createTime\": \"2018-05-25T23:50:17Z\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"createdBy\": \"user:luci-scheduler@appspot.gserviceaccount.com\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"id\": \"8945511751514863184\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"infra\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"backend\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"task\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@              \"id\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@                \"id\": \"abc123\"@@@",
+      "@@@STEP_LOG_LINE@json.output@              }@@@",
+      "@@@STEP_LOG_LINE@json.output@            }@@@",
+      "@@@STEP_LOG_LINE@json.output@          },@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"resultdb\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"invocation\": \"invocations/build:8945511751514863184\"@@@",
+      "@@@STEP_LOG_LINE@json.output@          },@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"swarming\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"priority\": 30@@@",
+      "@@@STEP_LOG_LINE@json.output@          }@@@",
+      "@@@STEP_LOG_LINE@json.output@        },@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"input\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"gitilesCommit\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"host\": \"chromium.googlesource.com\",@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"id\": \"2d72510e447ab60a9728aeea2362d8be2cbd7789\",@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"project\": \"fuchsia\",@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"ref\": \"refs/heads/main\"@@@",
+      "@@@STEP_LOG_LINE@json.output@          },@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"properties\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"parent_id\": \"123123\"@@@",
+      "@@@STEP_LOG_LINE@json.output@          }@@@",
+      "@@@STEP_LOG_LINE@json.output@        },@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"output\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"properties\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"checkout_info\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@              \"manifest\": \"foo\"@@@",
+      "@@@STEP_LOG_LINE@json.output@            },@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"got_revision\": \"abcdef\",@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"integration-revision-count\": 1,@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"test_orchestration_inputs_digest\": \"abc\"@@@",
+      "@@@STEP_LOG_LINE@json.output@          }@@@",
+      "@@@STEP_LOG_LINE@json.output@        },@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"status\": \"SUCCESS\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"steps\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@          {@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"logs\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@              {@@@",
+      "@@@STEP_LOG_LINE@json.output@                \"name\": \"foo.txt\",@@@",
+      "@@@STEP_LOG_LINE@json.output@                \"viewUrl\": \"https://logs.example.com/foo.txt\"@@@",
+      "@@@STEP_LOG_LINE@json.output@              },@@@",
+      "@@@STEP_LOG_LINE@json.output@              {@@@",
+      "@@@STEP_LOG_LINE@json.output@                \"name\": \"bar.txt\",@@@",
+      "@@@STEP_LOG_LINE@json.output@                \"viewUrl\": \"https://logs.example.com/bar.txt\"@@@",
+      "@@@STEP_LOG_LINE@json.output@              }@@@",
+      "@@@STEP_LOG_LINE@json.output@            ],@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"name\": \"build\",@@@",
+      "@@@STEP_LOG_LINE@json.output@            \"summaryMarkdown\": \"a summary\"@@@",
+      "@@@STEP_LOG_LINE@json.output@          }@@@",
+      "@@@STEP_LOG_LINE@json.output@        ]@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    }@@@",
+      "@@@STEP_LOG_LINE@json.output@  ]@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@",
+      "@@@STEP_LOG_LINE@request@{@@@",
+      "@@@STEP_LOG_LINE@request@  \"requests\": [@@@",
+      "@@@STEP_LOG_LINE@request@    {@@@",
+      "@@@STEP_LOG_LINE@request@      \"getBuild\": {@@@",
+      "@@@STEP_LOG_LINE@request@        \"fields\": \"builder,createTime,createdBy,critical,endTime,id,infra,input,number,output,startTime,status,steps.*.logs.*.name,steps.*.logs.*.viewUrl,steps.*.name,steps.*.summaryMarkdown,summaryMarkdown,updateTime\",@@@",
+      "@@@STEP_LOG_LINE@request@        \"id\": \"8945511751514863184\"@@@",
+      "@@@STEP_LOG_LINE@request@      }@@@",
+      "@@@STEP_LOG_LINE@request@    }@@@",
+      "@@@STEP_LOG_LINE@request@  ]@@@",
+      "@@@STEP_LOG_LINE@request@}@@@",
+      "@@@STEP_LOG_END@request@@@",
+      "@@@STEP_LINK@8945511751514863184@https://cr-buildbucket.appspot.com/build/8945511751514863184@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.download test orchestration inputs",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[recipe_engine::cas]/resources/infra.sha1",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.download test orchestration inputs.read infra revision",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@infra.sha1@git_revision:mock_infra_git_revision@@@",
+      "@@@STEP_LOG_END@infra.sha1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "build.download test orchestration inputs.install infra/tools/luci/cas",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/infra/tools/luci/cas/33f9d887e5b8aeaaf9d65506acccfa8da2c480712e534a23a79e92c342c44bee"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.download test orchestration inputs.install infra/tools/luci/cas.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/infra/tools/luci/cas/33f9d887e5b8aeaaf9d65506acccfa8da2c480712e534a23a79e92c342c44bee",
+      "-ensure-file",
+      "infra/tools/luci/cas/${platform} git_revision:mock_infra_git_revision",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.download test orchestration inputs.install infra/tools/luci/cas.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-git_revision:moc\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"infra/tools/luci/cas/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/tools/luci/cas/33f9d887e5b8aeaaf9d65506acccfa8da2c480712e534a23a79e92c342c44bee/cas",
+      "download",
+      "-cas-instance",
+      "projects/example-cas-server/instances/default_instance",
+      "-digest",
+      "abc",
+      "-dir",
+      "[CLEANUP]/test-orchestration-inputs_tmp_1"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.download test orchestration inputs.download test orchestration inputs",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/test-orchestration-inputs_tmp_1/skipped_shards.json",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.download test orchestration inputs.load skipped shards",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@skipped_shards.json@\"\"@@@",
+      "@@@STEP_LOG_END@skipped_shards.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/test-orchestration-inputs_tmp_1/task_requests.json",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.download test orchestration inputs.load task requests",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@[@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@  {@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@    \"name\": \"QEMU\",@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@    \"priority\": 20,@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@    \"realm\": \"project:bucket\",@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@    \"resultdb\": {@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@      \"enable\": true@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@    },@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@    \"service_account\": \"foo@example.com\",@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@    \"tags\": [@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@      \"test_environment_name:env-name\"@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@    ],@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@    \"task_slices\": [@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@      {@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@        \"expiration_secs\": \"18000\",@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@        \"properties\": {@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"cas_input_root\": {@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            \"cas_instance\": \"projects/example-project/instances/default_instance\",@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            \"digest\": {@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@              \"hash\": \"24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca\",@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@              \"size_bytes\": \"73\"@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            }@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          },@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"cipd_input\": {@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            \"packages\": [],@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            \"server\": \"\"@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          },@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"command\": [@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            \"/bin/true\"@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          ],@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"containment\": {@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            \"containment_type\": \"NONE\",@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            \"limit_processes\": false,@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            \"limit_total_committed_memory\": false,@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            \"lower_priority\": false@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          },@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"dimensions\": [@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            {@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@              \"key\": \"pool\",@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@              \"value\": \"swarming-pool\"@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@            }@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          ],@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"env\": [],@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"env_prefixes\": [],@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"execution_timeout_secs\": \"2400\",@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"grace_period_secs\": \"30\",@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"idempotent\": false,@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"io_timeout_secs\": \"430\",@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"outputs\": [],@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@          \"relative_cwd\": \"some/dir\"@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@        }@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@      }@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@    ]@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@  }@@@",
+      "@@@STEP_LOG_LINE@task_requests.json@]@@@",
+      "@@@STEP_LOG_END@task_requests.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/test-orchestration-inputs_tmp_1/fint_set_metadata.json",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.download test orchestration inputs.load fint set metadata",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@fint_set_metadata.json@{@@@",
+      "@@@STEP_LOG_LINE@fint_set_metadata.json@  \"board\": \"board.gni\",@@@",
+      "@@@STEP_LOG_LINE@fint_set_metadata.json@  \"optimize\": \"debug\",@@@",
+      "@@@STEP_LOG_LINE@fint_set_metadata.json@  \"product\": \"product.gni\",@@@",
+      "@@@STEP_LOG_LINE@fint_set_metadata.json@  \"target_arch\": \"x64\"@@@",
+      "@@@STEP_LOG_LINE@fint_set_metadata.json@}@@@",
+      "@@@STEP_LOG_END@fint_set_metadata.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "listdir",
+      "[CLEANUP]/test-orchestration-inputs_tmp_1/generated_sources",
+      "--recursive"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.download test orchestration inputs.load generated sources",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@listdir@[CLEANUP]/test-orchestration-inputs_tmp_1/generated_sources/out/default/bye.txt@@@",
+      "@@@STEP_LOG_LINE@listdir@[CLEANUP]/test-orchestration-inputs_tmp_1/generated_sources/out/default/hi.txt@@@",
+      "@@@STEP_LOG_END@listdir@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/test-orchestration-inputs_tmp_1/triage_sources.json",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "build.download test orchestration inputs.load triage sources",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@triage_sources.json@[@@@",
+      "@@@STEP_LOG_LINE@triage_sources.json@  \"triage/config.triage\",@@@",
+      "@@@STEP_LOG_LINE@triage_sources.json@  \"other/triage/config.triage\"@@@",
+      "@@@STEP_LOG_LINE@triage_sources.json@]@@@",
+      "@@@STEP_LOG_END@triage_sources.json@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "launch/collect"
+  },
+  {
+    "cmd": [],
+    "name": "launch/collect.0",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_SUMMARY_TEXT@QEMU failed, QEMU failed after max attempts@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "launch/collect.0.launch",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "launch/collect.0.launch.QEMU (attempt 0)",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_LINK@Swarming task@https://example.swarmingserver.appspot.com/task?id=610@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "launch/collect.0.launch.QEMU (attempt 0).install infra/tools/luci/swarming",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/infra/tools/luci/swarming/90026cfdbec6795a35e48e95f30cbb0f779e0a4c35016adb14707e333aee4227"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.launch.QEMU (attempt 0).install infra/tools/luci/swarming.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@5@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/infra/tools/luci/swarming/90026cfdbec6795a35e48e95f30cbb0f779e0a4c35016adb14707e333aee4227",
+      "-ensure-file",
+      "infra/tools/luci/swarming/${platform} swarming_module_pin",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.launch.QEMU (attempt 0).install infra/tools/luci/swarming.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@5@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-swarming_module_\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"infra/tools/luci/swarming/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/tools/luci/swarming/90026cfdbec6795a35e48e95f30cbb0f779e0a4c35016adb14707e333aee4227/swarming",
+      "spawn-tasks",
+      "-server",
+      "https://example.swarmingserver.appspot.com",
+      "-json-input",
+      "{\"requests\": [{\"name\": \"QEMU\", \"priority\": \"20\", \"realm\": \"project:bucket\", \"resultdb\": {\"enable\": true}, \"service_account\": \"foo@example.com\", \"tags\": [\"test_environment_name:env-name\"], \"task_slices\": [{\"expiration_secs\": \"18000\", \"properties\": {\"cas_input_root\": {\"cas_instance\": \"projects/example-cas-server/instances/default_instance\", \"digest\": {\"hash\": \"24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca\", \"size_bytes\": \"73\"}}, \"command\": [\"/bin/true\"], \"containment\": {\"containment_type\": \"NONE\"}, \"dimensions\": [{\"key\": \"pool\", \"value\": \"swarming-pool\"}], \"env\": [], \"env_prefixes\": [], \"execution_timeout_secs\": \"2400\", \"grace_period_secs\": \"30\", \"idempotent\": false, \"io_timeout_secs\": \"430\", \"outputs\": [], \"relative_cwd\": \"some/dir\"}, \"wait_for_capacity\": false}]}]}",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.launch.QEMU (attempt 0).trigger",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"tasks\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@    {@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"request\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"name\": \"QEMU\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      },@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"task_id\": \"610\",@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"task_result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"resultdb_info\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"invocation\": \"invocations/610\"@@@",
+      "@@@STEP_LOG_LINE@json.output@        }@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    }@@@",
+      "@@@STEP_LOG_LINE@json.output@  ]@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@",
+      "@@@STEP_LOG_LINE@json.input@{@@@",
+      "@@@STEP_LOG_LINE@json.input@  \"requests\": [@@@",
+      "@@@STEP_LOG_LINE@json.input@    {@@@",
+      "@@@STEP_LOG_LINE@json.input@      \"name\": \"QEMU\",@@@",
+      "@@@STEP_LOG_LINE@json.input@      \"priority\": \"20\",@@@",
+      "@@@STEP_LOG_LINE@json.input@      \"realm\": \"project:bucket\",@@@",
+      "@@@STEP_LOG_LINE@json.input@      \"resultdb\": {@@@",
+      "@@@STEP_LOG_LINE@json.input@        \"enable\": true@@@",
+      "@@@STEP_LOG_LINE@json.input@      },@@@",
+      "@@@STEP_LOG_LINE@json.input@      \"service_account\": \"foo@example.com\",@@@",
+      "@@@STEP_LOG_LINE@json.input@      \"tags\": [@@@",
+      "@@@STEP_LOG_LINE@json.input@        \"test_environment_name:env-name\"@@@",
+      "@@@STEP_LOG_LINE@json.input@      ],@@@",
+      "@@@STEP_LOG_LINE@json.input@      \"task_slices\": [@@@",
+      "@@@STEP_LOG_LINE@json.input@        {@@@",
+      "@@@STEP_LOG_LINE@json.input@          \"expiration_secs\": \"18000\",@@@",
+      "@@@STEP_LOG_LINE@json.input@          \"properties\": {@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"cas_input_root\": {@@@",
+      "@@@STEP_LOG_LINE@json.input@              \"cas_instance\": \"projects/example-cas-server/instances/default_instance\",@@@",
+      "@@@STEP_LOG_LINE@json.input@              \"digest\": {@@@",
+      "@@@STEP_LOG_LINE@json.input@                \"hash\": \"24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca\",@@@",
+      "@@@STEP_LOG_LINE@json.input@                \"size_bytes\": \"73\"@@@",
+      "@@@STEP_LOG_LINE@json.input@              }@@@",
+      "@@@STEP_LOG_LINE@json.input@            },@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"command\": [@@@",
+      "@@@STEP_LOG_LINE@json.input@              \"/bin/true\"@@@",
+      "@@@STEP_LOG_LINE@json.input@            ],@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"containment\": {@@@",
+      "@@@STEP_LOG_LINE@json.input@              \"containment_type\": \"NONE\"@@@",
+      "@@@STEP_LOG_LINE@json.input@            },@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"dimensions\": [@@@",
+      "@@@STEP_LOG_LINE@json.input@              {@@@",
+      "@@@STEP_LOG_LINE@json.input@                \"key\": \"pool\",@@@",
+      "@@@STEP_LOG_LINE@json.input@                \"value\": \"swarming-pool\"@@@",
+      "@@@STEP_LOG_LINE@json.input@              }@@@",
+      "@@@STEP_LOG_LINE@json.input@            ],@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"env\": [],@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"env_prefixes\": [],@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"execution_timeout_secs\": \"2400\",@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"grace_period_secs\": \"30\",@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"idempotent\": false,@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"io_timeout_secs\": \"430\",@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"outputs\": [],@@@",
+      "@@@STEP_LOG_LINE@json.input@            \"relative_cwd\": \"some/dir\"@@@",
+      "@@@STEP_LOG_LINE@json.input@          },@@@",
+      "@@@STEP_LOG_LINE@json.input@          \"wait_for_capacity\": false@@@",
+      "@@@STEP_LOG_LINE@json.input@        }@@@",
+      "@@@STEP_LOG_LINE@json.input@      ]@@@",
+      "@@@STEP_LOG_LINE@json.input@    }@@@",
+      "@@@STEP_LOG_LINE@json.input@  ]@@@",
+      "@@@STEP_LOG_LINE@json.input@}@@@",
+      "@@@STEP_LOG_END@json.input@@@",
+      "@@@STEP_LINK@task UI: QEMU@https://example.swarmingserver.appspot.com/task?id=610@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/tools/luci/swarming/90026cfdbec6795a35e48e95f30cbb0f779e0a4c35016adb14707e333aee4227/swarming",
+      "collect",
+      "-server",
+      "https://example.swarmingserver.appspot.com",
+      "-task-summary-json",
+      "/path/to/tmp/json",
+      "-task-output-stdout",
+      "dir:[CLEANUP]/task-outputs_tmp_1",
+      "-output-dir",
+      "[CLEANUP]/swarming_tmp_1",
+      "-verbose",
+      "-eager",
+      "610"
+    ],
+    "cost": {
+      "cpu": 100,
+      "disk": 0,
+      "memory": 50,
+      "net": 0
+    },
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.collect",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"610\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"output\": \"hello world!\",@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"outputs\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"out/path/to/output/file\"@@@",
+      "@@@STEP_LOG_LINE@json.output@    ],@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"results\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"bot_id\": \"vm-123\",@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"cas_output_root\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"cas_instance\": \"projects/example-project/instances/default_instance\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"digest\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"hash\": \"24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca\",@@@",
+      "@@@STEP_LOG_LINE@json.output@          \"size_bytes\": \"73\"@@@",
+      "@@@STEP_LOG_LINE@json.output@        }@@@",
+      "@@@STEP_LOG_LINE@json.output@      },@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"duration\": 62.35,@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"exit_code\": \"0\",@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"name\": \"QEMU\",@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"resultdb_info\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"invocation\": \"invocations/some-inv-name\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      },@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"state\": \"COMPLETED\",@@@",
+      "@@@STEP_LOG_LINE@json.output@      \"task_id\": \"610\"@@@",
+      "@@@STEP_LOG_LINE@json.output@    }@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@",
+      "@@@STEP_LOG_LINE@task stdout+stderr: QEMU@hello world!@@@",
+      "@@@STEP_LOG_END@task stdout+stderr: QEMU@@@",
+      "@@@STEP_LINK@task cas outputs: QEMU@https://cas-viewer.appspot.com/projects/example-project/instances/default_instance/blobs/24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca/73/tree@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "launch/collect.0.process results",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "launch/collect.0.process results.QEMU",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "{\"output\": \"hello world!\", \"outputs\": [\"out/path/to/output/file\"], \"results\": {\"bot_id\": \"vm-123\", \"cas_output_root\": {\"cas_instance\": \"projects/example-project/instances/default_instance\", \"digest\": {\"hash\": \"24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca\", \"size_bytes\": \"73\"}}, \"duration\": 62.35, \"exit_code\": \"0\", \"name\": \"QEMU\", \"resultdb_info\": {\"invocation\": \"invocations/some-inv-name\"}, \"state\": \"COMPLETED\", \"task_id\": \"610\"}}",
+      "[CLEANUP]/610_tmp_1"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.write swarming summary JSON",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/task-outputs_tmp_1/610.txt",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.read task stdio",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "",
+      "[CLEANUP]/swarming_tmp_1/610/infra_and_test_std_and_klog.txt"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.write infra_and_test_std_and_klog.txt",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[CLEANUP]/test-orchestration-inputs_tmp_1/symbolizer",
+      "--symbol-server",
+      "gs://gcs-bucket/debug",
+      "--symbol-cache",
+      "[CACHE]/symbol"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.symbolize infra_and_test_std_and_klog.txt",
+    "timeout": 300,
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "move",
+      "[CLEANUP]/swarming_tmp_1/610/out",
+      "[CLEANUP]/610_tmp_2/test_results"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.extract results",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "listdir",
+      "[CLEANUP]/610_tmp_2/test_results"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.get extracted files",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@listdir@[CLEANUP]/610_tmp_2/test_results/benchmark.catapult_json@@@",
+      "@@@STEP_LOG_LINE@listdir@[CLEANUP]/610_tmp_2/test_results/goodbye.txt@@@",
+      "@@@STEP_LOG_LINE@listdir@[CLEANUP]/610_tmp_2/test_results/goodbye/stdio.txt@@@",
+      "@@@STEP_LOG_LINE@listdir@[CLEANUP]/610_tmp_2/test_results/hello/stdio.txt@@@",
+      "@@@STEP_LOG_LINE@listdir@[CLEANUP]/610_tmp_2/test_results/summary.json@@@",
+      "@@@STEP_LOG_END@listdir@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/swarming_tmp_1/610/infra_and_test_std_and_klog.txt",
+      "[CLEANUP]/610_tmp_2/test_results/infra_and_test_std_and_klog.txt"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.copy infra_and_test_std_and_klog.txt",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[CLEANUP]/test-orchestration-inputs_tmp_1/tefmocheck",
+      "-swarming-summary-json",
+      "[CLEANUP]/610_tmp_1",
+      "-swarming-host",
+      "example.swarmingserver.appspot.com",
+      "-swarming-output",
+      "[CLEANUP]/swarming_tmp_1/610/infra_and_test_std_and_klog.txt",
+      "-outputs-dir",
+      "[CLEANUP]/610_tmp_2/test_results",
+      "-test-summary-json",
+      "[CLEANUP]/610_tmp_2/test_results/summary.json",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.tefmocheck",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/610_tmp_2/test_results/goodbye.txt",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.read goodbye.txt",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/610_tmp_2/test_results/hello/stdio.txt",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.read hello/stdio.txt",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "[CLEANUP]/610_tmp_2/test_results/goodbye/stdio.txt",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.read goodbye/stdio.txt",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "launch/collect.0.process results.QEMU.run triage",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::archive]/resources/extract.py",
+      "--json-input",
+      "{\"archive_file\": \"[CLEANUP]/610_tmp_2/test_results/snapshot.zip\", \"include_files\": [], \"output\": \"[CLEANUP]/snapshot_tmp_1\", \"safe_mode\": true}",
+      "--json-output",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.run triage.extract snapshot",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@5@@@",
+      "@@@STEP_TEXT@<br/>extracted 1337 files - 50159.75 MB@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"extracted\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"bytes\": 50159747054,@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"filecount\": 1337@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[CLEANUP]/test-orchestration-inputs_tmp_1/triage",
+      "--config=[CLEANUP]/test-orchestration-inputs_tmp_1/triage/config.triage",
+      "--config=[CLEANUP]/test-orchestration-inputs_tmp_1/other/triage/config.triage",
+      "--data",
+      "[CLEANUP]/snapshot_tmp_1"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "launch/collect.0.process results.QEMU.run triage.triage",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@5@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "launch/collect.0.failed tasks",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LINK@QEMU (attempt 0)@https://example.swarmingserver.appspot.com/task?id=610@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "passes",
+    "~followup_annotations": [
+      "@@@STEP_SUMMARY_TEXT@0 passed@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "flakes",
+    "~followup_annotations": [
+      "@@@STEP_SUMMARY_TEXT@0 flaked@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "failures",
+    "~followup_annotations": [
+      "@@@STEP_SUMMARY_TEXT@1 failed@@@",
+      "@@@STEP_FAILURE@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "failures.QEMU",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@",
+      "@@@STEP_FAILURE@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "failures.QEMU.attempt 0 (fail)",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_TEXT@1m 2s@@@",
+      "@@@STEP_SUMMARY_TEXT@2 tests failed@@@",
+      "@@@STEP_LOG_LINE@goodbye-txt@@@@",
+      "@@@STEP_LOG_END@goodbye-txt@@@",
+      "@@@STEP_LOG_LINE@infra_and_test_std_and_klog.txt@@@@",
+      "@@@STEP_LOG_END@infra_and_test_std_and_klog.txt@@@",
+      "@@@STEP_LOG_LINE@summary.json@{\"outputs\": {\"goodbye-txt\": \"goodbye.txt\"}, \"tests\": [{\"duration_milliseconds\": 1000, \"gn_label\": \"//path/to/hello:hello(//toolchain)\", \"is_testing_failure_mode\": false, \"name\": \"hello\", \"output_files\": [\"hello/stdio.txt\"], \"result\": \"FAIL\"}, {\"duration_milliseconds\": 1000, \"gn_label\": \"//path/to/goodbye:goodbye(//toolchain)\", \"is_testing_failure_mode\": false, \"name\": \"goodbye\", \"output_files\": [\"goodbye/stdio.txt\"], \"result\": \"FAIL\"}]}@@@",
+      "@@@STEP_LOG_END@summary.json@@@",
+      "@@@STEP_LOG_LINE@triage_output@triage info@@@",
+      "@@@STEP_LOG_END@triage_output@@@",
+      "@@@STEP_LINK@swarming task@https://example.swarmingserver.appspot.com/task?id=610@@@",
+      "@@@STEP_LINK@task outputs@https://cas-viewer.appspot.com/projects/example-project/instances/default_instance/blobs/24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca/73/tree@@@",
+      "@@@STEP_LINK@bot vm-123@https://example.swarmingserver.appspot.com/bot?id=vm-123@@@",
+      "@@@STEP_LINK@view snapshot in fsv@http://go/fsv?from=https%3A//storage.cloud.google.com/gcs-bucket/builds/8945511751514863184/QEMU/610/snapshot.zip@@@",
+      "@@@STEP_FAILURE@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "failures.QEMU.attempt 0 (fail).failed: hello",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_SUMMARY_TEXT@//path/to/hello:hello(//toolchain)@@@",
+      "@@@STEP_LOG_END@stdio.txt (empty)@@@",
+      "@@@STEP_FAILURE@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "failures.QEMU.attempt 0 (fail).failed: goodbye",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_SUMMARY_TEXT@//path/to/goodbye:goodbye(//toolchain)@@@",
+      "@@@STEP_LOG_END@stdio.txt (empty)@@@",
+      "@@@STEP_FAILURE@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "failures.QEMU.attempt 0 (fail).all passed tests",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@",
+      "@@@STEP_SUMMARY_TEXT@0 passed tests@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "upload test results",
+    "~followup_annotations": [
+      "@@@SET_BUILD_PROPERTY@test-swarming-task-ids@[\"610\"]@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "upload test results.upload QEMU test results",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "{\"outputs\": {\"goodbye-txt\": \"goodbye.txt\"}, \"tests\": [{\"duration_milliseconds\": 1000, \"gn_label\": \"//path/to/hello:hello(//toolchain)\", \"is_testing_failure_mode\": false, \"name\": \"hello\", \"output_files\": [\"hello/stdio.txt\"], \"result\": \"FAIL\"}, {\"duration_milliseconds\": 1000, \"gn_label\": \"//path/to/goodbye:goodbye(//toolchain)\", \"is_testing_failure_mode\": false, \"name\": \"goodbye\", \"output_files\": [\"goodbye/stdio.txt\"], \"result\": \"FAIL\"}]}",
+      "[CLEANUP]/swarming_tmp_1/610/summary.json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.write summary.json",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_LINE@summary.json@{\"outputs\": {\"goodbye-txt\": \"goodbye.txt\"}, \"tests\": [{\"duration_milliseconds\": 1000, \"gn_label\": \"//path/to/hello:hello(//toolchain)\", \"is_testing_failure_mode\": false, \"name\": \"hello\", \"output_files\": [\"hello/stdio.txt\"], \"result\": \"FAIL\"}, {\"duration_milliseconds\": 1000, \"gn_label\": \"//path/to/goodbye:goodbye(//toolchain)\", \"is_testing_failure_mode\": false, \"name\": \"goodbye\", \"output_files\": [\"goodbye/stdio.txt\"], \"result\": \"FAIL\"}]}@@@",
+      "@@@STEP_LOG_END@summary.json@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "rdb",
+      "stream",
+      "-var",
+      "board:board.gni",
+      "-var",
+      "bucket:try",
+      "-var",
+      "build_type:debug",
+      "-var",
+      "builder:builder",
+      "-var",
+      "product:product.gni",
+      "-var",
+      "test_environment:env-name",
+      "-new",
+      "-realm",
+      "fuchsia:try",
+      "-include",
+      "--",
+      "[CLEANUP]/test-orchestration-inputs_tmp_1/resultdb",
+      "--output=[CLEANUP]/610_tmp_2/test_results",
+      "--summary=[CLEANUP]/swarming_tmp_1/610/summary.json",
+      "--tag=shard_name:QEMU",
+      "--tag=swarming_task_id:610",
+      "--tag=swarming_task_url:https://example.swarmingserver.appspot.com/task?id=610",
+      "--tag=swarming_bot_id:vm-123",
+      "--tag=swarming_bot_url:https://example.swarmingserver.appspot.com/bot?id=vm-123",
+      "--tag=cas_outputs:https://cas-viewer.appspot.com/projects/example-project/instances/default_instance/blobs/24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca/73/tree",
+      "--invocation-artifact=infra_and_test_std_and_klog.txt",
+      "--invocation-artifact=triage_output"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.resultdb",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "move",
+      "[CLEANUP]/610_tmp_2/test_results/snapshot.zip",
+      "[CLEANUP]/swarming_tmp_1/610/snapshot.zip"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.move snapshot to output dir",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "upload test results.upload QEMU test results.move test outputs",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[CLEANUP]/swarming_tmp_1/610"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.move test outputs.mkdir",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "move",
+      "[CLEANUP]/610_tmp_2/test_results/goodbye.txt",
+      "[CLEANUP]/swarming_tmp_1/610/goodbye.txt"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.move test outputs.mv",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[CLEANUP]/swarming_tmp_1/610/goodbye"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.move test outputs.mkdir (2)",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "move",
+      "[CLEANUP]/610_tmp_2/test_results/goodbye/stdio.txt",
+      "[CLEANUP]/swarming_tmp_1/610/goodbye/stdio.txt"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.move test outputs.mv (2)",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[CLEANUP]/swarming_tmp_1/610/hello"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.move test outputs.mkdir (3)",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "move",
+      "[CLEANUP]/610_tmp_2/test_results/hello/stdio.txt",
+      "[CLEANUP]/swarming_tmp_1/610/hello/stdio.txt"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.move test outputs.mv (3)",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "upload test results.upload QEMU test results.ensure infra/3pp/tools/gsutil",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "upload test results.upload QEMU test results.ensure infra/3pp/tools/gsutil.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::gsutil]/resources/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.ensure infra/3pp/tools/gsutil.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@infra/3pp/tools/gsutil version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "upload test results.upload QEMU test results.ensure infra/3pp/tools/gsutil.install infra/3pp/tools/gsutil",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/infra/3pp/tools/gsutil/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.ensure infra/3pp/tools/gsutil.install infra/3pp/tools/gsutil.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/infra/3pp/tools/gsutil/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "infra/3pp/tools/gsutil version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.ensure infra/3pp/tools/gsutil.install infra/3pp/tools/gsutil.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"infra/3pp/tools/gsutil\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/infra/3pp/tools/gsutil/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gsutil",
+      "-h",
+      "Custom-Time:2012-05-14T12:53:21.500000Z",
+      "-o",
+      "GSUtil:software_update_check_period=0",
+      "-m",
+      "cp",
+      "-r",
+      "-n",
+      "[CLEANUP]/swarming_tmp_1/610",
+      "gs://gcs-bucket/builds/8945511751514863184/QEMU/610"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "upload test results.upload QEMU test results.upload QEMU/610 to gcs-bucket",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LINK@QEMU/610@https://storage.cloud.google.com/gcs-bucket/builds/8945511751514863184/QEMU/610@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "record failed_test_names",
+    "~followup_annotations": [
+      "@@@SET_BUILD_PROPERTY@failed_test_names@[\"goodbye\", \"hello\"]@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "check for correlated failures",
+    "~followup_annotations": [
+      "@@@SET_BUILD_PROPERTY@num_autocorrelator_findings@0@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "check for correlated failures.check try",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}.get packages",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "copy",
+      "RECIPE_MODULE[fuchsia::autocorrelator]/resources/cipd.ensure",
+      "/path/to/tmp/"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}.get packages.read ensure file",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@cipd.ensure@fuchsia/infra/autocorrelator/${platform} version:pinned-version@@@",
+      "@@@STEP_LOG_END@cipd.ensure@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}.install fuchsia/infra/autocorrelator",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@3@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "vpython3",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0o777",
+      "[START_DIR]/cipd_tool/fuchsia/infra/autocorrelator/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}.install fuchsia/infra/autocorrelator.ensure package directory",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "cipd",
+      "ensure",
+      "-root",
+      "[START_DIR]/cipd_tool/fuchsia/infra/autocorrelator/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07",
+      "-ensure-file",
+      "fuchsia/infra/autocorrelator/${platform} version:pinned-version",
+      "-max-threads",
+      "0",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "check for correlated failures.check try.ensure fuchsia/infra/autocorrelator/${platform}.install fuchsia/infra/autocorrelator.ensure_installed",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@4@@@",
+      "@@@STEP_LOG_LINE@json.output@{@@@",
+      "@@@STEP_LOG_LINE@json.output@  \"result\": {@@@",
+      "@@@STEP_LOG_LINE@json.output@    \"\": [@@@",
+      "@@@STEP_LOG_LINE@json.output@      {@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@",
+      "@@@STEP_LOG_LINE@json.output@        \"package\": \"fuchsia/infra/autocorrelator/resolved-platform\"@@@",
+      "@@@STEP_LOG_LINE@json.output@      }@@@",
+      "@@@STEP_LOG_LINE@json.output@    ]@@@",
+      "@@@STEP_LOG_LINE@json.output@  }@@@",
+      "@@@STEP_LOG_LINE@json.output@}@@@",
+      "@@@STEP_LOG_END@json.output@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/infra/autocorrelator/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/autocorrelator",
+      "check-try",
+      "-builder",
+      "fuchsia/try/builder",
+      "-change-num",
+      "123456",
+      "-build-status",
+      "20",
+      "-summary-markdown-path",
+      "2 tests failed:\n\n- `goodbye`\n- `hello`",
+      "-scrub-header",
+      "This failure may be a false rejection.",
+      "-scrub-footer",
+      "Original failure continues below.",
+      "-json-output",
+      "/path/to/tmp/json",
+      "-ignore-failed-build",
+      "-ignore-skipped-tests"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "check for correlated failures.check try.run autocorrelator",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@json.output (invalid)@@@",
+      "@@@STEP_LOG_LINE@json.output (exception)@No JSON object could be decoded@@@",
+      "@@@STEP_LOG_END@json.output (exception)@@@"
+    ]
+  },
+  {
+    "cmd": [],
+    "name": "check for correlated failures.check ci",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "[START_DIR]/cipd_tool/fuchsia/infra/autocorrelator/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/autocorrelator",
+      "check-ci",
+      "-base-commit",
+      "abcdef",
+      "-builder",
+      "fuchsia/ci/builder",
+      "-build-status",
+      "20",
+      "-summary-markdown-path",
+      "2 tests failed:\n\n- `goodbye`\n- `hello`",
+      "-json-output",
+      "/path/to/tmp/json"
+    ],
+    "infra_step": true,
+    "luci_context": {
+      "realm": {
+        "name": "fuchsia:try"
+      },
+      "resultdb": {
+        "current_invocation": {
+          "name": "invocations/build:8945511751514863184",
+          "update_token": "token"
+        },
+        "hostname": "rdbhost"
+      }
+    },
+    "name": "check for correlated failures.check ci.run autocorrelator",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@2@@@",
+      "@@@STEP_LOG_END@json.output (invalid)@@@",
+      "@@@STEP_LOG_LINE@json.output (exception)@No JSON object could be decoded@@@",
+      "@@@STEP_LOG_END@json.output (exception)@@@"
+    ]
+  },
+  {
+    "failure": {
+      "failure": {},
+      "humanReason": "This builder does not rebase on top of HEAD, which may have caused the following failure(s). If it looks unrelated to your CL, try rebasing the CL and relaunching the builder.\n\n2 tests failed:\n\n- `goodbye`\n- `hello`"
+    },
+    "name": "$result"
+  }
+]
\ No newline at end of file
diff --git a/recipes/fuchsia/fuchsia.py b/recipes/fuchsia/fuchsia.py
index 9d7ba7d..170c613 100644
--- a/recipes/fuchsia/fuchsia.py
+++ b/recipes/fuchsia/fuchsia.py
@@ -164,14 +164,29 @@
     if spec.build.run_tests:
         default_runs_per_shard = 5 if props.perfcompare else 1
         runs_per_shard = props.runs_per_shard or default_runs_per_shard
-        with api.autocorrelator.context(
-            ci_base_commit=child_props.get(api.checkout.GOT_REVISION_PROPERTY),
-            ignore_failed_build=True,
-            ignore_skipped_tests=True,
-        ):
-            results_with_cl = run_test_steps(
-                api, props, orchestration_inputs, spec, runs_per_shard
-            )
+        try:
+            with api.autocorrelator.context(
+                ci_base_commit=child_props.get(api.checkout.GOT_REVISION_PROPERTY),
+                ignore_failed_build=True,
+                ignore_skipped_tests=True,
+            ):
+                results_with_cl = run_test_steps(
+                    api, props, orchestration_inputs, spec, runs_per_shard
+                )
+        except api.step.StepFailure as exc:
+            if (
+                spec.checkout.do_not_rebase_patch
+                and api.buildbucket_util.is_tryjob
+                and api.autocorrelator.AUTOCORRELATOR_HEADER not in exc.reason
+            ):
+                summary_markdown = (
+                    "This builder does not rebase on top of HEAD, which may have "
+                    + "caused the following failure(s). If it looks unrelated to "
+                    + "your CL, try rebasing the CL and relaunching the builder.\n\n"
+                    + exc.reason
+                )
+                raise api.step.StepFailure(summary_markdown)
+            raise exc
 
         if props.perfcompare:
             with api.step.nest("test without CL"):
@@ -507,6 +522,7 @@
         tap_projects=(),
         guitar_config=None,
         piper_presubmit=False,
+        do_not_rebase_patch=False,
         **kwargs,
     ):
         test_spec = None
@@ -533,7 +549,11 @@
             kwargs["guitar_test_filter_exprs"] = ["deps(//foo)"]
         return api.properties(
             spec=Fuchsia(
-                checkout=Fuchsia.Checkout(manifest="manifest", remote="remote"),
+                checkout=Fuchsia.Checkout(
+                    manifest="manifest",
+                    remote="remote",
+                    do_not_rebase_patch=do_not_rebase_patch,
+                ),
                 build=Fuchsia.Build(
                     run_tests=run_tests,
                     upload_results=bool(artifact_gcs_bucket),
@@ -627,6 +647,7 @@
         + properties(
             artifact_gcs_bucket="gcs-bucket",
             max_attempts=1,
+            do_not_rebase_patch=True,
             **{"$fuchsia/autocorrelator": {"ci_bucket": "ci", "ci_builder": "builder"}},
         )
         + api.subbuild.child_build_steps(builds=[child_build])
@@ -647,6 +668,23 @@
         )
     )
 
+    yield (
+        api.buildbucket_util.test(
+            "failed_tests_cq_no_rebase", tryjob=True, status="FAILURE"
+        )
+        + properties(
+            artifact_gcs_bucket="gcs-bucket",
+            max_attempts=1,
+            do_not_rebase_patch=True,
+            **{"$fuchsia/autocorrelator": {"ci_bucket": "ci", "ci_builder": "builder"}},
+        )
+        + api.subbuild.child_build_steps(builds=[child_build])
+        # Pass max_attempts=1 because it keeps the test expectations
+        # simpler. Otherwise we would have to generate test expectations
+        # for a retry of the failed task.
+        + test_step_data(failure=True)
+    )
+
     # Test that if one shard fails after max_attempts, there are no further
     # retries of another shard that fails.
     def test_stopping_after_max_attempts():