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

Side by Side Diff: scripts/slave/recipes/skia/swarm_RecreateSKPs.expected/Housekeeper-Weekly-RecreateSKPs.json

Issue 2167883004: [Skia] Convert SKPs to a CIPD package (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Fix boto env, ensure tmp_dir exists since it's no longer isolated Created 4 years, 5 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 ],
268 "cwd": "[CUSTOM_/_B_WORK]/skia",
269 "env": {
270 "AWS_CREDENTIAL_FILE": "[SLAVE_BUILD]/tmp/.boto",
271 "BOTO_CONFIG": "[SLAVE_BUILD]/tmp/.boto",
272 "CHROME_HEADLESS": "1",
273 "PATH": "[DEPOT_TOOLS]:%(PATH)s"
274 },
275 "name": "Recreate SKPs"
276 },
277 {
278 "cmd": [
279 "python",
280 "-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" 281 "\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 ], 282 ],
200 "name": "depot-tools-auth login", 283 "name": "depot-tools-auth login",
201 "~followup_annotations": [ 284 "~followup_annotations": [
202 "@@@STEP_LOG_LINE@python.inline@@@@", 285 "@@@STEP_LOG_LINE@python.inline@@@@",
203 "@@@STEP_LOG_LINE@python.inline@import os@@@", 286 "@@@STEP_LOG_LINE@python.inline@import os@@@",
204 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@", 287 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@",
205 "@@@STEP_LOG_LINE@python.inline@@@@", 288 "@@@STEP_LOG_LINE@python.inline@@@@",
206 "@@@STEP_LOG_LINE@python.inline@TOKEN_FILE = '.depot_tools_oauth2_tokens'@ @@", 289 "@@@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'@@@", 290 "@@@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'@@@", 291 "@@@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@@@@", 292 "@@@STEP_LOG_LINE@python.inline@@@@",
210 "@@@STEP_LOG_LINE@python.inline@req = urllib2.Request(TOKEN_URL, headers={ 'Metadata-Flavor': 'Google'})@@@", 293 "@@@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()@@@" , 294 "@@@STEP_LOG_LINE@python.inline@contents = urllib2.urlopen(req).read()@@@" ,
212 "@@@STEP_LOG_LINE@python.inline@@@@", 295 "@@@STEP_LOG_LINE@python.inline@@@@",
213 "@@@STEP_LOG_LINE@python.inline@home = os.path.expanduser('~')@@@", 296 "@@@STEP_LOG_LINE@python.inline@home = os.path.expanduser('~')@@@",
214 "@@@STEP_LOG_LINE@python.inline@token_file = os.path.join(home, TOKEN_FILE )@@@", 297 "@@@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):@@@", 298 "@@@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))@@@", 299 "@@@STEP_LOG_LINE@python.inline@ os.rename(token_file, os.path.join(home, TOKEN_FILE_BACKUP))@@@",
217 "@@@STEP_LOG_LINE@python.inline@@@@", 300 "@@@STEP_LOG_LINE@python.inline@@@@",
218 "@@@STEP_LOG_LINE@python.inline@with open(token_file, 'w') as f:@@@", 301 "@@@STEP_LOG_LINE@python.inline@with open(token_file, 'w') as f:@@@",
219 "@@@STEP_LOG_LINE@python.inline@ f.write(contents)@@@", 302 "@@@STEP_LOG_LINE@python.inline@ f.write(contents)@@@",
220 "@@@STEP_LOG_END@python.inline@@@" 303 "@@@STEP_LOG_END@python.inline@@@"
221 ] 304 ]
222 }, 305 },
223 { 306 {
224 "cmd": [ 307 "cmd": [
225 "python", 308 "python",
226 "[BUILD]/scripts/slave/skia/recreate_skps.py", 309 "[BUILD]/scripts/slave/skia/upload_skps.py",
227 "[CUSTOM_/_B_WORK]/src", 310 "--target_dir",
228 "[CUSTOM_/_B_WORK]/src/out/Release/chrome" 311 "[SLAVE_BUILD]/skp_output"
229 ], 312 ],
230 "cwd": "[CUSTOM_/_B_WORK]/skia", 313 "cwd": "[CUSTOM_/_B_WORK]/skia",
231 "env": { 314 "env": {
232 "AWS_CREDENTIAL_FILE": "[SLAVE_BUILD]/tmp/.boto",
233 "BOTO_CONFIG": "[SLAVE_BUILD]/tmp/.boto",
234 "CHROME_HEADLESS": "1", 315 "CHROME_HEADLESS": "1",
235 "PATH": "[DEPOT_TOOLS]:%(PATH)s" 316 "PATH": "[DEPOT_TOOLS]:%(PATH)s"
236 }, 317 },
237 "name": "Recreate SKPs" 318 "name": "Upload SKPs"
238 }, 319 },
239 { 320 {
240 "cmd": [ 321 "cmd": [
241 "python", 322 "python",
242 "-u", 323 "-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" 324 "\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 ], 325 ],
245 "name": "depot-tools-auth logout", 326 "name": "depot-tools-auth logout",
246 "~followup_annotations": [ 327 "~followup_annotations": [
247 "@@@STEP_LOG_LINE@python.inline@@@@", 328 "@@@STEP_LOG_LINE@python.inline@@@@",
(...skipping 14 matching lines...) Expand all
262 "@@@STEP_LOG_LINE@python.inline@ os.rename(backup_file, token_file)@@@", 343 "@@@STEP_LOG_LINE@python.inline@ os.rename(backup_file, token_file)@@@",
263 "@@@STEP_LOG_END@python.inline@@@" 344 "@@@STEP_LOG_END@python.inline@@@"
264 ] 345 ]
265 }, 346 },
266 { 347 {
267 "name": "$result", 348 "name": "$result",
268 "recipe_result": null, 349 "recipe_result": null,
269 "status_code": 0 350 "status_code": 0
270 } 351 }
271 ] 352 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698