| OLD | NEW |
| 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 |
| 11 import json | 11 import json |
| 12 import logging | 12 import logging |
| 13 import optparse | 13 import optparse |
| 14 | 14 |
| 15 from webkitpy.common.net.rietveld import Rietveld | 15 from webkitpy.common.net.rietveld import Rietveld |
| 16 from webkitpy.common.net.web import Web | 16 from webkitpy.common.net.web import Web |
| 17 from webkitpy.common.net.git_cl import GitCL | 17 from webkitpy.common.net.git_cl import GitCL |
| 18 from webkitpy.common.webkit_finder import WebKitFinder | |
| 19 from webkitpy.layout_tests.models.test_expectations import BASELINE_SUFFIX_LIST | 18 from webkitpy.layout_tests.models.test_expectations import BASELINE_SUFFIX_LIST |
| 20 from webkitpy.tool.commands.rebaseline import AbstractParallelRebaselineCommand | 19 from webkitpy.tool.commands.rebaseline import AbstractParallelRebaselineCommand |
| 21 | 20 |
| 22 _log = logging.getLogger(__name__) | 21 _log = logging.getLogger(__name__) |
| 23 | 22 |
| 24 | 23 |
| 25 class RebaselineCL(AbstractParallelRebaselineCommand): | 24 class RebaselineCL(AbstractParallelRebaselineCommand): |
| 26 name = "rebaseline-cl" | 25 name = "rebaseline-cl" |
| 27 help_text = "Fetches new baselines for a CL from test runs on try bots." | 26 help_text = "Fetches new baselines for a CL from test runs on try bots." |
| 28 long_help = ("By default, this command will check the latest try job results
" | 27 long_help = ("By default, this command will check the latest try job results
" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 def _log_test_prefix_list(test_prefix_list): | 220 def _log_test_prefix_list(test_prefix_list): |
| 222 """Logs the tests to download new baselines for.""" | 221 """Logs the tests to download new baselines for.""" |
| 223 if not test_prefix_list: | 222 if not test_prefix_list: |
| 224 _log.info('No tests to rebaseline; exiting.') | 223 _log.info('No tests to rebaseline; exiting.') |
| 225 return | 224 return |
| 226 _log.debug('Tests to rebaseline:') | 225 _log.debug('Tests to rebaseline:') |
| 227 for test, builds in test_prefix_list.iteritems(): | 226 for test, builds in test_prefix_list.iteritems(): |
| 228 _log.debug(' %s:', test) | 227 _log.debug(' %s:', test) |
| 229 for build in sorted(builds): | 228 for build in sorted(builds): |
| 230 _log.debug(' %s', build) | 229 _log.debug(' %s', build) |
| OLD | NEW |