1[
2  {
3    "cmd": [
4      "false"
5    ],
6    "env": {
7      "CHROME_HEADLESS": "1",
8      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
9    },
10    "name": "fail",
11    "~followup_annotations": [
12      "@@@STEP_FAILURE@@@"
13    ]
14  },
15  {
16    "cmd": [
17      "false"
18    ],
19    "env": {
20      "CHROME_HEADLESS": "1",
21      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
22    },
23    "name": "fail again",
24    "~followup_annotations": [
25      "@@@STEP_FAILURE@@@"
26    ]
27  },
28  {
29    "cmd": [
30      "echo",
31      "do the thing"
32    ],
33    "env": {
34      "CHROME_HEADLESS": "1",
35      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
36    },
37    "name": "do a thing"
38  },
39  {
40    "cmd": [
41      "echo",
42      "0"
43    ],
44    "env": {
45      "CHROME_HEADLESS": "1",
46      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
47    },
48    "name": "run 0"
49  },
50  {
51    "cmd": [
52      "vpython",
53      "-u",
54      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
55      "--json-output",
56      "/path/to/tmp/json",
57      "copy",
58      "myfile.txt",
59      "/path/to/tmp/"
60    ],
61    "infra_step": true,
62    "name": "read myfile.txt",
63    "~followup_annotations": [
64      "@@@STEP_LOG_END@myfile.txt@@@"
65    ]
66  },
67  {
68    "cmd": [
69      "vpython",
70      "-u",
71      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
72      "--json-output",
73      "/path/to/tmp/json",
74      "copy",
75      "contents",
76      "myfile.txt"
77    ],
78    "infra_step": true,
79    "name": "write myfile.txt",
80    "~followup_annotations": [
81      "@@@STEP_LOG_LINE@myfile.txt@contents@@@",
82      "@@@STEP_LOG_END@myfile.txt@@@"
83    ]
84  },
85  {
86    "cmd": [
87      "vpython",
88      "-u",
89      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
90      "--json-output",
91      "/path/to/tmp/json",
92      "rmtree",
93      "mydir"
94    ],
95    "infra_step": true,
96    "name": "rmtree mydir"
97  },
98  {
99    "cmd": [
100      "vpython",
101      "-u",
102      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
103      "--json-output",
104      "/path/to/tmp/json",
105      "copy",
106      "[START_DIR]\\cache\\work\\skia\\infra\\bots\\assets\\my_asset\\VERSION",
107      "/path/to/tmp/"
108    ],
109    "infra_step": true,
110    "name": "Get my_asset VERSION",
111    "~followup_annotations": [
112      "@@@STEP_LOG_LINE@VERSION@42@@@",
113      "@@@STEP_LOG_END@VERSION@@@"
114    ]
115  },
116  {
117    "cmd": [
118      "env"
119    ],
120    "env": {
121      "CHROME_HEADLESS": "1",
122      "PATH": "mydir:<PATH>;RECIPE_REPO[depot_tools]"
123    },
124    "name": "env"
125  },
126  {
127    "cmd": [
128      "false"
129    ],
130    "env": {
131      "CHROME_HEADLESS": "1",
132      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
133    },
134    "name": "retry fail",
135    "~followup_annotations": [
136      "@@@STEP_FAILURE@@@"
137    ]
138  },
139  {
140    "cmd": [
141      "echo",
142      "between_attempt"
143    ],
144    "env": {
145      "CHROME_HEADLESS": "1",
146      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
147    },
148    "name": "between_attempts #1"
149  },
150  {
151    "cmd": [
152      "false"
153    ],
154    "env": {
155      "CHROME_HEADLESS": "1",
156      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
157    },
158    "name": "retry fail (attempt 2)",
159    "~followup_annotations": [
160      "@@@STEP_FAILURE@@@"
161    ]
162  },
163  {
164    "cmd": [
165      "echo",
166      "between_attempt"
167    ],
168    "env": {
169      "CHROME_HEADLESS": "1",
170      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
171    },
172    "name": "between_attempts #2"
173  },
174  {
175    "cmd": [
176      "false"
177    ],
178    "env": {
179      "CHROME_HEADLESS": "1",
180      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
181    },
182    "name": "retry fail (attempt 3)",
183    "~followup_annotations": [
184      "@@@STEP_FAILURE@@@"
185    ]
186  },
187  {
188    "cmd": [
189      "echo",
190      "between_attempt"
191    ],
192    "env": {
193      "CHROME_HEADLESS": "1",
194      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
195    },
196    "name": "between_attempts #3"
197  },
198  {
199    "cmd": [
200      "false"
201    ],
202    "env": {
203      "CHROME_HEADLESS": "1",
204      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
205    },
206    "name": "retry fail (attempt 4)",
207    "~followup_annotations": [
208      "@@@STEP_FAILURE@@@"
209    ]
210  },
211  {
212    "cmd": [
213      "echo",
214      "between_attempt"
215    ],
216    "env": {
217      "CHROME_HEADLESS": "1",
218      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
219    },
220    "name": "between_attempts #4"
221  },
222  {
223    "cmd": [
224      "false"
225    ],
226    "env": {
227      "CHROME_HEADLESS": "1",
228      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
229    },
230    "name": "retry fail (attempt 5)",
231    "~followup_annotations": [
232      "@@@STEP_FAILURE@@@"
233    ]
234  },
235  {
236    "cmd": [
237      "false"
238    ],
239    "env": {
240      "CHROME_HEADLESS": "1",
241      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
242    },
243    "name": "retry success",
244    "~followup_annotations": [
245      "@@@STEP_FAILURE@@@"
246    ]
247  },
248  {
249    "cmd": [
250      "echo",
251      "between_attempt"
252    ],
253    "env": {
254      "CHROME_HEADLESS": "1",
255      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
256    },
257    "name": "between_attempts #1 (2)"
258  },
259  {
260    "cmd": [
261      "false"
262    ],
263    "env": {
264      "CHROME_HEADLESS": "1",
265      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
266    },
267    "name": "retry success (attempt 2)",
268    "~followup_annotations": [
269      "@@@STEP_FAILURE@@@"
270    ]
271  },
272  {
273    "cmd": [
274      "echo",
275      "between_attempt"
276    ],
277    "env": {
278      "CHROME_HEADLESS": "1",
279      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
280    },
281    "name": "between_attempts #2 (2)"
282  },
283  {
284    "cmd": [
285      "false"
286    ],
287    "env": {
288      "CHROME_HEADLESS": "1",
289      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
290    },
291    "name": "retry success (attempt 3)"
292  },
293  {
294    "failure": {
295      "failure": {},
296      "humanReason": "Failed build steps: fail, fail again, retry fail, retry fail (attempt 2), retry fail (attempt 3), retry fail (attempt 4), retry fail (attempt 5)"
297    },
298    "name": "$result"
299  }
300]