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",
10 "name": "makedirs tmp_dir",
11 "~followup_annotations": [
12 "@@@STEP_LOG_LINE@python.inline@@@@",
13 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
14 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
15 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
16 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
17 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
18 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
19 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
20 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
21 "@@@STEP_LOG_END@python.inline@@@"
30 "/sdcard/revenge_of_the_skiabot/resources"
32 "cwd": "[SLAVE_BUILD]/skia",
33 "name": "mkdir /sdcard/revenge_of_the_skiabot/resources"
39 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
40 "[SLAVE_BUILD]/skia/infra/bots/assets/skp/VERSION",
43 "name": "Get downloaded SKP VERSION"
49 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
51 "[SLAVE_BUILD]/tmp/SKP_VERSION"
53 "name": "write SKP_VERSION"
60 "/sdcard/revenge_of_the_skiabot/SKP_VERSION"
62 "cwd": "[SLAVE_BUILD]/skia",
63 "name": "read /sdcard/revenge_of_the_skiabot/SKP_VERSION",
64 "stdout": "/path/to/tmp/"
72 "/sdcard/revenge_of_the_skiabot/SKP_VERSION"
74 "cwd": "[SLAVE_BUILD]/skia",
75 "name": "rm /sdcard/revenge_of_the_skiabot/SKP_VERSION"
83 "/sdcard/revenge_of_the_skiabot/skps"
85 "cwd": "[SLAVE_BUILD]/skia",
86 "name": "rm /sdcard/revenge_of_the_skiabot/skps"
94 "/sdcard/revenge_of_the_skiabot/skps"
96 "cwd": "[SLAVE_BUILD]/skia",
97 "name": "mkdir /sdcard/revenge_of_the_skiabot/skps"
103 "\nimport os\nimport subprocess\nimport sys\nhost = sys.argv[1]\ndevice = sys.argv[2]\nfor d, _, fs in os.walk(host):\n p = os.path.relpath(d, host)\n if p != '.' and p.startswith('.'):\n continue\n for f in fs:\n print os.path.join(p,f)\n subprocess.check_call(['adb', 'push',\n os.path.realpath(os.path.join(host, p, f)),\n os.path.join(device, p, f)])\n",
105 "/sdcard/revenge_of_the_skiabot/skps"
107 "cwd": "[SLAVE_BUILD]/skia",
108 "name": "push [SLAVE_BUILD]/skp/* /sdcard/revenge_of_the_skiabot/skps",
109 "~followup_annotations": [
110 "@@@STEP_LOG_LINE@python.inline@@@@",
111 "@@@STEP_LOG_LINE@python.inline@import os@@@",
112 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@",
113 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
114 "@@@STEP_LOG_LINE@python.inline@host = sys.argv[1]@@@",
115 "@@@STEP_LOG_LINE@python.inline@device = sys.argv[2]@@@",
116 "@@@STEP_LOG_LINE@python.inline@for d, _, fs in os.walk(host):@@@",
117 "@@@STEP_LOG_LINE@python.inline@ p = os.path.relpath(d, host)@@@",
118 "@@@STEP_LOG_LINE@python.inline@ if p != '.' and p.startswith('.'):@@@",
119 "@@@STEP_LOG_LINE@python.inline@ continue@@@",
120 "@@@STEP_LOG_LINE@python.inline@ for f in fs:@@@",
121 "@@@STEP_LOG_LINE@python.inline@ print os.path.join(p,f)@@@",
122 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call(['adb', 'push',@@@",
123 "@@@STEP_LOG_LINE@python.inline@ os.path.realpath(os.path.join(host, p, f)),@@@",
124 "@@@STEP_LOG_LINE@python.inline@ os.path.join(device, p, f)])@@@",
125 "@@@STEP_LOG_END@python.inline@@@"
132 "[SLAVE_BUILD]/tmp/SKP_VERSION",
133 "/sdcard/revenge_of_the_skiabot/SKP_VERSION"
135 "cwd": "[SLAVE_BUILD]/skia",
136 "name": "push [SLAVE_BUILD]/tmp/SKP_VERSION /sdcard/revenge_of_the_skiabot/SKP_VERSION"
142 "[SLAVE_BUILD]/out/Release/skpbench",
145 "cwd": "[SLAVE_BUILD]/skia",
146 "name": "push skpbench"
152 "[SLAVE_BUILD]/skia/tools/skpbench/skpbench.py",
153 "/data/local/tmp/skpbench",
154 "/sdcard/revenge_of_the_skiabot/skps",
157 "[CUSTOM_[SWARM_OUT_DIR]]/table",
167 "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n"
169 "name": "get swarming bot id",
170 "stdout": "/path/to/tmp/",
171 "~followup_annotations": [
172 "@@@STEP_LOG_LINE@python.inline@import os@@@",
173 "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@",
174 "@@@STEP_LOG_END@python.inline@@@"
181 "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
183 "name": "get swarming task id",
184 "stdout": "/path/to/tmp/",
185 "~followup_annotations": [
186 "@@@STEP_LOG_LINE@python.inline@import os@@@",
187 "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
188 "@@@STEP_LOG_END@python.inline@@@"
195 "\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",
196 "[CUSTOM_[SWARM_OUT_DIR]]/perfdata/Perf-Android-Clang-PixelC-GPU-TegraX1-arm64-Release-GN_Android_Skpbench/data",
199 "name": "makedirs perf_dir",
200 "~followup_annotations": [
201 "@@@STEP_LOG_LINE@python.inline@@@@",
202 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
203 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
204 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
205 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
206 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
207 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
208 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
209 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
210 "@@@STEP_LOG_END@python.inline@@@"
217 "[SLAVE_BUILD]/skia/tools/skpbench/skiaperf.py",
218 "[CUSTOM_[SWARM_OUT_DIR]]/table",
231 "[CUSTOM_[SWARM_OUT_DIR]]/perfdata/Perf-Android-Clang-PixelC-GPU-TegraX1-arm64-Release-GN_Android_Skpbench/data/skpbench_abc123_1337000001.json",
242 "GN_Android_Skpbench",
248 "name": "Parse skpbench output into Perf json"
254 "\nimport os\nimport subprocess\nimport sys\nout = sys.argv[1]\nlog = subprocess.check_output(['adb', 'logcat', '-d'])\nfor line in log.split('\\n'):\n tokens = line.split()\n if len(tokens) == 11 and tokens[-7] == 'F' and tokens[-3] == 'pc':\n addr, path = tokens[-2:]\n local = os.path.join(out, os.path.basename(path))\n if os.path.exists(local):\n sym = subprocess.check_output(['addr2line', '-Cfpe', local, addr])\n line = line.replace(addr, addr + ' ' + sym.strip())\n print line\n",
255 "[SLAVE_BUILD]/out/Release"
258 "~followup_annotations": [
259 "@@@STEP_LOG_LINE@python.inline@@@@",
260 "@@@STEP_LOG_LINE@python.inline@import os@@@",
261 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@",
262 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
263 "@@@STEP_LOG_LINE@python.inline@out = sys.argv[1]@@@",
264 "@@@STEP_LOG_LINE@python.inline@log = subprocess.check_output(['adb', 'logcat', '-d'])@@@",
265 "@@@STEP_LOG_LINE@python.inline@for line in log.split('\\n'):@@@",
266 "@@@STEP_LOG_LINE@python.inline@ tokens = line.split()@@@",
267 "@@@STEP_LOG_LINE@python.inline@ if len(tokens) == 11 and tokens[-7] == 'F' and tokens[-3] == 'pc':@@@",
268 "@@@STEP_LOG_LINE@python.inline@ addr, path = tokens[-2:]@@@",
269 "@@@STEP_LOG_LINE@python.inline@ local = os.path.join(out, os.path.basename(path))@@@",
270 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(local):@@@",
271 "@@@STEP_LOG_LINE@python.inline@ sym = subprocess.check_output(['addr2line', '-Cfpe', local, addr])@@@",
272 "@@@STEP_LOG_LINE@python.inline@ line = line.replace(addr, addr + ' ' + sym.strip())@@@",
273 "@@@STEP_LOG_LINE@python.inline@ print line@@@",
274 "@@@STEP_LOG_END@python.inline@@@"
282 "cwd": "[SLAVE_BUILD]/skia",
283 "name": "kill adb server"
287 "recipe_result": null,