OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "cmd": [ | 3 "cmd": [ |
4 "python", | 4 "python", |
5 "-u", | 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", | 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]", | 7 "[CUSTOM_/_B_WORK]", |
8 "511" | 8 "511" |
9 ], | 9 ], |
10 "name": "makedirs checkout_path", | 10 "name": "makedirs checkout_path", |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 "@@@STEP_LOG_LINE@json.output@ \"upload_dm_results\": true, @@@", | 126 "@@@STEP_LOG_LINE@json.output@ \"upload_dm_results\": true, @@@", |
127 "@@@STEP_LOG_LINE@json.output@ \"upload_perf_results\": false@@@", | 127 "@@@STEP_LOG_LINE@json.output@ \"upload_perf_results\": false@@@", |
128 "@@@STEP_LOG_LINE@json.output@}@@@", | 128 "@@@STEP_LOG_LINE@json.output@}@@@", |
129 "@@@STEP_LOG_END@json.output@@@" | 129 "@@@STEP_LOG_END@json.output@@@" |
130 ] | 130 ] |
131 }, | 131 }, |
132 { | 132 { |
133 "cmd": [ | 133 "cmd": [ |
134 "python", | 134 "python", |
135 "-u", | 135 "-u", |
| 136 "\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", |
| 137 "[SLAVE_BUILD]/tmp", |
| 138 "511" |
| 139 ], |
| 140 "name": "makedirs tmp_dir", |
| 141 "~followup_annotations": [ |
| 142 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 143 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 144 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 145 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 146 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 147 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 148 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
| 149 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 150 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 151 "@@@STEP_LOG_END@python.inline@@@" |
| 152 ] |
| 153 }, |
| 154 { |
| 155 "cmd": [ |
| 156 "python", |
| 157 "-u", |
136 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", | 158 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", |
137 "runhooks" | 159 "runhooks" |
138 ], | 160 ], |
139 "cwd": "[CUSTOM_/_B_WORK]/skia", | 161 "cwd": "[CUSTOM_/_B_WORK]/skia", |
140 "env": { | 162 "env": { |
141 "CPPFLAGS": "-DSK_ALLOW_CROSSPROCESS_PICTUREIMAGEFILTERS=1", | 163 "CPPFLAGS": "-DSK_ALLOW_CROSSPROCESS_PICTUREIMAGEFILTERS=1", |
142 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" | 164 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" |
143 }, | 165 }, |
144 "name": "gclient runhooks (2)" | 166 "name": "gclient runhooks (2)" |
145 }, | 167 }, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 "@@@STEP_LOG_LINE@python.inline@@@@", | 210 "@@@STEP_LOG_LINE@python.inline@@@@", |
189 "@@@STEP_LOG_LINE@python.inline@with open(dest_path, 'w') as f:@@@", | 211 "@@@STEP_LOG_LINE@python.inline@with open(dest_path, 'w') as f:@@@", |
190 "@@@STEP_LOG_LINE@python.inline@ f.write(contents)@@@", | 212 "@@@STEP_LOG_LINE@python.inline@ f.write(contents)@@@", |
191 "@@@STEP_LOG_END@python.inline@@@" | 213 "@@@STEP_LOG_END@python.inline@@@" |
192 ] | 214 ] |
193 }, | 215 }, |
194 { | 216 { |
195 "cmd": [ | 217 "cmd": [ |
196 "python", | 218 "python", |
197 "-u", | 219 "-u", |
198 "\nimport os\nimport urllib2\n\nTOKEN_FILE = '.depot_tools_oauth2_tokens'\
nTOKEN_FILE_BACKUP = '.depot_tools_oauth2_tokens.old'\nTOKEN_URL = 'http://metad
ata/computeMetadata/v1/project/attributes/depot_tools_auth_update_skps'\n\nreq =
urllib2.Request(TOKEN_URL, headers={'Metadata-Flavor': 'Google'})\ncontents = u
rllib2.urlopen(req).read()\n\nhome = os.path.expanduser('~')\ntoken_file = os.pa
th.join(home, TOKEN_FILE)\nif os.path.isfile(token_file):\n os.rename(token_fil
e, os.path.join(home, TOKEN_FILE_BACKUP))\n\nwith open(token_file, 'w') as f:\n
f.write(contents)\n" | 220 "\nimport os, sys\nfrom common import chromium_utils # Error? See https://
crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD
irectory(sys.argv[1])\n", |
| 221 "[SLAVE_BUILD]/skp_output" |
199 ], | 222 ], |
200 "name": "depot-tools-auth login", | 223 "name": "rmtree skp_output", |
201 "~followup_annotations": [ | 224 "~followup_annotations": [ |
202 "@@@STEP_LOG_LINE@python.inline@@@@", | 225 "@@@STEP_LOG_LINE@python.inline@@@@", |
203 "@@@STEP_LOG_LINE@python.inline@import os@@@", | 226 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", |
204 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@", | 227 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", |
205 "@@@STEP_LOG_LINE@python.inline@@@@", | 228 "@@@STEP_LOG_LINE@python.inline@@@@", |
206 "@@@STEP_LOG_LINE@python.inline@TOKEN_FILE = '.depot_tools_oauth2_tokens'@
@@", | |
207 "@@@STEP_LOG_LINE@python.inline@TOKEN_FILE_BACKUP = '.depot_tools_oauth2_t
okens.old'@@@", | |
208 "@@@STEP_LOG_LINE@python.inline@TOKEN_URL = 'http://metadata/computeMetada
ta/v1/project/attributes/depot_tools_auth_update_skps'@@@", | |
209 "@@@STEP_LOG_LINE@python.inline@@@@", | 229 "@@@STEP_LOG_LINE@python.inline@@@@", |
210 "@@@STEP_LOG_LINE@python.inline@req = urllib2.Request(TOKEN_URL, headers={
'Metadata-Flavor': 'Google'})@@@", | 230 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", |
211 "@@@STEP_LOG_LINE@python.inline@contents = urllib2.urlopen(req).read()@@@"
, | 231 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", |
212 "@@@STEP_LOG_LINE@python.inline@@@@", | |
213 "@@@STEP_LOG_LINE@python.inline@home = os.path.expanduser('~')@@@", | |
214 "@@@STEP_LOG_LINE@python.inline@token_file = os.path.join(home, TOKEN_FILE
)@@@", | |
215 "@@@STEP_LOG_LINE@python.inline@if os.path.isfile(token_file):@@@", | |
216 "@@@STEP_LOG_LINE@python.inline@ os.rename(token_file, os.path.join(home,
TOKEN_FILE_BACKUP))@@@", | |
217 "@@@STEP_LOG_LINE@python.inline@@@@", | |
218 "@@@STEP_LOG_LINE@python.inline@with open(token_file, 'w') as f:@@@", | |
219 "@@@STEP_LOG_LINE@python.inline@ f.write(contents)@@@", | |
220 "@@@STEP_LOG_END@python.inline@@@" | 232 "@@@STEP_LOG_END@python.inline@@@" |
221 ] | 233 ] |
222 }, | 234 }, |
223 { | 235 { |
224 "cmd": [ | 236 "cmd": [ |
225 "python", | 237 "python", |
226 "[BUILD]/scripts/slave/skia/recreate_skps.py", | 238 "-u", |
| 239 "\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", |
| 240 "[SLAVE_BUILD]/skp_output", |
| 241 "511" |
| 242 ], |
| 243 "name": "makedirs skp_output", |
| 244 "~followup_annotations": [ |
| 245 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 246 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 247 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 248 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 249 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 250 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 251 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
| 252 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 253 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 254 "@@@STEP_LOG_END@python.inline@@@" |
| 255 ] |
| 256 }, |
| 257 { |
| 258 "cmd": [ |
| 259 "python", |
| 260 "[CUSTOM_/_B_WORK]/skia/infra/bots/assets/skp/create.py", |
| 261 "--chrome_src_path", |
227 "[CUSTOM_/_B_WORK]/src", | 262 "[CUSTOM_/_B_WORK]/src", |
| 263 "--browser_executable", |
228 "[CUSTOM_/_B_WORK]/src/out/Release/chrome", | 264 "[CUSTOM_/_B_WORK]/src/out/Release/chrome", |
229 "--dry-run" | 265 "--target_dir", |
| 266 "[SLAVE_BUILD]/skp_output" |
230 ], | 267 ], |
231 "cwd": "[CUSTOM_/_B_WORK]/skia", | 268 "cwd": "[CUSTOM_/_B_WORK]/skia", |
232 "env": { | 269 "env": { |
233 "AWS_CREDENTIAL_FILE": "[SLAVE_BUILD]/tmp/.boto", | 270 "AWS_CREDENTIAL_FILE": "[SLAVE_BUILD]/tmp/.boto", |
234 "BOTO_CONFIG": "[SLAVE_BUILD]/tmp/.boto", | 271 "BOTO_CONFIG": "[SLAVE_BUILD]/tmp/.boto", |
235 "CHROME_HEADLESS": "1", | 272 "CHROME_HEADLESS": "1", |
236 "PATH": "[DEPOT_TOOLS]:%(PATH)s" | 273 "PATH": "[DEPOT_TOOLS]:%(PATH)s" |
237 }, | 274 }, |
238 "name": "Recreate SKPs" | 275 "name": "Recreate SKPs" |
239 }, | 276 }, |
240 { | 277 { |
241 "cmd": [ | |
242 "python", | |
243 "-u", | |
244 "\nimport os\n\n\nTOKEN_FILE = '.depot_tools_oauth2_tokens'\nTOKEN_FILE_BA
CKUP = '.depot_tools_oauth2_tokens.old'\n\n\nhome = os.path.expanduser('~')\ntok
en_file = os.path.join(home, TOKEN_FILE)\nif os.path.isfile(token_file):\n os.r
emove(token_file)\n\nbackup_file = os.path.join(home, TOKEN_FILE_BACKUP)\nif os.
path.isfile(backup_file):\n os.rename(backup_file, token_file)\n" | |
245 ], | |
246 "name": "depot-tools-auth logout", | |
247 "~followup_annotations": [ | |
248 "@@@STEP_LOG_LINE@python.inline@@@@", | |
249 "@@@STEP_LOG_LINE@python.inline@import os@@@", | |
250 "@@@STEP_LOG_LINE@python.inline@@@@", | |
251 "@@@STEP_LOG_LINE@python.inline@@@@", | |
252 "@@@STEP_LOG_LINE@python.inline@TOKEN_FILE = '.depot_tools_oauth2_tokens'@
@@", | |
253 "@@@STEP_LOG_LINE@python.inline@TOKEN_FILE_BACKUP = '.depot_tools_oauth2_t
okens.old'@@@", | |
254 "@@@STEP_LOG_LINE@python.inline@@@@", | |
255 "@@@STEP_LOG_LINE@python.inline@@@@", | |
256 "@@@STEP_LOG_LINE@python.inline@home = os.path.expanduser('~')@@@", | |
257 "@@@STEP_LOG_LINE@python.inline@token_file = os.path.join(home, TOKEN_FILE
)@@@", | |
258 "@@@STEP_LOG_LINE@python.inline@if os.path.isfile(token_file):@@@", | |
259 "@@@STEP_LOG_LINE@python.inline@ os.remove(token_file)@@@", | |
260 "@@@STEP_LOG_LINE@python.inline@@@@", | |
261 "@@@STEP_LOG_LINE@python.inline@backup_file = os.path.join(home, TOKEN_FIL
E_BACKUP)@@@", | |
262 "@@@STEP_LOG_LINE@python.inline@if os.path.isfile(backup_file):@@@", | |
263 "@@@STEP_LOG_LINE@python.inline@ os.rename(backup_file, token_file)@@@", | |
264 "@@@STEP_LOG_END@python.inline@@@" | |
265 ] | |
266 }, | |
267 { | |
268 "name": "$result", | 278 "name": "$result", |
269 "recipe_result": null, | 279 "recipe_result": null, |
270 "status_code": 0 | 280 "status_code": 0 |
271 } | 281 } |
272 ] | 282 ] |
OLD | NEW |