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

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

Issue 10834044: Script to archive profiling data collected from (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/build/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | scripts/slave/chromium/archive_profiling_data.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 self._crash_handler_tool = J(s_dir, 'run_crash_handler.py') 56 self._crash_handler_tool = J(s_dir, 'run_crash_handler.py')
57 self._upload_parity_tool = J(s_dir, 'upload_parity_data.py') 57 self._upload_parity_tool = J(s_dir, 'upload_parity_data.py')
58 self._target_tests_tool = J(s_dir, 'target-tests.py') 58 self._target_tests_tool = J(s_dir, 'target-tests.py')
59 self._layout_test_tool = J(s_dir, 'layout_test_wrapper.py') 59 self._layout_test_tool = J(s_dir, 'layout_test_wrapper.py')
60 self._lint_test_files_tool = J(s_dir, 'lint_test_files_wrapper.py') 60 self._lint_test_files_tool = J(s_dir, 'lint_test_files_wrapper.py')
61 self._devtools_perf_test_tool = J(s_dir, 'devtools_perf_test_wrapper.py') 61 self._devtools_perf_test_tool = J(s_dir, 'devtools_perf_test_wrapper.py')
62 self._archive_coverage = J(s_dir, 'archive_coverage.py') 62 self._archive_coverage = J(s_dir, 'archive_coverage.py')
63 self._gpu_archive_tool = J(s_dir, 'archive_gpu_pixel_test_results.py') 63 self._gpu_archive_tool = J(s_dir, 'archive_gpu_pixel_test_results.py')
64 self._crash_dump_tool = J(s_dir, 'archive_crash_dumps.py') 64 self._crash_dump_tool = J(s_dir, 'archive_crash_dumps.py')
65 self._dom_perf_tool = J(s_dir, 'dom_perf.py') 65 self._dom_perf_tool = J(s_dir, 'dom_perf.py')
66 self._profiling_archive_tool = J(s_dir, 'archive_profiling_data.py')
66 self._asan_archive_tool = J(s_dir, 'asan_archive_build.py') 67 self._asan_archive_tool = J(s_dir, 'asan_archive_build.py')
67 self._archive_tool = J(s_dir, 'archive_build.py') 68 self._archive_tool = J(s_dir, 'archive_build.py')
68 self._sizes_tool = J(s_dir, 'sizes.py') 69 self._sizes_tool = J(s_dir, 'sizes.py')
69 self._check_lkgr_tool = J(s_dir, 'check_lkgr.py') 70 self._check_lkgr_tool = J(s_dir, 'check_lkgr.py')
70 71
71 # Scripts in the private dir. 72 # Scripts in the private dir.
72 self._reliability_tool = J(p_dir, 'reliability_tests.py') 73 self._reliability_tool = J(p_dir, 'reliability_tests.py')
73 self._reliability_data = J(p_dir, 'data', 'reliability') 74 self._reliability_data = J(p_dir, 'data', 'reliability')
74 self._download_and_extract_official_tool = self.PathJoin( 75 self._download_and_extract_official_tool = self.PathJoin(
75 p_dir, 'get_official_build.py') 76 p_dir, 'get_official_build.py')
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 # We don't need to run the Reference tests in debug mode. 299 # We don't need to run the Reference tests in debug mode.
299 if self._target == 'Debug': 300 if self._target == 'Debug':
300 test_list += ':-*.*Ref*' 301 test_list += ':-*.*Ref*'
301 options = ['--gtest_filter=%s' % test_list] 302 options = ['--gtest_filter=%s' % test_list]
302 303
303 cmd = self.GetTestCommand('performance_ui_tests', options, 304 cmd = self.GetTestCommand('performance_ui_tests', options,
304 factory_properties=factory_properties) 305 factory_properties=factory_properties)
305 self.AddTestStep(c, 'startup_test', cmd, 306 self.AddTestStep(c, 'startup_test', cmd,
306 do_step_if=self.TestStepFilter) 307 do_step_if=self.TestStepFilter)
307 308
309 # Profiling data is in /b/build/slave/SLAVE_NAME/build/src/chrome/test/data
310 profiling_data_dir = self.PathJoin('src', 'chrome', 'test', 'data')
311
312 # Setup environment for running gsutil, a Google Storage utility.
313 gsutil = 'gsutil'
314 if self._target_platform.startswith('win'):
315 gsutil = 'gsutil.bat'
316 env = {}
317 env['GSUTIL'] = self.PathJoin(self._script_dir, gsutil)
318
319 cmd = [self._python,
320 self._gpu_archive_tool,
321 '--run-id', WithProperties('%(got_revision)s_%(buildername)s'),
322 '--profiling-data-dir', profiling_data_dir]
323 self.AddTestStep(shell.ShellCommand, 'archive profiling data', cmd, env=env)
cmp 2012/07/30 17:48:38 i think instead of in this file, your change shoul
324
308 def AddMemoryTests(self, factory_properties=None): 325 def AddMemoryTests(self, factory_properties=None):
309 factory_properties = factory_properties or {} 326 factory_properties = factory_properties or {}
310 c = self.GetPerfStepClass(factory_properties, 'memory', 327 c = self.GetPerfStepClass(factory_properties, 'memory',
311 process_log.GraphingLogProcessor) 328 process_log.GraphingLogProcessor)
312 329
313 options = ['--gtest_filter=GeneralMix*MemoryTest.*'] 330 options = ['--gtest_filter=GeneralMix*MemoryTest.*']
314 cmd = self.GetTestCommand('performance_ui_tests', options, 331 cmd = self.GetTestCommand('performance_ui_tests', options,
315 factory_properties=factory_properties) 332 factory_properties=factory_properties)
316 self.AddTestStep(c, 'memory_test', cmd, 333 self.AddTestStep(c, 'memory_test', cmd,
317 do_step_if=self.TestStepFilter) 334 do_step_if=self.TestStepFilter)
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 # ArchiveCommand.createSummary. 1201 # ArchiveCommand.createSummary.
1185 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) 1202 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name)
1186 1203
1187 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): 1204 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'):
1188 if not factory_properties or 'gs_bucket' not in factory_properties: 1205 if not factory_properties or 'gs_bucket' not in factory_properties:
1189 return (_GetArchiveUrl('snapshots', builder_name), None) 1206 return (_GetArchiveUrl('snapshots', builder_name), None)
1190 gs_bucket = factory_properties['gs_bucket'] 1207 gs_bucket = factory_properties['gs_bucket']
1191 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', 1208 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/',
1192 gs_bucket) 1209 gs_bucket)
1193 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') 1210 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/')
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/chromium/archive_profiling_data.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698