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

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

Issue 345016: Add checkbins.py step to Chromium XP bot and Google Chrome FYI bot.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/buildbot/
Patch Set: '' Created 11 years, 1 month 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 | « master.chromium/master.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 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Set of utilities to add commands to a buildbot factory. 6 """Set of utilities to add commands to a buildbot factory.
7 7
8 This is based on commands.py and adds chromium-specific commands.""" 8 This is based on commands.py and adds chromium-specific commands."""
9 9
10 import logging 10 import logging
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 self._dom_perf_tool = J(s_dir, 'dom_perf.py') 390 self._dom_perf_tool = J(s_dir, 'dom_perf.py')
391 self._archive_tool = J(s_dir, 'archive_build.py') 391 self._archive_tool = J(s_dir, 'archive_build.py')
392 self._sizes_tool = J(s_dir, 'sizes.py') 392 self._sizes_tool = J(s_dir, 'sizes.py')
393 393
394 # Scripts in the private dir. 394 # Scripts in the private dir.
395 self._reliability_tool = J(p_dir, 'reliability_tests.py') 395 self._reliability_tool = J(p_dir, 'reliability_tests.py')
396 self._reliability_data = J(p_dir, 'data', 'reliability') 396 self._reliability_data = J(p_dir, 'data', 'reliability')
397 397
398 # These scripts should be move to the script dir. 398 # These scripts should be move to the script dir.
399 self._check_deps_tool = J('src', 'tools', 'checkdeps', 'checkdeps.py') 399 self._check_deps_tool = J('src', 'tools', 'checkdeps', 'checkdeps.py')
400 self._check_bins_tool = J('src', 'tools', 'checkbins', 'checkbins.py')
400 self._valgrind_tool = J('src', 'tools', 'valgrind', 'chrome_tests.sh') 401 self._valgrind_tool = J('src', 'tools', 'valgrind', 'chrome_tests.sh')
401 self._purify_tool = J('src', 'tools', 'purify', 'chrome_tests.py') 402 self._purify_tool = J('src', 'tools', 'purify', 'chrome_tests.py')
402 403
403 # chrome_staging directory, relative to the build directory. 404 # chrome_staging directory, relative to the build directory.
404 self._staging_dir = self.PathJoin('..', 'chrome_staging') 405 self._staging_dir = self.PathJoin('..', 'chrome_staging')
405 406
406 # The _update_scripts_command will be run in the _update_scripts_dir to 407 # The _update_scripts_command will be run in the _update_scripts_dir to
407 # udpate the slave's own script checkout. 408 # udpate the slave's own script checkout.
408 self._update_scripts_dir = '..' 409 self._update_scripts_dir = '..'
409 self._update_scripts_command = [ 410 self._update_scripts_command = [
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 cmd.extend(['--extra-archive-paths', extra_archive_paths]) 454 cmd.extend(['--extra-archive-paths', extra_archive_paths])
454 455
455 self.AddArchiveStep(data_description='build', base_url=url, link_text=text, 456 self.AddArchiveStep(data_description='build', base_url=url, link_text=text,
456 command=cmd) 457 command=cmd)
457 458
458 def AddCheckDepsStep(self): 459 def AddCheckDepsStep(self):
459 cmd = [self._python, self._check_deps_tool, 460 cmd = [self._python, self._check_deps_tool,
460 '--root', self._repository_root] 461 '--root', self._repository_root]
461 self.AddTestStep(shell.ShellCommand, 'check deps', cmd) 462 self.AddTestStep(shell.ShellCommand, 'check deps', cmd)
462 463
464 def AddCheckBinsStep(self):
465 cmd = [self._python, self._check_bins_tool, self._build_dir]
466 self.AddTestStep(shell.ShellCommand, 'check bins', cmd)
467
463 def GetPageCyclerTestClass(self, factory_properties, test_name): 468 def GetPageCyclerTestClass(self, factory_properties, test_name):
464 """Selects the right build step for the specified page-cycler test.""" 469 """Selects the right build step for the specified page-cycler test."""
465 factory_properties = factory_properties or {} 470 factory_properties = factory_properties or {}
466 perf_id = factory_properties.get('perf_id') 471 perf_id = factory_properties.get('perf_id')
467 show_results = factory_properties.get('show_perf_results') 472 show_results = factory_properties.get('show_perf_results')
468 http = factory_properties.get('http_page_cyclers') 473 http = factory_properties.get('http_page_cyclers')
469 474
470 report_link = None 475 report_link = None
471 output_dir = None 476 output_dir = None
472 perf_name = None 477 perf_name = None
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 908
904 url = '%s/%s/%s' % (self._archive_url, 'coverage', perf_subdir) 909 url = '%s/%s/%s' % (self._archive_url, 'coverage', perf_subdir)
905 text = 'view coverage' 910 text = 'view coverage'
906 cmd_archive = [self._python, self._archive_coverage, 911 cmd_archive = [self._python, self._archive_coverage,
907 '--target', self._target, 912 '--target', self._target,
908 '--build-dir', self._build_dir, 913 '--build-dir', self._build_dir,
909 '--perf-subdir', perf_subdir] 914 '--perf-subdir', perf_subdir]
910 915
911 self.AddArchiveStep(data_description='coverage', base_url=url, 916 self.AddArchiveStep(data_description='coverage', base_url=url,
912 link_text=text, command=cmd_archive) 917 link_text=text, command=cmd_archive)
OLDNEW
« no previous file with comments | « master.chromium/master.cfg ('k') | scripts/master/factory/chromium_factory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698