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

Side by Side Diff: scripts/slave/recipes/webrtc/standalone.expected/tryserver_webrtc_linux_arm.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]/linux_arm", 7 "[BUILDER_CACHE]/linux_arm",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 "--gyp-script=[BUILDER_CACHE]/linux_arm/src/webrtc/build/gyp_webrtc.py", 199 "--gyp-script=[BUILDER_CACHE]/linux_arm/src/webrtc/build/gyp_webrtc.py",
200 "//out/Release" 200 "//out/Release"
201 ], 201 ],
202 "cwd": "[BUILDER_CACHE]/linux_arm/src", 202 "cwd": "[BUILDER_CACHE]/linux_arm/src",
203 "env": { 203 "env": {
204 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 204 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
205 }, 205 },
206 "name": "generate_build_files" 206 "name": "generate_build_files"
207 }, 207 },
208 { 208 {
209 "cmd": [
210 "python",
211 "-u",
212 "\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"
213 ],
214 "name": "calculate the number of recommended jobs",
215 "stdout": "/path/to/tmp/",
216 "~followup_annotations": [
217 "@@@STEP_LOG_LINE@python.inline@@@@",
218 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
219 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
220 "@@@STEP_LOG_LINE@python.inline@@@@",
221 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
222 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
223 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
224 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
225 "@@@STEP_LOG_LINE@python.inline@@@@",
226 "@@@STEP_LOG_LINE@python.inline@try:@@@",
227 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
228 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
229 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
230 "@@@STEP_LOG_LINE@python.inline@@@@",
231 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
232 "@@@STEP_LOG_END@python.inline@@@"
233 ]
234 },
235 {
236 "cmd": [], 209 "cmd": [],
237 "name": "preprocess_for_goma" 210 "name": "preprocess_for_goma"
238 }, 211 },
239 { 212 {
240 "cmd": [ 213 "cmd": [
241 "python", 214 "python",
242 "-u", 215 "-u",
243 "[CACHE]/cipd/goma/goma_ctl.py", 216 "[CACHE]/cipd/goma/goma_ctl.py",
244 "restart" 217 "restart"
245 ], 218 ],
(...skipping 22 matching lines...) Expand all
268 "env": { 241 "env": {
269 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 242 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
270 }, 243 },
271 "name": "preprocess_for_goma.start cloudtail", 244 "name": "preprocess_for_goma.start cloudtail",
272 "~followup_annotations": [ 245 "~followup_annotations": [
273 "@@@STEP_NEST_LEVEL@1@@@" 246 "@@@STEP_NEST_LEVEL@1@@@"
274 ] 247 ]
275 }, 248 },
276 { 249 {
277 "cmd": [ 250 "cmd": [
251 "python",
252 "-u",
253 "\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"
254 ],
255 "name": "calculate the number of recommended jobs",
256 "stdout": "/path/to/tmp/",
257 "~followup_annotations": [
258 "@@@STEP_LOG_LINE@python.inline@@@@",
259 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
260 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
261 "@@@STEP_LOG_LINE@python.inline@@@@",
262 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
263 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
264 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
265 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
266 "@@@STEP_LOG_LINE@python.inline@@@@",
267 "@@@STEP_LOG_LINE@python.inline@try:@@@",
268 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
269 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
270 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
271 "@@@STEP_LOG_LINE@python.inline@@@@",
272 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
273 "@@@STEP_LOG_END@python.inline@@@"
274 ]
275 },
276 {
277 "cmd": [
278 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 278 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
279 "-j",
280 "50",
279 "-w", 281 "-w",
280 "dupbuild=err", 282 "dupbuild=err",
281 "-C", 283 "-C",
282 "[BUILDER_CACHE]/linux_arm/src/out/Release", 284 "[BUILDER_CACHE]/linux_arm/src/out/Release"
283 "-j",
284 "50"
285 ], 285 ],
286 "env": { 286 "env": {
287 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 287 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
288 }, 288 },
289 "name": "compile with ninja" 289 "name": "compile with ninja"
290 }, 290 },
291 { 291 {
292 "cmd": [], 292 "cmd": [],
293 "name": "postprocess_for_goma" 293 "name": "postprocess_for_goma"
294 }, 294 },
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 "-u", 344 "-u",
345 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py", 345 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py",
346 "--upload-compiler-proxy-info", 346 "--upload-compiler-proxy-info",
347 "--json-status", 347 "--json-status",
348 "[CACHE]/cipd/goma/jsonstatus", 348 "[CACHE]/cipd/goma/jsonstatus",
349 "--ninja-log-outdir", 349 "--ninja-log-outdir",
350 "[BUILDER_CACHE]/linux_arm/src/out/Release", 350 "[BUILDER_CACHE]/linux_arm/src/out/Release",
351 "--ninja-log-compiler", 351 "--ninja-log-compiler",
352 "goma", 352 "goma",
353 "--ninja-log-command", 353 "--ninja-log-command",
354 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-w', 'dupbuild=err', '-C', '[ BUILDER_CACHE]/linux_arm/src/out/Release', '-j', 50]", 354 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-j', 50, '-w', 'dupbuild=err' , '-C', '[BUILDER_CACHE]/linux_arm/src/out/Release']",
355 "--ninja-log-exit-status", 355 "--ninja-log-exit-status",
356 "0", 356 "0",
357 "--buildbot-buildername", 357 "--buildbot-buildername",
358 "linux_arm", 358 "linux_arm",
359 "--buildbot-mastername", 359 "--buildbot-mastername",
360 "tryserver.webrtc", 360 "tryserver.webrtc",
361 "--buildbot-slavename", 361 "--buildbot-slavename",
362 "slavename" 362 "slavename"
363 ], 363 ],
364 "env": { 364 "env": {
(...skipping 17 matching lines...) Expand all
382 "~followup_annotations": [ 382 "~followup_annotations": [
383 "@@@STEP_NEST_LEVEL@1@@@" 383 "@@@STEP_NEST_LEVEL@1@@@"
384 ] 384 ]
385 }, 385 },
386 { 386 {
387 "name": "$result", 387 "name": "$result",
388 "recipe_result": null, 388 "recipe_result": null,
389 "status_code": 0 389 "status_code": 0
390 } 390 }
391 ] 391 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698