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

Side by Side Diff: infra/bots/recipes/swarm_RecreateSKPs.expected/Housekeeper-Nightly-RecreateSKPs_Canary.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
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 30 matching lines...) Expand all
257 "[CUSTOM_/_B_WORK]/skia/infra/bots/assets/skp/create.py", 230 "[CUSTOM_/_B_WORK]/skia/infra/bots/assets/skp/create.py",
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 ], 237 ],
265 "cwd": "[CUSTOM_/_B_WORK]/skia", 238 "cwd": "[CUSTOM_/_B_WORK]/skia",
266 "env": { 239 "env": {
267 "AWS_CREDENTIAL_FILE": "[SLAVE_BUILD]/tmp/.boto",
268 "BOTO_CONFIG": "[SLAVE_BUILD]/tmp/.boto",
269 "CHROME_HEADLESS": "1", 240 "CHROME_HEADLESS": "1",
270 "PATH": "[DEPOT_TOOLS]:%(PATH)s" 241 "PATH": "[DEPOT_TOOLS]:%(PATH)s"
271 }, 242 },
272 "name": "Recreate SKPs" 243 "name": "Recreate SKPs"
273 }, 244 },
274 { 245 {
275 "name": "$result", 246 "name": "$result",
276 "recipe_result": null, 247 "recipe_result": null,
277 "status_code": 0 248 "status_code": 0
278 } 249 }
279 ] 250 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698