| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 """Set of utilities to add commands to a buildbot factory. | 5 """Set of utilities to add commands to a buildbot factory. |
| 6 | 6 |
| 7 This is based on commands.py and adds chromium-specific commands.""" | 7 This is based on commands.py and adds chromium-specific commands.""" |
| 8 | 8 |
| 9 import logging | 9 import logging |
| 10 import os | 10 import os |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 # the platform (which is also linux2). | 499 # the platform (which is also linux2). |
| 500 args = ['--target', self._target] | 500 args = ['--target', self._target] |
| 501 | 501 |
| 502 if self._target_os == 'android': | 502 if self._target_os == 'android': |
| 503 args.extend(['--platform', 'android']) | 503 args.extend(['--platform', 'android']) |
| 504 | 504 |
| 505 self.AddBuildrunnerAnnotatedPerfStep('sizes', None, 'graphing', | 505 self.AddBuildrunnerAnnotatedPerfStep('sizes', None, 'graphing', |
| 506 step_name='sizes', cmd_name = self._sizes_tool, cmd_options=args, | 506 step_name='sizes', cmd_name = self._sizes_tool, cmd_options=args, |
| 507 py_script=True, factory_properties=factory_properties) | 507 py_script=True, factory_properties=factory_properties) |
| 508 | 508 |
| 509 def AddGpuThroughputTests(self, factory_properties=None): | |
| 510 options = ['--enable-gpu'] | |
| 511 tool_options = ['--no-xvfb'] | |
| 512 | |
| 513 self.AddAnnotatedPerfStep('gpu_throughput', 'ThroughputTest*', 'graphing', | |
| 514 cmd_name='performance_browser_tests', | |
| 515 step_name='gpu_throughput_tests', | |
| 516 cmd_options=options, | |
| 517 tool_opts=tool_options, | |
| 518 factory_properties=factory_properties) | |
| 519 | |
| 520 def AddTabCapturePerformanceTests(self, factory_properties=None): | 509 def AddTabCapturePerformanceTests(self, factory_properties=None): |
| 521 options = ['--enable-gpu'] | 510 options = ['--enable-gpu'] |
| 522 tool_options = ['--no-xvfb'] | 511 tool_options = ['--no-xvfb'] |
| 523 | 512 |
| 524 self.AddAnnotatedPerfStep('tab_capture_performance', | 513 self.AddAnnotatedPerfStep('tab_capture_performance', |
| 525 'TabCapturePerformanceTest*', 'graphing', | 514 'TabCapturePerformanceTest*', 'graphing', |
| 526 cmd_name='performance_browser_tests', | 515 cmd_name='performance_browser_tests', |
| 527 step_name='tab_capture_performance_tests', | 516 step_name='tab_capture_performance_tests', |
| 528 cmd_options=options, | 517 cmd_options=options, |
| 529 tool_opts=tool_options, | 518 tool_opts=tool_options, |
| (...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1584 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) | 1573 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) |
| 1585 | 1574 |
| 1586 | 1575 |
| 1587 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): | 1576 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): |
| 1588 if not factory_properties or 'gs_bucket' not in factory_properties: | 1577 if not factory_properties or 'gs_bucket' not in factory_properties: |
| 1589 return (_GetArchiveUrl('snapshots', builder_name), None) | 1578 return (_GetArchiveUrl('snapshots', builder_name), None) |
| 1590 gs_bucket = factory_properties['gs_bucket'] | 1579 gs_bucket = factory_properties['gs_bucket'] |
| 1591 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', | 1580 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', |
| 1592 gs_bucket) | 1581 gs_bucket) |
| 1593 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') | 1582 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') |
| OLD | NEW |