| [ |
| { |
| "cmd": [], |
| "name": "checkout manifest" |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/checkout" |
| ], |
| "infra_step": true, |
| "name": "checkout manifest.makedirs", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "init" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.git init", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "remote", |
| "add", |
| "origin", |
| "https://host.googlesource.com/manifest" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.git remote", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "fetch.uriprotocols", |
| "https" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.set fetch.uriprotocols", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "checkout manifest.cache", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "", |
| "[CACHE]/git/.GUARD_FILE" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.cache.write guard file", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_END@.GUARD_FILE@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[CACHE]/git/host.googlesource.com-manifest" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.cache.makedirs", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "init", |
| "--bare" |
| ], |
| "cwd": "[CACHE]/git/host.googlesource.com-manifest", |
| "infra_step": true, |
| "name": "checkout manifest.cache.git init", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "remote.origin.url", |
| "https://host.googlesource.com/manifest" |
| ], |
| "cwd": "[CACHE]/git/host.googlesource.com-manifest", |
| "infra_step": true, |
| "name": "checkout manifest.cache.remote set-url", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "fetch.uriprotocols", |
| "https" |
| ], |
| "cwd": "[CACHE]/git/host.googlesource.com-manifest", |
| "infra_step": true, |
| "name": "checkout manifest.cache.set fetch.uriprotocols", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "--replace-all", |
| "remote.origin.fetch", |
| "+refs/heads/*:refs/heads/*", |
| "\\+refs/heads/\\*:.*" |
| ], |
| "cwd": "[CACHE]/git/host.googlesource.com-manifest", |
| "infra_step": true, |
| "name": "checkout manifest.cache.replace fetch configs", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "fetch", |
| "--prune", |
| "--tags", |
| "origin" |
| ], |
| "cwd": "[CACHE]/git/host.googlesource.com-manifest", |
| "infra_step": true, |
| "name": "checkout manifest.cache.git fetch", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/checkout/.git/objects/info" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.cache.makedirs object/info", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[CACHE]/git/host.googlesource.com-manifest/objects\n", |
| "[START_DIR]/checkout/.git/objects/info/alternates" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.cache.alternates", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_LINE@alternates@[CACHE]/git/host.googlesource.com-manifest/objects@@@", |
| "@@@STEP_LOG_END@alternates@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "remove", |
| "[CACHE]/git/.GUARD_FILE" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.cache.remove guard file", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "fetch", |
| "--tags", |
| "origin", |
| "main", |
| "--recurse-submodules" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.git fetch", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "checkout", |
| "-f", |
| "FETCH_HEAD" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.git checkout", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "rev-parse", |
| "HEAD" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.git rev-parse", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "clean", |
| "-f", |
| "-d", |
| "-x" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.git clean", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "checkout manifest.submodule", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "sync" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.submodule.git submodule sync", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "update", |
| "--init", |
| "--recursive" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout manifest.submodule.git submodule update", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "checkout manifest.git log", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "log", |
| "--oneline", |
| "-n", |
| "10" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "name": "checkout manifest.git log.[START_DIR]/checkout", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/snapshot" |
| ], |
| "infra_step": true, |
| "name": "checkout manifest.mkdir", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "status", |
| "--recursive" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "name": "checkout manifest.submodule-status", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-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 manifest.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]/checkout", |
| "name": "checkout manifest.log", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-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 manifest.write git log", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_END@git.log@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[START_DIR]/checkout/default.xml", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "read manifest", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@default.xml@<?xml version=\"1.0\" encoding=\"UTF-8\"?>@@@", |
| "@@@STEP_LOG_LINE@default.xml@<manifest>@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <!-- single-line comment -->@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <remote name=\"foo\" fetch=\"sso://foo\" review=\"sso://foo\" />@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <remote name=\"bar\" fetch=\"sso://bar\" review=\"sso://bar\" />@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <remote name=\"host\" fetch=\"..\" review=\"sso://host\" />@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <remote name=\"dotdot-prefix\" fetch=\"../prefix\" review=\"sso://host/prefix\" />@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <remote name=\"host-prefix\" fetch=\"sso://host/prefix\"@@@", |
| "@@@STEP_LOG_LINE@default.xml@ review=\"sso://host/prefix\" />@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <default remote=\"bar\" />@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <project name=\"a\" path=\"a1\" remote=\"foo\"@@@", |
| "@@@STEP_LOG_LINE@default.xml@ revision=\"1111111111111111111111111111111111111111\" upstream=\"main\"/>@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <project name=\"b\" path=\"b2\"@@@", |
| "@@@STEP_LOG_LINE@default.xml@ revision=\"2222222222222222222222222222222222222222\" upstream=\"main\"/>@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <!--@@@", |
| "@@@STEP_LOG_LINE@default.xml@ multi@@@", |
| "@@@STEP_LOG_LINE@default.xml@ line@@@", |
| "@@@STEP_LOG_LINE@default.xml@ comment@@@", |
| "@@@STEP_LOG_LINE@default.xml@ -->@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <project name=\"c\" path=\"c3\" revision=\"main\"/>@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <project name=\"d\" path=\"d4\"@@@", |
| "@@@STEP_LOG_LINE@default.xml@ revision=\"0000000000111111111122222222223333333333\"/>@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <project name=\"e5\" revision=\"refs/tags/e\"/>@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <project name=\"f\" path=\"f6\" remote=\"host\" revision=\"main\"/>@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <project name=\"g\" path=\"g7\" remote=\"dotdot-prefix\" revision=\"main\"/>@@@", |
| "@@@STEP_LOG_LINE@default.xml@ <project name=\"h\" path=\"h8\" remote=\"host-prefix\" revision=\"main\"/>@@@", |
| "@@@STEP_LOG_LINE@default.xml@</manifest>@@@", |
| "@@@STEP_LOG_END@default.xml@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "checkout d" |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/project" |
| ], |
| "infra_step": true, |
| "name": "checkout d.makedirs", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "init" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.git init", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "remote", |
| "add", |
| "origin", |
| "https://bar.googlesource.com/d" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.git remote", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "fetch.uriprotocols", |
| "https" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.set fetch.uriprotocols", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "checkout d.cache", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "", |
| "[CACHE]/git/.GUARD_FILE" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.cache.write guard file", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_END@.GUARD_FILE@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[CACHE]/git/bar.googlesource.com-d" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.cache.makedirs", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "init", |
| "--bare" |
| ], |
| "cwd": "[CACHE]/git/bar.googlesource.com-d", |
| "infra_step": true, |
| "name": "checkout d.cache.git init", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "remote.origin.url", |
| "https://bar.googlesource.com/d" |
| ], |
| "cwd": "[CACHE]/git/bar.googlesource.com-d", |
| "infra_step": true, |
| "name": "checkout d.cache.remote set-url", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "fetch.uriprotocols", |
| "https" |
| ], |
| "cwd": "[CACHE]/git/bar.googlesource.com-d", |
| "infra_step": true, |
| "name": "checkout d.cache.set fetch.uriprotocols", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "--replace-all", |
| "remote.origin.fetch", |
| "+refs/heads/*:refs/heads/*", |
| "\\+refs/heads/\\*:.*" |
| ], |
| "cwd": "[CACHE]/git/bar.googlesource.com-d", |
| "infra_step": true, |
| "name": "checkout d.cache.replace fetch configs", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "fetch", |
| "--prune", |
| "--tags", |
| "origin" |
| ], |
| "cwd": "[CACHE]/git/bar.googlesource.com-d", |
| "infra_step": true, |
| "name": "checkout d.cache.git fetch", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/project/.git/objects/info" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.cache.makedirs object/info", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[CACHE]/git/bar.googlesource.com-d/objects\n", |
| "[START_DIR]/project/.git/objects/info/alternates" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.cache.alternates", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_LINE@alternates@[CACHE]/git/bar.googlesource.com-d/objects@@@", |
| "@@@STEP_LOG_END@alternates@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "remove", |
| "[CACHE]/git/.GUARD_FILE" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.cache.remove guard file", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "fetch", |
| "--tags", |
| "origin", |
| "main", |
| "--recurse-submodules" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.git fetch", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "checkout", |
| "-f", |
| "FETCH_HEAD" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.git checkout", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "rev-parse", |
| "HEAD" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.git rev-parse", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "clean", |
| "-f", |
| "-d", |
| "-x" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.git clean", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "checkout d.submodule", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "sync" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.submodule.git submodule sync", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "update", |
| "--init", |
| "--recursive" |
| ], |
| "cwd": "[START_DIR]/project", |
| "infra_step": true, |
| "name": "checkout d.submodule.git submodule update", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "checkout d.git log", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "log", |
| "--oneline", |
| "-n", |
| "10" |
| ], |
| "cwd": "[START_DIR]/project", |
| "name": "checkout d.git log.[START_DIR]/project", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/snapshot" |
| ], |
| "infra_step": true, |
| "name": "checkout d.mkdir", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-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 d.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]/checkout", |
| "name": "checkout d.log", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-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 d.write git log", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_END@git.log@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "log", |
| "--max-count=1", |
| "--pretty=format:%H" |
| ], |
| "cwd": "[START_DIR]/project", |
| "name": "git log" |
| }, |
| { |
| "failure": { |
| "failure": {}, |
| "humanReason": "upstream not set and revision is not a branch, aborting" |
| }, |
| "name": "$result" |
| } |
| ] |