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

Side by Side Diff: scripts/slave/recipes/nacl/sdk.expected/basic.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 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 6 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
7 "--spec", 7 "--spec",
8 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'manag ed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src .git'}]", 8 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'manag ed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src .git'}]",
9 "--patch_root", 9 "--patch_root",
10 "src", 10 "src",
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 "python", 198 "python",
199 "-u", 199 "-u",
200 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py", 200 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py",
201 "--show-path", 201 "--show-path",
202 "python", 202 "python",
203 "RECIPE_PACKAGE_REPO[build]/scripts/slave/cleanup_temp.py" 203 "RECIPE_PACKAGE_REPO[build]/scripts/slave/cleanup_temp.py"
204 ], 204 ],
205 "name": "cleanup_temp" 205 "name": "cleanup_temp"
206 }, 206 },
207 { 207 {
208 "cmd": [
209 "python",
210 "-u",
211 "\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"
212 ],
213 "name": "calculate the number of recommended jobs",
214 "stdout": "/path/to/tmp/",
215 "~followup_annotations": [
216 "@@@STEP_LOG_LINE@python.inline@@@@",
217 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
218 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
219 "@@@STEP_LOG_LINE@python.inline@@@@",
220 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
221 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
222 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
223 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
224 "@@@STEP_LOG_LINE@python.inline@@@@",
225 "@@@STEP_LOG_LINE@python.inline@try:@@@",
226 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
227 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
228 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
229 "@@@STEP_LOG_LINE@python.inline@@@@",
230 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
231 "@@@STEP_LOG_END@python.inline@@@"
232 ]
233 },
234 {
235 "cmd": [], 208 "cmd": [],
236 "name": "preprocess_for_goma" 209 "name": "preprocess_for_goma"
237 }, 210 },
238 { 211 {
239 "cmd": [ 212 "cmd": [
240 "python", 213 "python",
241 "-u", 214 "-u",
242 "[CACHE]/cipd/goma/goma_ctl.py", 215 "[CACHE]/cipd/goma/goma_ctl.py",
243 "restart" 216 "restart"
244 ], 217 ],
(...skipping 22 matching lines...) Expand all
267 "env": { 240 "env": {
268 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 241 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
269 }, 242 },
270 "name": "preprocess_for_goma.start cloudtail", 243 "name": "preprocess_for_goma.start cloudtail",
271 "~followup_annotations": [ 244 "~followup_annotations": [
272 "@@@STEP_NEST_LEVEL@1@@@" 245 "@@@STEP_NEST_LEVEL@1@@@"
273 ] 246 ]
274 }, 247 },
275 { 248 {
276 "cmd": [ 249 "cmd": [
250 "python",
251 "-u",
252 "\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"
253 ],
254 "name": "calculate the number of recommended jobs",
255 "stdout": "/path/to/tmp/",
256 "~followup_annotations": [
257 "@@@STEP_LOG_LINE@python.inline@@@@",
258 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
259 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
260 "@@@STEP_LOG_LINE@python.inline@@@@",
261 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
262 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
263 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
264 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
265 "@@@STEP_LOG_LINE@python.inline@@@@",
266 "@@@STEP_LOG_LINE@python.inline@try:@@@",
267 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
268 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
269 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
270 "@@@STEP_LOG_LINE@python.inline@@@@",
271 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
272 "@@@STEP_LOG_END@python.inline@@@"
273 ]
274 },
275 {
276 "cmd": [
277 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 277 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
278 "-j",
279 "50",
278 "-w", 280 "-w",
279 "dupbuild=err", 281 "dupbuild=err",
280 "-C", 282 "-C",
281 "[SLAVE_BUILD]/src/out/Release", 283 "[SLAVE_BUILD]/src/out/Release",
282 "-j",
283 "50",
284 "chrome" 284 "chrome"
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"
(...skipping 50 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 "[SLAVE_BUILD]/src/out/Release", 350 "[SLAVE_BUILD]/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', '[ SLAVE_BUILD]/src/out/Release', '-j', 50, 'chrome']", 354 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-j', 50, '-w', 'dupbuild=err' , '-C', '[SLAVE_BUILD]/src/out/Release', 'chrome']",
355 "--ninja-log-exit-status", 355 "--ninja-log-exit-status",
356 "0", 356 "0",
357 "--buildbot-buildername", 357 "--buildbot-buildername",
358 "TestBuilder", 358 "TestBuilder",
359 "--buildbot-mastername", 359 "--buildbot-mastername",
360 "chromium.testing.master", 360 "chromium.testing.master",
361 "--buildbot-slavename", 361 "--buildbot-slavename",
362 "TestSlavename" 362 "TestSlavename"
363 ], 363 ],
364 "env": { 364 "env": {
(...skipping 26 matching lines...) Expand all
391 "[BUILD]/scripts/slave/chromium/nacl_sdk_buildbot_run.py" 391 "[BUILD]/scripts/slave/chromium/nacl_sdk_buildbot_run.py"
392 ], 392 ],
393 "name": "annotated_steps" 393 "name": "annotated_steps"
394 }, 394 },
395 { 395 {
396 "name": "$result", 396 "name": "$result",
397 "recipe_result": null, 397 "recipe_result": null,
398 "status_code": 0 398 "status_code": 0
399 } 399 }
400 ] 400 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698