OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 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 import json | 5 import json |
6 | 6 |
7 DEPS = [ | 7 DEPS = [ |
8 'auto_bisect', | 8 'auto_bisect', |
9 'chromium_tests', | 9 'chromium_tests', |
10 'recipe_engine/json', | 10 'recipe_engine/json', |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 "'src/third_party/WebKit': 'webkit.git@010'}"), | 311 "'src/third_party/WebKit': 'webkit.git@010'}"), |
312 'DEPS_interval': {'v8': '002 003 004'.split()}, | 312 'DEPS_interval': {'v8': '002 003 004'.split()}, |
313 }, | 313 }, |
314 ] | 314 ] |
315 | 315 |
316 | 316 |
317 def _make_test(api, test_data, test_name, platform='linux', extra_config=None): | 317 def _make_test(api, test_data, test_name, platform='linux', extra_config=None): |
318 basic_test = api.test(test_name) | 318 basic_test = api.test(test_name) |
319 basic_test += api.properties(mastername='tryserver.chromium.perf', | 319 basic_test += api.properties(mastername='tryserver.chromium.perf', |
320 buildername='linux_perf_bisect', | 320 buildername='linux_perf_bisect', |
321 slavename='dummyslave') | 321 slavename='dummyslave', |
| 322 buildnumber=123456) |
322 basic_test += _get_revision_range_step_data(api, test_data) | 323 basic_test += _get_revision_range_step_data(api, test_data) |
323 for revision_data in test_data: | 324 for revision_data in test_data: |
324 for step_data in _get_step_data_for_revision(api, revision_data): | 325 for step_data in _get_step_data_for_revision(api, revision_data): |
325 basic_test += step_data | 326 basic_test += step_data |
326 if 'win_x64' in platform: | 327 if 'win_x64' in platform: |
327 basic_test += api.properties(bisect_config=_get_config({ | 328 basic_test += api.properties(bisect_config=_get_config({ |
328 'command': ('src/tools/perf/run_benchmark -v --browser=release_x64' | 329 'command': ('src/tools/perf/run_benchmark -v --browser=release_x64' |
329 ' smoothness.tough_scrolling_cases'), | 330 ' smoothness.tough_scrolling_cases'), |
330 'recipe_tester_name': 'chromium_rel_win7_x64'})) | 331 'recipe_tester_name': 'chromium_rel_win7_x64'})) |
331 elif 'win' in platform: | 332 elif 'win' in platform: |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 yield api.step_data(step_name, stdout=api.raw_io.output(file_hash)) | 432 yield api.step_data(step_name, stdout=api.raw_io.output(file_hash)) |
432 step_name = 'Expanding revision range for revision %s on depot %s' | 433 step_name = 'Expanding revision range for revision %s on depot %s' |
433 step_name %= (interval[-1], depot_name) | 434 step_name %= (interval[-1], depot_name) |
434 stdout = api.json.output([(r, 0) for r in interval[:-1]]) | 435 stdout = api.json.output([(r, 0) for r in interval[:-1]]) |
435 yield api.step_data(step_name, stdout=stdout) | 436 yield api.step_data(step_name, stdout=stdout) |
436 | 437 |
437 if 'cl_info' in revision_data: | 438 if 'cl_info' in revision_data: |
438 step_name = 'Reading culprit cl information.' | 439 step_name = 'Reading culprit cl information.' |
439 stdout = api.json.output(revision_data['cl_info']) | 440 stdout = api.json.output(revision_data['cl_info']) |
440 yield api.step_data(step_name, stdout=stdout) | 441 yield api.step_data(step_name, stdout=stdout) |
OLD | NEW |