From 9bdf14a1a44afa80dc35966d44e65c8c547a119d Mon Sep 17 00:00:00 2001 From: "sivachandra@chromium.org" Date: Tue, 11 Jun 2013 21:42:33 +0000 Subject: [PATCH] Add an Android perf bisect bots and its host steps. BUG=245361 R=ilevy@chromium.org Review URL: https://codereview.chromium.org/16391007 git-svn-id: http://src.chromium.org/svn/trunk/src/build@205641 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- android/buildbot/bb_host_steps.py | 13 +++++++++++++ android/buildbot/bb_run_bot.py | 1 + 2 files changed, 14 insertions(+) diff --git a/android/buildbot/bb_host_steps.py b/android/buildbot/bb_host_steps.py index 7539c4290..58d2e0e5b 100755 --- a/android/buildbot/bb_host_steps.py +++ b/android/buildbot/bb_host_steps.py @@ -92,6 +92,15 @@ def FindBugs(is_release): 'run_findbugs_plugin_tests.py')] + build_type) +def BisectPerfRegression(): + buildbot_report.PrintNamedStep('Bisect Perf Regression') + RunCmd([SrcPath('tools', 'prepare-bisect-perf-regression.py'), + '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) + RunCmd([SrcPath('tools', 'run-bisect-perf-regression.py'), + '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir), + '-p', bb_utils.GOMA_DIR]) + + def main(argv): parser = bb_utils.GetParser() parser.add_option('--host-tests', help='Comma separated list of host tests.') @@ -105,6 +114,8 @@ def main(argv): help='Indicate whether the build should be zipped.') parser.add_option('--extract-build', action='store_true', help='Indicate whether a build should be downloaded.') + parser.add_option('--bisect-perf-regression', action='store_true', + help='Bisect a perf regression.') options, args = parser.parse_args(argv[1:]) if args: @@ -119,6 +130,8 @@ def main(argv): build_type = options.factory_properties.get('target', 'Debug') + if options.bisect_perf_regression: + BisectPerfRegression() if options.compile: if 'check_webview_licenses' in host_tests: CheckWebViewLicenses() diff --git a/android/buildbot/bb_run_bot.py b/android/buildbot/bb_run_bot.py index bf831e02d..17e729e3e 100755 --- a/android/buildbot/bb_run_bot.py +++ b/android/buildbot/bb_run_bot.py @@ -133,6 +133,7 @@ def GetBotStepMap(): B('fyi-component-builder-tests-dbg', H(compile_opt, 'component=shared_library'), T(std_tests, ['--experimental', flakiness_server])), + B('perf-bisect-builder-tests-dbg', H(['--bisect-perf-regression'])), B('perf-tests-rel', H(std_test_opts), T([], ['--install=ContentShell'])), B('webkit-latest-webkit-tests', H(std_test_opts), T(['webkit_layout', 'webkit'])),