| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 stdout=api.json.output(buildbucket_get_response)) + | 192 stdout=api.json.output(buildbucket_get_response)) + |
| 190 api.step_data('buildbucket.get (2)', | 193 api.step_data('buildbucket.get (2)', |
| 191 stdout=api.json.output(buildbucket_get_response)) + | 194 stdout=api.json.output(buildbucket_get_response)) + |
| 192 api.step_data('Performance Test (Without Patch) 1 of 1', | 195 api.step_data('Performance Test (Without Patch) 1 of 1', |
| 193 stdout=api.raw_io.output(results_without_patch)) + | 196 stdout=api.raw_io.output(results_without_patch)) + |
| 194 api.step_data('Performance Test (With Patch) 1 of 1', | 197 api.step_data('Performance Test (With Patch) 1 of 1', |
| 195 stdout=api.raw_io.output(results_with_patch)) + | 198 stdout=api.raw_io.output(results_with_patch)) + |
| 196 api.step_data('Post bisect results', | 199 api.step_data('Post bisect results', |
| 197 stdout=api.json.output({'status_code': 200}))) | 200 stdout=api.json.output({'status_code': 200}))) |
| 198 | 201 |
| 202 config_valueset = config_json |
| 203 config_valueset['command'] += ' --output_format=valueset' |
| 204 yield ( |
| 205 api.test('basic_perf_tryjob_with_metric_valueset') |
| 206 + api.properties.tryserver( |
| 207 path_config='kitchen', |
| 208 mastername='tryserver.chromium.perf', |
| 209 buildername='linux_perf_bisect', |
| 210 patch_storage='rietveld', |
| 211 patchset='20001', |
| 212 issue='12345', |
| 213 is_test=True, |
| 214 rietveld="https://codereview.chromium.org") + api.override_step_data( |
| 215 'git diff to analyze patch', |
| 216 api.raw_io.stream_output('tools/run-perf-test.cfg')) + |
| 217 api.override_step_data('load config', api.json.output(config_valueset
)) + |
| 218 api.step_data('gsutil exists', retcode=1) + |
| 219 api.step_data('buildbucket.put', |
| 220 stdout=api.json.output(buildbucket_put_response))
+ |
| 221 api.step_data('buildbucket.put (2)', |
| 222 stdout=api.json.output(buildbucket_put_response))
+ |
| 223 api.step_data('buildbucket.get', |
| 224 stdout=api.json.output(buildbucket_get_response)) + |
| 225 api.step_data('buildbucket.get (2)', |
| 226 stdout=api.json.output(buildbucket_get_response)) + |
| 227 api.step_data('Performance Test (Without Patch) 1 of 1', |
| 228 stdout=api.raw_io.output(results_without_patch)) + |
| 229 api.step_data('Performance Test (With Patch) 1 of 1', |
| 230 stdout=api.raw_io.output(results_with_patch)) + |
| 231 api.step_data('Post bisect results', |
| 232 stdout=api.json.output({'status_code': 200}))) |
| 233 |
| 234 |
| 235 |
| 199 | 236 |
| 200 yield (api.test('perf_tryjob_failed_test') + api.properties.tryserver( | 237 yield (api.test('perf_tryjob_failed_test') + api.properties.tryserver( |
| 201 path_config='kitchen', | 238 path_config='kitchen', |
| 202 mastername='tryserver.chromium.perf', | 239 mastername='tryserver.chromium.perf', |
| 203 buildername='linux_perf_bisect', | 240 buildername='linux_perf_bisect', |
| 204 patch_storage='rietveld', | 241 patch_storage='rietveld', |
| 205 patchset='20001', | 242 patchset='20001', |
| 206 issue='12345', | 243 issue='12345', |
| 207 is_test=True, | 244 is_test=True, |
| 208 rietveld="https://codereview.chromium.org") + api.override_step_data( | 245 rietveld="https://codereview.chromium.org") + api.override_step_data( |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 rietveld="https://codereview.chromium.org") + | 356 rietveld="https://codereview.chromium.org") + |
| 320 api.properties(requester='commit-bot@chromium.org') + | 357 api.properties(requester='commit-bot@chromium.org') + |
| 321 api.override_step_data( | 358 api.override_step_data( |
| 322 'git diff to analyze patch', | 359 'git diff to analyze patch', |
| 323 api.raw_io.stream_output('tools/perf/benchmarks/sunspider.py')) + | 360 api.raw_io.stream_output('tools/perf/benchmarks/sunspider.py')) + |
| 324 api.step_data('buildbucket.put', | 361 api.step_data('buildbucket.put', |
| 325 stdout=api.json.output(buildbucket_put_response)) + | 362 stdout=api.json.output(buildbucket_put_response)) + |
| 326 api.step_data('buildbucket.get', | 363 api.step_data('buildbucket.get', |
| 327 stdout=api.json.output(buildbucket_get_response))) | 364 stdout=api.json.output(buildbucket_get_response))) |
| 328 | 365 |
| 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 ( | |
| 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 |