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

Side by Side Diff: scripts/slave/recipe_modules/auto_bisect/example.py

Issue 1574433004: Allow a single trybot to mirror multiple waterfall bots. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@bot-config-and-test-db
Patch Set: Created 4 years, 11 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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 # Abort unnecesary jobs 54 # Abort unnecesary jobs
55 # Print results (may be done in a unit test) 55 # Print results (may be done in a unit test)
56 56
57 # Test runner for classic bisect script; calls bisect script in recipe 57 # Test runner for classic bisect script; calls bisect script in recipe
58 # wrapper with extra_src and path_to_config to override default behavior. 58 # wrapper with extra_src and path_to_config to override default behavior.
59 if api.properties.get('mastername'): 59 if api.properties.get('mastername'):
60 # TODO(akuegel): Load the config explicitly instead of relying on the 60 # TODO(akuegel): Load the config explicitly instead of relying on the
61 # builders.py entries in chromium_tests. 61 # builders.py entries in chromium_tests.
62 mastername = api.properties.get('mastername') 62 mastername = api.properties.get('mastername')
63 buildername = api.properties.get('buildername') 63 buildername = api.properties.get('buildername')
64 api.chromium_tests.configure_build(mastername, buildername) 64 bot_desc = api.chromium_tests.create_bot_desc(mastername, buildername)
65 api.chromium_tests.prepare_checkout(mastername, buildername) 65 api.chromium_tests.configure_build(bot_desc)
66 api.chromium_tests.prepare_checkout(bot_desc)
66 api.auto_bisect.run_bisect_script('dummy_extra_src', '/dummy/path/') 67 api.auto_bisect.run_bisect_script('dummy_extra_src', '/dummy/path/')
67 68
68 69
69 def GenTests(api): 70 def GenTests(api):
70 dummy_gs_location = ('gs://chrome-perf/bisect-results/' 71 dummy_gs_location = ('gs://chrome-perf/bisect-results/'
71 'a6298e4afedbf2cd461755ea6f45b0ad64222222-test.results') 72 'a6298e4afedbf2cd461755ea6f45b0ad64222222-test.results')
72 wait_for_any_output = { 73 wait_for_any_output = {
73 'completed': [ 74 'completed': [
74 { 75 {
75 'type': 'gs', 76 'type': 'gs',
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 yield api.step_data(step_name, stdout=api.raw_io.output(file_hash)) 446 yield api.step_data(step_name, stdout=api.raw_io.output(file_hash))
446 step_name = 'Expanding revision range for revision %s on depot %s' 447 step_name = 'Expanding revision range for revision %s on depot %s'
447 step_name %= (interval[-1], depot_name) 448 step_name %= (interval[-1], depot_name)
448 stdout = api.json.output([(r, 0) for r in interval[:-1]]) 449 stdout = api.json.output([(r, 0) for r in interval[:-1]])
449 yield api.step_data(step_name, stdout=stdout) 450 yield api.step_data(step_name, stdout=stdout)
450 451
451 if 'cl_info' in revision_data: 452 if 'cl_info' in revision_data:
452 step_name = 'Reading culprit cl information.' 453 step_name = 'Reading culprit cl information.'
453 stdout = api.json.output(revision_data['cl_info']) 454 stdout = api.json.output(revision_data['cl_info'])
454 yield api.step_data(step_name, stdout=stdout) 455 yield api.step_data(step_name, stdout=stdout)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698