| 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", |
| 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" |
| 222 ], |
| 223 "name": "rmtree skp_output", |
| 224 "~followup_annotations": [ |
| 225 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 226 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", |
| 227 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", |
| 228 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 229 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 230 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", |
| 231 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", |
| 232 "@@@STEP_LOG_END@python.inline@@@" |
| 233 ] |
| 234 }, |
| 235 { |
| 236 "cmd": [ |
| 237 "python", |
| 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", |
| 262 "[CUSTOM_/_B_WORK]/src", |
| 263 "--browser_executable", |
| 264 "[CUSTOM_/_B_WORK]/src/out/Release/chrome", |
| 265 "--target_dir", |
| 266 "[SLAVE_BUILD]/skp_output", |
| 267 "--upload_to_partner_bucket" |
| 268 ], |
| 269 "cwd": "[CUSTOM_/_B_WORK]/skia", |
| 270 "env": { |
| 271 "AWS_CREDENTIAL_FILE": "[SLAVE_BUILD]/tmp/.boto", |
| 272 "BOTO_CONFIG": "[SLAVE_BUILD]/tmp/.boto", |
| 273 "CHROME_HEADLESS": "1", |
| 274 "PATH": "[DEPOT_TOOLS]:%(PATH)s" |
| 275 }, |
| 276 "name": "Recreate SKPs" |
| 277 }, |
| 278 { |
| 279 "cmd": [ |
| 280 "python", |
| 281 "-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" | 282 "\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" |
| 199 ], | 283 ], |
| 200 "name": "depot-tools-auth login", | 284 "name": "depot-tools-auth login", |
| 201 "~followup_annotations": [ | 285 "~followup_annotations": [ |
| 202 "@@@STEP_LOG_LINE@python.inline@@@@", | 286 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 203 "@@@STEP_LOG_LINE@python.inline@import os@@@", | 287 "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| 204 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@", | 288 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@", |
| 205 "@@@STEP_LOG_LINE@python.inline@@@@", | 289 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 206 "@@@STEP_LOG_LINE@python.inline@TOKEN_FILE = '.depot_tools_oauth2_tokens'@
@@", | 290 "@@@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'@@@", | 291 "@@@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'@@@", | 292 "@@@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@@@@", | 293 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 210 "@@@STEP_LOG_LINE@python.inline@req = urllib2.Request(TOKEN_URL, headers={
'Metadata-Flavor': 'Google'})@@@", | 294 "@@@STEP_LOG_LINE@python.inline@req = urllib2.Request(TOKEN_URL, headers={
'Metadata-Flavor': 'Google'})@@@", |
| 211 "@@@STEP_LOG_LINE@python.inline@contents = urllib2.urlopen(req).read()@@@"
, | 295 "@@@STEP_LOG_LINE@python.inline@contents = urllib2.urlopen(req).read()@@@"
, |
| 212 "@@@STEP_LOG_LINE@python.inline@@@@", | 296 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 213 "@@@STEP_LOG_LINE@python.inline@home = os.path.expanduser('~')@@@", | 297 "@@@STEP_LOG_LINE@python.inline@home = os.path.expanduser('~')@@@", |
| 214 "@@@STEP_LOG_LINE@python.inline@token_file = os.path.join(home, TOKEN_FILE
)@@@", | 298 "@@@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):@@@", | 299 "@@@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))@@@", | 300 "@@@STEP_LOG_LINE@python.inline@ os.rename(token_file, os.path.join(home,
TOKEN_FILE_BACKUP))@@@", |
| 217 "@@@STEP_LOG_LINE@python.inline@@@@", | 301 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 218 "@@@STEP_LOG_LINE@python.inline@with open(token_file, 'w') as f:@@@", | 302 "@@@STEP_LOG_LINE@python.inline@with open(token_file, 'w') as f:@@@", |
| 219 "@@@STEP_LOG_LINE@python.inline@ f.write(contents)@@@", | 303 "@@@STEP_LOG_LINE@python.inline@ f.write(contents)@@@", |
| 220 "@@@STEP_LOG_END@python.inline@@@" | 304 "@@@STEP_LOG_END@python.inline@@@" |
| 221 ] | 305 ] |
| 222 }, | 306 }, |
| 223 { | 307 { |
| 224 "cmd": [ | 308 "cmd": [ |
| 225 "python", | 309 "python", |
| 226 "[BUILD]/scripts/slave/skia/recreate_skps.py", | 310 "[BUILD]/scripts/slave/skia/upload_skps.py", |
| 227 "[CUSTOM_/_B_WORK]/src", | 311 "--target_dir", |
| 228 "[CUSTOM_/_B_WORK]/src/out/Release/chrome" | 312 "[SLAVE_BUILD]/skp_output" |
| 229 ], | 313 ], |
| 230 "cwd": "[CUSTOM_/_B_WORK]/skia", | 314 "cwd": "[CUSTOM_/_B_WORK]/skia", |
| 231 "env": { | 315 "env": { |
| 232 "AWS_CREDENTIAL_FILE": "[SLAVE_BUILD]/tmp/.boto", | |
| 233 "BOTO_CONFIG": "[SLAVE_BUILD]/tmp/.boto", | |
| 234 "CHROME_HEADLESS": "1", | 316 "CHROME_HEADLESS": "1", |
| 235 "PATH": "[DEPOT_TOOLS]:%(PATH)s" | 317 "PATH": "[DEPOT_TOOLS]:%(PATH)s" |
| 236 }, | 318 }, |
| 237 "name": "Recreate SKPs" | 319 "name": "Upload SKPs" |
| 238 }, | 320 }, |
| 239 { | 321 { |
| 240 "cmd": [ | 322 "cmd": [ |
| 241 "python", | 323 "python", |
| 242 "-u", | 324 "-u", |
| 243 "\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" | 325 "\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" |
| 244 ], | 326 ], |
| 245 "name": "depot-tools-auth logout", | 327 "name": "depot-tools-auth logout", |
| 246 "~followup_annotations": [ | 328 "~followup_annotations": [ |
| 247 "@@@STEP_LOG_LINE@python.inline@@@@", | 329 "@@@STEP_LOG_LINE@python.inline@@@@", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 262 "@@@STEP_LOG_LINE@python.inline@ os.rename(backup_file, token_file)@@@", | 344 "@@@STEP_LOG_LINE@python.inline@ os.rename(backup_file, token_file)@@@", |
| 263 "@@@STEP_LOG_END@python.inline@@@" | 345 "@@@STEP_LOG_END@python.inline@@@" |
| 264 ] | 346 ] |
| 265 }, | 347 }, |
| 266 { | 348 { |
| 267 "name": "$result", | 349 "name": "$result", |
| 268 "recipe_result": null, | 350 "recipe_result": null, |
| 269 "status_code": 0 | 351 "status_code": 0 |
| 270 } | 352 } |
| 271 ] | 353 ] |
| OLD | NEW |