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/tryserver_webrtc_linux_arm.json

Issue 2480193002: Stop to use contextmanager for goma.build_with_goma (Closed)
Patch Set: update 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 "--gyp-script=[BUILDER_CACHE]/linux_arm/src/webrtc/build/gyp_webrtc.py", 190 "--gyp-script=[BUILDER_CACHE]/linux_arm/src/webrtc/build/gyp_webrtc.py",
191 "//out/Release" 191 "//out/Release"
192 ], 192 ],
193 "cwd": "[BUILDER_CACHE]/linux_arm/src", 193 "cwd": "[BUILDER_CACHE]/linux_arm/src",
194 "env": { 194 "env": {
195 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 195 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
196 }, 196 },
197 "name": "generate_build_files" 197 "name": "generate_build_files"
198 }, 198 },
199 { 199 {
200 "cmd": [
201 "python",
202 "-u",
203 "\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"
204 ],
205 "name": "calculate the number of recommended jobs",
206 "stdout": "/path/to/tmp/",
207 "~followup_annotations": [
208 "@@@STEP_LOG_LINE@python.inline@@@@",
209 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
210 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
211 "@@@STEP_LOG_LINE@python.inline@@@@",
212 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
213 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
214 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
215 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
216 "@@@STEP_LOG_LINE@python.inline@@@@",
217 "@@@STEP_LOG_LINE@python.inline@try:@@@",
218 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
219 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
220 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
221 "@@@STEP_LOG_LINE@python.inline@@@@",
222 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
223 "@@@STEP_LOG_END@python.inline@@@"
224 ]
225 },
226 {
227 "cmd": [], 200 "cmd": [],
228 "name": "preprocess_for_goma" 201 "name": "preprocess_for_goma"
229 }, 202 },
230 { 203 {
231 "cmd": [ 204 "cmd": [
232 "python", 205 "python",
233 "-u", 206 "-u",
234 "[CACHE]/cipd/goma/goma_ctl.py", 207 "[CACHE]/cipd/goma/goma_ctl.py",
235 "restart" 208 "restart"
236 ], 209 ],
(...skipping 22 matching lines...) Expand all
259 "env": { 232 "env": {
260 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 233 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
261 }, 234 },
262 "name": "preprocess_for_goma.start cloudtail", 235 "name": "preprocess_for_goma.start cloudtail",
263 "~followup_annotations": [ 236 "~followup_annotations": [
264 "@@@STEP_NEST_LEVEL@1@@@" 237 "@@@STEP_NEST_LEVEL@1@@@"
265 ] 238 ]
266 }, 239 },
267 { 240 {
268 "cmd": [ 241 "cmd": [
242 "python",
243 "-u",
244 "\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"
245 ],
246 "name": "calculate the number of recommended jobs",
247 "stdout": "/path/to/tmp/",
248 "~followup_annotations": [
249 "@@@STEP_LOG_LINE@python.inline@@@@",
250 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
251 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
252 "@@@STEP_LOG_LINE@python.inline@@@@",
253 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
254 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
255 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
256 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
257 "@@@STEP_LOG_LINE@python.inline@@@@",
258 "@@@STEP_LOG_LINE@python.inline@try:@@@",
259 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
260 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
261 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
262 "@@@STEP_LOG_LINE@python.inline@@@@",
263 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
264 "@@@STEP_LOG_END@python.inline@@@"
265 ]
266 },
267 {
268 "cmd": [
269 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 269 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
270 "-w", 270 "-w",
271 "dupbuild=err", 271 "dupbuild=err",
272 "-C", 272 "-C",
273 "[BUILDER_CACHE]/linux_arm/src/out/Release", 273 "[BUILDER_CACHE]/linux_arm/src/out/Release",
274 "-j", 274 "-j",
275 "50" 275 "50"
276 ], 276 ],
277 "env": { 277 "env": {
278 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 278 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 "~followup_annotations": [ 373 "~followup_annotations": [
374 "@@@STEP_NEST_LEVEL@1@@@" 374 "@@@STEP_NEST_LEVEL@1@@@"
375 ] 375 ]
376 }, 376 },
377 { 377 {
378 "name": "$result", 378 "name": "$result",
379 "recipe_result": null, 379 "recipe_result": null,
380 "status_code": 0 380 "status_code": 0
381 } 381 }
382 ] 382 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698