checkout: Use assertions in git and workspace tests

Migrate recipe_modules/checkout tests (workspace and git) from using
json expectation diffs to explicit post_check assertions.

Bug: 527039289
Change-Id: I24d33c3d6d9724ed5d2689c4583c5f1979546fdb
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/468305
diff --git a/recipe_modules/checkout/tests/git.expected/ci.json b/recipe_modules/checkout/tests/git.expected/ci.json
deleted file mode 100644
index 87310e5..0000000
--- a/recipe_modules/checkout/tests/git.expected/ci.json
+++ /dev/null
@@ -1,2258 +0,0 @@
-[
-  {
-    "cmd": [],
-    "name": "checkout pigweed",
-    "~followup_annotations": [
-      "@@@STEP_LINK@applied pigweed:1234 (.)@https://pigweed-review.googlesource.com/c/1234@@@",
-      "@@@SET_BUILD_PROPERTY@checkout@{\"branch\": \"main\", \"cache\": \"MISS\", \"duration_sec\": 19.5, \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"use_repo\": false}@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\ninitialize_submodules: true\nmatch_branch: true\nuse_trigger: true\n@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options with defaults",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\nmanifest_file: \"default.xml\"\ninitialize_submodules: true\nrepo_init_timeout_sec: 120\nrepo_sync_timeout_sec: 900\nnumber_of_attempts: 3\nmatch_branch: true\nsubmodule_timeout_sec: 600\nuse_trigger: true\nmax_attempts: 2\n@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.before disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gitiles commit",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}.get packages",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "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/"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@",
-      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
-      "@@@STEP_LOG_END@cipd.ensure@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
-    "~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/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.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-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-query",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"params\": {\"q\": \"commit:2d72510e447ab60a9728aeea2362d8be2cbd7789\"}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gitiles commit.number",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_LOG_LINE@json.output@[@@@",
-      "@@@STEP_LOG_LINE@json.output@  {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"_number\": \"1234\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"project\": \"pigweed\"@@@",
-      "@@@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@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"q\": \"commit:2d72510e447ab60a9728aeea2362d8be2cbd7789\"@@@",
-      "@@@STEP_LOG_LINE@json.input@  }@@@",
-      "@@@STEP_LOG_LINE@json.input@}@@@",
-      "@@@STEP_LOG_END@json.input@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='2d72510e447ab60a9728aeea2362d8be2cbd7789', rebase=False, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='2d72510e447ab60a9728aeea2362d8be2cbd7789', primary=True, submit_requirements={}, uploader=None)@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.no non-standard branch names",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@miss@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[CACHE]/git"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.ensure git cache dir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.write git cache guard file",
-    "~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]/git/pigweed.googlesource.com-pigweed-pigweed"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.miss",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@SET_BUILD_PROPERTY@checkout https://pigweed.googlesource.com/pigweed/pigweed@\"cache miss\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "remote.origin.url",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.remote set-url",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--prune",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "--recurse-submodules"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "merge",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git merge",
-    "timeout": 600.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "remove",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.remove git cache guard file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copytree",
-      "--symlinks",
-      "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-      "[START_DIR]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.copy from cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.timeout 10s",
-    "~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]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "deadline": {
-        "grace_period": 30.0,
-        "soft_deadline": 1337000020.5
-      },
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "origin",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git remote",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "core.longpaths",
-      "true"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.set core.longpaths",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "main",
-      "--recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-f",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git checkout",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-d",
-      "-x"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.submodule.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.submodule.submodule.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.submodule.submodule.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed-review.googlesource.com/c/1234@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/2d72510e447ab60a9728aeea2362d8be2cbd7789@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https://pigweed.googlesource.com/pigweed/pigweed",
-      "2d72510e447ab60a9728aeea2362d8be2cbd7789",
-      "--no-recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git fetch patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--force",
-      "-b",
-      "working",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git checkout patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git remote add",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "refs/heads/main"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.fetch main branch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "branch",
-      "--set-upstream-to=https___pigweed_googlesource_com_pigweed_pigweed/main"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git set upstream",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.post-rebase log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234.timeout 10s (3)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--detach"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.detach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.reattach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.submodule status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.matching pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@no matching submodules@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed-review.googlesource.com/c/1234@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/2d72510e447ab60a9728aeea2362d8be2cbd7789@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "[{\"applied\": true, \"base\": \"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\", \"base_type\": \"submitted_commit_hash\", \"branch\": \"main\", \"commit_message\": \"\", \"current_revision\": \"2d72510e447ab60a9728aeea2362d8be2cbd7789\", \"gerrit_name\": \"pigweed\", \"is_merge\": false, \"number\": 1234, \"patchset\": null, \"path\": \".\", \"primary\": true, \"project\": \"pigweed/pigweed\", \"rebase\": false, \"ref\": \"2d72510e447ab60a9728aeea2362d8be2cbd7789\", \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"submitted\": true, \"topic\": null, \"uploader\": null}]",
-      "[CLEANUP]/tmp_tmp_1"
-    ],
-    "cwd": "[START_DIR]/co",
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.write changes.json",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@tmp_tmp_1@[{\"applied\": true, \"base\": \"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\", \"base_type\": \"submitted_commit_hash\", \"branch\": \"main\", \"commit_message\": \"\", \"current_revision\": \"2d72510e447ab60a9728aeea2362d8be2cbd7789\", \"gerrit_name\": \"pigweed\", \"is_merge\": false, \"number\": 1234, \"patchset\": null, \"path\": \".\", \"primary\": true, \"project\": \"pigweed/pigweed\", \"rebase\": false, \"ref\": \"2d72510e447ab60a9728aeea2362d8be2cbd7789\", \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"submitted\": true, \"topic\": null, \"uploader\": null}]@@@",
-      "@@@STEP_LOG_END@tmp_tmp_1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git log.[START_DIR]/co",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.base",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision@\"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\"@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision_type@\"submitted_commit_hash\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-f",
-      "-d"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "status"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git status",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@applied [Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='2d72510e447ab60a9728aeea2362d8be2cbd7789', rebase=False, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path='.', base='HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_', base_type='submitted_commit_hash', is_merge=False, commit_message='', topic=None, current_revision='2d72510e447ab60a9728aeea2362d8be2cbd7789', primary=True, submit_requirements={}, uploader=None)]\nnot applied []@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[START_DIR]/snapshot"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.mkdir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "status",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.submodule-status",
-    "timeout": 1200.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",
-      "submodule status filler text",
-      "[START_DIR]/snapshot/submodules.log"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.write submodule snapshot",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@submodules.log@submodule status filler text@@@",
-      "@@@STEP_LOG_END@submodules.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.log",
-    "timeout": 1200.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]/snapshot/git.log"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.write git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_END@git.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.after disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--max-count=1",
-      "--pretty=format:%H"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "git log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@HASH@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "revision",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'HASH'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "revision (2)",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'HASH'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "gerrit_host",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'pigweed-review.googlesource.com'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "gerrit_project",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'pigweed/pigweed'@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "submodule status",
-    "~followup_annotations": [
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "submodules",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@[]@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "applied_changes",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@[Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='2d72510e447ab60a9728aeea2362d8be2cbd7789', rebase=False, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path='.', base='HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_', base_type='submitted_commit_hash', is_merge=False, commit_message='', topic=None, current_revision='2d72510e447ab60a9728aeea2362d8be2cbd7789', primary=True, submit_requirements={}, uploader=None)]@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data"
-  },
-  {
-    "cmd": [],
-    "name": "change data.process gitiles commit",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-query",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"params\": {\"q\": \"commit:2d72510e447ab60a9728aeea2362d8be2cbd7789\"}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "change data.process gitiles commit.number",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_LOG_LINE@json.output@[@@@",
-      "@@@STEP_LOG_LINE@json.output@  {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"_number\": \"1234\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"project\": \"pigweed\"@@@",
-      "@@@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@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"q\": \"commit:2d72510e447ab60a9728aeea2362d8be2cbd7789\"@@@",
-      "@@@STEP_LOG_LINE@json.input@  }@@@",
-      "@@@STEP_LOG_LINE@json.input@}@@@",
-      "@@@STEP_LOG_END@json.input@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data.changes.pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='2d72510e447ab60a9728aeea2362d8be2cbd7789', rebase=False, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='2d72510e447ab60a9728aeea2362d8be2cbd7789', primary=True, submit_requirements={}, uploader=None)@@@"
-    ]
-  },
-  {
-    "name": "$result"
-  }
-]
\ No newline at end of file
diff --git a/recipe_modules/checkout/tests/git.expected/fail-config.json b/recipe_modules/checkout/tests/git.expected/fail-config.json
deleted file mode 100644
index 868c8bc..0000000
--- a/recipe_modules/checkout/tests/git.expected/fail-config.json
+++ /dev/null
@@ -1,532 +0,0 @@
-[
-  {
-    "cmd": [],
-    "name": "checkout pigweed",
-    "~followup_annotations": [
-      "@@@STEP_EXCEPTION@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\ninitialize_submodules: true\nmatch_branch: true\nuse_trigger: true\n@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options with defaults",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\nmanifest_file: \"default.xml\"\ninitialize_submodules: true\nrepo_init_timeout_sec: 120\nrepo_sync_timeout_sec: 900\nnumber_of_attempts: 3\nmatch_branch: true\nsubmodule_timeout_sec: 600\nuse_trigger: true\nmax_attempts: 2\n@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "name": "checkout pigweed.before disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "ls-remote",
-      "--heads",
-      "https://pigweed.googlesource.com/pigweed/pigweed",
-      "main"
-    ],
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.change data.git ls-remote",
-    "timeout": 600.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_LOG_LINE@stdout@h3ll0\trefs/heads/main@@@",
-      "@@@STEP_LOG_END@stdout@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${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::gerrit]/resources/cipd.ensure",
-      "/path/to/tmp/"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
-      "@@@STEP_LOG_END@cipd.ensure@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
-    "~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/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.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/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-query",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"params\": {\"q\": \"commit:h3ll0\"}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.number",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_LOG_LINE@json.output@[@@@",
-      "@@@STEP_LOG_LINE@json.output@  {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"_number\": \"1234\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"project\": \"pigweed\"@@@",
-      "@@@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@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"q\": \"commit:h3ll0\"@@@",
-      "@@@STEP_LOG_LINE@json.input@  }@@@",
-      "@@@STEP_LOG_LINE@json.input@}@@@",
-      "@@@STEP_LOG_END@json.input@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='h3ll0', rebase=False, project=None, branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision=None, primary=False, submit_requirements={}, uploader=None)@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.no non-standard branch names",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@miss@@@",
-      "@@@STEP_EXCEPTION@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[CACHE]/git"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.ensure git cache dir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.write git cache guard file",
-    "~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]/git/pigweed.googlesource.com-pigweed-pigweed"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.miss",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@SET_BUILD_PROPERTY@checkout https://pigweed.googlesource.com/pigweed/pigweed@\"cache miss\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "remote.origin.url",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.remote set-url",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--prune",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "--recurse-submodules"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_EXCEPTION@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--prune",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "--recurse-submodules"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git fetch (2)",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_EXCEPTION@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.git config",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "--list",
-      "--local"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git config.local",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "--list",
-      "--global"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git config.global",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.git cache corrupted; purging",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "move",
-      "[CACHE]/git",
-      "[CLEANUP]/git_cache_cleanup_tmp_1"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git cache corrupted; purging.move cache dir to cleanup",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "failure": {
-      "humanReason": "Infra Failure: Step('checkout pigweed.cache.git fetch (2)') (retcode: 1)"
-    },
-    "name": "$result"
-  }
-]
\ No newline at end of file
diff --git a/recipe_modules/checkout/tests/git.expected/hardcoded-equiv-remote-multiple.json b/recipe_modules/checkout/tests/git.expected/hardcoded-equiv-remote-multiple.json
deleted file mode 100644
index 7599f1e..0000000
--- a/recipe_modules/checkout/tests/git.expected/hardcoded-equiv-remote-multiple.json
+++ /dev/null
@@ -1,474 +0,0 @@
-[
-  {
-    "cmd": [],
-    "name": "checkout pigweed",
-    "~followup_annotations": [
-      "@@@STEP_FAILURE@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\ninitialize_submodules: true\nmatch_branch: true\nuse_trigger: true\nequivalent_remotes {\n  remotes: \"https://pigweed.googlesource.com/foo\"\n  remotes: \"https://pigweed.googlesource.com/pigweed/pigweed\"\n}\n@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options with defaults",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\nmanifest_file: \"default.xml\"\ninitialize_submodules: true\nrepo_init_timeout_sec: 120\nrepo_sync_timeout_sec: 900\nnumber_of_attempts: 3\nmatch_branch: true\nsubmodule_timeout_sec: 600\nuse_trigger: true\nequivalent_remotes {\n  remotes: \"https://pigweed.googlesource.com/foo\"\n  remotes: \"https://pigweed.googlesource.com/pigweed/pigweed\"\n}\nmax_attempts: 2\n@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.before disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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/"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
-      "@@@STEP_LOG_END@cipd.ensure@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure_installed",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@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://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"1000\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_REVISION\", \"SUBMIT_REQUIREMENTS\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.details",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"foo\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"ffffffffffffffffffffffffffffffffffffffff\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 3,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\",@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"parents\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@          {}@@@",
-      "@@@STEP_LOG_LINE@json.output@        ]@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"uploader\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"email\": \"noreply@google.com\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"submit_requirements\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@    {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"name\": \"Code-Review\",@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"status\": \"OVERRIDDEN\"@@@",
-      "@@@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\": \"1000\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"SUBMIT_REQUIREMENTS\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/1000@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.1",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-detail",
-      "-host",
-      "https://fuchsia-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"2000\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_REVISION\", \"SUBMIT_REQUIREMENTS\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.1.details",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"third_party/pigweed.googlesource.com/pigweed/pigweed\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"ffffffffffffffffffffffffffffffffffffffff\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 3,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\",@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"parents\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@          {}@@@",
-      "@@@STEP_LOG_LINE@json.output@        ]@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"uploader\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"email\": \"noreply@google.com\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"submit_requirements\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@    {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"name\": \"Code-Review\",@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"status\": \"OVERRIDDEN\"@@@",
-      "@@@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\": \"2000\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"SUBMIT_REQUIREMENTS\"@@@",
-      "@@@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/2000@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-detail",
-      "-host",
-      "https://fuchsia-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"2000\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_FILES\", \"CURRENT_REVISION\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.details fuchsia:2000",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"_number\": 2000,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"HASH\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"project\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"HASH\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 1,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"files\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"filename\": {}@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"status\": \"NEW\"@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@",
-      "@@@STEP_LOG_LINE@json.input@{@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"change_id\": \"2000\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_FILES\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\"@@@",
-      "@@@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/2000@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.resolve deps for fuchsia:2000",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_SUMMARY_TEXT@no dependencies@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.no topic",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.pass",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.pigweed:1000",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=1000, remote='https://pigweed.googlesource.com/foo', ref='refs/changes/00/1000/1', rebase=True, project='foo', branch='main', gerrit_name='pigweed', submitted=False, patchset=1, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={'Code-Review': 'OVERRIDDEN'}, uploader='noreply@google.com')@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.fuchsia:2000",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=2000, remote='https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed', ref='refs/changes/00/2000/1', rebase=True, project='third_party/pigweed.googlesource.com/pigweed/pigweed', branch='main', gerrit_name='fuchsia', submitted=False, patchset=1, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={'Code-Review': 'OVERRIDDEN'}, uploader='noreply@google.com')@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.multiple changes for same repo",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@Change pigweed:1000 and change fuchsia:2000 are from equivalent remotes ('https://pigweed.googlesource.com/foo' and 'https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed'). This is not supported. Instead, stack these changes, or only refer to the top from a 'patches.json' file in another repository.@@@",
-      "@@@STEP_LINK@pigweed:1000@https://pigweed-review.googlesource.com/c/1000@@@",
-      "@@@STEP_LINK@fuchsia:2000@https://fuchsia-review.googlesource.com/c/2000@@@",
-      "@@@STEP_FAILURE@@@"
-    ]
-  },
-  {
-    "failure": {
-      "failure": {},
-      "humanReason": "Change pigweed:1000 and change fuchsia:2000 are from equivalent remotes ('https://pigweed.googlesource.com/foo' and 'https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed'). This is not supported. Instead, stack these changes, or only refer to the top from a 'patches.json' file in another repository."
-    },
-    "name": "$result"
-  }
-]
\ No newline at end of file
diff --git a/recipe_modules/checkout/tests/git.expected/multiple-equiv-remote.json b/recipe_modules/checkout/tests/git.expected/multiple-equiv-remote.json
deleted file mode 100644
index 3a454cd..0000000
--- a/recipe_modules/checkout/tests/git.expected/multiple-equiv-remote.json
+++ /dev/null
@@ -1,474 +0,0 @@
-[
-  {
-    "cmd": [],
-    "name": "checkout pigweed",
-    "~followup_annotations": [
-      "@@@STEP_FAILURE@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\ninitialize_submodules: true\nmatch_branch: true\nuse_trigger: true\nequivalent_remotes {\n  remotes: \"https://pigweed.googlesource.com/foo\"\n  remotes: \"https://pigweed.googlesource.com/bar\"\n}\n@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options with defaults",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\nmanifest_file: \"default.xml\"\ninitialize_submodules: true\nrepo_init_timeout_sec: 120\nrepo_sync_timeout_sec: 900\nnumber_of_attempts: 3\nmatch_branch: true\nsubmodule_timeout_sec: 600\nuse_trigger: true\nequivalent_remotes {\n  remotes: \"https://pigweed.googlesource.com/foo\"\n  remotes: \"https://pigweed.googlesource.com/bar\"\n}\nmax_attempts: 2\n@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.before disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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/"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
-      "@@@STEP_LOG_END@cipd.ensure@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure_installed",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@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://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"1000\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_REVISION\", \"SUBMIT_REQUIREMENTS\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.details",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"foo\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"ffffffffffffffffffffffffffffffffffffffff\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 3,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\",@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"parents\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@          {}@@@",
-      "@@@STEP_LOG_LINE@json.output@        ]@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"uploader\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"email\": \"noreply@google.com\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"submit_requirements\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@    {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"name\": \"Code-Review\",@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"status\": \"OVERRIDDEN\"@@@",
-      "@@@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\": \"1000\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"SUBMIT_REQUIREMENTS\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/1000@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.1",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-detail",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"2000\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_REVISION\", \"SUBMIT_REQUIREMENTS\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.1.details",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"bar\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"ffffffffffffffffffffffffffffffffffffffff\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 3,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\",@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"parents\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@          {}@@@",
-      "@@@STEP_LOG_LINE@json.output@        ]@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"uploader\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"email\": \"noreply@google.com\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"submit_requirements\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@    {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"name\": \"Code-Review\",@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"status\": \"OVERRIDDEN\"@@@",
-      "@@@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\": \"2000\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"SUBMIT_REQUIREMENTS\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/2000@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-detail",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"2000\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_FILES\", \"CURRENT_REVISION\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.details pigweed:2000",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"_number\": 2000,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"HASH\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"project\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"HASH\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 1,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"files\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"filename\": {}@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"status\": \"NEW\"@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@",
-      "@@@STEP_LOG_LINE@json.input@{@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"change_id\": \"2000\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_FILES\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/2000@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.resolve deps for pigweed:2000",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_SUMMARY_TEXT@no dependencies@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.no topic",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.pass",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.pigweed:1000",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=1000, remote='https://pigweed.googlesource.com/foo', ref='refs/changes/00/1000/1', rebase=True, project='foo', branch='main', gerrit_name='pigweed', submitted=False, patchset=1, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={'Code-Review': 'OVERRIDDEN'}, uploader='noreply@google.com')@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.pigweed:2000",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=2000, remote='https://pigweed.googlesource.com/bar', ref='refs/changes/00/2000/1', rebase=True, project='bar', branch='main', gerrit_name='pigweed', submitted=False, patchset=1, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={'Code-Review': 'OVERRIDDEN'}, uploader='noreply@google.com')@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.multiple changes for same repo",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@Change pigweed:1000 and change pigweed:2000 are from equivalent remotes ('https://pigweed.googlesource.com/foo' and 'https://pigweed.googlesource.com/bar'). This is not supported. Instead, stack these changes, or only refer to the top from a 'patches.json' file in another repository.@@@",
-      "@@@STEP_LINK@pigweed:1000@https://pigweed-review.googlesource.com/c/1000@@@",
-      "@@@STEP_LINK@pigweed:2000@https://pigweed-review.googlesource.com/c/2000@@@",
-      "@@@STEP_FAILURE@@@"
-    ]
-  },
-  {
-    "failure": {
-      "failure": {},
-      "humanReason": "Change pigweed:1000 and change pigweed:2000 are from equivalent remotes ('https://pigweed.googlesource.com/foo' and 'https://pigweed.googlesource.com/bar'). This is not supported. Instead, stack these changes, or only refer to the top from a 'patches.json' file in another repository."
-    },
-    "name": "$result"
-  }
-]
\ No newline at end of file
diff --git a/recipe_modules/checkout/tests/git.expected/multiple-same-remote.json b/recipe_modules/checkout/tests/git.expected/multiple-same-remote.json
deleted file mode 100644
index af3ac1e..0000000
--- a/recipe_modules/checkout/tests/git.expected/multiple-same-remote.json
+++ /dev/null
@@ -1,474 +0,0 @@
-[
-  {
-    "cmd": [],
-    "name": "checkout pigweed",
-    "~followup_annotations": [
-      "@@@STEP_FAILURE@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\ninitialize_submodules: true\nmatch_branch: true\nuse_trigger: true\n@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options with defaults",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\nmanifest_file: \"default.xml\"\ninitialize_submodules: true\nrepo_init_timeout_sec: 120\nrepo_sync_timeout_sec: 900\nnumber_of_attempts: 3\nmatch_branch: true\nsubmodule_timeout_sec: 600\nuse_trigger: true\nmax_attempts: 2\n@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.before disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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/"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
-      "@@@STEP_LOG_END@cipd.ensure@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure_installed",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@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://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"1000\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_REVISION\", \"SUBMIT_REQUIREMENTS\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.details",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"foo\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"ffffffffffffffffffffffffffffffffffffffff\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 3,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\",@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"parents\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@          {}@@@",
-      "@@@STEP_LOG_LINE@json.output@        ]@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"uploader\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"email\": \"noreply@google.com\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"submit_requirements\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@    {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"name\": \"Code-Review\",@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"status\": \"OVERRIDDEN\"@@@",
-      "@@@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\": \"1000\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"SUBMIT_REQUIREMENTS\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/1000@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.1",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-detail",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"2000\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_REVISION\", \"SUBMIT_REQUIREMENTS\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.1.details",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"foo\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"ffffffffffffffffffffffffffffffffffffffff\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 3,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\",@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"parents\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@          {}@@@",
-      "@@@STEP_LOG_LINE@json.output@        ]@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"uploader\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"email\": \"noreply@google.com\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"submit_requirements\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@    {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"name\": \"Code-Review\",@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"status\": \"OVERRIDDEN\"@@@",
-      "@@@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\": \"2000\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"SUBMIT_REQUIREMENTS\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/2000@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-detail",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"2000\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_FILES\", \"CURRENT_REVISION\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.details pigweed:2000",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"_number\": 2000,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"HASH\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"project\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"HASH\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 1,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"files\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"filename\": {}@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"status\": \"NEW\"@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@",
-      "@@@STEP_LOG_LINE@json.input@{@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"change_id\": \"2000\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_FILES\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/2000@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.resolve deps for pigweed:2000",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_SUMMARY_TEXT@no dependencies@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.no topic",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.pass",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.pigweed:1000",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=1000, remote='https://pigweed.googlesource.com/foo', ref='refs/changes/00/1000/1', rebase=True, project='foo', branch='main', gerrit_name='pigweed', submitted=False, patchset=1, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={'Code-Review': 'OVERRIDDEN'}, uploader='noreply@google.com')@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.pigweed:2000",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=2000, remote='https://pigweed.googlesource.com/foo', ref='refs/changes/00/2000/1', rebase=True, project='foo', branch='main', gerrit_name='pigweed', submitted=False, patchset=1, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={'Code-Review': 'OVERRIDDEN'}, uploader='noreply@google.com')@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.multiple changes for same repo",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@Change pigweed:1000 and change pigweed:2000 are from equivalent remotes ('https://pigweed.googlesource.com/foo' and 'https://pigweed.googlesource.com/foo'). This is not supported. Instead, stack these changes, or only refer to the top from a 'patches.json' file in another repository.@@@",
-      "@@@STEP_LINK@pigweed:1000@https://pigweed-review.googlesource.com/c/1000@@@",
-      "@@@STEP_LINK@pigweed:2000@https://pigweed-review.googlesource.com/c/2000@@@",
-      "@@@STEP_FAILURE@@@"
-    ]
-  },
-  {
-    "failure": {
-      "failure": {},
-      "humanReason": "Change pigweed:1000 and change pigweed:2000 are from equivalent remotes ('https://pigweed.googlesource.com/foo' and 'https://pigweed.googlesource.com/foo'). This is not supported. Instead, stack these changes, or only refer to the top from a 'patches.json' file in another repository."
-    },
-    "name": "$result"
-  }
-]
\ No newline at end of file
diff --git a/recipe_modules/checkout/tests/git.expected/not_in_gerrit.json b/recipe_modules/checkout/tests/git.expected/not_in_gerrit.json
deleted file mode 100644
index 0840486..0000000
--- a/recipe_modules/checkout/tests/git.expected/not_in_gerrit.json
+++ /dev/null
@@ -1,1580 +0,0 @@
-[
-  {
-    "cmd": [],
-    "name": "checkout pigweed",
-    "~followup_annotations": [
-      "@@@STEP_LINK@applied pigweed:0 (.)@https://pigweed.googlesource.com/pigweed/pigweed/+/h3ll0@@@",
-      "@@@SET_BUILD_PROPERTY@checkout@{\"branch\": \"main\", \"cache\": \"MISS\", \"duration_sec\": 19.5, \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"use_repo\": false}@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\ninitialize_submodules: true\nmatch_branch: true\nuse_trigger: true\n@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options with defaults",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\nmanifest_file: \"default.xml\"\ninitialize_submodules: true\nrepo_init_timeout_sec: 120\nrepo_sync_timeout_sec: 900\nnumber_of_attempts: 3\nmatch_branch: true\nsubmodule_timeout_sec: 600\nuse_trigger: true\nmax_attempts: 2\n@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "name": "checkout pigweed.before disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "ls-remote",
-      "--heads",
-      "https://pigweed.googlesource.com/pigweed/pigweed",
-      "main"
-    ],
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.change data.git ls-remote",
-    "timeout": 600.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_LOG_LINE@stdout@h3ll0\trefs/heads/main@@@",
-      "@@@STEP_LOG_END@stdout@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${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::gerrit]/resources/cipd.ensure",
-      "/path/to/tmp/"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
-      "@@@STEP_LOG_END@cipd.ensure@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
-    "~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/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.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/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-query",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"params\": {\"q\": \"commit:h3ll0\"}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.number",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@",
-      "@@@STEP_LOG_LINE@json.input@{@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"q\": \"commit:h3ll0\"@@@",
-      "@@@STEP_LOG_LINE@json.input@  }@@@",
-      "@@@STEP_LOG_LINE@json.input@}@@@",
-      "@@@STEP_LOG_END@json.input@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.pigweed:0",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=0, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='h3ll0', rebase=False, project=None, branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision=None, primary=False, submit_requirements={}, uploader=None)@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.no non-standard branch names",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@miss@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[CACHE]/git"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.ensure git cache dir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.write git cache guard file",
-    "~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]/git/pigweed.googlesource.com-pigweed-pigweed"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.miss",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@SET_BUILD_PROPERTY@checkout https://pigweed.googlesource.com/pigweed/pigweed@\"cache miss\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "remote.origin.url",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.remote set-url",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--prune",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "--recurse-submodules"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "merge",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git merge",
-    "timeout": 600.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "remove",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.remove git cache guard file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copytree",
-      "--symlinks",
-      "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-      "[START_DIR]/co"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.copy from cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.timeout 10s",
-    "~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]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "deadline": {
-        "grace_period": 30.0,
-        "soft_deadline": 1337000020.5
-      }
-    },
-    "name": "checkout pigweed.git checkout.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "origin",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git remote",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "core.longpaths",
-      "true"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.set core.longpaths",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "main",
-      "--recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-f",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git checkout",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-d",
-      "-x"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.submodule.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.submodule.submodule.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.submodule.submodule.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:0",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed.googlesource.com/pigweed/pigweed/+/h3ll0@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/h3ll0@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:0.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https://pigweed.googlesource.com/pigweed/pigweed",
-      "h3ll0",
-      "--no-recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:0.git fetch patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--force",
-      "-b",
-      "working",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:0.git checkout patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:0.git remote add",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:0.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "refs/heads/main"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:0.fetch main branch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "branch",
-      "--set-upstream-to=https___pigweed_googlesource_com_pigweed_pigweed/main"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:0.git set upstream",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.apply pigweed:0.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:0.post-rebase log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:0.timeout 10s (3)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--detach"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.apply pigweed:0.detach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.apply pigweed:0.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.apply pigweed:0.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.apply pigweed:0.reattach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "name": "checkout pigweed.submodule status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.matching pigweed:0",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@no matching submodules@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed.googlesource.com/pigweed/pigweed/+/h3ll0@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/h3ll0@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "[{\"applied\": true, \"base\": \"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\", \"base_type\": \"submitted_commit_hash\", \"branch\": \"main\", \"commit_message\": \"\", \"current_revision\": null, \"gerrit_name\": \"pigweed\", \"is_merge\": false, \"number\": 0, \"patchset\": null, \"path\": \".\", \"primary\": false, \"project\": null, \"rebase\": false, \"ref\": \"h3ll0\", \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"submitted\": true, \"topic\": null, \"uploader\": null}]",
-      "[CLEANUP]/tmp_tmp_1"
-    ],
-    "cwd": "[START_DIR]/co",
-    "infra_step": true,
-    "name": "checkout pigweed.write changes.json",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@tmp_tmp_1@[{\"applied\": true, \"base\": \"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\", \"base_type\": \"submitted_commit_hash\", \"branch\": \"main\", \"commit_message\": \"\", \"current_revision\": null, \"gerrit_name\": \"pigweed\", \"is_merge\": false, \"number\": 0, \"patchset\": null, \"path\": \".\", \"primary\": false, \"project\": null, \"rebase\": false, \"ref\": \"h3ll0\", \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"submitted\": true, \"topic\": null, \"uploader\": null}]@@@",
-      "@@@STEP_LOG_END@tmp_tmp_1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.git log.[START_DIR]/co",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.base",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision@\"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\"@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision_type@\"submitted_commit_hash\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-f",
-      "-d"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "status"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.git status",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@applied [Change(number=0, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='h3ll0', rebase=False, project=None, branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path='.', base='HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_', base_type='submitted_commit_hash', is_merge=False, commit_message='', topic=None, current_revision=None, primary=False, submit_requirements={}, uploader=None)]\nnot applied []@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[START_DIR]/snapshot"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.mkdir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "status",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.submodule-status",
-    "timeout": 1200.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",
-      "submodule status filler text",
-      "[START_DIR]/snapshot/submodules.log"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.write submodule snapshot",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@submodules.log@submodule status filler text@@@",
-      "@@@STEP_LOG_END@submodules.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.log",
-    "timeout": 1200.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]/snapshot/git.log"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.write git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_END@git.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "name": "checkout pigweed.after disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--max-count=1",
-      "--pretty=format:%H"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "git log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@HASH@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "revision",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'HASH'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "revision (2)",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'HASH'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "gerrit_host",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'pigweed-review.googlesource.com'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "gerrit_project",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'pigweed/pigweed'@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json"
-    ],
-    "name": "submodule status",
-    "~followup_annotations": [
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "submodules",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@[]@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "applied_changes",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@[Change(number=0, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='h3ll0', rebase=False, project=None, branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path='.', base='HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_', base_type='submitted_commit_hash', is_merge=False, commit_message='', topic=None, current_revision=None, primary=False, submit_requirements={}, uploader=None)]@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data"
-  },
-  {
-    "cmd": [],
-    "name": "change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "name": "$result"
-  }
-]
\ No newline at end of file
diff --git a/recipe_modules/checkout/tests/git.expected/other.json b/recipe_modules/checkout/tests/git.expected/other.json
deleted file mode 100644
index 865618b..0000000
--- a/recipe_modules/checkout/tests/git.expected/other.json
+++ /dev/null
@@ -1,1586 +0,0 @@
-[
-  {
-    "cmd": [],
-    "name": "checkout pigweed",
-    "~followup_annotations": [
-      "@@@STEP_LINK@applied pigweed:1234 (.)@https://pigweed-review.googlesource.com/c/1234@@@",
-      "@@@SET_BUILD_PROPERTY@checkout@{\"branch\": \"main\", \"cache\": \"MISS\", \"duration_sec\": 19.5, \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"use_repo\": false}@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\ninitialize_submodules: true\nmatch_branch: true\nuse_trigger: true\n@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options with defaults",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\nmanifest_file: \"default.xml\"\ninitialize_submodules: true\nrepo_init_timeout_sec: 120\nrepo_sync_timeout_sec: 900\nnumber_of_attempts: 3\nmatch_branch: true\nsubmodule_timeout_sec: 600\nuse_trigger: true\nmax_attempts: 2\n@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "name": "checkout pigweed.before disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "ls-remote",
-      "--heads",
-      "https://pigweed.googlesource.com/pigweed/pigweed",
-      "main"
-    ],
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.change data.git ls-remote",
-    "timeout": 600.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_LOG_LINE@stdout@h3ll0\trefs/heads/main@@@",
-      "@@@STEP_LOG_END@stdout@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${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::gerrit]/resources/cipd.ensure",
-      "/path/to/tmp/"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
-      "@@@STEP_LOG_END@cipd.ensure@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
-    "~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/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.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/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-query",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"params\": {\"q\": \"commit:h3ll0\"}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.change data.number",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_LOG_LINE@json.output@[@@@",
-      "@@@STEP_LOG_LINE@json.output@  {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"_number\": \"1234\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"project\": \"pigweed\"@@@",
-      "@@@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@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"q\": \"commit:h3ll0\"@@@",
-      "@@@STEP_LOG_LINE@json.input@  }@@@",
-      "@@@STEP_LOG_LINE@json.input@}@@@",
-      "@@@STEP_LOG_END@json.input@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='h3ll0', rebase=False, project=None, branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision=None, primary=False, submit_requirements={}, uploader=None)@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.no non-standard branch names",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@miss@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[CACHE]/git"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.ensure git cache dir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.write git cache guard file",
-    "~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]/git/pigweed.googlesource.com-pigweed-pigweed"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.miss",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@SET_BUILD_PROPERTY@checkout https://pigweed.googlesource.com/pigweed/pigweed@\"cache miss\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "remote.origin.url",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.remote set-url",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--prune",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "--recurse-submodules"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "merge",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git merge",
-    "timeout": 600.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.cache.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "remove",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.cache.remove git cache guard file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copytree",
-      "--symlinks",
-      "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-      "[START_DIR]/co"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.copy from cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.timeout 10s",
-    "~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]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "deadline": {
-        "grace_period": 30.0,
-        "soft_deadline": 1337000020.5
-      }
-    },
-    "name": "checkout pigweed.git checkout.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "origin",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git remote",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "core.longpaths",
-      "true"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.set core.longpaths",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "main",
-      "--recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-f",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git checkout",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-d",
-      "-x"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.submodule.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.submodule.submodule.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.git checkout.submodule.submodule.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed-review.googlesource.com/c/1234@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/h3ll0@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https://pigweed.googlesource.com/pigweed/pigweed",
-      "h3ll0",
-      "--no-recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:1234.git fetch patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--force",
-      "-b",
-      "working",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:1234.git checkout patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:1234.git remote add",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "refs/heads/main"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:1234.fetch main branch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "branch",
-      "--set-upstream-to=https___pigweed_googlesource_com_pigweed_pigweed/main"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:1234.git set upstream",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "name": "checkout pigweed.apply pigweed:1234.post-rebase log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234.timeout 10s (3)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--detach"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.apply pigweed:1234.detach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.apply pigweed:1234.reattach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "name": "checkout pigweed.submodule status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.matching pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@no matching submodules@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed-review.googlesource.com/c/1234@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/h3ll0@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "[{\"applied\": true, \"base\": \"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\", \"base_type\": \"submitted_commit_hash\", \"branch\": \"main\", \"commit_message\": \"\", \"current_revision\": null, \"gerrit_name\": \"pigweed\", \"is_merge\": false, \"number\": 1234, \"patchset\": null, \"path\": \".\", \"primary\": false, \"project\": null, \"rebase\": false, \"ref\": \"h3ll0\", \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"submitted\": true, \"topic\": null, \"uploader\": null}]",
-      "[CLEANUP]/tmp_tmp_1"
-    ],
-    "cwd": "[START_DIR]/co",
-    "infra_step": true,
-    "name": "checkout pigweed.write changes.json",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@tmp_tmp_1@[{\"applied\": true, \"base\": \"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\", \"base_type\": \"submitted_commit_hash\", \"branch\": \"main\", \"commit_message\": \"\", \"current_revision\": null, \"gerrit_name\": \"pigweed\", \"is_merge\": false, \"number\": 1234, \"patchset\": null, \"path\": \".\", \"primary\": false, \"project\": null, \"rebase\": false, \"ref\": \"h3ll0\", \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"submitted\": true, \"topic\": null, \"uploader\": null}]@@@",
-      "@@@STEP_LOG_END@tmp_tmp_1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.git log.[START_DIR]/co",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.base",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision@\"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\"@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision_type@\"submitted_commit_hash\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-f",
-      "-d"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "status"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.git status",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@applied [Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='h3ll0', rebase=False, project=None, branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path='.', base='HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_', base_type='submitted_commit_hash', is_merge=False, commit_message='', topic=None, current_revision=None, primary=False, submit_requirements={}, uploader=None)]\nnot applied []@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[START_DIR]/snapshot"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.mkdir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "status",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.submodule-status",
-    "timeout": 1200.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",
-      "submodule status filler text",
-      "[START_DIR]/snapshot/submodules.log"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.write submodule snapshot",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@submodules.log@submodule status filler text@@@",
-      "@@@STEP_LOG_END@submodules.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "checkout pigweed.log",
-    "timeout": 1200.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]/snapshot/git.log"
-    ],
-    "infra_step": true,
-    "name": "checkout pigweed.write git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_END@git.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "name": "checkout pigweed.after disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--max-count=1",
-      "--pretty=format:%H"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "name": "git log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@HASH@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "revision",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'HASH'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "revision (2)",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'HASH'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "gerrit_host",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'pigweed-review.googlesource.com'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "gerrit_project",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'pigweed/pigweed'@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json"
-    ],
-    "name": "submodule status",
-    "~followup_annotations": [
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "submodules",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@[]@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "applied_changes",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@[Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='h3ll0', rebase=False, project=None, branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path='.', base='HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_', base_type='submitted_commit_hash', is_merge=False, commit_message='', topic=None, current_revision=None, primary=False, submit_requirements={}, uploader=None)]@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data"
-  },
-  {
-    "cmd": [],
-    "name": "change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "name": "$result"
-  }
-]
\ No newline at end of file
diff --git a/recipe_modules/checkout/tests/git.expected/trigger.json b/recipe_modules/checkout/tests/git.expected/trigger.json
deleted file mode 100644
index 87310e5..0000000
--- a/recipe_modules/checkout/tests/git.expected/trigger.json
+++ /dev/null
@@ -1,2258 +0,0 @@
-[
-  {
-    "cmd": [],
-    "name": "checkout pigweed",
-    "~followup_annotations": [
-      "@@@STEP_LINK@applied pigweed:1234 (.)@https://pigweed-review.googlesource.com/c/1234@@@",
-      "@@@SET_BUILD_PROPERTY@checkout@{\"branch\": \"main\", \"cache\": \"MISS\", \"duration_sec\": 19.5, \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"use_repo\": false}@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\ninitialize_submodules: true\nmatch_branch: true\nuse_trigger: true\n@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options with defaults",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\nmanifest_file: \"default.xml\"\ninitialize_submodules: true\nrepo_init_timeout_sec: 120\nrepo_sync_timeout_sec: 900\nnumber_of_attempts: 3\nmatch_branch: true\nsubmodule_timeout_sec: 600\nuse_trigger: true\nmax_attempts: 2\n@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.before disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gitiles commit",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}.get packages",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "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/"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@",
-      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
-      "@@@STEP_LOG_END@cipd.ensure@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
-    "~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/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gitiles commit.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.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-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-query",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"params\": {\"q\": \"commit:2d72510e447ab60a9728aeea2362d8be2cbd7789\"}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gitiles commit.number",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_LOG_LINE@json.output@[@@@",
-      "@@@STEP_LOG_LINE@json.output@  {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"_number\": \"1234\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"project\": \"pigweed\"@@@",
-      "@@@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@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"q\": \"commit:2d72510e447ab60a9728aeea2362d8be2cbd7789\"@@@",
-      "@@@STEP_LOG_LINE@json.input@  }@@@",
-      "@@@STEP_LOG_LINE@json.input@}@@@",
-      "@@@STEP_LOG_END@json.input@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='2d72510e447ab60a9728aeea2362d8be2cbd7789', rebase=False, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='2d72510e447ab60a9728aeea2362d8be2cbd7789', primary=True, submit_requirements={}, uploader=None)@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.no non-standard branch names",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@miss@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[CACHE]/git"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.ensure git cache dir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.write git cache guard file",
-    "~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]/git/pigweed.googlesource.com-pigweed-pigweed"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.miss",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@SET_BUILD_PROPERTY@checkout https://pigweed.googlesource.com/pigweed/pigweed@\"cache miss\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "remote.origin.url",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.remote set-url",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--prune",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "--recurse-submodules"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "merge",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git merge",
-    "timeout": 600.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "remove",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.remove git cache guard file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copytree",
-      "--symlinks",
-      "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-      "[START_DIR]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.copy from cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.timeout 10s",
-    "~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]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "deadline": {
-        "grace_period": 30.0,
-        "soft_deadline": 1337000020.5
-      },
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "origin",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git remote",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "core.longpaths",
-      "true"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.set core.longpaths",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "main",
-      "--recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-f",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git checkout",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-d",
-      "-x"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.submodule.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.submodule.submodule.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.submodule.submodule.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed-review.googlesource.com/c/1234@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/2d72510e447ab60a9728aeea2362d8be2cbd7789@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https://pigweed.googlesource.com/pigweed/pigweed",
-      "2d72510e447ab60a9728aeea2362d8be2cbd7789",
-      "--no-recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git fetch patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--force",
-      "-b",
-      "working",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git checkout patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git remote add",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "refs/heads/main"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.fetch main branch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "branch",
-      "--set-upstream-to=https___pigweed_googlesource_com_pigweed_pigweed/main"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git set upstream",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.post-rebase log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:1234.timeout 10s (3)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--detach"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.detach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:1234.reattach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.submodule status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.matching pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@no matching submodules@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed-review.googlesource.com/c/1234@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/2d72510e447ab60a9728aeea2362d8be2cbd7789@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "[{\"applied\": true, \"base\": \"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\", \"base_type\": \"submitted_commit_hash\", \"branch\": \"main\", \"commit_message\": \"\", \"current_revision\": \"2d72510e447ab60a9728aeea2362d8be2cbd7789\", \"gerrit_name\": \"pigweed\", \"is_merge\": false, \"number\": 1234, \"patchset\": null, \"path\": \".\", \"primary\": true, \"project\": \"pigweed/pigweed\", \"rebase\": false, \"ref\": \"2d72510e447ab60a9728aeea2362d8be2cbd7789\", \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"submitted\": true, \"topic\": null, \"uploader\": null}]",
-      "[CLEANUP]/tmp_tmp_1"
-    ],
-    "cwd": "[START_DIR]/co",
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.write changes.json",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@tmp_tmp_1@[{\"applied\": true, \"base\": \"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\", \"base_type\": \"submitted_commit_hash\", \"branch\": \"main\", \"commit_message\": \"\", \"current_revision\": \"2d72510e447ab60a9728aeea2362d8be2cbd7789\", \"gerrit_name\": \"pigweed\", \"is_merge\": false, \"number\": 1234, \"patchset\": null, \"path\": \".\", \"primary\": true, \"project\": \"pigweed/pigweed\", \"rebase\": false, \"ref\": \"2d72510e447ab60a9728aeea2362d8be2cbd7789\", \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"submitted\": true, \"topic\": null, \"uploader\": null}]@@@",
-      "@@@STEP_LOG_END@tmp_tmp_1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git log.[START_DIR]/co",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.base",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision@\"HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_\"@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision_type@\"submitted_commit_hash\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-f",
-      "-d"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "status"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git status",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@applied [Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='2d72510e447ab60a9728aeea2362d8be2cbd7789', rebase=False, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path='.', base='HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_', base_type='submitted_commit_hash', is_merge=False, commit_message='', topic=None, current_revision='2d72510e447ab60a9728aeea2362d8be2cbd7789', primary=True, submit_requirements={}, uploader=None)]\nnot applied []@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[START_DIR]/snapshot"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.mkdir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "status",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.submodule-status",
-    "timeout": 1200.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",
-      "submodule status filler text",
-      "[START_DIR]/snapshot/submodules.log"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.write submodule snapshot",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@submodules.log@submodule status filler text@@@",
-      "@@@STEP_LOG_END@submodules.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.log",
-    "timeout": 1200.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]/snapshot/git.log"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.write git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_END@git.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.after disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--max-count=1",
-      "--pretty=format:%H"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "git log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@HASH@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "revision",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'HASH'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "revision (2)",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'HASH'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "gerrit_host",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'pigweed-review.googlesource.com'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "gerrit_project",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'pigweed/pigweed'@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "submodule status",
-    "~followup_annotations": [
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "submodules",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@[]@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "applied_changes",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@[Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='2d72510e447ab60a9728aeea2362d8be2cbd7789', rebase=False, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path='.', base='HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_HEAD_', base_type='submitted_commit_hash', is_merge=False, commit_message='', topic=None, current_revision='2d72510e447ab60a9728aeea2362d8be2cbd7789', primary=True, submit_requirements={}, uploader=None)]@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data"
-  },
-  {
-    "cmd": [],
-    "name": "change data.process gitiles commit",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-query",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"params\": {\"q\": \"commit:2d72510e447ab60a9728aeea2362d8be2cbd7789\"}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:ci"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "change data.process gitiles commit.number",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_LOG_LINE@json.output@[@@@",
-      "@@@STEP_LOG_LINE@json.output@  {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"_number\": \"1234\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"project\": \"pigweed\"@@@",
-      "@@@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@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"q\": \"commit:2d72510e447ab60a9728aeea2362d8be2cbd7789\"@@@",
-      "@@@STEP_LOG_LINE@json.input@  }@@@",
-      "@@@STEP_LOG_LINE@json.input@}@@@",
-      "@@@STEP_LOG_END@json.input@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data.changes.pigweed:1234",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=1234, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='2d72510e447ab60a9728aeea2362d8be2cbd7789', rebase=False, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=True, patchset=None, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='2d72510e447ab60a9728aeea2362d8be2cbd7789', primary=True, submit_requirements={}, uploader=None)@@@"
-    ]
-  },
-  {
-    "name": "$result"
-  }
-]
\ No newline at end of file
diff --git a/recipe_modules/checkout/tests/git.expected/try.json b/recipe_modules/checkout/tests/git.expected/try.json
deleted file mode 100644
index 2635c0f..0000000
--- a/recipe_modules/checkout/tests/git.expected/try.json
+++ /dev/null
@@ -1,2475 +0,0 @@
-[
-  {
-    "cmd": [],
-    "name": "checkout pigweed",
-    "~followup_annotations": [
-      "@@@STEP_LINK@applied pigweed:123456 (.)@https://pigweed-review.googlesource.com/c/123456@@@",
-      "@@@SET_BUILD_PROPERTY@checkout@{\"branch\": \"main\", \"cache\": \"MISS\", \"duration_sec\": 19.5, \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"use_repo\": false}@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\ninitialize_submodules: true\nmatch_branch: true\nuse_trigger: true\nroot_subdirectory: \"foo\"\ndo_not_use_packfiles: true\n@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.options with defaults",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/pigweed/pigweed\"\nbranch: \"main\"\nmanifest_file: \"default.xml\"\ninitialize_submodules: true\nrepo_init_timeout_sec: 120\nrepo_sync_timeout_sec: 900\nnumber_of_attempts: 3\nmatch_branch: true\nsubmodule_timeout_sec: 600\nuse_trigger: true\nroot_subdirectory: \"foo\"\ndo_not_use_packfiles: true\nmax_attempts: 2\n@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.before disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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/"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
-      "@@@STEP_LOG_END@cipd.ensure@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure_installed",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@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://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"123456\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_REVISION\", \"SUBMIT_REQUIREMENTS\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.0.details",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"pigweed/pigweed\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"ffffffffffffffffffffffffffffffffffffffff\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 4,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\",@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"parents\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@          null,@@@",
-      "@@@STEP_LOG_LINE@json.output@          null@@@",
-      "@@@STEP_LOG_LINE@json.output@        ]@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"uploader\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"email\": \"nobody@google.com\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"submit_requirements\": []@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@",
-      "@@@STEP_LOG_LINE@json.input@{@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"change_id\": \"123456\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"SUBMIT_REQUIREMENTS\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/123456@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-detail",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"123456\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_FILES\", \"CURRENT_REVISION\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.details pigweed:123456",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"_number\": 123456,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"HASH\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"project\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"HASH\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 1,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"files\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"filename\": {}@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"status\": \"NEW\"@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@",
-      "@@@STEP_LOG_LINE@json.input@{@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"change_id\": \"123456\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_FILES\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/123456@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.resolve deps for pigweed:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_SUMMARY_TEXT@no dependencies@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.no topic",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.process gerrit changes.resolve CL deps.pass",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.change data.changes.pigweed:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=123456, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='refs/changes/56/123456/7', rebase=False, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=False, patchset=7, path=None, base=None, base_type=None, is_merge=True, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={}, uploader='nobody@google.com')@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.no non-standard branch names",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@miss@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[CACHE]/git"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.ensure git cache dir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.write git cache guard file",
-    "~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]/git/pigweed.googlesource.com-pigweed-pigweed"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.miss",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@SET_BUILD_PROPERTY@checkout https://pigweed.googlesource.com/pigweed/pigweed@\"cache miss\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "remote.origin.url",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.remote set-url",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      ""
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.disable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--prune",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "--recurse-submodules"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "merge",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git merge",
-    "timeout": 600.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.cache.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "remove",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.cache.remove git cache guard file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copytree",
-      "--symlinks",
-      "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed",
-      "[START_DIR]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.copy from cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.timeout 10s",
-    "~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]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "deadline": {
-        "grace_period": 30.0,
-        "soft_deadline": 1337000020.5
-      },
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "origin",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git remote",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "core.longpaths",
-      "true"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.set core.longpaths",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      ""
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.disable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "main",
-      "--recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-f",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git checkout",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-d",
-      "-x"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git checkout.submodule.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.submodule.submodule.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git checkout.submodule.submodule.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed-review.googlesource.com/c/123456@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/refs/changes/56/123456/7@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:123456.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https://pigweed.googlesource.com/pigweed/pigweed",
-      "refs/changes/56/123456/7",
-      "--no-recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.git fetch patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--force",
-      "-b",
-      "working",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.git checkout patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.git remote add",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:123456.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "refs/heads/main"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.fetch main branch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "branch",
-      "--set-upstream-to=https___pigweed_googlesource_com_pigweed_pigweed/main"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.git set upstream",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.pre-rebase log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "merge-base",
-      "HEAD",
-      "https___pigweed_googlesource_com_pigweed_pigweed/main"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.merge-base",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.post-rebase log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.apply pigweed:123456.timeout 10s (3)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--detach"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.detach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.apply pigweed:123456.reattach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.submodule status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.matching pigweed:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@no matching submodules@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed-review.googlesource.com/c/123456@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/refs/changes/56/123456/7@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "[{\"applied\": true, \"base\": \"MERGEBASE_MERGEBASE_MERGEBASE_MERGEBASE_\", \"base_type\": \"merge-base\", \"branch\": \"main\", \"commit_message\": \"\", \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\", \"gerrit_name\": \"pigweed\", \"is_merge\": true, \"number\": 123456, \"patchset\": 7, \"path\": \".\", \"primary\": true, \"project\": \"pigweed/pigweed\", \"rebase\": false, \"ref\": \"refs/changes/56/123456/7\", \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"submitted\": false, \"topic\": null, \"uploader\": \"nobody@google.com\"}]",
-      "[CLEANUP]/tmp_tmp_1"
-    ],
-    "cwd": "[START_DIR]/co",
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.write changes.json",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@tmp_tmp_1@[{\"applied\": true, \"base\": \"MERGEBASE_MERGEBASE_MERGEBASE_MERGEBASE_\", \"base_type\": \"merge-base\", \"branch\": \"main\", \"commit_message\": \"\", \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\", \"gerrit_name\": \"pigweed\", \"is_merge\": true, \"number\": 123456, \"patchset\": 7, \"path\": \".\", \"primary\": true, \"project\": \"pigweed/pigweed\", \"rebase\": false, \"ref\": \"refs/changes/56/123456/7\", \"remote\": \"https://pigweed.googlesource.com/pigweed/pigweed\", \"submitted\": false, \"topic\": null, \"uploader\": \"nobody@google.com\"}]@@@",
-      "@@@STEP_LOG_END@tmp_tmp_1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git log.[START_DIR]/co",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.base",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision@\"MERGEBASE_MERGEBASE_MERGEBASE_MERGEBASE_\"@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision_type@\"merge-base\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-f",
-      "-d"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "status"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.git status",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout pigweed.status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@applied [Change(number=123456, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='refs/changes/56/123456/7', rebase=False, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=False, patchset=7, path='.', base='MERGEBASE_MERGEBASE_MERGEBASE_MERGEBASE_', base_type='merge-base', is_merge=True, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={}, uploader='nobody@google.com')]\nnot applied []@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[START_DIR]/snapshot"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.mkdir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "status",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.submodule-status",
-    "timeout": 1200.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",
-      "submodule status filler text",
-      "[START_DIR]/snapshot/submodules.log"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.write submodule snapshot",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@submodules.log@submodule status filler text@@@",
-      "@@@STEP_LOG_END@submodules.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.log",
-    "timeout": 1200.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]/snapshot/git.log"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.write git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_END@git.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout pigweed.after disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--max-count=1",
-      "--pretty=format:%H"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "git log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@HASH@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "revision",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'HASH'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "revision (2)",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'HASH'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "gerrit_host",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'pigweed-review.googlesource.com'@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "gerrit_project",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@'pigweed/pigweed'@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "submodule status",
-    "~followup_annotations": [
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "submodules",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@[]@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "applied_changes",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@[Change(number=123456, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='refs/changes/56/123456/7', rebase=False, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=False, patchset=7, path='.', base='MERGEBASE_MERGEBASE_MERGEBASE_MERGEBASE_', base_type='merge-base', is_merge=True, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={}, uploader='nobody@google.com')]@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data"
-  },
-  {
-    "cmd": [],
-    "name": "change data.process gerrit changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data.process gerrit changes.0",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-detail",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"123456\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_REVISION\", \"SUBMIT_REQUIREMENTS\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "change data.process gerrit changes.0.details",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"pigweed/pigweed\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"ffffffffffffffffffffffffffffffffffffffff\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 3,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\",@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"parents\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@          {}@@@",
-      "@@@STEP_LOG_LINE@json.output@        ]@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"uploader\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"email\": \"noreply@google.com\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"submit_requirements\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@    {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"name\": \"Code-Review\",@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"status\": \"OVERRIDDEN\"@@@",
-      "@@@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\": \"123456\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"SUBMIT_REQUIREMENTS\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/123456@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data.process gerrit changes.resolve CL deps",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data.process gerrit changes.resolve CL deps.resolve deps for pigweed:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@no dependencies@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data.process gerrit changes.resolve CL deps.no topic",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data.process gerrit changes.resolve CL deps.pass",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "change data.changes.pigweed:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=123456, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='refs/changes/56/123456/7', rebase=True, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=False, patchset=7, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={'Code-Review': 'OVERRIDDEN'}, uploader='noreply@google.com')@@@"
-    ]
-  },
-  {
-    "name": "$result"
-  }
-]
\ No newline at end of file
diff --git a/recipe_modules/checkout/tests/git.py b/recipe_modules/checkout/tests/git.py
index bf6d26f..a2a8bb5 100644
--- a/recipe_modules/checkout/tests/git.py
+++ b/recipe_modules/checkout/tests/git.py
@@ -17,7 +17,7 @@
 
 from collections.abc import Iterator
 
