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

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

Issue 7465024: Adding new sync performance tests to chromium perf dashboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: '' Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 # Warm tests 312 # Warm tests
313 c = self.GetPerfStepClass(factory_properties, 'new-tab-ui-warm', 313 c = self.GetPerfStepClass(factory_properties, 'new-tab-ui-warm',
314 process_log.GraphingLogProcessor) 314 process_log.GraphingLogProcessor)
315 315
316 options = ['--gtest_filter=NewTabUIStartupTest.*Warm'] 316 options = ['--gtest_filter=NewTabUIStartupTest.*Warm']
317 cmd = self.GetTestCommand('performance_ui_tests', options) 317 cmd = self.GetTestCommand('performance_ui_tests', options)
318 self.AddTestStep(c, 'new_tab_ui_warm_test', cmd, 318 self.AddTestStep(c, 'new_tab_ui_warm_test', cmd,
319 do_step_if=self.TestStepFilter) 319 do_step_if=self.TestStepFilter)
320 320
321 def AddSyncPerfTests(self, factory_properties=None):
322 factory_properties = factory_properties or {}
323 c = self.GetPerfStepClass(factory_properties, 'sync',
324 process_log.GraphingLogProcessor)
325
326 options = ['--gtest_filter=*SyncPerfTest.*',
327 '--ui-test-action-max-timeout=120000',]
328 cmd = self.GetTestCommand('sync_performance_tests', options)
cmp 2011/07/26 00:52:39 The sync performance tests should be included in t
329 self.AddTestStep(c, 'sync_test', cmd,
cmp 2011/07/26 00:52:39 sync_test -> sync
330 do_step_if=self.TestStepFilter)
331
321 def AddTabSwitchingTests(self, factory_properties=None): 332 def AddTabSwitchingTests(self, factory_properties=None):
322 factory_properties = factory_properties or {} 333 factory_properties = factory_properties or {}
323 c = self.GetPerfStepClass(factory_properties, 'tab-switching', 334 c = self.GetPerfStepClass(factory_properties, 'tab-switching',
324 process_log.GraphingLogProcessor) 335 process_log.GraphingLogProcessor)
325 336
326 options = ['--gtest_filter=TabSwitchingUITest.*', '-enable-logging', 337 options = ['--gtest_filter=TabSwitchingUITest.*', '-enable-logging',
327 '-dump-histograms-on-exit', '-log-level=0'] 338 '-dump-histograms-on-exit', '-log-level=0']
328 339
329 cmd = self.GetTestCommand('performance_ui_tests', options) 340 cmd = self.GetTestCommand('performance_ui_tests', options)
330 self.AddTestStep(c, 'tab_switching_test', cmd, 341 self.AddTestStep(c, 'tab_switching_test', cmd,
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 # ArchiveCommand.createSummary. 1147 # ArchiveCommand.createSummary.
1137 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) 1148 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name)
1138 1149
1139 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): 1150 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'):
1140 if not factory_properties or 'gs_bucket' not in factory_properties: 1151 if not factory_properties or 'gs_bucket' not in factory_properties:
1141 return _GetArchiveUrl('snapshots', builder_name) 1152 return _GetArchiveUrl('snapshots', builder_name)
1142 gs_bucket = factory_properties['gs_bucket'] 1153 gs_bucket = factory_properties['gs_bucket']
1143 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', 1154 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/',
1144 gs_bucket) 1155 gs_bucket)
1145 return '%s/index.html?path=%s/' % (gs_bucket, builder_name) 1156 return '%s/index.html?path=%s/' % (gs_bucket, builder_name)
OLDNEW
« no previous file with comments | « build/masters/master.chromium.perf/master.cfg ('k') | build/scripts/master/factory/chromium_factory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698