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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
447 # We don't need to run the Reference tests in debug mode. | 447 # We don't need to run the Reference tests in debug mode. |
448 if self._target == 'Debug': | 448 if self._target == 'Debug': |
449 test_list += ':-*.*Ref*' | 449 test_list += ':-*.*Ref*' |
450 | 450 |
451 self.AddAnnotatedPerfStep('startup', test_list, 'graphing', | 451 self.AddAnnotatedPerfStep('startup', test_list, 'graphing', |
452 factory_properties=factory_properties) | 452 factory_properties=factory_properties) |
453 | 453 |
454 def AddCCPerfTests(self, factory_properties=None): | 454 def AddCCPerfTests(self, factory_properties=None): |
455 self.AddAnnotatedPerfStep('cc_perftests', None, 'graphing', | 455 self.AddAnnotatedPerfStep('cc_perftests', None, 'graphing', |
456 cmd_name='cc_perftests', | 456 cmd_name='cc_perftests', |
457 cmd_options=[ | |
458 # Retrieving perf test results currently | |
459 # relies on parsing stdout. | |
460 # TODO(phajdan.jr): Do not parse stdout. | |
461 '--test-launcher-print-test-stdio=always' | |
462 ], | |
457 step_name='cc_perftests', | 463 step_name='cc_perftests', |
458 factory_properties=factory_properties) | 464 factory_properties=factory_properties) |
459 | 465 |
460 def AddMediaPerfTests(self, factory_properties=None): | 466 def AddMediaPerfTests(self, factory_properties=None): |
461 self.AddAnnotatedPerfStep('media_perftests', None, 'graphing', | 467 self.AddAnnotatedPerfStep('media_perftests', None, 'graphing', |
462 cmd_name='media_perftests', | 468 cmd_name='media_perftests', |
463 cmd_options=['--single-process-tests'], | 469 cmd_options=[ |
ghost stip (do not use)
2014/01/09 19:42:00
don't we still want single-process-tests?
Paweł Hajdan Jr.
2014/01/10 10:05:47
No, it's wrong. Generally it shouldn't be used bui
| |
470 # Retrieving perf test results currently | |
471 # relies on parsing stdout. | |
472 # TODO(phajdan.jr): Do not parse stdout. | |
473 '--test-launcher-print-test-stdio=always' | |
474 ], | |
464 step_name='media_perftests', | 475 step_name='media_perftests', |
465 factory_properties=factory_properties) | 476 factory_properties=factory_properties) |
466 | 477 |
467 def AddMemoryTests(self, factory_properties=None): | 478 def AddMemoryTests(self, factory_properties=None): |
468 self.AddAnnotatedPerfStep('memory', 'GeneralMix*MemoryTest.*', 'graphing', | 479 self.AddAnnotatedPerfStep('memory', 'GeneralMix*MemoryTest.*', 'graphing', |
469 factory_properties=factory_properties) | 480 factory_properties=factory_properties) |
470 | 481 |
471 def AddSyncPerfTests(self, factory_properties=None): | 482 def AddSyncPerfTests(self, factory_properties=None): |
472 options = ['--ui-test-action-max-timeout=120000'] | 483 options = ['--ui-test-action-max-timeout=120000'] |
473 | 484 |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1584 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) | 1595 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) |
1585 | 1596 |
1586 | 1597 |
1587 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): | 1598 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): |
1588 if not factory_properties or 'gs_bucket' not in factory_properties: | 1599 if not factory_properties or 'gs_bucket' not in factory_properties: |
1589 return (_GetArchiveUrl('snapshots', builder_name), None) | 1600 return (_GetArchiveUrl('snapshots', builder_name), None) |
1590 gs_bucket = factory_properties['gs_bucket'] | 1601 gs_bucket = factory_properties['gs_bucket'] |
1591 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', | 1602 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', |
1592 gs_bucket) | 1603 gs_bucket) |
1593 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') | 1604 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') |
OLD | NEW |