-from recipe_engine import recipe_api, recipe_test_api
+from recipe_engine import post_process, recipe_api, recipe_test_api
 
 from PB.go.chromium.org.luci.scheduler.api.scheduler.v1 import (
     triggers as triggers_pb,
@@ -77,6 +77,33 @@
         'ci',
         properties(),
         api.checkout.ci_test_data(),
+        api.post_check(
+            post_process.MustRun,
+            'checkout pigweed.change data.process gitiles commit',
+            'checkout pigweed.cache',
+            'checkout pigweed.copy from cache',
+            'checkout pigweed.git checkout',
+            'checkout pigweed.apply pigweed:1234',
+            'checkout pigweed.git clean',
+            'checkout pigweed.submodule-status',
+            'checkout pigweed.log',
+            'revision',
+            'gerrit_host',
+            'gerrit_project',
+            'submodules',
+            'applied_changes',
+        ),
+        api.post_check(
+            post_process.DoesNotRun,
+            'checkout pigweed.change data.process gerrit changes',
+            'checkout pigweed.multiple changes for same repo',
+        ),
+        api.post_check(
+            post_process.StepSummaryContains,
+            'applied_changes',
+            ['submitted=True'],
+        ),
+        api.post_process(post_process.DropExpectation),
     )
 
     yield api.test(
@@ -94,6 +121,19 @@
                 ),
             ],
         ),
