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

Side by Side Diff: tools/roll_deps.py

Issue 143903005: Add reviewers to roll_deps.py, remove linux_heapcheck bot (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | no next file » | 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/python2 1 #!/usr/bin/python2
2 2
3 # Copyright 2014 Google Inc. 3 # Copyright 2014 Google Inc.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 """Skia's Chromium DEPS roll script. 8 """Skia's Chromium DEPS roll script.
9 9
10 This script: 10 This script:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 self.vsp = VerboseSubprocess(self.verbose) 57 self.vsp = VerboseSubprocess(self.verbose)
58 self.save_branches = not options.delete_branches 58 self.save_branches = not options.delete_branches
59 self.search_depth = options.search_depth 59 self.search_depth = options.search_depth
60 self.chromium_path = options.chromium_path 60 self.chromium_path = options.chromium_path
61 self.git = options.git_path 61 self.git = options.git_path
62 self.skip_cl_upload = options.skip_cl_upload 62 self.skip_cl_upload = options.skip_cl_upload
63 # Split and remove empty strigns from the bot list. 63 # Split and remove empty strigns from the bot list.
64 self.cl_bot_list = [bot for bot in options.bots.split(',') if bot] 64 self.cl_bot_list = [bot for bot in options.bots.split(',') if bot]
65 self.skia_git_checkout_path = options.skia_git_path 65 self.skia_git_checkout_path = options.skia_git_path
66 self.default_branch_name = 'autogenerated_deps_roll_branch' 66 self.default_branch_name = 'autogenerated_deps_roll_branch'
67 self.reviewers_list = ','.join([
68 # 'rmistry@google.com',
69 # 'reed@google.com',
70 # 'bsalomon@google.com',
71 # 'robertphillips@google.com',
72 ])
robertphillips 2014/01/21 20:18:55 Is this going to mess up the chromium-reviews@chro
73 self.cc_list = ','.join([
74 # 'skia-team@google.com',
75 ])
67 76
68 @staticmethod 77 @staticmethod
69 def GetOptionParser(): 78 def GetOptionParser():
70 # pylint: disable=I0011,C0103 79 # pylint: disable=I0011,C0103
71 """Returns an optparse.OptionParser object. 80 """Returns an optparse.OptionParser object.
72 81
73 Returns: 82 Returns:
74 An optparse.OptionParser object. 83 An optparse.OptionParser object.
75 84
76 Called by the main() function. 85 Called by the main() function.
77 """ 86 """
78 default_bots_list = [ 87 default_bots_list = [
79 'android_clang_dbg', 88 'android_clang_dbg',
80 'android_dbg', 89 'android_dbg',
81 'android_rel', 90 'android_rel',
82 'cros_daisy', 91 'cros_daisy',
83 'linux', 92 'linux',
84 'linux_asan', 93 'linux_asan',
85 'linux_chromeos', 94 'linux_chromeos',
86 'linux_chromeos_asan', 95 'linux_chromeos_asan',
87 'linux_gpu', 96 'linux_gpu',
88 'linux_heapcheck',
89 'linux_layout', 97 'linux_layout',
90 'linux_layout_rel', 98 'linux_layout_rel',
91 'mac', 99 'mac',
92 'mac_asan', 100 'mac_asan',
93 'mac_gpu', 101 'mac_gpu',
94 'mac_layout', 102 'mac_layout',
95 'mac_layout_rel', 103 'mac_layout_rel',
96 'win', 104 'win',
97 'win_gpu', 105 'win_gpu',
98 'win_layout', 106 'win_layout',
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 # pylint: disable=I0011,R0912 605 # pylint: disable=I0011,R0912
598 git = self._config.git 606 git = self._config.git
599 vsp = self._config.vsp 607 vsp = self._config.vsp
600 svn_info = str(get_svn_revision(self._config, 'HEAD')) 608 svn_info = str(get_svn_revision(self._config, 'HEAD'))
601 609
602 for filename in self._file_list: 610 for filename in self._file_list:
603 assert os.path.exists(filename) 611 assert os.path.exists(filename)
604 vsp.check_call([git, 'add', filename]) 612 vsp.check_call([git, 'add', filename])
605 vsp.check_call([git, 'commit', '-q', '-m', self._message]) 613 vsp.check_call([git, 'commit', '-q', '-m', self._message])
606 614
607 git_cl = [git, 'cl', 'upload', '-f', '--cc=skia-team@google.com', 615 git_cl = [git, 'cl', 'upload', '-f',
608 '--bypass-hooks', '--bypass-watchlists'] 616 '--bypass-hooks', '--bypass-watchlists']
617 if self._config.cc_list:
618 git_cl.append('--cc=%s' % self._config.cc_list)
619 if self._config.reviewers_list:
620 git_cl.append('--reviewers=%s' % self._config.reviewers_list)
621
609 git_try = [git, 'cl', 'try', '--revision', svn_info] 622 git_try = [git, 'cl', 'try', '--revision', svn_info]
610 git_try.extend([arg for bot in self._config.cl_bot_list 623 git_try.extend([arg for bot in self._config.cl_bot_list
611 for arg in ('-b', bot)]) 624 for arg in ('-b', bot)])
612 625
613 if self._config.skip_cl_upload: 626 if self._config.skip_cl_upload:
614 print 'You should call:' 627 print 'You should call:'
615 print ' cd %s' % os.getcwd() 628 print ' cd %s' % os.getcwd()
616 VerboseSubprocess.print_subprocess_args( 629 VerboseSubprocess.print_subprocess_args(
617 ' ', [git, 'checkout', self._branch_name]) 630 ' ', [git, 'checkout', self._branch_name])
618 VerboseSubprocess.print_subprocess_args(' ', git_cl) 631 VerboseSubprocess.print_subprocess_args(' ', git_cl)
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 if not test_git_executable(options.git_path): 814 if not test_git_executable(options.git_path):
802 option_parser.error('Invalid git executable.') 815 option_parser.error('Invalid git executable.')
803 816
804 config = DepsRollConfig(options) 817 config = DepsRollConfig(options)
805 find_hash_and_roll_deps(config, options.revision, options.git_hash) 818 find_hash_and_roll_deps(config, options.revision, options.git_hash)
806 819
807 820
808 if __name__ == '__main__': 821 if __name__ == '__main__':
809 main(sys.argv[1:]) 822 main(sys.argv[1:])
810 823
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698