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

Side by Side Diff: scripts/slave/recipes/findit/chromium/test.expected/swarming_tests.json

Issue 2291273005: Add counting the number of CPU's in goma module (Closed)
Patch Set: use 80 for linux Created 4 years, 3 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 "[BUILDER_CACHE]/mac", 7 "[BUILDER_CACHE]/mac",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 "@@@STEP_LOG_LINE@json.output@ }@@@", 182 "@@@STEP_LOG_LINE@json.output@ }@@@",
183 "@@@STEP_LOG_LINE@json.output@ ]@@@", 183 "@@@STEP_LOG_LINE@json.output@ ]@@@",
184 "@@@STEP_LOG_LINE@json.output@}@@@", 184 "@@@STEP_LOG_LINE@json.output@}@@@",
185 "@@@STEP_LOG_END@json.output@@@" 185 "@@@STEP_LOG_END@json.output@@@"
186 ] 186 ]
187 }, 187 },
188 { 188 {
189 "cmd": [ 189 "cmd": [
190 "python", 190 "python",
191 "-u", 191 "-u",
192 "\nimport multiprocessing\n\ntry:\n jobs = min(200, multiprocessing.cpu_c ount() * 10)\nexcept NotImplementedError:\n jobs = 50\n\nprint jobs\n"
193 ],
194 "name": "ensure_goma.get the number of cpus",
195 "stdout": "/path/to/tmp/",
196 "~followup_annotations": [
197 "@@@STEP_NEST_LEVEL@1@@@",
198 "@@@STEP_LOG_LINE@python.inline@@@@",
199 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
200 "@@@STEP_LOG_LINE@python.inline@@@@",
201 "@@@STEP_LOG_LINE@python.inline@try:@@@",
202 "@@@STEP_LOG_LINE@python.inline@ jobs = min(200, multiprocessing.cpu_coun t() * 10)@@@",
203 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
204 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
205 "@@@STEP_LOG_LINE@python.inline@@@@",
206 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
207 "@@@STEP_LOG_END@python.inline@@@"
208 ]
209 },
210 {
211 "cmd": [
212 "python",
213 "-u",
192 "[BUILDER_CACHE]/mac/src/tools/swarming_client/swarming.py", 214 "[BUILDER_CACHE]/mac/src/tools/swarming_client/swarming.py",
193 "--version" 215 "--version"
194 ], 216 ],
195 "name": "swarming.py --version", 217 "name": "swarming.py --version",
196 "stdout": "/path/to/tmp/", 218 "stdout": "/path/to/tmp/",
197 "~followup_annotations": [ 219 "~followup_annotations": [
198 "@@@STEP_TEXT@0.8.6@@@" 220 "@@@STEP_TEXT@0.8.6@@@"
199 ] 221 ]
200 }, 222 },
201 { 223 {
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 "@@@STEP_LOG_LINE@json.output@ }@@@", 481 "@@@STEP_LOG_LINE@json.output@ }@@@",
460 "@@@STEP_LOG_LINE@json.output@ ]@@@", 482 "@@@STEP_LOG_LINE@json.output@ ]@@@",
461 "@@@STEP_LOG_LINE@json.output@}@@@", 483 "@@@STEP_LOG_LINE@json.output@}@@@",
462 "@@@STEP_LOG_END@json.output@@@" 484 "@@@STEP_LOG_END@json.output@@@"
463 ] 485 ]
464 }, 486 },
465 { 487 {
466 "cmd": [ 488 "cmd": [
467 "python", 489 "python",
468 "-u", 490 "-u",
491 "\nimport multiprocessing\n\ntry:\n jobs = min(200, multiprocessing.cpu_c ount() * 10)\nexcept NotImplementedError:\n jobs = 50\n\nprint jobs\n"
492 ],
493 "name": "test r1.ensure_goma.get the number of cpus",
494 "stdout": "/path/to/tmp/",
495 "~followup_annotations": [
496 "@@@STEP_NEST_LEVEL@2@@@",
497 "@@@STEP_LOG_LINE@python.inline@@@@",
498 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
499 "@@@STEP_LOG_LINE@python.inline@@@@",
500 "@@@STEP_LOG_LINE@python.inline@try:@@@",
501 "@@@STEP_LOG_LINE@python.inline@ jobs = min(200, multiprocessing.cpu_coun t() * 10)@@@",
502 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
503 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
504 "@@@STEP_LOG_LINE@python.inline@@@@",
505 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
506 "@@@STEP_LOG_END@python.inline@@@"
507 ]
508 },
509 {
510 "cmd": [
511 "python",
512 "-u",
469 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", 513 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
470 "runhooks" 514 "runhooks"
471 ], 515 ],
472 "cwd": "[BUILDER_CACHE]/mac/src", 516 "cwd": "[BUILDER_CACHE]/mac/src",
473 "env": { 517 "env": {
474 "FORCE_MAC_TOOLCHAIN": "1", 518 "FORCE_MAC_TOOLCHAIN": "1",
475 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 519 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
476 "GYP_CHROMIUM_NO_ACTION": "1", 520 "GYP_CHROMIUM_NO_ACTION": "1",
477 "GYP_DEFINES": "archive_gpu_tests=1 clang=1 component=static_library ffmpe g_branding=Chrome gomadir='[CACHE]/cipd/goma' proprietary_codecs=1 target_arch=x 64 test_isolation_mode=prepare use_goma=1", 521 "GYP_DEFINES": "archive_gpu_tests=1 clang=1 component=static_library ffmpe g_branding=Chrome gomadir='[CACHE]/cipd/goma' proprietary_codecs=1 target_arch=x 64 test_isolation_mode=prepare use_goma=1",
478 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 522 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 "@@@STEP_LOG_END@report@@@", 912 "@@@STEP_LOG_END@report@@@",
869 "@@@SET_BUILD_PROPERTY@report@{\"metadata\": {\"regression_range_size\": 1 }, \"result\": {\"r1\": {\"gl_tests\": {\"status\": \"passed\", \"valid\": true} }}}@@@" 913 "@@@SET_BUILD_PROPERTY@report@{\"metadata\": {\"regression_range_size\": 1 }, \"result\": {\"r1\": {\"gl_tests\": {\"status\": \"passed\", \"valid\": true} }}}@@@"
870 ] 914 ]
871 }, 915 },
872 { 916 {
873 "name": "$result", 917 "name": "$result",
874 "recipe_result": null, 918 "recipe_result": null,
875 "status_code": 0 919 "status_code": 0
876 } 920 }
877 ] 921 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698