+        api.post_check(
+            post_process.MustRun,
+            'checkout pigweed.change data.process gitiles commit',
+            'checkout pigweed.cache',
+            'checkout pigweed.apply pigweed:1234',
+            'revision',
+            'applied_changes',
+        ),
+        api.post_check(
+            post_process.DoesNotRun,
+            'checkout pigweed.change data.process gerrit changes',
+        ),
+        api.post_process(post_process.DropExpectation),
     )
 
     yield api.test(
@@ -101,11 +141,53 @@
         properties(root_subdirectory='foo', use_packfiles=False),
         api.checkout.try_test_data(),
         api.checkout.cl_branch_parents(num_parents=2),
+        api.post_check(
+            post_process.MustRun,
+            'checkout pigweed.change data.process gerrit changes',
+            'checkout pigweed.change data.process gerrit changes.resolve CL deps',
+            'checkout pigweed.apply pigweed:123456',
+            'checkout pigweed.apply pigweed:123456.git fetch patch',
+            'checkout pigweed.apply pigweed:123456.git checkout patch',
+            'checkout pigweed.apply pigweed:123456.merge-base',
+            'revision',
+            'applied_changes',
+        ),
+        api.post_check(
+            post_process.DoesNotRun,
+            'checkout pigweed.apply pigweed:123456.git rebase',
+            'checkout pigweed.change data.process gitiles commit',
+            'checkout pigweed.cache.enable packfiles',
+            'checkout pigweed.multiple changes for same repo',
+        ),
+        api.post_check(
+            post_process.StepSummaryContains,
+            'applied_changes',
+            ['Change(number=123456', 'submitted=False'],
+        ),
+        api.post_process(post_process.DropExpectation),
     )
 
     yield api.test(
         'other',
         properties(),
+        api.post_check(
+            post_process.MustRun,
+            'checkout pigweed.change data.git ls-remote',
+            'checkout pigweed.change data.number',
+            'revision',
+            'applied_changes',
+        ),
+        api.post_check(
+            post_process.DoesNotRun,
+            'checkout pigweed.change data.process gitiles commit',
+            'checkout pigweed.change data.process gerrit changes',
+        ),
+        api.post_check(
+            post_process.StepSummaryContains,
+            'applied_changes',
+            ["ref='h3ll0'"],
+        ),
+        api.post_process(post_process.DropExpectation),
     )
 
     yield api.test(
@@ -115,6 +197,25 @@
             'checkout pigweed.change data.number',
             api.json.output({}),
         ),
