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

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

Issue 28933002: Android: do not run telemetry directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
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 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 # runtest.py needs --build-dir options set to parent dir of Debug/Release 916 # runtest.py needs --build-dir options set to parent dir of Debug/Release
917 src_out_dir = os.path.join(self._build_dir, 'src', 'out') 917 src_out_dir = os.path.join(self._build_dir, 'src', 'out')
918 tool_opts = ['--build-dir=%s' % src_out_dir] 918 tool_opts = ['--build-dir=%s' % src_out_dir]
919 919
920 self.AddBuildrunnerAnnotatedPerfStep( 920 self.AddBuildrunnerAnnotatedPerfStep(
921 'device_status', None, 'graphing', tool_opts=tool_opts, 921 'device_status', None, 'graphing', tool_opts=tool_opts,
922 cmd_name=self._device_status_check, 922 cmd_name=self._device_status_check,
923 cmd_options=['--device-status-dashboard'], step_name='device_status', 923 cmd_options=['--device-status-dashboard'], step_name='device_status',
924 py_script=True, factory_properties=factory_properties, alwaysRun=True) 924 py_script=True, factory_properties=factory_properties, alwaysRun=True)
925 925
926 def AddAndroidShardedPerfTests(self, factory_properties):
927 script = os.path.join(self._build_dir, 'src', 'build', 'android',
928 'test_runner.py')
929 args = ['perf', '--steps',
930 factory_properties.get('android_sharded_perf_tests')]
931 self._AddBasicPythonTest('sharded_perf_tests', script=script, args=args)
ghost stip (do not use) 2013/10/21 21:41:17 this doesn't do any RESULT parsing. you need to pa
932
926 def AddTelemetryTest(self, test_name, step_name=None, 933 def AddTelemetryTest(self, test_name, step_name=None,
927 factory_properties=None, timeout=1200, 934 factory_properties=None, timeout=1200,
928 tool_options=None, dashboard_url=None): 935 tool_options=None, dashboard_url=None):
929 """Adds a Telemetry performance test. 936 """Adds a Telemetry performance test.
930 937
931 Args: 938 Args:
932 test_name: The name of the benchmark module to run. 939 test_name: The name of the benchmark module to run.
933 step_name: The name used to build the step's logfile name and descriptions 940 step_name: The name used to build the step's logfile name and descriptions
934 in the waterfall display. Defaults to |test_name|. 941 in the waterfall display. Defaults to |test_name|.
935 factory_properties: A dictionary of factory property values. 942 factory_properties: A dictionary of factory property values.
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1846 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) 1853 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name)
1847 1854
1848 1855
1849 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): 1856 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'):
1850 if not factory_properties or 'gs_bucket' not in factory_properties: 1857 if not factory_properties or 'gs_bucket' not in factory_properties:
1851 return (_GetArchiveUrl('snapshots', builder_name), None) 1858 return (_GetArchiveUrl('snapshots', builder_name), None)
1852 gs_bucket = factory_properties['gs_bucket'] 1859 gs_bucket = factory_properties['gs_bucket']
1853 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', 1860 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/',
1854 gs_bucket) 1861 gs_bucket)
1855 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') 1862 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698