| [ |
| { |
| "cmd": [], |
| "name": "a1" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-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": "a1.read manifest", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@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@ <project name=\"project\" path=\"project\" remote=\"host-prefix\" revision=\"main\"/>@@@", |
| "@@@STEP_LOG_LINE@default.xml@</manifest>@@@", |
| "@@@STEP_LOG_END@default.xml@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "ls-remote", |
| "--heads", |
| "https://foo.googlesource.com/a", |
| "main" |
| ], |
| "name": "a1.git ls-remote", |
| "timeout": 600.0, |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@stdout@h3ll0\trefs/heads/main@@@", |
| "@@@STEP_LOG_END@stdout@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "a1.ensure infra/tools/luci/gitiles/${platform}", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "a1.ensure infra/tools/luci/gitiles/${platform}.get packages", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "RECIPE_MODULE[fuchsia::gitiles]/resources/cipd.ensure", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "a1.ensure infra/tools/luci/gitiles/${platform}.get packages.read ensure file", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@3@@@", |
| "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gitiles/${platform} version:pinned-version@@@", |
| "@@@STEP_LOG_END@cipd.ensure@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "a1.ensure infra/tools/luci/gitiles/${platform}.install infra/tools/luci/gitiles", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0o777", |
| "[START_DIR]/cipd_tool/infra/tools/luci/gitiles/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07" |
| ], |
| "infra_step": true, |
| "name": "a1.ensure infra/tools/luci/gitiles/${platform}.install infra/tools/luci/gitiles.ensure package directory", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@3@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd_tool/infra/tools/luci/gitiles/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07", |
| "-ensure-file", |
| "infra/tools/luci/gitiles/${platform} version:pinned-version", |
| "-max-threads", |
| "0", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "a1.ensure infra/tools/luci/gitiles/${platform}.install infra/tools/luci/gitiles.ensure_installed", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@3@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-version:pinned-v\",@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/gitiles/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/gitiles/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gitiles", |
| "log", |
| "-json-output", |
| "/path/to/tmp/json", |
| "https://foo.googlesource.com/a", |
| "1111111111111111111111111111111111111111..h3ll0" |
| ], |
| "infra_step": true, |
| "name": "a1.log a1", |
| "timeout": 300.0, |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@json.output@[]@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "a1.detected backwards roll", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_TEXT@Detected backwards roll: expected 1111111 to precede h3ll0 in git history@@@" |
| ] |
| }, |
| { |
| "name": "$result" |
| } |
| ] |