+        api.post_check(
+            post_process.MustRun,
+            'checkout pigweed.change data.git ls-remote',
+            'checkout pigweed.change data.number',
+            'checkout pigweed.apply pigweed:0',
+            'revision',
+            'applied_changes',
+        ),
+        api.post_check(
+            post_process.DoesNotRun,
+            'checkout pigweed.change data.process gitiles commit',
+            'checkout pigweed.change data.process gerrit changes',
+        ),
+        api.post_check(
+            post_process.StepSummaryContains,
+            'applied_changes',
+            ['Change(number=0'],
+        ),
+        api.post_process(post_process.DropExpectation),
     )
 
     yield api.test(
@@ -122,6 +223,20 @@
         properties(),
         api.step_data('checkout pigweed.cache.git fetch', retcode=1),
         api.step_data('checkout pigweed.cache.git fetch (2)', retcode=1),
+        api.post_check(
+            post_process.MustRun,
+            'checkout pigweed.cache.git fetch',
+            'checkout pigweed.cache.git cache corrupted; purging',
+            'checkout pigweed.cache.git cache corrupted; purging.move cache dir to cleanup',
+            'checkout pigweed.cache.git fetch (2)',
+        ),
+        api.post_check(
+            post_process.DoesNotRun,
+            'checkout pigweed.copy from cache',
+            'revision',
+            'applied_changes',
+        ),
+        api.post_process(post_process.DropExpectation),
         status='INFRA_FAILURE',
     )
 
