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

Side by Side Diff: scripts/slave/recipe_modules/chromium/api.py

Issue 1915473003: goma: back to build-provided client and disable oauth2 (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
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import re 5 import re
6 6
7 from recipe_engine import recipe_api 7 from recipe_engine import recipe_api
8 from recipe_engine import util as recipe_util 8 from recipe_engine import util as recipe_util
9 9
10 class TestLauncherFilterFileInputPlaceholder(recipe_util.InputPlaceholder): 10 class TestLauncherFilterFileInputPlaceholder(recipe_util.InputPlaceholder):
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 args += ['--build-tool', self.c.compile_py.build_tool] 168 args += ['--build-tool', self.c.compile_py.build_tool]
169 if self.m.properties.get('build_data_dir'): 169 if self.m.properties.get('build_data_dir'):
170 args += ['--build-data-dir', self.m.properties.get('build_data_dir')] 170 args += ['--build-data-dir', self.m.properties.get('build_data_dir')]
171 if self.c.compile_py.cross_tool: 171 if self.c.compile_py.cross_tool:
172 args += ['--crosstool', self.c.compile_py.cross_tool] 172 args += ['--crosstool', self.c.compile_py.cross_tool]
173 if self.c.compile_py.compiler: 173 if self.c.compile_py.compiler:
174 args += ['--compiler', self.c.compile_py.compiler] 174 args += ['--compiler', self.c.compile_py.compiler]
175 if 'goma' in self.c.compile_py.compiler: 175 if 'goma' in self.c.compile_py.compiler:
176 args += [ 176 args += [
177 '--goma-jsonstatus', self.m.json.output(), 177 '--goma-jsonstatus', self.m.json.output(),
178 '--goma-service-account-json-file',
179 self.m.goma.service_account_json_path,
180 ] 178 ]
181 if out_dir: 179 if out_dir:
182 args += ['--out-dir', out_dir] 180 args += ['--out-dir', out_dir]
183 if self.c.compile_py.mode: 181 if self.c.compile_py.mode:
184 args += ['--mode', self.c.compile_py.mode] 182 args += ['--mode', self.c.compile_py.mode]
185 if self.c.compile_py.goma_dir: 183 if self.c.compile_py.goma_dir:
186 args += ['--goma-dir', self.c.compile_py.goma_dir] 184 args += ['--goma-dir', self.c.compile_py.goma_dir]
187 if self.c.compile_py.goma_hermetic: 185 if self.c.compile_py.goma_hermetic:
188 args += ['--goma-hermetic', self.c.compile_py.goma_hermetic] 186 args += ['--goma-hermetic', self.c.compile_py.goma_hermetic]
189 if self.c.compile_py.goma_enable_remote_link: 187 if self.c.compile_py.goma_enable_remote_link:
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 wrapper += ['--clear-sdk-cache'] 457 wrapper += ['--clear-sdk-cache']
460 if self.c.compile_py.goma_dir: 458 if self.c.compile_py.goma_dir:
461 wrapper += ['--gomadir', self.c.compile_py.goma_dir] 459 wrapper += ['--gomadir', self.c.compile_py.goma_dir]
462 if self.c.gyp_env.GYP_DEFINES.get('fastbuild', 0) == 1: 460 if self.c.gyp_env.GYP_DEFINES.get('fastbuild', 0) == 1:
463 wrapper += ['--fastbuild'] 461 wrapper += ['--fastbuild']
464 wrapper += ['--'] 462 wrapper += ['--']
465 return wrapper 463 return wrapper
466 464
467 def ensure_goma(self): 465 def ensure_goma(self):
468 # TODO(phajdan.jr): make cipd-fetched goma work on chromeos. 466 # TODO(phajdan.jr): make cipd-fetched goma work on chromeos.
469 if self.c.gyp_env.GYP_DEFINES.get('chromeos') == 1: 467 if self.c.gyp_env.GYP_DEFINES.get('chromeos') == 1: # pragma: no cover
470 return 468 return
471 469
472 goma_dir = self.m.goma.ensure_goma() 470 goma_dir = self.m.goma.ensure_goma()
473 if goma_dir: 471 if goma_dir:
474 # TODO(phajdan.jr): goma_dir should always be non-empty. 472 # TODO(phajdan.jr): goma_dir should always be non-empty.
475 self.c.gyp_env.GYP_DEFINES['gomadir'] = goma_dir 473 self.c.gyp_env.GYP_DEFINES['gomadir'] = goma_dir
476 self.c.compile_py.goma_dir = goma_dir 474 self.c.compile_py.goma_dir = goma_dir
477 475
478 def runhooks(self, **kwargs): 476 def runhooks(self, **kwargs):
479 """Run the build-configuration hooks for chromium.""" 477 """Run the build-configuration hooks for chromium."""
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 })) 710 }))
713 711
714 def get_annotate_by_test_name(self, test_name): 712 def get_annotate_by_test_name(self, test_name):
715 return 'graphing' 713 return 'graphing'
716 714
717 def download_lto_plugin(self): 715 def download_lto_plugin(self):
718 return self.m.python( 716 return self.m.python(
719 name='download LTO plugin', 717 name='download LTO plugin',
720 script=self.m.path['checkout'].join( 718 script=self.m.path['checkout'].join(
721 'build', 'download_gold_plugin.py')) 719 'build', 'download_gold_plugin.py'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698