1[
2  {
3    "cmd": [
4      "python",
5      "-u",
6      "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.path.isdir(path):\n  if os.path.exists(path):\n    print \"%s exists but is not a dir\" % path\n    sys.exit(1)\n  os.makedirs(path, mode)\n",
7      "[CUSTOM_/_B_WORK]",
8      "511"
9    ],
10    "infra_step": true,
11    "name": "makedirs checkout_path",
12    "~followup_annotations": [
13      "@@@STEP_LOG_LINE@python.inline@@@@",
14      "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
15      "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
16      "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
17      "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
18      "@@@STEP_LOG_LINE@python.inline@  if os.path.exists(path):@@@",
19      "@@@STEP_LOG_LINE@python.inline@    print \"%s exists but is not a dir\" % path@@@",
20      "@@@STEP_LOG_LINE@python.inline@    sys.exit(1)@@@",
21      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(path, mode)@@@",
22      "@@@STEP_LOG_END@python.inline@@@"
23    ]
24  },
25  {
26    "cmd": [
27      "python",
28      "-u",
29      "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
30      "--spec",
31      "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]",
32      "--patch_root",
33      "skia",
34      "--revision_mapping_file",
35      "{\"skia\": \"got_revision\"}",
36      "--git-cache-dir",
37      "[CUSTOM_/_B_CACHE]",
38      "--output_json",
39      "/path/to/tmp/json",
40      "--revision",
41      "skia@abc123",
42      "--output_manifest"
43    ],
44    "cwd": "[CUSTOM_/_B_WORK]",
45    "env": {
46      "GIT_HTTP_LOW_SPEED_LIMIT": "1000",
47      "GIT_HTTP_LOW_SPEED_TIME": "300",
48      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
49    },
50    "infra_step": true,
51    "name": "bot_update",
52    "~followup_annotations": [
53      "@@@STEP_TEXT@Some step text@@@",
54      "@@@STEP_LOG_LINE@json.output@{@@@",
55      "@@@STEP_LOG_LINE@json.output@  \"did_run\": true, @@@",
56      "@@@STEP_LOG_LINE@json.output@  \"fixed_revisions\": {@@@",
57      "@@@STEP_LOG_LINE@json.output@    \"skia\": \"abc123\"@@@",
58      "@@@STEP_LOG_LINE@json.output@  }, @@@",
59      "@@@STEP_LOG_LINE@json.output@  \"manifest\": {@@@",
60      "@@@STEP_LOG_LINE@json.output@    \"skia\": {@@@",
61      "@@@STEP_LOG_LINE@json.output@      \"repository\": \"https://fake.org/skia.git\", @@@",
62      "@@@STEP_LOG_LINE@json.output@      \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
63      "@@@STEP_LOG_LINE@json.output@    }@@@",
64      "@@@STEP_LOG_LINE@json.output@  }, @@@",
65      "@@@STEP_LOG_LINE@json.output@  \"patch_failure\": false, @@@",
66      "@@@STEP_LOG_LINE@json.output@  \"patch_root\": \"skia\", @@@",
67      "@@@STEP_LOG_LINE@json.output@  \"properties\": {@@@",
68      "@@@STEP_LOG_LINE@json.output@    \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@",
69      "@@@STEP_LOG_LINE@json.output@    \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@",
70      "@@@STEP_LOG_LINE@json.output@  }, @@@",
71      "@@@STEP_LOG_LINE@json.output@  \"root\": \"skia\", @@@",
72      "@@@STEP_LOG_LINE@json.output@  \"step_text\": \"Some step text\"@@@",
73      "@@@STEP_LOG_LINE@json.output@}@@@",
74      "@@@STEP_LOG_END@json.output@@@",
75      "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
76      "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
77    ]
78  },
79  {
80    "cmd": [
81      "go",
82      "get",
83      "-u",
84      "-t",
85      "go.skia.org/infra/..."
86    ],
87    "env": {
88      "BUILDTYPE": "Release",
89      "CHROME_HEADLESS": "1",
90      "GOPATH": "[CUSTOM_/_B_WORK]/gopath",
91      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
92      "SKIA_OUT": "[START_DIR]/out"
93    },
94    "name": "update go pkgs",
95    "~followup_annotations": [
96      "step returned non-zero exit code: 1",
97      "@@@STEP_FAILURE@@@"
98    ]
99  },
100  {
101    "cmd": [
102      "go",
103      "get",
104      "-u",
105      "-t",
106      "go.skia.org/infra/..."
107    ],
108    "env": {
109      "BUILDTYPE": "Release",
110      "CHROME_HEADLESS": "1",
111      "GOPATH": "[CUSTOM_/_B_WORK]/gopath",
112      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
113      "SKIA_OUT": "[START_DIR]/out"
114    },
115    "name": "update go pkgs (attempt 2)",
116    "~followup_annotations": [
117      "step returned non-zero exit code: 1",
118      "@@@STEP_FAILURE@@@"
119    ]
120  },
121  {
122    "cmd": [
123      "go",
124      "get",
125      "-u",
126      "-t",
127      "go.skia.org/infra/..."
128    ],
129    "env": {
130      "BUILDTYPE": "Release",
131      "CHROME_HEADLESS": "1",
132      "GOPATH": "[CUSTOM_/_B_WORK]/gopath",
133      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
134      "SKIA_OUT": "[START_DIR]/out"
135    },
136    "name": "update go pkgs (attempt 3)",
137    "~followup_annotations": [
138      "step returned non-zero exit code: 1",
139      "@@@STEP_FAILURE@@@"
140    ]
141  },
142  {
143    "cmd": [
144      "go",
145      "get",
146      "-u",
147      "-t",
148      "go.skia.org/infra/..."
149    ],
150    "env": {
151      "BUILDTYPE": "Release",
152      "CHROME_HEADLESS": "1",
153      "GOPATH": "[CUSTOM_/_B_WORK]/gopath",
154      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
155      "SKIA_OUT": "[START_DIR]/out"
156    },
157    "name": "update go pkgs (attempt 4)",
158    "~followup_annotations": [
159      "step returned non-zero exit code: 1",
160      "@@@STEP_FAILURE@@@"
161    ]
162  },
163  {
164    "cmd": [
165      "go",
166      "get",
167      "-u",
168      "-t",
169      "go.skia.org/infra/..."
170    ],
171    "env": {
172      "BUILDTYPE": "Release",
173      "CHROME_HEADLESS": "1",
174      "GOPATH": "[CUSTOM_/_B_WORK]/gopath",
175      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
176      "SKIA_OUT": "[START_DIR]/out"
177    },
178    "name": "update go pkgs (attempt 5)",
179    "~followup_annotations": [
180      "step returned non-zero exit code: 1",
181      "@@@STEP_FAILURE@@@"
182    ]
183  },
184  {
185    "name": "$result",
186    "reason": "Step('update go pkgs (attempt 5)') failed with return_code 1",
187    "recipe_result": null,
188    "status_code": 1
189  }
190]