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

Side by Side Diff: scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_android32_builder_x86.json

Issue 2480193002: Stop to use contextmanager for goma.build_with_goma (Closed)
Patch Set: fix pylint 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
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 "[BUILDER_CACHE]/Android32_Builder_x86", 7 "[BUILDER_CACHE]/Android32_Builder_x86",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 "--gyp-script=[BUILDER_CACHE]/Android32_Builder_x86/src/webrtc/build/gyp_w ebrtc.py", 205 "--gyp-script=[BUILDER_CACHE]/Android32_Builder_x86/src/webrtc/build/gyp_w ebrtc.py",
206 "//out/Release" 206 "//out/Release"
207 ], 207 ],
208 "cwd": "[BUILDER_CACHE]/Android32_Builder_x86/src", 208 "cwd": "[BUILDER_CACHE]/Android32_Builder_x86/src",
209 "env": { 209 "env": {
210 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 210 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
211 }, 211 },
212 "name": "generate_build_files" 212 "name": "generate_build_files"
213 }, 213 },
214 { 214 {
215 "cmd": [
216 "python",
217 "-u",
218 "\nimport multiprocessing\nimport sys\n\njob_limit = 200\nif sys.platform. startswith('linux'):\n # Use 80 for linux not to load goma backend.\n job_limi t = 80\n\ntry:\n jobs = min(job_limit, multiprocessing.cpu_count() * 10)\nexcep t NotImplementedError:\n jobs = 50\n\nprint jobs\n"
219 ],
220 "name": "calculate the number of recommended jobs",
221 "stdout": "/path/to/tmp/",
222 "~followup_annotations": [
223 "@@@STEP_LOG_LINE@python.inline@@@@",
224 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
225 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
226 "@@@STEP_LOG_LINE@python.inline@@@@",
227 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
228 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
229 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
230 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
231 "@@@STEP_LOG_LINE@python.inline@@@@",
232 "@@@STEP_LOG_LINE@python.inline@try:@@@",
233 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
234 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
235 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
236 "@@@STEP_LOG_LINE@python.inline@@@@",
237 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
238 "@@@STEP_LOG_END@python.inline@@@"
239 ]
240 },
241 {
242 "cmd": [], 215 "cmd": [],
243 "name": "preprocess_for_goma" 216 "name": "preprocess_for_goma"
244 }, 217 },
245 { 218 {
246 "cmd": [ 219 "cmd": [
247 "python", 220 "python",
248 "-u", 221 "-u",
249 "[CACHE]/cipd/goma/goma_ctl.py", 222 "[CACHE]/cipd/goma/goma_ctl.py",
250 "restart" 223 "restart"
251 ], 224 ],
(...skipping 23 matching lines...) Expand all
275 "env": { 248 "env": {
276 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 249 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
277 }, 250 },
278 "name": "preprocess_for_goma.start cloudtail", 251 "name": "preprocess_for_goma.start cloudtail",
279 "~followup_annotations": [ 252 "~followup_annotations": [
280 "@@@STEP_NEST_LEVEL@1@@@" 253 "@@@STEP_NEST_LEVEL@1@@@"
281 ] 254 ]
282 }, 255 },
283 { 256 {
284 "cmd": [ 257 "cmd": [
258 "python",
259 "-u",
260 "\nimport multiprocessing\nimport sys\n\njob_limit = 200\nif sys.platform. startswith('linux'):\n # Use 80 for linux not to load goma backend.\n job_limi t = 80\n\ntry:\n jobs = min(job_limit, multiprocessing.cpu_count() * 10)\nexcep t NotImplementedError:\n jobs = 50\n\nprint jobs\n"
261 ],
262 "name": "calculate the number of recommended jobs",
263 "stdout": "/path/to/tmp/",
264 "~followup_annotations": [
265 "@@@STEP_LOG_LINE@python.inline@@@@",
266 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
267 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
268 "@@@STEP_LOG_LINE@python.inline@@@@",
269 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
270 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
271 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
272 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
273 "@@@STEP_LOG_LINE@python.inline@@@@",
274 "@@@STEP_LOG_LINE@python.inline@try:@@@",
275 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
276 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
277 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
278 "@@@STEP_LOG_LINE@python.inline@@@@",
279 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
280 "@@@STEP_LOG_END@python.inline@@@"
281 ]
282 },
283 {
284 "cmd": [
285 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 285 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
286 "-j",
287 "50",
286 "-w", 288 "-w",
287 "dupbuild=err", 289 "dupbuild=err",
288 "-C", 290 "-C",
289 "[BUILDER_CACHE]/Android32_Builder_x86/src/out/Release", 291 "[BUILDER_CACHE]/Android32_Builder_x86/src/out/Release"
290 "-j",
291 "50"
292 ], 292 ],
293 "env": { 293 "env": {
294 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 294 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
295 "PATH": "[BUILDER_CACHE]/Android32_Builder_x86/src/third_party/android_too ls/sdk/platform-tools:[BUILDER_CACHE]/Android32_Builder_x86/src/build/android:%( PATH)s" 295 "PATH": "[BUILDER_CACHE]/Android32_Builder_x86/src/third_party/android_too ls/sdk/platform-tools:[BUILDER_CACHE]/Android32_Builder_x86/src/build/android:%( PATH)s"
296 }, 296 },
297 "name": "compile with ninja" 297 "name": "compile with ninja"
298 }, 298 },
299 { 299 {
300 "cmd": [], 300 "cmd": [],
301 "name": "postprocess_for_goma" 301 "name": "postprocess_for_goma"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 "-u", 352 "-u",
353 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py", 353 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py",
354 "--upload-compiler-proxy-info", 354 "--upload-compiler-proxy-info",
355 "--json-status", 355 "--json-status",
356 "[CACHE]/cipd/goma/jsonstatus", 356 "[CACHE]/cipd/goma/jsonstatus",
357 "--ninja-log-outdir", 357 "--ninja-log-outdir",
358 "[BUILDER_CACHE]/Android32_Builder_x86/src/out/Release", 358 "[BUILDER_CACHE]/Android32_Builder_x86/src/out/Release",
359 "--ninja-log-compiler", 359 "--ninja-log-compiler",
360 "goma", 360 "goma",
361 "--ninja-log-command", 361 "--ninja-log-command",
362 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-w', 'dupbuild=err', '-C', '[ BUILDER_CACHE]/Android32_Builder_x86/src/out/Release', '-j', 50]", 362 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-j', 50, '-w', 'dupbuild=err' , '-C', '[BUILDER_CACHE]/Android32_Builder_x86/src/out/Release']",
363 "--ninja-log-exit-status", 363 "--ninja-log-exit-status",
364 "0", 364 "0",
365 "--buildbot-buildername", 365 "--buildbot-buildername",
366 "Android32 Builder x86", 366 "Android32 Builder x86",
367 "--buildbot-mastername", 367 "--buildbot-mastername",
368 "client.webrtc", 368 "client.webrtc",
369 "--buildbot-slavename", 369 "--buildbot-slavename",
370 "slavename" 370 "slavename"
371 ], 371 ],
372 "env": { 372 "env": {
(...skipping 17 matching lines...) Expand all
390 "~followup_annotations": [ 390 "~followup_annotations": [
391 "@@@STEP_NEST_LEVEL@1@@@" 391 "@@@STEP_NEST_LEVEL@1@@@"
392 ] 392 ]
393 }, 393 },
394 { 394 {
395 "name": "$result", 395 "name": "$result",
396 "recipe_result": null, 396 "recipe_result": null,
397 "status_code": 0 397 "status_code": 0
398 } 398 }
399 ] 399 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698