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

Side by Side Diff: scripts/slave/recipe_modules/goma/example.expected/linux.json

Issue 2480193002: Stop to use contextmanager for goma.build_with_goma (Closed)
Patch Set: rebase Created 4 years 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 "GOMA_DUMP_STATS_FILE": "build_data_dir/goma_stats_proto", 82 "GOMA_DUMP_STATS_FILE": "build_data_dir/goma_stats_proto",
83 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 83 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
84 }, 84 },
85 "name": "preprocess_for_goma.start_goma", 85 "name": "preprocess_for_goma.start_goma",
86 "~followup_annotations": [ 86 "~followup_annotations": [
87 "@@@STEP_NEST_LEVEL@1@@@" 87 "@@@STEP_NEST_LEVEL@1@@@"
88 ] 88 ]
89 }, 89 },
90 { 90 {
91 "cmd": [ 91 "cmd": [
92 "python",
93 "-u",
94 "\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"
95 ],
96 "name": "calculate the number of recommended jobs",
97 "stdout": "/path/to/tmp/",
98 "~followup_annotations": [
99 "@@@STEP_LOG_LINE@python.inline@@@@",
100 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
101 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
102 "@@@STEP_LOG_LINE@python.inline@@@@",
103 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
104 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
105 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
106 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
107 "@@@STEP_LOG_LINE@python.inline@@@@",
108 "@@@STEP_LOG_LINE@python.inline@try:@@@",
109 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
110 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
111 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
112 "@@@STEP_LOG_LINE@python.inline@@@@",
113 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
114 "@@@STEP_LOG_END@python.inline@@@"
115 ]
116 },
117 {
118 "cmd": [
119 "echo",
120 "50"
121 ],
122 "name": "echo goma jobs"
123 },
124 {
125 "cmd": [
126 "echo",
127 "50"
128 ],
129 "name": "echo goma jobs second"
130 },
131 {
132 "cmd": [
133 "ninja", 92 "ninja",
93 "-j",
94 "80",
134 "-C", 95 "-C",
135 "out/Release", 96 "out/Release"
136 "-j",
137 "500"
138 ], 97 ],
139 "name": "ninja" 98 "name": "ninja"
140 }, 99 },
141 { 100 {
142 "cmd": [], 101 "cmd": [],
143 "name": "postprocess_for_goma" 102 "name": "postprocess_for_goma"
144 }, 103 },
145 { 104 {
146 "cmd": [ 105 "cmd": [
147 "python", 106 "python",
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 "-u", 159 "-u",
201 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py", 160 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py",
202 "--upload-compiler-proxy-info", 161 "--upload-compiler-proxy-info",
203 "--json-status", 162 "--json-status",
204 "[CACHE]/cipd/goma/jsonstatus", 163 "[CACHE]/cipd/goma/jsonstatus",
205 "--ninja-log-outdir", 164 "--ninja-log-outdir",
206 "out/Release", 165 "out/Release",
207 "--ninja-log-compiler", 166 "--ninja-log-compiler",
208 "goma", 167 "goma",
209 "--ninja-log-command", 168 "--ninja-log-command",
210 "['ninja', '-C', 'out/Release', '-j', '500']", 169 "['ninja', '-j', '80', '-C', 'out/Release']",
211 "--ninja-log-exit-status", 170 "--ninja-log-exit-status",
212 "0", 171 "0",
213 "--goma-stats-file", 172 "--goma-stats-file",
214 "build_data_dir/goma_stats_proto", 173 "build_data_dir/goma_stats_proto",
215 "--goma-crash-report-id-file", 174 "--goma-crash-report-id-file",
216 "build_data_dir/crash_report_id_file", 175 "build_data_dir/crash_report_id_file",
217 "--build-data-dir", 176 "--build-data-dir",
218 "build_data_dir", 177 "build_data_dir",
219 "--buildbot-buildername", 178 "--buildbot-buildername",
220 "test_builder", 179 "test_builder",
(...skipping 13 matching lines...) Expand all
234 "~followup_annotations": [ 193 "~followup_annotations": [
235 "@@@STEP_NEST_LEVEL@1@@@" 194 "@@@STEP_NEST_LEVEL@1@@@"
236 ] 195 ]
237 }, 196 },
238 { 197 {
239 "name": "$result", 198 "name": "$result",
240 "recipe_result": null, 199 "recipe_result": null,
241 "status_code": 0 200 "status_code": 0
242 } 201 }
243 ] 202 ]
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/goma/example.py ('k') | scripts/slave/recipe_modules/goma/example.expected/mac.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698