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

Side by Side Diff: scripts/slave/recipe_modules/chromium/example.expected/codesearch.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 "name": "ensure_goma" 4 "name": "ensure_goma"
5 }, 5 },
6 { 6 {
7 "cmd": [ 7 "cmd": [
8 "python", 8 "python",
9 "-u", 9 "-u",
10 "RECIPE_MODULE[depot_tools::cipd]/resources/bootstrap.py", 10 "RECIPE_MODULE[depot_tools::cipd]/resources/bootstrap.py",
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 }, 97 },
98 "name": "clang_revision", 98 "name": "clang_revision",
99 "~followup_annotations": [ 99 "~followup_annotations": [
100 "@@@STEP_LOG_LINE@json.output@{@@@", 100 "@@@STEP_LOG_LINE@json.output@{@@@",
101 "@@@STEP_LOG_LINE@json.output@ \"clang_revision\": \"123456-7\"@@@", 101 "@@@STEP_LOG_LINE@json.output@ \"clang_revision\": \"123456-7\"@@@",
102 "@@@STEP_LOG_LINE@json.output@}@@@", 102 "@@@STEP_LOG_LINE@json.output@}@@@",
103 "@@@STEP_LOG_END@json.output@@@" 103 "@@@STEP_LOG_END@json.output@@@"
104 ] 104 ]
105 }, 105 },
106 { 106 {
107 "cmd": [
108 "python",
109 "-u",
110 "\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"
111 ],
112 "name": "calculate the number of recommended jobs",
113 "stdout": "/path/to/tmp/",
114 "~followup_annotations": [
115 "@@@STEP_LOG_LINE@python.inline@@@@",
116 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
117 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
118 "@@@STEP_LOG_LINE@python.inline@@@@",
119 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
120 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
121 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
122 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
123 "@@@STEP_LOG_LINE@python.inline@@@@",
124 "@@@STEP_LOG_LINE@python.inline@try:@@@",
125 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
126 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
127 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
128 "@@@STEP_LOG_LINE@python.inline@@@@",
129 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
130 "@@@STEP_LOG_END@python.inline@@@"
131 ]
132 },
133 {
134 "cmd": [], 107 "cmd": [],
135 "name": "preprocess_for_goma" 108 "name": "preprocess_for_goma"
136 }, 109 },
137 { 110 {
138 "cmd": [ 111 "cmd": [
139 "python", 112 "python",
140 "-u", 113 "-u",
141 "[CACHE]/cipd/goma/goma_ctl.py", 114 "[CACHE]/cipd/goma/goma_ctl.py",
142 "restart" 115 "restart"
143 ], 116 ],
(...skipping 22 matching lines...) Expand all
166 "env": { 139 "env": {
167 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 140 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
168 }, 141 },
169 "name": "preprocess_for_goma.start cloudtail", 142 "name": "preprocess_for_goma.start cloudtail",
170 "~followup_annotations": [ 143 "~followup_annotations": [
171 "@@@STEP_NEST_LEVEL@1@@@" 144 "@@@STEP_NEST_LEVEL@1@@@"
172 ] 145 ]
173 }, 146 },
174 { 147 {
175 "cmd": [ 148 "cmd": [
149 "python",
150 "-u",
151 "\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"
152 ],
153 "name": "calculate the number of recommended jobs",
154 "stdout": "/path/to/tmp/",
155 "~followup_annotations": [
156 "@@@STEP_LOG_LINE@python.inline@@@@",
157 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
158 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
159 "@@@STEP_LOG_LINE@python.inline@@@@",
160 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
161 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
162 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
163 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
164 "@@@STEP_LOG_LINE@python.inline@@@@",
165 "@@@STEP_LOG_LINE@python.inline@try:@@@",
166 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
167 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
168 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
169 "@@@STEP_LOG_LINE@python.inline@@@@",
170 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
171 "@@@STEP_LOG_END@python.inline@@@"
172 ]
173 },
174 {
175 "cmd": [
176 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 176 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
177 "-j",
178 "50",
177 "-w", 179 "-w",
178 "dupbuild=err", 180 "dupbuild=err",
179 "-C", 181 "-C",
180 "None/out/Debug", 182 "None/out/Debug",
181 "-k", 183 "-k",
182 "0", 184 "0",
183 "-j",
184 "50",
185 "All" 185 "All"
186 ], 186 ],
187 "env": { 187 "env": {
188 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 188 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
189 }, 189 },
190 "name": "compile with ninja" 190 "name": "compile with ninja"
191 }, 191 },
192 { 192 {
193 "cmd": [], 193 "cmd": [],
194 "name": "postprocess_for_goma" 194 "name": "postprocess_for_goma"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 "-u", 245 "-u",
246 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py", 246 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py",
247 "--upload-compiler-proxy-info", 247 "--upload-compiler-proxy-info",
248 "--json-status", 248 "--json-status",
249 "[CACHE]/cipd/goma/jsonstatus", 249 "[CACHE]/cipd/goma/jsonstatus",
250 "--ninja-log-outdir", 250 "--ninja-log-outdir",
251 "None/out/Debug", 251 "None/out/Debug",
252 "--ninja-log-compiler", 252 "--ninja-log-compiler",
253 "goma-clang", 253 "goma-clang",
254 "--ninja-log-command", 254 "--ninja-log-command",
255 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-w', 'dupbuild=err', '-C', 'N one/out/Debug', '-k', '0', '-j', 50, 'All']", 255 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-j', 50, '-w', 'dupbuild=err' , '-C', 'None/out/Debug', '-k', '0', 'All']",
256 "--ninja-log-exit-status", 256 "--ninja-log-exit-status",
257 "0", 257 "0",
258 "--buildbot-buildername", 258 "--buildbot-buildername",
259 "Chromium Linux Codesearch Builder", 259 "Chromium Linux Codesearch Builder",
260 "--buildbot-mastername", 260 "--buildbot-mastername",
261 "tryserver.chromium.linux", 261 "tryserver.chromium.linux",
262 "--buildbot-slavename", 262 "--buildbot-slavename",
263 "build1-a1" 263 "build1-a1"
264 ], 264 ],
265 "env": { 265 "env": {
(...skipping 17 matching lines...) Expand all
283 "~followup_annotations": [ 283 "~followup_annotations": [
284 "@@@STEP_NEST_LEVEL@1@@@" 284 "@@@STEP_NEST_LEVEL@1@@@"
285 ] 285 ]
286 }, 286 },
287 { 287 {
288 "name": "$result", 288 "name": "$result",
289 "recipe_result": null, 289 "recipe_result": null,
290 "status_code": 0 290 "status_code": 0
291 } 291 }
292 ] 292 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698