| OLD | NEW |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2015 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 DEPS = [ | 5 DEPS = [ |
| 6 'auto_bisect', | 6 'auto_bisect', |
| 7 'bisect_tester', | 7 'bisect_tester', |
| 8 'chromium', | 8 'chromium', |
| 9 'chromium_tests', | 9 'chromium_tests', |
| 10 'depot_tools/gclient', | 10 'depot_tools/gclient', |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 # TODO(robertocn): remove do_not_nest_wait_for_revision once downstream | 29 # TODO(robertocn): remove do_not_nest_wait_for_revision once downstream |
| 30 # expectations have been fixed, and make it behave like this by default. | 30 # expectations have been fixed, and make it behave like this by default. |
| 31 update_step, bot_db = api.chromium_tests.prepare_checkout(bot_config) | 31 update_step, bot_db = api.chromium_tests.prepare_checkout(bot_config) |
| 32 api.path.c.dynamic_paths['catapult'] = api.path['slave_build'].join( | 32 api.path.c.dynamic_paths['catapult'] = api.path['slave_build'].join( |
| 33 'catapult') | 33 'catapult') |
| 34 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db, | 34 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db, |
| 35 do_not_nest_wait_for_revision=True) | 35 do_not_nest_wait_for_revision=True) |
| 36 | 36 |
| 37 | 37 |
| 38 def GenTests(api): | 38 def GenTests(api): |
| 39 yield (api.test('basic') + api.properties.tryserver( | 39 yield ( |
| 40 path_config='kitchen', | 40 api.test('basic') + |
| 41 mastername='tryserver.chromium.perf', | 41 api.properties.tryserver( |
| 42 buildername='linux_perf_bisect') + api.override_step_data( | 42 path_config='kitchen', |
| 43 mastername='tryserver.chromium.perf', |
| 44 buildername='linux_perf_bisect') + |
| 45 api.override_step_data( |
| 43 'git diff to analyze patch', | 46 'git diff to analyze patch', |
| 44 api.raw_io.stream_output('tools/auto_bisect/bisect.cfg'))) | 47 api.raw_io.stream_output('tools/auto_bisect/bisect.cfg'))) |
| 45 | 48 |
| 46 config_json = { | 49 config_json = { |
| 47 'command': './tools/perf/run_benchmark -v --browser=release sunspider', | 50 'command': './tools/perf/run_benchmark -v --browser=release sunspider', |
| 48 'max_time_minutes': '25', | 51 'max_time_minutes': '25', |
| 49 'repeat_count': '1', | 52 'repeat_count': '1', |
| 50 'truncate_percent': '25', | 53 'truncate_percent': '25', |
| 51 'target_arch': 'ia32', | 54 'target_arch': 'ia32', |
| 52 } | 55 } |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 rietveld="https://codereview.chromium.org") + | 287 rietveld="https://codereview.chromium.org") + |
| 285 api.properties(requester='commit-bot@chromium.org') + | 288 api.properties(requester='commit-bot@chromium.org') + |
| 286 api.override_step_data( | 289 api.override_step_data( |
| 287 'git diff to analyze patch', | 290 'git diff to analyze patch', |
| 288 api.raw_io.stream_output('tools/perf/benchmarks/sunspider.py')) + | 291 api.raw_io.stream_output('tools/perf/benchmarks/sunspider.py')) + |
| 289 api.step_data('buildbucket.put', | 292 api.step_data('buildbucket.put', |
| 290 stdout=api.json.output(buildbucket_put_response)) + | 293 stdout=api.json.output(buildbucket_put_response)) + |
| 291 api.step_data('buildbucket.get', | 294 api.step_data('buildbucket.get', |
| 292 stdout=api.json.output(buildbucket_get_response))) | 295 stdout=api.json.output(buildbucket_get_response))) |
| 293 | 296 |
| 294 bisect_config = { | |
| 295 'test_type': 'perf', | |
| 296 'command': './tools/perf/run_benchmark -v ' | |
| 297 '--browser=release page_cycler.intl_ar_fa_he', | |
| 298 'metric': 'warm_times/page_load_time', | |
| 299 'repeat_count': '2', | |
| 300 'max_time_minutes': '5', | |
| 301 'truncate_percent': '25', | |
| 302 'bug_id': '425582', | |
| 303 'gs_bucket': 'chrome-perf', | |
| 304 'builder_host': 'master4.golo.chromium.org', | |
| 305 'builder_port': '8341', | |
| 306 } | |
| 307 yield ( | |
| 308 api.test('basic_linux_bisect_tester_recipe') + api.properties.tryserver( | |
| 309 path_config='kitchen', | |
| 310 mastername='tryserver.chromium.perf', | |
| 311 buildername='linux_perf_bisect') + api.step_data( | |
| 312 'saving url to temp file', | |
| 313 stdout=api.raw_io.output('/tmp/dummy1')) + api.step_data( | |
| 314 'saving json to temp file', | |
| 315 stdout=api.raw_io.output('/tmp/dummy2')) + api.properties( | |
| 316 bisect_config=bisect_config) + api.properties( | |
| 317 job_name='f7a7b4135624439cbd27fdd5133d74ec') + | |
| 318 api.bisect_tester(tempfile='/tmp/dummy') + api.properties( | |
| 319 parent_got_revision='1111111') + api.properties( | |
| 320 parent_build_archive_url='gs://test-domain/test-archive.zip')) | |
| 321 | |
| 322 bisect_ret_code_config = { | |
| 323 'test_type': 'return_code', | |
| 324 'command': './tools/perf/run_benchmark -v ' | |
| 325 '--browser=release page_cycler.intl_ar_fa_he', | |
| 326 'metric': 'warm_times/page_load_time', | |
| 327 'repeat_count': '2', | |
| 328 'max_time_minutes': '5', | |
| 329 'truncate_percent': '25', | |
| 330 'bug_id': '425582', | |
| 331 'gs_bucket': 'chrome-perf', | |
| 332 'builder_host': 'master4.golo.chromium.org', | |
| 333 'builder_port': '8341', | |
| 334 } | |
| 335 yield (api.test('basic_linux_bisect_tester_recipe_ret_code') + | |
| 336 api.properties.tryserver(path_config='kitchen', | |
| 337 mastername='tryserver.chromium.perf', | |
| 338 buildername='linux_perf_bisect') + | |
| 339 api.step_data('saving url to temp file', | |
| 340 stdout=api.raw_io.output('/tmp/dummy1')) + api.step_data( | |
| 341 'saving json to temp file', | |
| 342 stdout=api.raw_io.output('/tmp/dummy2')) + | |
| 343 api.properties(bisect_config=bisect_ret_code_config) + api.properties( | |
| 344 job_name='f7a7b4135624439cbd27fdd5133d74ec') + | |
| 345 api.bisect_tester(tempfile='/tmp/dummy') + api.properties( | |
| 346 parent_got_revision='1111111') + api.properties( | |
| 347 parent_build_archive_url='gs://test-domain/test-archive.zip')) | |
| OLD | NEW |