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 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1404 def AddWebRtcPerfContentUnittests(self, factory_properties=None): | 1404 def AddWebRtcPerfContentUnittests(self, factory_properties=None): |
1405 self.AddAnnotatedPerfStep(test_name='webrtc_perf_content_unittests', | 1405 self.AddAnnotatedPerfStep(test_name='webrtc_perf_content_unittests', |
1406 gtest_filter="WebRTCAudioDeviceTest*", | 1406 gtest_filter="WebRTCAudioDeviceTest*", |
1407 log_type='graphing', | 1407 log_type='graphing', |
1408 factory_properties=factory_properties, | 1408 factory_properties=factory_properties, |
1409 cmd_name='content_unittests') | 1409 cmd_name='content_unittests') |
1410 | 1410 |
1411 def AddWebRtcPerfManualContentBrowserTests(self, factory_properties=None): | 1411 def AddWebRtcPerfManualContentBrowserTests(self, factory_properties=None): |
1412 cmd_options = ['--run-manual', '--test-launcher-print-test-stdio=always'] | 1412 cmd_options = ['--run-manual', '--test-launcher-print-test-stdio=always'] |
1413 self.AddAnnotatedPerfStep(test_name='webrtc_manual_content_browsertests', | 1413 self.AddAnnotatedPerfStep(test_name='webrtc_manual_content_browsertests', |
1414 gtest_filter="WebRTC*:Webrtc*:*Dtmf", | 1414 gtest_filter="WebRtc*", |
1415 log_type='graphing', | 1415 log_type='graphing', |
1416 factory_properties=factory_properties, | 1416 factory_properties=factory_properties, |
1417 cmd_name='content_browsertests', | 1417 cmd_name='content_browsertests', |
1418 cmd_options=cmd_options) | 1418 cmd_options=cmd_options) |
1419 | 1419 |
1420 def AddWebRtcPerfManualBrowserTests(self, factory_properties=None): | 1420 def AddWebRtcPerfManualBrowserTests(self, factory_properties=None): |
1421 # These tests needs --test-launcher-jobs=1 since some of them are not able | 1421 # These tests needs --test-launcher-jobs=1 since some of them are not able |
1422 # to run in parallel (due to the usage of the peerconnection server). | 1422 # to run in parallel (due to the usage of the peerconnection server). |
1423 # We also need a longer timeout because the video quality test generally | 1423 # We also need a longer timeout because the video quality test generally |
1424 # needs about 90 seconds to execute on the bot. | 1424 # needs about 90 seconds to execute on the bot. |
1425 longer_timeout_ms = 3 * 60 * 1000 | 1425 longer_timeout_ms = 3 * 60 * 1000 |
1426 cmd_options = ['--run-manual', | 1426 cmd_options = ['--run-manual', |
1427 '--ui-test-action-max-timeout=%d' % longer_timeout_ms, | 1427 '--ui-test-action-max-timeout=%d' % longer_timeout_ms, |
1428 '--test-launcher-jobs=1', | 1428 '--test-launcher-jobs=1', |
1429 '--test-launcher-print-test-stdio=always'] | 1429 '--test-launcher-print-test-stdio=always'] |
1430 self.AddAnnotatedPerfStep(test_name='webrtc_manual_browser_tests', | 1430 self.AddAnnotatedPerfStep(test_name='webrtc_manual_browser_tests', |
1431 gtest_filter="Webrtc*", | 1431 gtest_filter="WebRtc*", |
1432 log_type='graphing', | 1432 log_type='graphing', |
1433 factory_properties=factory_properties, | 1433 factory_properties=factory_properties, |
1434 cmd_name='browser_tests', | 1434 cmd_name='browser_tests', |
1435 cmd_options=cmd_options) | 1435 cmd_options=cmd_options) |
1436 | 1436 |
1437 def AddMiniInstallerTestStep(self, factory_properties): | 1437 def AddMiniInstallerTestStep(self, factory_properties): |
1438 cmd = [self._python, self._mini_installer_tests_tool, | 1438 cmd = [self._python, self._mini_installer_tests_tool, |
1439 '--target', self._target] | 1439 '--target', self._target] |
1440 self.AddTestStep(chromium_step.AnnotatedCommand, 'test_mini_installer', cmd, | 1440 self.AddTestStep(chromium_step.AnnotatedCommand, 'test_mini_installer', cmd, |
1441 halt_on_failure=True, timeout=600, | 1441 halt_on_failure=True, timeout=600, |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1573 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) |
1574 | 1574 |
1575 | 1575 |
1576 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): | 1576 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): |
1577 if not factory_properties or 'gs_bucket' not in factory_properties: | 1577 if not factory_properties or 'gs_bucket' not in factory_properties: |
1578 return (_GetArchiveUrl('snapshots', builder_name), None) | 1578 return (_GetArchiveUrl('snapshots', builder_name), None) |
1579 gs_bucket = factory_properties['gs_bucket'] | 1579 gs_bucket = factory_properties['gs_bucket'] |
1580 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', | 1580 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', |
1581 gs_bucket) | 1581 gs_bucket) |
1582 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') | 1582 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') |
OLD | NEW |