Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Side by Side Diff: scripts/slave/recipes/bisection/android_bisect.py

Issue 2104143003: Build delegation for CQ jobs (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebase against master Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 from recipe_engine.types import freeze 5 from recipe_engine.types import freeze
6 6
7 DEPS = [ 7 DEPS = [
8 'auto_bisect', 8 'auto_bisect',
9 'bisect_tester', 9 'bisect_tester',
10 'depot_tools/bot_update', 10 'depot_tools/bot_update',
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 api.properties.tryserver( 315 api.properties.tryserver(
316 mastername='tryserver.chromium.perf', 316 mastername='tryserver.chromium.perf',
317 buildername=buildername) + api.properties( 317 buildername=buildername) + api.properties(
318 requester='abcdxyz@chromium.org') + api.override_step_data( 318 requester='abcdxyz@chromium.org') + api.override_step_data(
319 'git diff to analyze patch', 319 'git diff to analyze patch',
320 api.raw_io.stream_output('tools/run-perf-test.cfg')) + 320 api.raw_io.stream_output('tools/run-perf-test.cfg')) +
321 api.override_step_data('load config', api.json.output(config_json))) 321 api.override_step_data('load config', api.json.output(config_json)))
322 322
323 yield ( 323 yield (
324 api.test('perf_cq_run_benchmark_' + buildername) + 324 api.test('perf_cq_run_benchmark_' + buildername) +
325 api.properties.tryserver(mastername='tryserver.chromium.perf', 325 api.properties.tryserver(
326 buildername=buildername) + api.properties( 326 mastername='tryserver.chromium.perf',
327 requester='commit-bot@chromium.org') + 327 buildername=buildername,
328 patch_storage='rietveld',
329 patchset='20001',
330 issue='12345',
331 is_test=True,
332 rietveld="https://codereview.chromium.org") +
333 api.properties(requester='commit-bot@chromium.org') +
328 api.override_step_data( 334 api.override_step_data(
329 'git diff to analyze patch', 335 'git diff to analyze patch',
330 api.raw_io.stream_output('tools/perf/benchmarks/blink_perf.py'))) 336 api.raw_io.stream_output('tools/perf/benchmarks/blink_perf.py')) +
337 api.step_data('buildbucket.put',
338 stdout=api.json.output(buildbucket_put_response)) +
339 api.step_data('buildbucket.get',
340 stdout=api.json.output(buildbucket_get_response)))
331 341
332 yield (api.test('perf_cq_no_changes_' + buildername) + 342 yield (api.test('perf_cq_no_changes_' + buildername) +
333 api.properties.tryserver(mastername='tryserver.chromium.perf', 343 api.properties.tryserver(
334 buildername=buildername) + api.properties( 344 mastername='tryserver.chromium.perf',
335 requester='commit-bot@chromium.org') + 345 buildername=buildername,
336 api.override_step_data( 346 patch_storage='rietveld',
347 patchset='20001',
348 issue='12345',
349 is_test=True,
350 rietveld="https://codereview.chromium.org") +
351 api.properties(requester='commit-bot@chromium.org') +
352 api.override_step_data(
337 'git diff to analyze patch', 353 'git diff to analyze patch',
338 api.raw_io.stream_output('tools/no_benchmark_file'))) 354 api.raw_io.stream_output('tools/no_benchmark_file')))
339 355
340 yield ( 356 yield (
341 api.test('perf_cq_no_benchmark_to_run_' + buildername) + 357 api.test('perf_cq_no_benchmark_to_run_' + buildername) +
342 api.properties.tryserver(mastername='tryserver.chromium.perf', 358 api.properties.tryserver(
343 buildername=buildername) + api.properties( 359 mastername='tryserver.chromium.perf',
344 requester='commit-bot@chromium.org') + 360 buildername=buildername,
361 patch_storage='rietveld',
362 patchset='20001',
363 issue='12345',
364 is_test=True,
365 rietveld="https://codereview.chromium.org") +
366 api.properties(requester='commit-bot@chromium.org') +
345 api.override_step_data( 367 api.override_step_data(
346 'git diff to analyze patch', 368 'git diff to analyze patch',
347 api.raw_io.stream_output('tools/perf/benchmarks/sunspider.py'))) 369 api.raw_io.stream_output('tools/perf/benchmarks/sunspider.py')) +
370 api.step_data('buildbucket.put',
371 stdout=api.json.output(buildbucket_put_response)) +
372 api.step_data('buildbucket.get',
373 stdout=api.json.output(buildbucket_get_response)))
348 374
349 bisect_config = { 375 bisect_config = {
350 'test_type': 'perf', 376 'test_type': 'perf',
351 'command': './tools/perf/run_benchmark -v ' 377 'command': './tools/perf/run_benchmark -v '
352 '--browser=android-chromium page_cycler.intl_ar_fa_he', 378 '--browser=android-chromium page_cycler.intl_ar_fa_he',
353 'metric': 'warm_times/page_load_time', 379 'metric': 'warm_times/page_load_time',
354 'repeat_count': '2', 380 'repeat_count': '2',
355 'max_time_minutes': '5', 381 'max_time_minutes': '5',
356 'truncate_percent': '25', 382 'truncate_percent': '25',
357 'bug_id': '425582', 383 'bug_id': '425582',
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 ('refs/heads/master@{#%s} (2)' % local_bisect_config[ 683 ('refs/heads/master@{#%s} (2)' % local_bisect_config[
658 'good_revision']), 684 'good_revision']),
659 stdout=api.json.output( 685 stdout=api.json.output(
660 {'git_sha': good_revision_hash}))+ 686 {'git_sha': good_revision_hash}))+
661 api.step_data('Expanding revision range.for revisions %s:%s (2)' % ( 687 api.step_data('Expanding revision range.for revisions %s:%s (2)' % (
662 good_revision_hash, bad_revision_hash), 688 good_revision_hash, bad_revision_hash),
663 stdout=api.json.output([[bad_revision_hash, 'ignored'], [ 689 stdout=api.json.output([[bad_revision_hash, 'ignored'], [
664 good_revision_hash, 'ignored']])) + 690 good_revision_hash, 'ignored']])) +
665 api.step_data('Post bisect results (2)', 691 api.step_data('Post bisect results (2)',
666 stdout=api.json.output({'status_code': 200}))) 692 stdout=api.json.output({'status_code': 200})))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698