@@ -135,6 +250,21 @@
             ]
         ),
         api.checkout.multiple_changes_for_same_repo(),
+        api.post_check(
+            post_process.MustRun,
+            'checkout pigweed.multiple changes for same repo',
+        ),
+        api.post_check(
+            post_process.DoesNotRun,
+            'checkout pigweed.cache',
+            'revision',
+            'applied_changes',
+        ),
+        api.post_check(
+            post_process.SummaryMarkdownRE,
+            r'are from equivalent remotes',
+        ),
+        api.post_process(post_process.DropExpectation),
         status='FAILURE',
     )
 
@@ -155,6 +285,21 @@
             ]
         ),
         api.checkout.multiple_changes_for_same_repo(),
+        api.post_check(
+            post_process.MustRun,
+            'checkout pigweed.multiple changes for same repo',
+        ),
+        api.post_check(
+            post_process.DoesNotRun,
+            'checkout pigweed.cache',
+            'revision',
+            'applied_changes',
+        ),
+        api.post_check(
+            post_process.SummaryMarkdownRE,
+            r'are from equivalent remotes',
+        ),
+        api.post_process(post_process.DropExpectation),
         status='FAILURE',
     )
 
@@ -180,5 +325,21 @@
             ]
         ),
         api.checkout.multiple_changes_for_same_repo(),
+        api.post_check(
+            post_process.MustRun,
+            'checkout pigweed.multiple changes for same repo',
+            'checkout pigweed.change data.process gerrit changes.resolve CL deps.details fuchsia:2000',
+        ),
+        api.post_check(
+            post_process.DoesNotRun,
+            'checkout pigweed.cache',
+            'revision',
+            'applied_changes',
+        ),
+        api.post_check(
+            post_process.SummaryMarkdownRE,
+            r'are from equivalent remotes',
+        ),
+        api.post_process(post_process.DropExpectation),
         status='FAILURE',
     )
