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

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

Issue 2408793002: RecreateSKPs: Don't download and use the .boto file (Closed)
Patch Set: Address comment Created 4 years, 2 months 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.expected/Housekeeper-Nightly-RecreateSKPs_Canary.json ('k') | no next file » | 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 "[CUSTOM_/_B_WORK]/src/out/Release", 180 "[CUSTOM_/_B_WORK]/src/out/Release",
181 "chrome" 181 "chrome"
182 ], 182 ],
183 "cwd": "[CUSTOM_/_B_WORK]/src", 183 "cwd": "[CUSTOM_/_B_WORK]/src",
184 "name": "Build Chrome" 184 "name": "Build Chrome"
185 }, 185 },
186 { 186 {
187 "cmd": [ 187 "cmd": [
188 "python", 188 "python",
189 "-u", 189 "-u",
190 "\nimport os\nimport urllib2\n\nBOTO_URL = 'http://metadata/computeMetadat a/v1/project/attributes/boto-file'\n\ndest_path = '[SLAVE_BUILD]/tmp/.boto'\ndes t_dir = os.path.dirname(dest_path)\nif not os.path.exists(dest_dir):\n os.maked irs(dest_dir)\n\nreq = urllib2.Request(BOTO_URL, headers={'Metadata-Flavor': 'Go ogle'})\ncontents = urllib2.urlopen(req).read()\n\nwith open(dest_path, 'w') as f:\n f.write(contents)\n"
191 ],
192 "name": "download boto file",
193 "~followup_annotations": [
194 "@@@STEP_LOG_LINE@python.inline@@@@",
195 "@@@STEP_LOG_LINE@python.inline@import os@@@",
196 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@",
197 "@@@STEP_LOG_LINE@python.inline@@@@",
198 "@@@STEP_LOG_LINE@python.inline@BOTO_URL = 'http://metadata/computeMetadat a/v1/project/attributes/boto-file'@@@",
199 "@@@STEP_LOG_LINE@python.inline@@@@",
200 "@@@STEP_LOG_LINE@python.inline@dest_path = '[SLAVE_BUILD]/tmp/.boto'@@@",
201 "@@@STEP_LOG_LINE@python.inline@dest_dir = os.path.dirname(dest_path)@@@",
202 "@@@STEP_LOG_LINE@python.inline@if not os.path.exists(dest_dir):@@@",
203 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dest_dir)@@@",
204 "@@@STEP_LOG_LINE@python.inline@@@@",
205 "@@@STEP_LOG_LINE@python.inline@req = urllib2.Request(BOTO_URL, headers={' Metadata-Flavor': 'Google'})@@@",
206 "@@@STEP_LOG_LINE@python.inline@contents = urllib2.urlopen(req).read()@@@" ,
207 "@@@STEP_LOG_LINE@python.inline@@@@",
208 "@@@STEP_LOG_LINE@python.inline@with open(dest_path, 'w') as f:@@@",
209 "@@@STEP_LOG_LINE@python.inline@ f.write(contents)@@@",
210 "@@@STEP_LOG_END@python.inline@@@"
211 ]
212 },
213 {
214 "cmd": [
215 "python",
216 "-u",
217 "\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", 190 "\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",
218 "[SLAVE_BUILD]/skp_output" 191 "[SLAVE_BUILD]/skp_output"
219 ], 192 ],
220 "name": "rmtree skp_output", 193 "name": "rmtree skp_output",
221 "~followup_annotations": [ 194 "~followup_annotations": [
222 "@@@STEP_LOG_LINE@python.inline@@@@", 195 "@@@STEP_LOG_LINE@python.inline@@@@",
223 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", 196 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
224 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@", 197 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@",
225 "@@@STEP_LOG_LINE@python.inline@@@@", 198 "@@@STEP_LOG_LINE@python.inline@@@@",
226 "@@@STEP_LOG_LINE@python.inline@@@@", 199 "@@@STEP_LOG_LINE@python.inline@@@@",
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 "--chrome_src_path", 231 "--chrome_src_path",
259 "[CUSTOM_/_B_WORK]/src", 232 "[CUSTOM_/_B_WORK]/src",
260 "--browser_executable", 233 "--browser_executable",
261 "[CUSTOM_/_B_WORK]/src/out/Release/chrome", 234 "[CUSTOM_/_B_WORK]/src/out/Release/chrome",
262 "--target_dir", 235 "--target_dir",
263 "[SLAVE_BUILD]/skp_output", 236 "[SLAVE_BUILD]/skp_output",
264 "--upload_to_partner_bucket" 237 "--upload_to_partner_bucket"
265 ], 238 ],
266 "cwd": "[CUSTOM_/_B_WORK]/skia", 239 "cwd": "[CUSTOM_/_B_WORK]/skia",
267 "env": { 240 "env": {
268 "AWS_CREDENTIAL_FILE": "[SLAVE_BUILD]/tmp/.boto",
269 "BOTO_CONFIG": "[SLAVE_BUILD]/tmp/.boto",
270 "CHROME_HEADLESS": "1", 241 "CHROME_HEADLESS": "1",
271 "PATH": "[DEPOT_TOOLS]:%(PATH)s" 242 "PATH": "[DEPOT_TOOLS]:%(PATH)s"
272 }, 243 },
273 "name": "Recreate SKPs" 244 "name": "Recreate SKPs"
274 }, 245 },
275 { 246 {
276 "cmd": [ 247 "cmd": [
277 "python", 248 "python",
278 "-u", 249 "-u",
279 "\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" 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"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 "@@@STEP_LOG_LINE@python.inline@ os.rename(backup_file, token_file)@@@", 312 "@@@STEP_LOG_LINE@python.inline@ os.rename(backup_file, token_file)@@@",
342 "@@@STEP_LOG_END@python.inline@@@" 313 "@@@STEP_LOG_END@python.inline@@@"
343 ] 314 ]
344 }, 315 },
345 { 316 {
346 "name": "$result", 317 "name": "$result",
347 "recipe_result": null, 318 "recipe_result": null,
348 "status_code": 0 319 "status_code": 0
349 } 320 }
350 ] 321 ]
OLDNEW
« no previous file with comments | « infra/bots/recipes/swarm_RecreateSKPs.expected/Housekeeper-Nightly-RecreateSKPs_Canary.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698