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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py

Issue 2261833003: Don't run git add/rm after rebaseline commands for rebaseline-cl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 """A command to fetch new baselines from try jobs for a Rietveld issue. 5 """A command to fetch new baselines from try jobs for a Rietveld issue.
6 6
7 This command interacts with the Rietveld API to get information about try jobs 7 This command interacts with the Rietveld API to get information about try jobs
8 with layout test results. 8 with layout test results.
9 """ 9 """
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 builds = [Build(j.builder_name, j.build_number) for j in try_jobs] 59 builds = [Build(j.builder_name, j.build_number) for j in try_jobs]
60 for test in args: 60 for test in args:
61 test_prefix_list[test] = {b: BASELINE_SUFFIX_LIST for b in build s} 61 test_prefix_list[test] = {b: BASELINE_SUFFIX_LIST for b in build s}
62 else: 62 else:
63 test_prefix_list = self._test_prefix_list( 63 test_prefix_list = self._test_prefix_list(
64 issue_number, only_changed_tests=options.only_changed_tests) 64 issue_number, only_changed_tests=options.only_changed_tests)
65 self._log_test_prefix_list(test_prefix_list) 65 self._log_test_prefix_list(test_prefix_list)
66 66
67 if options.dry_run: 67 if options.dry_run:
68 return 68 return
69 self._rebaseline(options, test_prefix_list) 69 self._rebaseline(options, test_prefix_list, update_scm=False)
wkorman 2016/08/19 22:54:07 So in terms of addressing the bug, after this chan
qyearsley 2016/08/19 23:32:27 Right, exactly. Changes will be made but not stage
70 70
71 def _get_issue_number(self, options): 71 def _get_issue_number(self, options):
72 """Gets the Rietveld CL number from either |options| or from the current local branch.""" 72 """Gets the Rietveld CL number from either |options| or from the current local branch."""
73 if options.issue: 73 if options.issue:
74 return options.issue 74 return options.issue
75 issue_number = self.git().get_issue_number() 75 issue_number = self.git().get_issue_number()
76 _log.debug('Issue number for current branch: %s', issue_number) 76 _log.debug('Issue number for current branch: %s', issue_number)
77 if not issue_number.isdigit(): 77 if not issue_number.isdigit():
78 _log.error('No issue number given and no issue for current branch.') 78 _log.error('No issue number given and no issue for current branch.')
79 return None 79 return None
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 @staticmethod 142 @staticmethod
143 def _log_test_prefix_list(test_prefix_list): 143 def _log_test_prefix_list(test_prefix_list):
144 """Logs the tests to download new baselines for.""" 144 """Logs the tests to download new baselines for."""
145 if not test_prefix_list: 145 if not test_prefix_list:
146 _log.info('No tests to rebaseline.') 146 _log.info('No tests to rebaseline.')
147 return 147 return
148 _log.info('Tests to rebaseline:') 148 _log.info('Tests to rebaseline:')
149 for test, builds in test_prefix_list.iteritems(): 149 for test, builds in test_prefix_list.iteritems():
150 builds_str = ', '.join(sorted('%s (%s)' % (b.builder_name, b.build_n umber) for b in builds)) 150 builds_str = ', '.join(sorted('%s (%s)' % (b.builder_name, b.build_n umber) for b in builds))
151 _log.info(' %s: %s', test, builds_str) 151 _log.info(' %s: %s', test, builds_str)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698