Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: infra/bots/recipes/swarm_RecreateSKPs.expected/Housekeeper-Weekly-RecreateSKPs.json

Issue 2444883002: Add infra recipe module, use for updating Go DEPS (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « infra/bots/recipes/swarm_RecreateSKPs.py ('k') | infra/bots/recipes/swarm_infra.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 ], 238 ],
239 "cwd": "[CUSTOM_/_B_WORK]/skia", 239 "cwd": "[CUSTOM_/_B_WORK]/skia",
240 "env": { 240 "env": {
241 "CHROME_HEADLESS": "1", 241 "CHROME_HEADLESS": "1",
242 "PATH": "[DEPOT_TOOLS]:%(PATH)s" 242 "PATH": "[DEPOT_TOOLS]:%(PATH)s"
243 }, 243 },
244 "name": "Recreate SKPs" 244 "name": "Recreate SKPs"
245 }, 245 },
246 { 246 {
247 "cmd": [ 247 "cmd": [
248 "go",
249 "get",
250 "-u",
251 "go.skia.org/infra/..."
252 ],
253 "env": {
254 "GOPATH": "[CUSTOM_/_B_WORK]/gopath"
255 },
256 "name": "update go pkgs"
257 },
258 {
259 "cmd": [
248 "python", 260 "python",
249 "-u", 261 "-u",
250 "\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" 262 "\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"
251 ], 263 ],
252 "name": "depot-tools-auth login", 264 "name": "depot-tools-auth login",
253 "~followup_annotations": [ 265 "~followup_annotations": [
254 "@@@STEP_LOG_LINE@python.inline@@@@", 266 "@@@STEP_LOG_LINE@python.inline@@@@",
255 "@@@STEP_LOG_LINE@python.inline@import os@@@", 267 "@@@STEP_LOG_LINE@python.inline@import os@@@",
256 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@", 268 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@",
257 "@@@STEP_LOG_LINE@python.inline@@@@", 269 "@@@STEP_LOG_LINE@python.inline@@@@",
(...skipping 17 matching lines...) Expand all
275 { 287 {
276 "cmd": [ 288 "cmd": [
277 "python", 289 "python",
278 "[CUSTOM_/_B_WORK]/skia/infra/bots/upload_skps.py", 290 "[CUSTOM_/_B_WORK]/skia/infra/bots/upload_skps.py",
279 "--target_dir", 291 "--target_dir",
280 "[SLAVE_BUILD]/skp_output" 292 "[SLAVE_BUILD]/skp_output"
281 ], 293 ],
282 "cwd": "[CUSTOM_/_B_WORK]/skia", 294 "cwd": "[CUSTOM_/_B_WORK]/skia",
283 "env": { 295 "env": {
284 "CHROME_HEADLESS": "1", 296 "CHROME_HEADLESS": "1",
297 "GOPATH": "[CUSTOM_/_B_WORK]/gopath",
285 "PATH": "[DEPOT_TOOLS]:%(PATH)s" 298 "PATH": "[DEPOT_TOOLS]:%(PATH)s"
286 }, 299 },
287 "name": "Upload SKPs" 300 "name": "Upload SKPs"
288 }, 301 },
289 { 302 {
290 "cmd": [ 303 "cmd": [
291 "python", 304 "python",
292 "-u", 305 "-u",
293 "\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" 306 "\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"
294 ], 307 ],
(...skipping 17 matching lines...) Expand all
312 "@@@STEP_LOG_LINE@python.inline@ os.rename(backup_file, token_file)@@@", 325 "@@@STEP_LOG_LINE@python.inline@ os.rename(backup_file, token_file)@@@",
313 "@@@STEP_LOG_END@python.inline@@@" 326 "@@@STEP_LOG_END@python.inline@@@"
314 ] 327 ]
315 }, 328 },
316 { 329 {
317 "name": "$result", 330 "name": "$result",
318 "recipe_result": null, 331 "recipe_result": null,
319 "status_code": 0 332 "status_code": 0
320 } 333 }
321 ] 334 ]
OLDNEW
« no previous file with comments | « infra/bots/recipes/swarm_RecreateSKPs.py ('k') | infra/bots/recipes/swarm_infra.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698