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

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

Issue 1814713002: ensure_goma for goma canary (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 9 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
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.Placeholder): 10 class TestLauncherFilterFileInputPlaceholder(recipe_util.Placeholder):
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 # Other platforms continue to use DEPS-ed goma. 467 # Other platforms continue to use DEPS-ed goma.
468 if not self.m.platform.is_linux: 468 if not self.m.platform.is_linux:
469 return 469 return
470 470
471 # TODO(phajdan.jr): Move goma out of src checkout. 471 # TODO(phajdan.jr): Move goma out of src checkout.
472 goma_dir = self.m.path['checkout'].join('build', 'goma', 'client') 472 goma_dir = self.m.path['checkout'].join('build', 'goma', 'client')
473 473
474 self.c.gyp_env.GYP_DEFINES['gomadir'] = goma_dir 474 self.c.gyp_env.GYP_DEFINES['gomadir'] = goma_dir
475 self.c.compile_py.goma_dir = goma_dir 475 self.c.compile_py.goma_dir = goma_dir
476 476
477 self.m.goma.ensure_goma(goma_dir) 477 self.m.goma.ensure_goma(goma_dir, canary=self.c.compile_py.goma_canary)
478 478
479 def runhooks(self, **kwargs): 479 def runhooks(self, **kwargs):
480 """Run the build-configuration hooks for chromium.""" 480 """Run the build-configuration hooks for chromium."""
481 env = self.get_env() 481 env = self.get_env()
482 env.update(kwargs.get('env', {})) 482 env.update(kwargs.get('env', {}))
483 483
484 # CrOS "chrome_sdk" builds fully override GYP_DEFINES in the wrapper. Zero 484 # CrOS "chrome_sdk" builds fully override GYP_DEFINES in the wrapper. Zero
485 # it to not show confusing information in the build logs. 485 # it to not show confusing information in the build logs.
486 if not self.c.TARGET_CROS_BOARD: 486 if not self.c.TARGET_CROS_BOARD:
487 # TODO(sbc): Ideally we would not need gyp_env set during runhooks when 487 # TODO(sbc): Ideally we would not need gyp_env set during runhooks when
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 })) 715 }))
716 716
717 def get_annotate_by_test_name(self, test_name): 717 def get_annotate_by_test_name(self, test_name):
718 return 'graphing' 718 return 'graphing'
719 719
720 def download_lto_plugin(self): 720 def download_lto_plugin(self):
721 return self.m.python( 721 return self.m.python(
722 name='download LTO plugin', 722 name='download LTO plugin',
723 script=self.m.path['checkout'].join( 723 script=self.m.path['checkout'].join(
724 'build', 'download_gold_plugin.py')) 724 'build', 'download_gold_plugin.py'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698