diff --git a/recipe_modules/checkout/tests/workspace.expected/found.json b/recipe_modules/checkout/tests/workspace.expected/found.json
deleted file mode 100644
index 89ac558..0000000
--- a/recipe_modules/checkout/tests/workspace.expected/found.json
+++ /dev/null
@@ -1,3072 +0,0 @@
-[
-  {
-    "cmd": [],
-    "name": "checkout foo",
-    "~followup_annotations": [
-      "@@@STEP_LINK@applied pigweed:123456 (../bazel_repos/pigweed_pigweed_pigweed)@https://pigweed-review.googlesource.com/c/123456@@@",
-      "@@@SET_BUILD_PROPERTY@checkout@{\"branch\": \"main\", \"cache\": \"MISS\", \"duration_sec\": 19.5, \"remote\": \"https://pigweed.googlesource.com/foo\", \"use_repo\": false}@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.options",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/foo\"\nbranch: \"main\"\ninitialize_submodules: true\nmatch_branch: true\nuse_trigger: true\neligible_workspace_paths: \"WORKSPACE\"\n@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.options with defaults",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/foo\"\nbranch: \"main\"\nmanifest_file: \"default.xml\"\ninitialize_submodules: true\nrepo_init_timeout_sec: 120\nrepo_sync_timeout_sec: 900\nnumber_of_attempts: 3\nmatch_branch: true\nsubmodule_timeout_sec: 600\nuse_trigger: true\neligible_workspace_paths: \"WORKSPACE\"\nmax_attempts: 2\n@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.before disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.0",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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/"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
-      "@@@STEP_LOG_END@cipd.ensure@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure_installed",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@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://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"123456\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_REVISION\", \"SUBMIT_REQUIREMENTS\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.change data.process gerrit changes.0.details",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"pigweed/pigweed\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"ffffffffffffffffffffffffffffffffffffffff\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 3,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\",@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"parents\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@          {}@@@",
-      "@@@STEP_LOG_LINE@json.output@        ]@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"uploader\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"email\": \"noreply@google.com\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"submit_requirements\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@    {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"name\": \"Code-Review\",@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"status\": \"OVERRIDDEN\"@@@",
-      "@@@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\": \"123456\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"SUBMIT_REQUIREMENTS\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/123456@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.resolve CL deps",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-detail",
-      "-host",
-      "https://pigweed-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"123456\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_FILES\", \"CURRENT_REVISION\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.change data.process gerrit changes.resolve CL deps.details pigweed:123456",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"_number\": 123456,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"HASH\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"project\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"HASH\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 1,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"files\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"filename\": {}@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"status\": \"NEW\"@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@",
-      "@@@STEP_LOG_LINE@json.input@{@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"change_id\": \"123456\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_FILES\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\"@@@",
-      "@@@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://pigweed-review.googlesource.com/q/123456@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.resolve CL deps.resolve deps for pigweed:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_SUMMARY_TEXT@no dependencies@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.resolve CL deps.no topic",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.resolve CL deps.pass",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.changes.pigweed:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=123456, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='refs/changes/56/123456/7', rebase=True, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=False, patchset=7, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={'Code-Review': 'OVERRIDDEN'}, uploader='noreply@google.com')@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.no non-standard branch names",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@miss@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[CACHE]/git"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.ensure git cache dir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.write git cache guard file",
-    "~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]/git/pigweed.googlesource.com-foo"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.cache.miss",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@SET_BUILD_PROPERTY@checkout https://pigweed.googlesource.com/foo@\"cache miss\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "remote.origin.url",
-      "https://pigweed.googlesource.com/foo"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.remote set-url",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.cache.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--prune",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "--recurse-submodules"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "merge",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.git merge",
-    "timeout": 600.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.cache.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "remove",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.remove git cache guard file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copytree",
-      "--symlinks",
-      "[CACHE]/git/pigweed.googlesource.com-foo",
-      "[START_DIR]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.copy from cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.git checkout",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.git checkout.timeout 10s",
-    "~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]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "deadline": {
-        "grace_period": 30.0,
-        "soft_deadline": 1337000020.5
-      },
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "origin",
-      "https://pigweed.googlesource.com/foo"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git remote",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "core.longpaths",
-      "true"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.set core.longpaths",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "main",
-      "--recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-f",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git checkout",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-d",
-      "-x"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.git checkout.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.git checkout.submodule.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.submodule.submodule.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.submodule.submodule.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.submodule status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.matching pigweed:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@no matching submodules@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed-review.googlesource.com/c/123456@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/refs/changes/56/123456/7@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "[]",
-      "[CLEANUP]/tmp_tmp_1"
-    ],
-    "cwd": "[START_DIR]/co",
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.write changes.json",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@tmp_tmp_1@[]@@@",
-      "@@@STEP_LOG_END@tmp_tmp_1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git log.[START_DIR]/co",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.base",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision@\"HEADHEADHEADHEADHEADHEADHEADHEADHEADHEAD\"@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision_type@\"no_trigger\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[START_DIR]/bazel_repos"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.mkdir [START_DIR]/bazel_repos",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed-review.googlesource.com/c/123456@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/refs/changes/56/123456/7@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@[START_DIR]/co/WORKSPACE@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "[START_DIR]/co/WORKSPACE",
-      "/path/to/tmp/"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.read old WORKSPACE",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@git_repository(@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    name = \"other-repo\"@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    remote = \"https://pigweed.googlesource.com/other/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    commit = \"invalid commit line won't be found\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@)@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@git_repository(@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    module_name = \"pigweed\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    # ROLL: Multiple@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    # ROLL: roll@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    # ROLL: comment@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    # ROLL: lines!@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    commit = \"1111111111111111111111111111111111111111\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    remote = \"https://pigweed.googlesource.com/pigweed/pigweed.git\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    git_repository_attribute_test = \"ignored\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    strip_prefix = \"pw_toolchain_bazel\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@)@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@git_repository(@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    name = \"missing final quote/comma so will miss this line@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    remote = \"https://pigweed.googlesource.com/third/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    commit = \"2222222222222222222222222222222222222222\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@)@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@cipd_repository(@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    name = \"llvm_toolchain\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    build_file = \"//pw_toolchain/build_external:llvm_clang.BUILD\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    path = \"fuchsia/third_party/clang/${os}-${arch}\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    tag = \"git_revision:8280651ad57cb9fb24a404cec2401040c28dec98\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@)@@@",
-      "@@@STEP_LOG_END@WORKSPACE@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.found other remote 'https://pigweed.googlesource.com/other/repo.git'",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@lines@2 @@@",
-      "@@@STEP_LOG_LINE@lines@3 @@@",
-      "@@@STEP_LOG_LINE@lines@4 @@@",
-      "@@@STEP_LOG_LINE@lines@5 @@@",
-      "@@@STEP_LOG_LINE@lines@6 @@@",
-      "@@@STEP_LOG_LINE@lines@7 @@@",
-      "@@@STEP_LOG_LINE@lines@8 @@@",
-      "@@@STEP_LOG_LINE@lines@9 @@@",
-      "@@@STEP_LOG_LINE@lines@10 @@@",
-      "@@@STEP_LOG_LINE@lines@11 @@@",
-      "@@@STEP_LOG_LINE@lines@12 @@@",
-      "@@@STEP_LOG_LINE@lines@13 @@@",
-      "@@@STEP_LOG_LINE@lines@14 @@@",
-      "@@@STEP_LOG_LINE@lines@15 @@@",
-      "@@@STEP_LOG_LINE@lines@16 @@@",
-      "@@@STEP_LOG_LINE@lines@17 @@@",
-      "@@@STEP_LOG_LINE@lines@18 @@@",
-      "@@@STEP_LOG_LINE@lines@19 @@@",
-      "@@@STEP_LOG_LINE@lines@20 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@21     name = \"other-repo\"@@@",
-      "@@@STEP_LOG_LINE@lines@22     remote = \"https://pigweed.googlesource.com/other/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@23     commit = \"invalid commit line won't be found\",@@@",
-      "@@@STEP_LOG_LINE@lines@24 )@@@",
-      "@@@STEP_LOG_LINE@lines@25 @@@",
-      "@@@STEP_LOG_LINE@lines@26 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@27     module_name = \"pigweed\",@@@",
-      "@@@STEP_LOG_LINE@lines@28     # ROLL: Multiple@@@",
-      "@@@STEP_LOG_LINE@lines@29     # ROLL: roll@@@",
-      "@@@STEP_LOG_LINE@lines@30     # ROLL: comment@@@",
-      "@@@STEP_LOG_LINE@lines@31     # ROLL: lines!@@@",
-      "@@@STEP_LOG_LINE@lines@32     commit = \"1111111111111111111111111111111111111111\",@@@",
-      "@@@STEP_LOG_LINE@lines@33     remote = \"https://pigweed.googlesource.com/pigweed/pigweed.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@34     git_repository_attribute_test = \"ignored\",@@@",
-      "@@@STEP_LOG_LINE@lines@35     strip_prefix = \"pw_toolchain_bazel\",@@@",
-      "@@@STEP_LOG_LINE@lines@36 )@@@",
-      "@@@STEP_LOG_LINE@lines@37 @@@",
-      "@@@STEP_LOG_LINE@lines@38 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@39     name = \"missing final quote/comma so will miss this line@@@",
-      "@@@STEP_LOG_LINE@lines@40     remote = \"https://pigweed.googlesource.com/third/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@41     commit = \"2222222222222222222222222222222222222222\",@@@",
-      "@@@STEP_LOG_LINE@lines@42 )@@@",
-      "@@@STEP_LOG_END@lines@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.found matching remote 'https://pigweed.googlesource.com/pigweed/pigweed.git'",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@lines@13 @@@",
-      "@@@STEP_LOG_LINE@lines@14 @@@",
-      "@@@STEP_LOG_LINE@lines@15 @@@",
-      "@@@STEP_LOG_LINE@lines@16 @@@",
-      "@@@STEP_LOG_LINE@lines@17 @@@",
-      "@@@STEP_LOG_LINE@lines@18 @@@",
-      "@@@STEP_LOG_LINE@lines@19 @@@",
-      "@@@STEP_LOG_LINE@lines@20 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@21     name = \"other-repo\"@@@",
-      "@@@STEP_LOG_LINE@lines@22     remote = \"https://pigweed.googlesource.com/other/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@23     commit = \"invalid commit line won't be found\",@@@",
-      "@@@STEP_LOG_LINE@lines@24 )@@@",
-      "@@@STEP_LOG_LINE@lines@25 @@@",
-      "@@@STEP_LOG_LINE@lines@26 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@27     module_name = \"pigweed\",@@@",
-      "@@@STEP_LOG_LINE@lines@28     # ROLL: Multiple@@@",
-      "@@@STEP_LOG_LINE@lines@29     # ROLL: roll@@@",
-      "@@@STEP_LOG_LINE@lines@30     # ROLL: comment@@@",
-      "@@@STEP_LOG_LINE@lines@31     # ROLL: lines!@@@",
-      "@@@STEP_LOG_LINE@lines@32     commit = \"1111111111111111111111111111111111111111\",@@@",
-      "@@@STEP_LOG_LINE@lines@33     remote = \"https://pigweed.googlesource.com/pigweed/pigweed.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@34     git_repository_attribute_test = \"ignored\",@@@",
-      "@@@STEP_LOG_LINE@lines@35     strip_prefix = \"pw_toolchain_bazel\",@@@",
-      "@@@STEP_LOG_LINE@lines@36 )@@@",
-      "@@@STEP_LOG_LINE@lines@37 @@@",
-      "@@@STEP_LOG_LINE@lines@38 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@39     name = \"missing final quote/comma so will miss this line@@@",
-      "@@@STEP_LOG_LINE@lines@40     remote = \"https://pigweed.googlesource.com/third/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@41     commit = \"2222222222222222222222222222222222222222\",@@@",
-      "@@@STEP_LOG_LINE@lines@42 )@@@",
-      "@@@STEP_LOG_LINE@lines@43 @@@",
-      "@@@STEP_LOG_LINE@lines@44 cipd_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@45     name = \"llvm_toolchain\",@@@",
-      "@@@STEP_LOG_LINE@lines@46     build_file = \"//pw_toolchain/build_external:llvm_clang.BUILD\",@@@",
-      "@@@STEP_LOG_LINE@lines@47     path = \"fuchsia/third_party/clang/${os}-${arch}\",@@@",
-      "@@@STEP_LOG_LINE@lines@48     tag = \"git_revision:8280651ad57cb9fb24a404cec2401040c28dec98\",@@@",
-      "@@@STEP_LOG_LINE@lines@49 )@@@",
-      "@@@STEP_LOG_LINE@lines@50 @@@",
-      "@@@STEP_LOG_LINE@lines@51 @@@",
-      "@@@STEP_LOG_LINE@lines@52 @@@",
-      "@@@STEP_LOG_LINE@lines@53 @@@",
-      "@@@STEP_LOG_END@lines@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.found other remote 'https://pigweed.googlesource.com/third/repo.git'",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@lines@20 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@21     name = \"other-repo\"@@@",
-      "@@@STEP_LOG_LINE@lines@22     remote = \"https://pigweed.googlesource.com/other/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@23     commit = \"invalid commit line won't be found\",@@@",
-      "@@@STEP_LOG_LINE@lines@24 )@@@",
-      "@@@STEP_LOG_LINE@lines@25 @@@",
-      "@@@STEP_LOG_LINE@lines@26 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@27     module_name = \"pigweed\",@@@",
-      "@@@STEP_LOG_LINE@lines@28     # ROLL: Multiple@@@",
-      "@@@STEP_LOG_LINE@lines@29     # ROLL: roll@@@",
-      "@@@STEP_LOG_LINE@lines@30     # ROLL: comment@@@",
-      "@@@STEP_LOG_LINE@lines@31     # ROLL: lines!@@@",
-      "@@@STEP_LOG_LINE@lines@32     commit = \"1111111111111111111111111111111111111111\",@@@",
-      "@@@STEP_LOG_LINE@lines@33     remote = \"https://pigweed.googlesource.com/pigweed/pigweed.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@34     git_repository_attribute_test = \"ignored\",@@@",
-      "@@@STEP_LOG_LINE@lines@35     strip_prefix = \"pw_toolchain_bazel\",@@@",
-      "@@@STEP_LOG_LINE@lines@36 )@@@",
-      "@@@STEP_LOG_LINE@lines@37 @@@",
-      "@@@STEP_LOG_LINE@lines@38 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@39     name = \"missing final quote/comma so will miss this line@@@",
-      "@@@STEP_LOG_LINE@lines@40     remote = \"https://pigweed.googlesource.com/third/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@41     commit = \"2222222222222222222222222222222222222222\",@@@",
-      "@@@STEP_LOG_LINE@lines@42 )@@@",
-      "@@@STEP_LOG_LINE@lines@43 @@@",
-      "@@@STEP_LOG_LINE@lines@44 cipd_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@45     name = \"llvm_toolchain\",@@@",
-      "@@@STEP_LOG_LINE@lines@46     build_file = \"//pw_toolchain/build_external:llvm_clang.BUILD\",@@@",
-      "@@@STEP_LOG_LINE@lines@47     path = \"fuchsia/third_party/clang/${os}-${arch}\",@@@",
-      "@@@STEP_LOG_LINE@lines@48     tag = \"git_revision:8280651ad57cb9fb24a404cec2401040c28dec98\",@@@",
-      "@@@STEP_LOG_LINE@lines@49 )@@@",
-      "@@@STEP_LOG_LINE@lines@50 @@@",
-      "@@@STEP_LOG_LINE@lines@51 @@@",
-      "@@@STEP_LOG_LINE@lines@52 @@@",
-      "@@@STEP_LOG_LINE@lines@53 @@@",
-      "@@@STEP_LOG_LINE@lines@54 @@@",
-      "@@@STEP_LOG_LINE@lines@55 @@@",
-      "@@@STEP_LOG_LINE@lines@56 @@@",
-      "@@@STEP_LOG_LINE@lines@57 @@@",
-      "@@@STEP_LOG_LINE@lines@58 @@@",
-      "@@@STEP_LOG_LINE@lines@59 @@@",
-      "@@@STEP_LOG_LINE@lines@60 @@@",
-      "@@@STEP_LOG_END@lines@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.lines",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@0_center@33@@@",
-      "@@@STEP_LOG_END@0_center@@@",
-      "@@@STEP_LOG_LINE@1_orig@13 @@@",
-      "@@@STEP_LOG_LINE@1_orig@14 @@@",
-      "@@@STEP_LOG_LINE@1_orig@15 @@@",
-      "@@@STEP_LOG_LINE@1_orig@16 @@@",
-      "@@@STEP_LOG_LINE@1_orig@17 @@@",
-      "@@@STEP_LOG_LINE@1_orig@18 @@@",
-      "@@@STEP_LOG_LINE@1_orig@19 @@@",
-      "@@@STEP_LOG_LINE@1_orig@20 git_repository(@@@",
-      "@@@STEP_LOG_LINE@1_orig@21     name = \"other-repo\"@@@",
-      "@@@STEP_LOG_LINE@1_orig@22     remote = \"https://pigweed.googlesource.com/other/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@23     commit = \"invalid commit line won't be found\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@24 )@@@",
-      "@@@STEP_LOG_LINE@1_orig@25 @@@",
-      "@@@STEP_LOG_LINE@1_orig@26 git_repository(@@@",
-      "@@@STEP_LOG_LINE@1_orig@27     module_name = \"pigweed\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@28     # ROLL: Multiple@@@",
-      "@@@STEP_LOG_LINE@1_orig@29     # ROLL: roll@@@",
-      "@@@STEP_LOG_LINE@1_orig@30     # ROLL: comment@@@",
-      "@@@STEP_LOG_LINE@1_orig@31     # ROLL: lines!@@@",
-      "@@@STEP_LOG_LINE@1_orig@32     commit = \"1111111111111111111111111111111111111111\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@33     remote = \"https://pigweed.googlesource.com/pigweed/pigweed.git\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@34     git_repository_attribute_test = \"ignored\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@35     strip_prefix = \"pw_toolchain_bazel\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@36 )@@@",
-      "@@@STEP_LOG_LINE@1_orig@37 @@@",
-      "@@@STEP_LOG_LINE@1_orig@38 git_repository(@@@",
-      "@@@STEP_LOG_LINE@1_orig@39     name = \"missing final quote/comma so will miss this line@@@",
-      "@@@STEP_LOG_LINE@1_orig@40     remote = \"https://pigweed.googlesource.com/third/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@41     commit = \"2222222222222222222222222222222222222222\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@42 )@@@",
-      "@@@STEP_LOG_LINE@1_orig@43 @@@",
-      "@@@STEP_LOG_LINE@1_orig@44 cipd_repository(@@@",
-      "@@@STEP_LOG_LINE@1_orig@45     name = \"llvm_toolchain\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@46     build_file = \"//pw_toolchain/build_external:llvm_clang.BUILD\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@47     path = \"fuchsia/third_party/clang/${os}-${arch}\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@48     tag = \"git_revision:8280651ad57cb9fb24a404cec2401040c28dec98\",@@@",
-      "@@@STEP_LOG_LINE@1_orig@49 )@@@",
-      "@@@STEP_LOG_LINE@1_orig@50 @@@",
-      "@@@STEP_LOG_LINE@1_orig@51 @@@",
-      "@@@STEP_LOG_LINE@1_orig@52 @@@",
-      "@@@STEP_LOG_LINE@1_orig@53 @@@",
-      "@@@STEP_LOG_END@1_orig@@@",
-      "@@@STEP_LOG_LINE@2_trimmed@25 @@@",
-      "@@@STEP_LOG_LINE@2_trimmed@26 git_repository(@@@",
-      "@@@STEP_LOG_LINE@2_trimmed@27     module_name = \"pigweed\",@@@",
-      "@@@STEP_LOG_LINE@2_trimmed@28     # ROLL: Multiple@@@",
-      "@@@STEP_LOG_LINE@2_trimmed@29     # ROLL: roll@@@",
-      "@@@STEP_LOG_LINE@2_trimmed@30     # ROLL: comment@@@",
-      "@@@STEP_LOG_LINE@2_trimmed@31     # ROLL: lines!@@@",
-      "@@@STEP_LOG_LINE@2_trimmed@32     commit = \"1111111111111111111111111111111111111111\",@@@",
-      "@@@STEP_LOG_LINE@2_trimmed@33     remote = \"https://pigweed.googlesource.com/pigweed/pigweed.git\",@@@",
-      "@@@STEP_LOG_LINE@2_trimmed@34     git_repository_attribute_test = \"ignored\",@@@",
-      "@@@STEP_LOG_LINE@2_trimmed@35     strip_prefix = \"pw_toolchain_bazel\",@@@",
-      "@@@STEP_LOG_LINE@2_trimmed@36 )@@@",
-      "@@@STEP_LOG_END@2_trimmed@@@",
-      "@@@STEP_LOG_LINE@3_sorted@33     remote = \"https://pigweed.googlesource.com/pigweed/pigweed.git\",@@@",
-      "@@@STEP_LOG_LINE@3_sorted@32     commit = \"1111111111111111111111111111111111111111\",@@@",
-      "@@@STEP_LOG_LINE@3_sorted@34     git_repository_attribute_test = \"ignored\",@@@",
-      "@@@STEP_LOG_LINE@3_sorted@31     # ROLL: lines!@@@",
-      "@@@STEP_LOG_LINE@3_sorted@35     strip_prefix = \"pw_toolchain_bazel\",@@@",
-      "@@@STEP_LOG_LINE@3_sorted@30     # ROLL: comment@@@",
-      "@@@STEP_LOG_LINE@3_sorted@36 )@@@",
-      "@@@STEP_LOG_LINE@3_sorted@29     # ROLL: roll@@@",
-      "@@@STEP_LOG_LINE@3_sorted@28     # ROLL: Multiple@@@",
-      "@@@STEP_LOG_LINE@3_sorted@27     module_name = \"pigweed\",@@@",
-      "@@@STEP_LOG_LINE@3_sorted@26 git_repository(@@@",
-      "@@@STEP_LOG_LINE@3_sorted@25 @@@",
-      "@@@STEP_LOG_END@3_sorted@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_TEXT@https://pigweed.googlesource.com/pigweed/pigweed@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "origin",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.git remote",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "core.longpaths",
-      "true"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.set core.longpaths",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "main"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-f",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.git checkout",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-d",
-      "-x"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.submodule.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.submodule.submodule.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@7@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.checkout pigweed_pigweed_pigweed.submodule.submodule.git submodule update",
-    "timeout": 1800.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@7@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_SUMMARY_TEXT@../bazel_repos/pigweed_pigweed_pigweed@@@",
-      "@@@STEP_LINK@gerrit@https://pigweed-review.googlesource.com/c/123456@@@",
-      "@@@STEP_LINK@gitiles@https://pigweed.googlesource.com/pigweed/pigweed/+/refs/changes/56/123456/7@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https://pigweed.googlesource.com/pigweed/pigweed",
-      "refs/changes/56/123456/7",
-      "--no-recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.git fetch patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--force",
-      "-b",
-      "working",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.git checkout patch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "https://pigweed.googlesource.com/pigweed/pigweed"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.git remote add",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--jobs",
-      "4",
-      "https___pigweed_googlesource_com_pigweed_pigweed",
-      "refs/heads/main"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.fetch main branch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "branch",
-      "--set-upstream-to=https___pigweed_googlesource_com_pigweed_pigweed/main"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.git set upstream",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.pre-rebase log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rebase",
-      "https___pigweed_googlesource_com_pigweed_pigweed/main"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.git rebase",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "https___pigweed_googlesource_com_pigweed_pigweed/main"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.post-rebase log",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.timeout 10s (3)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "--detach"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.detach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-"
-    ],
-    "cwd": "[START_DIR]/bazel_repos/pigweed_pigweed_pigweed",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456.reattach",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-f",
-      "-d"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "status"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git status",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@applied [Change(number=123456, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='refs/changes/56/123456/7', rebase=True, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=False, patchset=7, path='../bazel_repos/pigweed_pigweed_pigweed', base='REMOTE_BRANCH_REMOTE_BRANCH_REMOTE_BRANCH_', base_type='remote_branch_tip', is_merge=False, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={'Code-Review': 'OVERRIDDEN'}, uploader='noreply@google.com')]\nnot applied []@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[START_DIR]/snapshot"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.mkdir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "status",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.submodule-status",
-    "timeout": 1200.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",
-      "submodule status filler text",
-      "[START_DIR]/snapshot/submodules.log"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.write submodule snapshot",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@submodules.log@submodule status filler text@@@",
-      "@@@STEP_LOG_END@submodules.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.log",
-    "timeout": 1200.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]/snapshot/git.log"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.write git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_END@git.log@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.after disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "applied_changes",
-    "~followup_annotations": [
-      "@@@STEP_SUMMARY_TEXT@[Change(number=123456, remote='https://pigweed.googlesource.com/pigweed/pigweed', ref='refs/changes/56/123456/7', rebase=True, project='pigweed/pigweed', branch='main', gerrit_name='pigweed', submitted=False, patchset=7, path='../bazel_repos/pigweed_pigweed_pigweed', base='REMOTE_BRANCH_REMOTE_BRANCH_REMOTE_BRANCH_', base_type='remote_branch_tip', is_merge=False, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={'Code-Review': 'OVERRIDDEN'}, uploader='noreply@google.com')]@@@"
-    ]
-  },
-  {
-    "name": "$result"
-  }
-]
\ No newline at end of file
diff --git a/recipe_modules/checkout/tests/workspace.expected/not-found.json b/recipe_modules/checkout/tests/workspace.expected/not-found.json
deleted file mode 100644
index db79134..0000000
--- a/recipe_modules/checkout/tests/workspace.expected/not-found.json
+++ /dev/null
@@ -1,1817 +0,0 @@
-[
-  {
-    "cmd": [],
-    "name": "checkout foo",
-    "~followup_annotations": [
-      "@@@STEP_EXCEPTION@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.options",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/foo\"\nbranch: \"main\"\ninitialize_submodules: true\nmatch_branch: true\nuse_trigger: true\neligible_workspace_paths: \"WORKSPACE\"\n@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.options with defaults",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@remote: \"https://pigweed.googlesource.com/foo\"\nbranch: \"main\"\nmanifest_file: \"default.xml\"\ninitialize_submodules: true\nrepo_init_timeout_sec: 120\nrepo_sync_timeout_sec: 900\nnumber_of_attempts: 3\nmatch_branch: true\nsubmodule_timeout_sec: 600\nuse_trigger: true\neligible_workspace_paths: \"WORKSPACE\"\nmax_attempts: 2\n@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::disk_usage]/resources/disk_usage.py",
-      "[START_DIR]",
-      "/path/to/tmp/json"
-    ],
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.before disk usage",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@40.00/100.00 GB used (40.0%)@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"free\": 64424509440,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"total\": 107374182400,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"used\": 42949672960@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.0",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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/"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@",
-      "@@@STEP_LOG_END@cipd.ensure@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@5@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@"
-    ]
-  },
-  {
-    "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"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.change data.process gerrit changes.0.ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure_installed",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@6@@@",
-      "@@@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://x-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"123456\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_REVISION\", \"SUBMIT_REQUIREMENTS\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.change data.process gerrit changes.0.details",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"branch\": \"main\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"ffffffffffffffffffffffffffffffffffffffff\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"bar\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"ffffffffffffffffffffffffffffffffffffffff\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 3,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\",@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"parents\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@          {}@@@",
-      "@@@STEP_LOG_LINE@json.output@        ]@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"uploader\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"email\": \"noreply@google.com\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"submit_requirements\": [@@@",
-      "@@@STEP_LOG_LINE@json.output@    {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"name\": \"Code-Review\",@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"status\": \"OVERRIDDEN\"@@@",
-      "@@@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\": \"123456\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"SUBMIT_REQUIREMENTS\"@@@",
-      "@@@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://x-review.googlesource.com/q/123456@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.resolve CL deps",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit",
-      "change-detail",
-      "-host",
-      "https://x-review.googlesource.com",
-      "-input",
-      "{\"change_id\": \"123456\", \"params\": {\"o\": [\"CURRENT_COMMIT\", \"CURRENT_FILES\", \"CURRENT_REVISION\"]}}",
-      "-output",
-      "/path/to/tmp/json"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.change data.process gerrit changes.resolve CL deps.details x:123456",
-    "timeout": 30,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@json.output@{@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"_number\": 123456,@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"current_revision\": \"HASH\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"project\": \"project\",@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"revisions\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@    \"HASH\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"_number\": 1,@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"commit\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"message\": \"\"@@@",
-      "@@@STEP_LOG_LINE@json.output@      },@@@",
-      "@@@STEP_LOG_LINE@json.output@      \"files\": {@@@",
-      "@@@STEP_LOG_LINE@json.output@        \"filename\": {}@@@",
-      "@@@STEP_LOG_LINE@json.output@      }@@@",
-      "@@@STEP_LOG_LINE@json.output@    }@@@",
-      "@@@STEP_LOG_LINE@json.output@  },@@@",
-      "@@@STEP_LOG_LINE@json.output@  \"status\": \"NEW\"@@@",
-      "@@@STEP_LOG_LINE@json.output@}@@@",
-      "@@@STEP_LOG_END@json.output@@@",
-      "@@@STEP_LOG_LINE@json.input@{@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"change_id\": \"123456\",@@@",
-      "@@@STEP_LOG_LINE@json.input@  \"params\": {@@@",
-      "@@@STEP_LOG_LINE@json.input@    \"o\": [@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_COMMIT\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_FILES\",@@@",
-      "@@@STEP_LOG_LINE@json.input@      \"CURRENT_REVISION\"@@@",
-      "@@@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://x-review.googlesource.com/q/123456@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.resolve CL deps.resolve deps for x:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_SUMMARY_TEXT@no dependencies@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.resolve CL deps.no topic",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.process gerrit changes.resolve CL deps.pass",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.changes",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.change data.changes.x:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@Change(number=123456, remote='https://x.googlesource.com/bar', ref='refs/changes/56/123456/7', rebase=True, project='bar', branch='main', gerrit_name='x', submitted=False, patchset=7, path=None, base=None, base_type=None, is_merge=False, commit_message='', topic=None, current_revision='ffffffffffffffffffffffffffffffffffffffff', primary=True, submit_requirements={'Code-Review': 'OVERRIDDEN'}, uploader='noreply@google.com')@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.no non-standard branch names",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@miss@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[CACHE]/git"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.ensure git cache dir",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.write git cache guard file",
-    "~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]/git/pigweed.googlesource.com-foo"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.cache.miss",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@SET_BUILD_PROPERTY@checkout https://pigweed.googlesource.com/foo@\"cache miss\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "remote.origin.url",
-      "https://pigweed.googlesource.com/foo"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.remote set-url",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.cache.timeout 10s",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--prune",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "--recurse-submodules"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "merge",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.git merge",
-    "timeout": 600.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync",
-      "--recursive"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.cache.timeout 10s (2)",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[CACHE]/git/pigweed.googlesource.com-foo",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "remove",
-      "[CACHE]/git/.GUARD_FILE"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.cache.remove git cache guard file",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copytree",
-      "--symlinks",
-      "[CACHE]/git/pigweed.googlesource.com-foo",
-      "[START_DIR]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.copy from cache",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.git checkout",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.git checkout.timeout 10s",
-    "~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]/co"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "deadline": {
-        "grace_period": 30.0,
-        "soft_deadline": 1337000020.5
-      },
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.makedirs",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "init"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git init",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "remote",
-      "add",
-      "origin",
-      "https://pigweed.googlesource.com/foo"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git remote",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "core.longpaths",
-      "true"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.set core.longpaths",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "config",
-      "fetch.uriprotocols",
-      "https"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.enable packfiles",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "fetch",
-      "--tags",
-      "--jobs",
-      "4",
-      "origin",
-      "main",
-      "--recurse-submodules"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git fetch",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "checkout",
-      "-f",
-      "FETCH_HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git checkout",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-d",
-      "-x"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.git checkout.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.git checkout.submodule.submodule",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "sync"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.submodule.submodule.git submodule sync",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "submodule",
-      "update",
-      "--init",
-      "--recursive",
-      "--force",
-      "--jobs",
-      "4"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git checkout.submodule.submodule.git submodule update",
-    "timeout": 600,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "rev-parse",
-      "HEAD"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git rev-parse",
-    "timeout": 300.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "python3",
-      "RECIPE_MODULE[pigweed::checkout]/resources/submodule_status.py",
-      "[START_DIR]/co",
-      "/path/to/tmp/json",
-      "--recursive"
-    ],
-    "cwd": "[START_DIR]/co",
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.submodule status",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@json.output@{}@@@",
-      "@@@STEP_LOG_END@json.output@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.matching x:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_SUMMARY_TEXT@no matching submodules@@@",
-      "@@@STEP_LINK@gerrit@https://x-review.googlesource.com/c/123456@@@",
-      "@@@STEP_LINK@gitiles@https://x.googlesource.com/bar/+/refs/changes/56/123456/7@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "[]",
-      "[CLEANUP]/tmp_tmp_1"
-    ],
-    "cwd": "[START_DIR]/co",
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.write changes.json",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@STEP_LOG_LINE@tmp_tmp_1@[]@@@",
-      "@@@STEP_LOG_END@tmp_tmp_1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.git log",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "log",
-      "--oneline",
-      "-n",
-      "10"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git log.[START_DIR]/co",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.base",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision@\"HEADHEADHEADHEADHEADHEADHEADHEADHEADHEAD\"@@@",
-      "@@@SET_BUILD_PROPERTY@got_revision_type@\"no_trigger\"@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "ensure-directory",
-      "--mode",
-      "0o777",
-      "[START_DIR]/bazel_repos"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.mkdir [START_DIR]/bazel_repos",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.x:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_LINK@gerrit@https://x-review.googlesource.com/c/123456@@@",
-      "@@@STEP_LINK@gitiles@https://x.googlesource.com/bar/+/refs/changes/56/123456/7@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.x:123456.WORKSPACE",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@3@@@",
-      "@@@STEP_SUMMARY_TEXT@[START_DIR]/co/WORKSPACE@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "vpython3",
-      "-u",
-      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
-      "--json-output",
-      "/path/to/tmp/json",
-      "copy",
-      "[START_DIR]/co/WORKSPACE",
-      "/path/to/tmp/"
-    ],
-    "infra_step": true,
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.workspace.x:123456.WORKSPACE.read old WORKSPACE",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@git_repository(@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    name = \"other-repo\"@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    remote = \"https://pigweed.googlesource.com/other/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    commit = \"invalid commit line won't be found\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@)@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@git_repository(@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    module_name = \"pigweed\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    # ROLL: Multiple@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    # ROLL: roll@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    # ROLL: comment@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    # ROLL: lines!@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    commit = \"1111111111111111111111111111111111111111\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    remote = \"https://pigweed.googlesource.com/pigweed/pigweed.git\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    git_repository_attribute_test = \"ignored\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    strip_prefix = \"pw_toolchain_bazel\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@)@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@git_repository(@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    name = \"missing final quote/comma so will miss this line@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    remote = \"https://pigweed.googlesource.com/third/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    commit = \"2222222222222222222222222222222222222222\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@)@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@cipd_repository(@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    name = \"llvm_toolchain\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    build_file = \"//pw_toolchain/build_external:llvm_clang.BUILD\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    path = \"fuchsia/third_party/clang/${os}-${arch}\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@    tag = \"git_revision:8280651ad57cb9fb24a404cec2401040c28dec98\",@@@",
-      "@@@STEP_LOG_LINE@WORKSPACE@)@@@",
-      "@@@STEP_LOG_END@WORKSPACE@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.x:123456.WORKSPACE.found other remote 'https://pigweed.googlesource.com/other/repo.git'",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@lines@2 @@@",
-      "@@@STEP_LOG_LINE@lines@3 @@@",
-      "@@@STEP_LOG_LINE@lines@4 @@@",
-      "@@@STEP_LOG_LINE@lines@5 @@@",
-      "@@@STEP_LOG_LINE@lines@6 @@@",
-      "@@@STEP_LOG_LINE@lines@7 @@@",
-      "@@@STEP_LOG_LINE@lines@8 @@@",
-      "@@@STEP_LOG_LINE@lines@9 @@@",
-      "@@@STEP_LOG_LINE@lines@10 @@@",
-      "@@@STEP_LOG_LINE@lines@11 @@@",
-      "@@@STEP_LOG_LINE@lines@12 @@@",
-      "@@@STEP_LOG_LINE@lines@13 @@@",
-      "@@@STEP_LOG_LINE@lines@14 @@@",
-      "@@@STEP_LOG_LINE@lines@15 @@@",
-      "@@@STEP_LOG_LINE@lines@16 @@@",
-      "@@@STEP_LOG_LINE@lines@17 @@@",
-      "@@@STEP_LOG_LINE@lines@18 @@@",
-      "@@@STEP_LOG_LINE@lines@19 @@@",
-      "@@@STEP_LOG_LINE@lines@20 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@21     name = \"other-repo\"@@@",
-      "@@@STEP_LOG_LINE@lines@22     remote = \"https://pigweed.googlesource.com/other/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@23     commit = \"invalid commit line won't be found\",@@@",
-      "@@@STEP_LOG_LINE@lines@24 )@@@",
-      "@@@STEP_LOG_LINE@lines@25 @@@",
-      "@@@STEP_LOG_LINE@lines@26 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@27     module_name = \"pigweed\",@@@",
-      "@@@STEP_LOG_LINE@lines@28     # ROLL: Multiple@@@",
-      "@@@STEP_LOG_LINE@lines@29     # ROLL: roll@@@",
-      "@@@STEP_LOG_LINE@lines@30     # ROLL: comment@@@",
-      "@@@STEP_LOG_LINE@lines@31     # ROLL: lines!@@@",
-      "@@@STEP_LOG_LINE@lines@32     commit = \"1111111111111111111111111111111111111111\",@@@",
-      "@@@STEP_LOG_LINE@lines@33     remote = \"https://pigweed.googlesource.com/pigweed/pigweed.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@34     git_repository_attribute_test = \"ignored\",@@@",
-      "@@@STEP_LOG_LINE@lines@35     strip_prefix = \"pw_toolchain_bazel\",@@@",
-      "@@@STEP_LOG_LINE@lines@36 )@@@",
-      "@@@STEP_LOG_LINE@lines@37 @@@",
-      "@@@STEP_LOG_LINE@lines@38 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@39     name = \"missing final quote/comma so will miss this line@@@",
-      "@@@STEP_LOG_LINE@lines@40     remote = \"https://pigweed.googlesource.com/third/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@41     commit = \"2222222222222222222222222222222222222222\",@@@",
-      "@@@STEP_LOG_LINE@lines@42 )@@@",
-      "@@@STEP_LOG_END@lines@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.x:123456.WORKSPACE.found other remote 'https://pigweed.googlesource.com/pigweed/pigweed.git'",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@lines@13 @@@",
-      "@@@STEP_LOG_LINE@lines@14 @@@",
-      "@@@STEP_LOG_LINE@lines@15 @@@",
-      "@@@STEP_LOG_LINE@lines@16 @@@",
-      "@@@STEP_LOG_LINE@lines@17 @@@",
-      "@@@STEP_LOG_LINE@lines@18 @@@",
-      "@@@STEP_LOG_LINE@lines@19 @@@",
-      "@@@STEP_LOG_LINE@lines@20 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@21     name = \"other-repo\"@@@",
-      "@@@STEP_LOG_LINE@lines@22     remote = \"https://pigweed.googlesource.com/other/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@23     commit = \"invalid commit line won't be found\",@@@",
-      "@@@STEP_LOG_LINE@lines@24 )@@@",
-      "@@@STEP_LOG_LINE@lines@25 @@@",
-      "@@@STEP_LOG_LINE@lines@26 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@27     module_name = \"pigweed\",@@@",
-      "@@@STEP_LOG_LINE@lines@28     # ROLL: Multiple@@@",
-      "@@@STEP_LOG_LINE@lines@29     # ROLL: roll@@@",
-      "@@@STEP_LOG_LINE@lines@30     # ROLL: comment@@@",
-      "@@@STEP_LOG_LINE@lines@31     # ROLL: lines!@@@",
-      "@@@STEP_LOG_LINE@lines@32     commit = \"1111111111111111111111111111111111111111\",@@@",
-      "@@@STEP_LOG_LINE@lines@33     remote = \"https://pigweed.googlesource.com/pigweed/pigweed.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@34     git_repository_attribute_test = \"ignored\",@@@",
-      "@@@STEP_LOG_LINE@lines@35     strip_prefix = \"pw_toolchain_bazel\",@@@",
-      "@@@STEP_LOG_LINE@lines@36 )@@@",
-      "@@@STEP_LOG_LINE@lines@37 @@@",
-      "@@@STEP_LOG_LINE@lines@38 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@39     name = \"missing final quote/comma so will miss this line@@@",
-      "@@@STEP_LOG_LINE@lines@40     remote = \"https://pigweed.googlesource.com/third/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@41     commit = \"2222222222222222222222222222222222222222\",@@@",
-      "@@@STEP_LOG_LINE@lines@42 )@@@",
-      "@@@STEP_LOG_LINE@lines@43 @@@",
-      "@@@STEP_LOG_LINE@lines@44 cipd_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@45     name = \"llvm_toolchain\",@@@",
-      "@@@STEP_LOG_LINE@lines@46     build_file = \"//pw_toolchain/build_external:llvm_clang.BUILD\",@@@",
-      "@@@STEP_LOG_LINE@lines@47     path = \"fuchsia/third_party/clang/${os}-${arch}\",@@@",
-      "@@@STEP_LOG_LINE@lines@48     tag = \"git_revision:8280651ad57cb9fb24a404cec2401040c28dec98\",@@@",
-      "@@@STEP_LOG_LINE@lines@49 )@@@",
-      "@@@STEP_LOG_LINE@lines@50 @@@",
-      "@@@STEP_LOG_LINE@lines@51 @@@",
-      "@@@STEP_LOG_LINE@lines@52 @@@",
-      "@@@STEP_LOG_LINE@lines@53 @@@",
-      "@@@STEP_LOG_END@lines@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.workspace.x:123456.WORKSPACE.found other remote 'https://pigweed.googlesource.com/third/repo.git'",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@4@@@",
-      "@@@STEP_LOG_LINE@lines@20 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@21     name = \"other-repo\"@@@",
-      "@@@STEP_LOG_LINE@lines@22     remote = \"https://pigweed.googlesource.com/other/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@23     commit = \"invalid commit line won't be found\",@@@",
-      "@@@STEP_LOG_LINE@lines@24 )@@@",
-      "@@@STEP_LOG_LINE@lines@25 @@@",
-      "@@@STEP_LOG_LINE@lines@26 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@27     module_name = \"pigweed\",@@@",
-      "@@@STEP_LOG_LINE@lines@28     # ROLL: Multiple@@@",
-      "@@@STEP_LOG_LINE@lines@29     # ROLL: roll@@@",
-      "@@@STEP_LOG_LINE@lines@30     # ROLL: comment@@@",
-      "@@@STEP_LOG_LINE@lines@31     # ROLL: lines!@@@",
-      "@@@STEP_LOG_LINE@lines@32     commit = \"1111111111111111111111111111111111111111\",@@@",
-      "@@@STEP_LOG_LINE@lines@33     remote = \"https://pigweed.googlesource.com/pigweed/pigweed.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@34     git_repository_attribute_test = \"ignored\",@@@",
-      "@@@STEP_LOG_LINE@lines@35     strip_prefix = \"pw_toolchain_bazel\",@@@",
-      "@@@STEP_LOG_LINE@lines@36 )@@@",
-      "@@@STEP_LOG_LINE@lines@37 @@@",
-      "@@@STEP_LOG_LINE@lines@38 git_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@39     name = \"missing final quote/comma so will miss this line@@@",
-      "@@@STEP_LOG_LINE@lines@40     remote = \"https://pigweed.googlesource.com/third/repo.git\",@@@",
-      "@@@STEP_LOG_LINE@lines@41     commit = \"2222222222222222222222222222222222222222\",@@@",
-      "@@@STEP_LOG_LINE@lines@42 )@@@",
-      "@@@STEP_LOG_LINE@lines@43 @@@",
-      "@@@STEP_LOG_LINE@lines@44 cipd_repository(@@@",
-      "@@@STEP_LOG_LINE@lines@45     name = \"llvm_toolchain\",@@@",
-      "@@@STEP_LOG_LINE@lines@46     build_file = \"//pw_toolchain/build_external:llvm_clang.BUILD\",@@@",
-      "@@@STEP_LOG_LINE@lines@47     path = \"fuchsia/third_party/clang/${os}-${arch}\",@@@",
-      "@@@STEP_LOG_LINE@lines@48     tag = \"git_revision:8280651ad57cb9fb24a404cec2401040c28dec98\",@@@",
-      "@@@STEP_LOG_LINE@lines@49 )@@@",
-      "@@@STEP_LOG_LINE@lines@50 @@@",
-      "@@@STEP_LOG_LINE@lines@51 @@@",
-      "@@@STEP_LOG_LINE@lines@52 @@@",
-      "@@@STEP_LOG_LINE@lines@53 @@@",
-      "@@@STEP_LOG_LINE@lines@54 @@@",
-      "@@@STEP_LOG_LINE@lines@55 @@@",
-      "@@@STEP_LOG_LINE@lines@56 @@@",
-      "@@@STEP_LOG_LINE@lines@57 @@@",
-      "@@@STEP_LOG_LINE@lines@58 @@@",
-      "@@@STEP_LOG_LINE@lines@59 @@@",
-      "@@@STEP_LOG_LINE@lines@60 @@@",
-      "@@@STEP_LOG_END@lines@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "clean",
-      "-f",
-      "-f",
-      "-d"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git clean",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [
-      "git",
-      "status"
-    ],
-    "cwd": "[START_DIR]/co",
-    "env": {
-      "GIT_ADVICE": "0",
-      "GIT_CONFIG_COUNT": "4",
-      "GIT_CONFIG_KEY_0": "fetch.unpackLimit",
-      "GIT_CONFIG_KEY_1": "gc.auto",
-      "GIT_CONFIG_KEY_2": "gc.autoDetach",
-      "GIT_CONFIG_KEY_3": "gc.autoPackLimit",
-      "GIT_CONFIG_VALUE_0": "1",
-      "GIT_CONFIG_VALUE_1": "0",
-      "GIT_CONFIG_VALUE_2": "0",
-      "GIT_CONFIG_VALUE_3": "0"
-    },
-    "luci_context": {
-      "realm": {
-        "name": "project:try"
-      },
-      "resultdb": {
-        "current_invocation": {
-          "name": "invocations/build:8945511751514863184",
-          "update_token": "token"
-        },
-        "hostname": "rdbhost"
-      }
-    },
-    "name": "checkout foo.git status",
-    "timeout": 1200.0,
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.no changes were applied",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@1@@@",
-      "@@@SET_BUILD_PROPERTY@changes@[\"x:123456\"]@@@",
-      "@@@STEP_FAILURE@@@"
-    ]
-  },
-  {
-    "cmd": [],
-    "name": "checkout foo.no changes were applied.failed to apply x:123456",
-    "~followup_annotations": [
-      "@@@STEP_NEST_LEVEL@2@@@",
-      "@@@STEP_LINK@gerrit@https://x-review.googlesource.com/c/123456@@@",
-      "@@@STEP_LINK@gitiles@https://x.googlesource.com/bar/+/refs/changes/56/123456/7@@@",
-      "@@@STEP_WARNINGS@@@"
-    ]
-  },
-  {
-    "failure": {
-      "humanReason": "could not find triggering changes in checkout"
-    },
-    "name": "$result"
-  }
-]
\ No newline at end of file
diff --git a/recipe_modules/checkout/tests/workspace.py b/recipe_modules/checkout/tests/workspace.py
index f490176..b1f59d3 100644
--- a/recipe_modules/checkout/tests/workspace.py
+++ b/recipe_modules/checkout/tests/workspace.py
@@ -17,7 +17,7 @@
 
 from collections.abc import Iterator
 
