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

Side by Side Diff: scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_linux32_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]/Linux32_ARM", 7 "[BUILDER_CACHE]/Linux32_ARM",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 "--gyp-script=[BUILDER_CACHE]/Linux32_ARM/src/webrtc/build/gyp_webrtc.py", 184 "--gyp-script=[BUILDER_CACHE]/Linux32_ARM/src/webrtc/build/gyp_webrtc.py",
185 "//out/Release" 185 "//out/Release"
186 ], 186 ],
187 "cwd": "[BUILDER_CACHE]/Linux32_ARM/src", 187 "cwd": "[BUILDER_CACHE]/Linux32_ARM/src",
188 "env": { 188 "env": {
189 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 189 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
190 }, 190 },
191 "name": "generate_build_files" 191 "name": "generate_build_files"
192 }, 192 },
193 { 193 {
194 "cmd": [
195 "python",
196 "-u",
197 "\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"
198 ],
199 "name": "calculate the number of recommended jobs",
200 "stdout": "/path/to/tmp/",
201 "~followup_annotations": [
202 "@@@STEP_LOG_LINE@python.inline@@@@",
203 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
204 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
205 "@@@STEP_LOG_LINE@python.inline@@@@",
206 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
207 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
208 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
209 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
210 "@@@STEP_LOG_LINE@python.inline@@@@",
211 "@@@STEP_LOG_LINE@python.inline@try:@@@",
212 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
213 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
214 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
215 "@@@STEP_LOG_LINE@python.inline@@@@",
216 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
217 "@@@STEP_LOG_END@python.inline@@@"
218 ]
219 },
220 {
221 "cmd": [], 194 "cmd": [],
222 "name": "preprocess_for_goma" 195 "name": "preprocess_for_goma"
223 }, 196 },
224 { 197 {
225 "cmd": [ 198 "cmd": [
226 "python", 199 "python",
227 "-u", 200 "-u",
228 "[CACHE]/cipd/goma/goma_ctl.py", 201 "[CACHE]/cipd/goma/goma_ctl.py",
229 "restart" 202 "restart"
230 ], 203 ],
(...skipping 22 matching lines...) Expand all
253 "env": { 226 "env": {
254 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 227 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
255 }, 228 },
256 "name": "preprocess_for_goma.start cloudtail", 229 "name": "preprocess_for_goma.start cloudtail",
257 "~followup_annotations": [ 230 "~followup_annotations": [
258 "@@@STEP_NEST_LEVEL@1@@@" 231 "@@@STEP_NEST_LEVEL@1@@@"
259 ] 232 ]
260 }, 233 },
261 { 234 {
262 "cmd": [ 235 "cmd": [
236 "python",
237 "-u",
238 "\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"
239 ],
240 "name": "calculate the number of recommended jobs",
241 "stdout": "/path/to/tmp/",
242 "~followup_annotations": [
243 "@@@STEP_LOG_LINE@python.inline@@@@",
244 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
245 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
246 "@@@STEP_LOG_LINE@python.inline@@@@",
247 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
248 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
249 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
250 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
251 "@@@STEP_LOG_LINE@python.inline@@@@",
252 "@@@STEP_LOG_LINE@python.inline@try:@@@",
253 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
254 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
255 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
256 "@@@STEP_LOG_LINE@python.inline@@@@",
257 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
258 "@@@STEP_LOG_END@python.inline@@@"
259 ]
260 },
261 {
262 "cmd": [
263 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 263 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
264 "-w", 264 "-w",
265 "dupbuild=err", 265 "dupbuild=err",
266 "-C", 266 "-C",
267 "[BUILDER_CACHE]/Linux32_ARM/src/out/Release", 267 "[BUILDER_CACHE]/Linux32_ARM/src/out/Release",
268 "-j", 268 "-j",
269 "50" 269 "50"
270 ], 270 ],
271 "env": { 271 "env": {
272 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 272 "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
367 "~followup_annotations": [ 367 "~followup_annotations": [
368 "@@@STEP_NEST_LEVEL@1@@@" 368 "@@@STEP_NEST_LEVEL@1@@@"
369 ] 369 ]
370 }, 370 },
371 { 371 {
372 "name": "$result", 372 "name": "$result",
373 "recipe_result": null, 373 "recipe_result": null,
374 "status_code": 0 374 "status_code": 0
375 } 375 }
376 ] 376 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698