Chromium Code Reviews| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 319 rietveld="https://codereview.chromium.org") + | 322 rietveld="https://codereview.chromium.org") + |
| 320 api.properties(requester='commit-bot@chromium.org') + | 323 api.properties(requester='commit-bot@chromium.org') + |
| 321 api.override_step_data( | 324 api.override_step_data( |
| 322 'git diff to analyze patch', | 325 'git diff to analyze patch', |
| 323 api.raw_io.stream_output('tools/perf/benchmarks/sunspider.py')) + | 326 api.raw_io.stream_output('tools/perf/benchmarks/sunspider.py')) + |
| 324 api.step_data('buildbucket.put', | 327 api.step_data('buildbucket.put', |
| 325 stdout=api.json.output(buildbucket_put_response)) + | 328 stdout=api.json.output(buildbucket_put_response)) + |
| 326 api.step_data('buildbucket.get', | 329 api.step_data('buildbucket.get', |
| 327 stdout=api.json.output(buildbucket_get_response))) | 330 stdout=api.json.output(buildbucket_get_response))) |
| 328 | 331 |
| 329 bisect_config = { | |
| 330 'test_type': 'perf', | |
| 331 'command': './tools/perf/run_benchmark -v ' | |
| 332 '--browser=release page_cycler.intl_ar_fa_he', | |
| 333 'metric': 'warm_times/page_load_time', | |
| 334 'repeat_count': '2', | |
| 335 'max_time_minutes': '5', | |
| 336 'truncate_percent': '25', | |
| 337 'bug_id': '425582', | |
| 338 'gs_bucket': 'chrome-perf', | |
| 339 'builder_host': 'master4.golo.chromium.org', | |
| 340 'builder_port': '8341', | |
| 341 } | |
| 342 yield ( | |
|
eakuefner
2016/09/09 20:35:42
What happens to the test coverage that you're dele
RobertoCN
2016/09/13 22:11:40
Yeah. I am overall reducing the amount of non-cove
| |
| 343 api.test('basic_linux_bisect_tester_recipe') + api.properties.tryserver( | |
| 344 path_config='kitchen', | |
| 345 mastername='tryserver.chromium.perf', | |
| 346 buildername='linux_perf_bisect') + api.step_data( | |
| 347 'saving url to temp file', | |
| 348 stdout=api.raw_io.output('/tmp/dummy1')) + api.step_data( | |
| 349 'saving json to temp file', | |
| 350 stdout=api.raw_io.output('/tmp/dummy2')) + api.properties( | |
| 351 bisect_config=bisect_config) + api.properties( | |
| 352 job_name='f7a7b4135624439cbd27fdd5133d74ec') + | |
| 353 api.bisect_tester(tempfile='/tmp/dummy') + api.properties( | |
| 354 parent_got_revision='1111111') + api.properties( | |
| 355 parent_build_archive_url='gs://test-domain/test-archive.zip')) | |
| 356 | |
| 357 bisect_ret_code_config = { | |
| 358 'test_type': 'return_code', | |
| 359 'command': './tools/perf/run_benchmark -v ' | |
| 360 '--browser=release page_cycler.intl_ar_fa_he', | |
| 361 'metric': 'warm_times/page_load_time', | |
| 362 'repeat_count': '2', | |
| 363 'max_time_minutes': '5', | |
| 364 'truncate_percent': '25', | |
| 365 'bug_id': '425582', | |
| 366 'gs_bucket': 'chrome-perf', | |
| 367 'builder_host': 'master4.golo.chromium.org', | |
| 368 'builder_port': '8341', | |
| 369 } | |
| 370 yield (api.test('basic_linux_bisect_tester_recipe_ret_code') + | |
| 371 api.properties.tryserver(path_config='kitchen', | |
| 372 mastername='tryserver.chromium.perf', | |
| 373 buildername='linux_perf_bisect') + | |
| 374 api.step_data('saving url to temp file', | |
| 375 stdout=api.raw_io.output('/tmp/dummy1')) + api.step_data( | |
| 376 'saving json to temp file', | |
| 377 stdout=api.raw_io.output('/tmp/dummy2')) + | |
| 378 api.properties(bisect_config=bisect_ret_code_config) + api.properties( | |
| 379 job_name='f7a7b4135624439cbd27fdd5133d74ec') + | |
| 380 api.bisect_tester(tempfile='/tmp/dummy') + api.properties( | |
| 381 parent_got_revision='1111111') + api.properties( | |
| 382 parent_build_archive_url='gs://test-domain/test-archive.zip')) | |
| OLD | NEW |