-from recipe_engine import recipe_api, recipe_test_api
+from recipe_engine import post_process, recipe_api, recipe_test_api
 
 from PB.recipe_modules.pigweed.checkout.tests.workspace import InputProperties
 
@@ -62,11 +62,43 @@
         'found',
         properties(),
         api.checkout.try_test_data(),
+        api.post_check(
+            post_process.MustRun,
+            'checkout foo.workspace',
+            "checkout foo.workspace.pigweed:123456.WORKSPACE.found matching remote 'https://pigweed.googlesource.com/pigweed/pigweed.git'",
+            'checkout foo.workspace.pigweed:123456.WORKSPACE.apply pigweed:123456',
+            'applied_changes',
+        ),
+        api.post_check(
+            post_process.StepSummaryContains,
+            'applied_changes',
+            ['Change(number=123456'],
+        ),
+        api.post_check(
+            post_process.DoesNotRun,
+            'checkout foo.no changes were applied',
+        ),
+        api.post_process(post_process.DropExpectation),
     )
 
     yield api.test(
         'not-found',
         properties(),
         api.checkout.try_test_data(git_repo='https://x.googlesource.com/bar'),
+        api.post_check(
+            post_process.MustRun,
+            'checkout foo.no changes were applied',
+            'checkout foo.no changes were applied.failed to apply x:123456',
+        ),
+        api.post_check(
+            post_process.DoesNotRunRE,
+            r'.*found matching remote.*',
+            'applied_changes',
+        ),
+        api.post_check(
+            post_process.SummaryMarkdownRE,
+            'could not find triggering changes in checkout',
+        ),
+        api.post_process(post_process.DropExpectation),
         status='INFRA_FAILURE',
     )