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

Side by Side Diff: scripts/master/factory/chromium_commands.py

Issue 23591008: Add mini_installer tests to the Chromium build infrastructure. (Closed) Base URL: http://src.chromium.org/chrome/trunk/tools/build/
Patch Set: Address robertshield's comment. Created 7 years, 3 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
« no previous file with comments | « masters/master.chromium.fyi/slaves.cfg ('k') | scripts/master/factory/chromium_factory.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 self._check_licenses_tool = J('src', 'tools', 'checklicenses', 91 self._check_licenses_tool = J('src', 'tools', 'checklicenses',
92 'checklicenses.py') 92 'checklicenses.py')
93 self._posix_memory_tests_runner = J('src', 'tools', 'valgrind', 93 self._posix_memory_tests_runner = J('src', 'tools', 'valgrind',
94 'chrome_tests.sh') 94 'chrome_tests.sh')
95 self._win_memory_tests_runner = J('src', 'tools', 'valgrind', 95 self._win_memory_tests_runner = J('src', 'tools', 'valgrind',
96 'chrome_tests.bat') 96 'chrome_tests.bat')
97 self._heapcheck_tool = J('src', 'tools', 'heapcheck', 'chrome_tests.sh') 97 self._heapcheck_tool = J('src', 'tools', 'heapcheck', 'chrome_tests.sh')
98 self._nacl_integration_tester_tool = J( 98 self._nacl_integration_tester_tool = J(
99 'src', 'chrome', 'test', 'nacl_test_injection', 99 'src', 'chrome', 'test', 'nacl_test_injection',
100 'buildbot_nacl_integration.py') 100 'buildbot_nacl_integration.py')
101 self._mini_installer_tests_runner = J('src', 'chrome', 'test',
102 'mini_installer', 'test_installer.py')
103 self._mini_installer_tests_config = J('src', 'chrome', 'test',
104 'mini_installer', 'config',
105 'config.config')
Nico 2013/12/14 00:21:40 Do you intend to have several configs in the futur
robertshield 2014/01/23 20:35:51 I'm looking into resurrecting these tests and movi
101 # chrome_staging directory, relative to the build directory. 106 # chrome_staging directory, relative to the build directory.
102 self._staging_dir = self.PathJoin('..', 'chrome_staging') 107 self._staging_dir = self.PathJoin('..', 'chrome_staging')
103 108
104 # The _update_scripts_command will be run in the _update_scripts_dir to 109 # The _update_scripts_command will be run in the _update_scripts_dir to
105 # udpate the slave's own script checkout. 110 # udpate the slave's own script checkout.
106 self._update_scripts_dir = '..' 111 self._update_scripts_dir = '..'
107 self._update_scripts_command = [ 112 self._update_scripts_command = [
108 chromium_utils.GetGClientCommand(self._target_platform), 113 chromium_utils.GetGClientCommand(self._target_platform),
109 'sync', '--verbose'] 114 'sync', '--verbose']
110 115
(...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 1593
1589 def AddWebRtcPerfManualBrowserTests(self, factory_properties=None): 1594 def AddWebRtcPerfManualBrowserTests(self, factory_properties=None):
1590 cmd_options = ['--run-manual', '--ui-test-action-max-timeout=300000'] 1595 cmd_options = ['--run-manual', '--ui-test-action-max-timeout=300000']
1591 self.AddAnnotatedPerfStep(test_name='webrtc_manual_browser_tests', 1596 self.AddAnnotatedPerfStep(test_name='webrtc_manual_browser_tests',
1592 gtest_filter="Webrtc*", 1597 gtest_filter="Webrtc*",
1593 log_type='graphing', 1598 log_type='graphing',
1594 factory_properties=factory_properties, 1599 factory_properties=factory_properties,
1595 cmd_name='browser_tests', 1600 cmd_name='browser_tests',
1596 cmd_options=cmd_options) 1601 cmd_options=cmd_options)
1597 1602
1603 def AddMiniInstallerTestStep(self, factory_properties):
1604 cmd = [self._python, self._mini_installer_tests_runner,
1605 self._mini_installer_tests_config]
1606 self.AddTestStep(chromium_step.AnnotatedCommand, 'test_mini_installer', cmd,
1607 halt_on_failure=True, timeout=600,
1608 do_step_if=self.TestStepFilter)
1609
1598 def AddChromebotServer(self, factory_properties=None): 1610 def AddChromebotServer(self, factory_properties=None):
1599 """Add steps to run Chromebot script for server. 1611 """Add steps to run Chromebot script for server.
1600 1612
1601 This expects build property to be set with Chromium build number, which 1613 This expects build property to be set with Chromium build number, which
1602 is set by SetBuildPropertyShellCommand in GetBuildForChromebot step. 1614 is set by SetBuildPropertyShellCommand in GetBuildForChromebot step.
1603 1615
1604 Args: 1616 Args:
1605 client_os: Target client OS (win or linux). 1617 client_os: Target client OS (win or linux).
1606 server_port: Port for client/server communication. 1618 server_port: Port for client/server communication.
1607 timeout: Max time (secs) to run Chromebot server script. 1619 timeout: Max time (secs) to run Chromebot server script.
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) 1821 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name)
1810 1822
1811 1823
1812 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): 1824 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'):
1813 if not factory_properties or 'gs_bucket' not in factory_properties: 1825 if not factory_properties or 'gs_bucket' not in factory_properties:
1814 return (_GetArchiveUrl('snapshots', builder_name), None) 1826 return (_GetArchiveUrl('snapshots', builder_name), None)
1815 gs_bucket = factory_properties['gs_bucket'] 1827 gs_bucket = factory_properties['gs_bucket']
1816 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', 1828 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/',
1817 gs_bucket) 1829 gs_bucket)
1818 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') 1830 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/')
OLDNEW
« no previous file with comments | « masters/master.chromium.fyi/slaves.cfg ('k') | scripts/master/factory/chromium_factory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698