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

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

Issue 1565113003: Add concept of bot config and test spec database (BotConfigAndTestDB). (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
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 (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 'bot_update', 10 'bot_update',
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 kwargs.update(bot_config.get('kwargs', {})) 101 kwargs.update(bot_config.get('kwargs', {}))
102 api.chromium_android.configure_from_properties(recipe_config, **kwargs) 102 api.chromium_android.configure_from_properties(recipe_config, **kwargs)
103 api.chromium.set_config(recipe_config, **kwargs) 103 api.chromium.set_config(recipe_config, **kwargs)
104 api.chromium_android.c.set_val({'deps_file': 'DEPS'}) 104 api.chromium_android.c.set_val({'deps_file': 'DEPS'})
105 api.gclient.set_config('chromium') 105 api.gclient.set_config('chromium')
106 for c in bot_config.get('gclient_apply_config', []): 106 for c in bot_config.get('gclient_apply_config', []):
107 api.gclient.apply_config(c) 107 api.gclient.apply_config(c)
108 update_step = api.bot_update.ensure_checkout() 108 update_step = api.bot_update.ensure_checkout()
109 api.chromium_android.clean_local_files() 109 api.chromium_android.clean_local_files()
110 110
111 bot_db = api.chromium_tests.create_bot_db_from_master_dict(
112 mastername, master_dict)
113
111 api.auto_bisect.start_try_job(api, update_step=update_step, 114 api.auto_bisect.start_try_job(api, update_step=update_step,
112 master_dict=master_dict) 115 bot_db=bot_db)
113 116
114 def GenTests(api): 117 def GenTests(api):
115 config_json_main = { 118 config_json_main = {
116 "command": ("./tools/perf/run_benchmark -v --browser=android-chrome " 119 "command": ("./tools/perf/run_benchmark -v --browser=android-chrome "
117 "sunspider"), 120 "sunspider"),
118 "max_time_minutes": "25", 121 "max_time_minutes": "25",
119 "repeat_count": "1", 122 "repeat_count": "1",
120 "truncate_percent": "25", 123 "truncate_percent": "25",
121 "target_arch": "ia32", 124 "target_arch": "ia32",
122 } 125 }
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 stdout=api.raw_io.output('/tmp/dummy1')) 300 stdout=api.raw_io.output('/tmp/dummy1'))
298 + api.step_data('saving json to temp file', 301 + api.step_data('saving json to temp file',
299 stdout=api.raw_io.output('/tmp/dummy2')) 302 stdout=api.raw_io.output('/tmp/dummy2'))
300 + api.properties(bisect_config=bisect_config) 303 + api.properties(bisect_config=bisect_config)
301 + api.properties(job_name='f7a7b4135624439cbd27fdd5133d74ec') 304 + api.properties(job_name='f7a7b4135624439cbd27fdd5133d74ec')
302 + api.bisect_tester(tempfile='/tmp/dummy') 305 + api.bisect_tester(tempfile='/tmp/dummy')
303 + api.properties(parent_got_revision='1111111') 306 + api.properties(parent_got_revision='1111111')
304 + api.properties( 307 + api.properties(
305 parent_build_archive_url='gs://test-domain/test-archive.zip') 308 parent_build_archive_url='gs://test-domain/test-archive.zip')
306 ) 309 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698