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

Side by Side Diff: scripts/slave/compile.py

Issue 1906513003: Revert "goma: use GOMA_SERVICE_ACCOUNT_JSON_FILE" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/api.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """A tool to build chrome, executed by buildbot. 6 """A tool to build chrome, executed by buildbot.
7 7
8 When this is run, the current directory (cwd) should be the outer build 8 When this is run, the current directory (cwd) should be the outer build
9 directory (e.g., chrome-release/build/). 9 directory (e.g., chrome-release/build/).
10 10
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 env['GOMA_COMPILER_INFO_CACHE_FILE'] = 'goma-compiler-info.cache' 170 env['GOMA_COMPILER_INFO_CACHE_FILE'] = 'goma-compiler-info.cache'
171 171
172 if options.build_data_dir: 172 if options.build_data_dir:
173 env['GOMA_DUMP_STATS_FILE'] = os.path.join(options.build_data_dir, 173 env['GOMA_DUMP_STATS_FILE'] = os.path.join(options.build_data_dir,
174 'goma_stats_proto') 174 'goma_stats_proto')
175 175
176 # goma is requested. 176 # goma is requested.
177 goma_key = os.path.join(options.goma_dir, 'goma.key') 177 goma_key = os.path.join(options.goma_dir, 'goma.key')
178 if os.path.exists(goma_key): 178 if os.path.exists(goma_key):
179 env['GOMA_API_KEY_FILE'] = goma_key 179 env['GOMA_API_KEY_FILE'] = goma_key
180 if options.goma_service_account_json_file:
181 env['GOMA_SERVICE_ACCOUNT_JSON_FILE'] = \
182 options.goma_service_account_json_file
183 if chromium_utils.IsWindows(): 180 if chromium_utils.IsWindows():
184 env['GOMA_RPC_EXTRA_PARAMS'] = '?win' 181 env['GOMA_RPC_EXTRA_PARAMS'] = '?win'
185 goma_start_command = ['restart'] if options.clobber else ['ensure_start'] 182 goma_start_command = ['restart'] if options.clobber else ['ensure_start']
186 goma_ctl_cmd = [sys.executable, 183 goma_ctl_cmd = [sys.executable,
187 os.path.join(options.goma_dir, 'goma_ctl.py')] 184 os.path.join(options.goma_dir, 'goma_ctl.py')]
188 result = chromium_utils.RunCommand(goma_ctl_cmd + goma_start_command, env=env) 185 result = chromium_utils.RunCommand(goma_ctl_cmd + goma_start_command, env=env)
189 if not result: 186 if not result:
190 # goma started sucessfully. 187 # goma started sucessfully.
191 return True 188 return True
192 189
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 help='Enable goma remote link.') 1258 help='Enable goma remote link.')
1262 option_parser.add_option('--goma-enable-compiler-info-cache', 1259 option_parser.add_option('--goma-enable-compiler-info-cache',
1263 action='store_true', 1260 action='store_true',
1264 help='Enable goma CompilerInfo cache') 1261 help='Enable goma CompilerInfo cache')
1265 option_parser.add_option('--goma-store-local-run-output', default=None, 1262 option_parser.add_option('--goma-store-local-run-output', default=None,
1266 help='Store local run output to goma servers.') 1263 help='Store local run output to goma servers.')
1267 option_parser.add_option('--goma-fail-fast', action='store_true') 1264 option_parser.add_option('--goma-fail-fast', action='store_true')
1268 option_parser.add_option('--goma-disable-local-fallback', action='store_true') 1265 option_parser.add_option('--goma-disable-local-fallback', action='store_true')
1269 option_parser.add_option('--goma-jsonstatus', 1266 option_parser.add_option('--goma-jsonstatus',
1270 help='Specify a file to dump goma_ctl jsonstatus.') 1267 help='Specify a file to dump goma_ctl jsonstatus.')
1271 option_parser.add_option('--goma-service-account-json-file',
1272 help='Specify a file containing goma service account'
1273 ' credentials')
1274 option_parser.add_option('--verbose', action='store_true') 1268 option_parser.add_option('--verbose', action='store_true')
1275 option_parser.add_option('--gsutil-py-path', 1269 option_parser.add_option('--gsutil-py-path',
1276 help='Specify path to gsutil.py script.') 1270 help='Specify path to gsutil.py script.')
1277 option_parser.add_option('--ninja-path', default='ninja', 1271 option_parser.add_option('--ninja-path', default='ninja',
1278 help='Specify path to the ninja tool.') 1272 help='Specify path to the ninja tool.')
1279 option_parser.add_option('--ninja-ensure-up-to-date', action='store_true', 1273 option_parser.add_option('--ninja-ensure-up-to-date', action='store_true',
1280 help='Checks the output of the ninja builder to ' 1274 help='Checks the output of the ninja builder to '
1281 'confirm that a second compile immediately ' 1275 'confirm that a second compile immediately '
1282 'the first is a no-op.') 1276 'the first is a no-op.')
1283 1277
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 sys.stderr.write('Unknown build tool %s.\n' % repr(options.build_tool)) 1345 sys.stderr.write('Unknown build tool %s.\n' % repr(options.build_tool))
1352 return 2 1346 return 2
1353 1347
1354 options.target_output_dir = get_target_build_dir(args, options) 1348 options.target_output_dir = get_target_build_dir(args, options)
1355 1349
1356 return main(options, args) 1350 return main(options, args)
1357 1351
1358 1352
1359 if '__main__' == __name__: 1353 if '__main__' == __name__:
1360 sys.exit(real_main()) 1354 sys.exit(real_main())
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698