1[
2  {
3    "cmd": [
4      "vpython",
5      "-u",
6      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
7      "--json-output",
8      "/path/to/tmp/json",
9      "ensure-directory",
10      "--mode",
11      "0777",
12      "[START_DIR]\\tmp"
13    ],
14    "infra_step": true,
15    "name": "makedirs tmp_dir"
16  },
17  {
18    "cmd": [
19      "vpython",
20      "-u",
21      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
22      "--json-output",
23      "/path/to/tmp/json",
24      "copy",
25      "[START_DIR]\\skia\\infra\\bots\\assets\\skp\\VERSION",
26      "/path/to/tmp/"
27    ],
28    "infra_step": true,
29    "name": "Get skp VERSION",
30    "~followup_annotations": [
31      "@@@STEP_LOG_LINE@VERSION@42@@@",
32      "@@@STEP_LOG_END@VERSION@@@"
33    ]
34  },
35  {
36    "cmd": [
37      "vpython",
38      "-u",
39      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
40      "--json-output",
41      "/path/to/tmp/json",
42      "copy",
43      "42",
44      "[START_DIR]\\tmp\\SKP_VERSION"
45    ],
46    "infra_step": true,
47    "name": "write SKP_VERSION",
48    "~followup_annotations": [
49      "@@@STEP_LOG_LINE@SKP_VERSION@42@@@",
50      "@@@STEP_LOG_END@SKP_VERSION@@@"
51    ]
52  },
53  {
54    "cmd": [
55      "vpython",
56      "-u",
57      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
58      "--json-output",
59      "/path/to/tmp/json",
60      "copy",
61      "[START_DIR]\\skia\\infra\\bots\\assets\\svg\\VERSION",
62      "/path/to/tmp/"
63    ],
64    "infra_step": true,
65    "name": "Get svg VERSION",
66    "~followup_annotations": [
67      "@@@STEP_LOG_LINE@VERSION@42@@@",
68      "@@@STEP_LOG_END@VERSION@@@"
69    ]
70  },
71  {
72    "cmd": [
73      "vpython",
74      "-u",
75      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
76      "--json-output",
77      "/path/to/tmp/json",
78      "copy",
79      "42",
80      "[START_DIR]\\tmp\\SVG_VERSION"
81    ],
82    "infra_step": true,
83    "name": "write SVG_VERSION",
84    "~followup_annotations": [
85      "@@@STEP_LOG_LINE@SVG_VERSION@42@@@",
86      "@@@STEP_LOG_END@SVG_VERSION@@@"
87    ]
88  },
89  {
90    "cmd": [
91      "vpython",
92      "-u",
93      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
94      "--json-output",
95      "/path/to/tmp/json",
96      "rmtree",
97      "[START_DIR]\\[SWARM_OUT_DIR]"
98    ],
99    "infra_step": true,
100    "name": "rmtree [SWARM_OUT_DIR]"
101  },
102  {
103    "cmd": [
104      "vpython",
105      "-u",
106      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
107      "--json-output",
108      "/path/to/tmp/json",
109      "ensure-directory",
110      "--mode",
111      "0777",
112      "[START_DIR]\\[SWARM_OUT_DIR]"
113    ],
114    "infra_step": true,
115    "name": "makedirs [SWARM_OUT_DIR]"
116  },
117  {
118    "cmd": [
119      "python",
120      "-u",
121      "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n"
122    ],
123    "name": "get swarming bot id",
124    "~followup_annotations": [
125      "@@@STEP_LOG_LINE@python.inline@import os@@@",
126      "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@",
127      "@@@STEP_LOG_END@python.inline@@@"
128    ]
129  },
130  {
131    "cmd": [
132      "python",
133      "-u",
134      "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
135    ],
136    "name": "get swarming task id",
137    "~followup_annotations": [
138      "@@@STEP_LOG_LINE@python.inline@import os@@@",
139      "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
140      "@@@STEP_LOG_END@python.inline@@@"
141    ]
142  },
143  {
144    "cmd": [
145      "powershell",
146      "-ExecutionPolicy",
147      "Unrestricted",
148      "-File",
149      "RECIPE_MODULE[skia::flavor]\\resources\\win_run_and_check_log.ps1",
150      "[START_DIR]\\build\\nanobench",
151      "--example",
152      "--flags",
153      "--properties",
154      "bot",
155      "skia-bot-123",
156      "key1",
157      "value1",
158      "task",
159      "123456",
160      "-i",
161      "[START_DIR]\\skia\\resources",
162      "--skps",
163      "[START_DIR]\\skp",
164      "--svgs",
165      "[START_DIR]\\svg",
166      "--outResultsFile",
167      "[START_DIR]\\[SWARM_OUT_DIR]\\nanobench_abc123_1337000001.json"
168    ],
169    "env": {
170      "CHROME_HEADLESS": "1",
171      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
172    },
173    "name": "nanobench"
174  },
175  {
176    "cmd": [
177      "vpython",
178      "-u",
179      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
180      "--json-output",
181      "/path/to/tmp/json",
182      "ensure-directory",
183      "--mode",
184      "0777",
185      "[START_DIR]\\[SWARM_OUT_DIR]"
186    ],
187    "infra_step": true,
188    "name": "makedirs perf_dir"
189  },
190  {
191    "name": "$result"
192  }
193]