| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 import collections | 7 import collections |
| 8 import copy | 8 import copy |
| 9 import json | 9 import json |
| 10 import optparse | 10 import optparse |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 return commands | 77 return commands |
| 78 | 78 |
| 79 | 79 |
| 80 def GetBotStepMap(): | 80 def GetBotStepMap(): |
| 81 compile_step = ['bb_compile'] | 81 compile_step = ['bb_compile'] |
| 82 std_build_steps = ['bb_compile', 'bb_zip_build'] | 82 std_build_steps = ['bb_compile', 'bb_zip_build'] |
| 83 std_test_steps = ['bb_extract_build'] | 83 std_test_steps = ['bb_extract_build'] |
| 84 std_tests = ['ui', 'unit'] | 84 std_tests = ['ui', 'unit'] |
| 85 flakiness_server = '--upload-to-flakiness-server' | 85 flakiness_server = '--upload-to-flakiness-server' |
| 86 extra_gyp = 'extra_gyp_defines' |
| 86 | 87 |
| 87 B = BotConfig | 88 def B(bot_id, bash_funs, test_obj=None, slave_props=None): |
| 89 return BotConfig(bot_id, bash_funs, test_obj, slave_props) |
| 90 |
| 88 def T(tests, extra_args=None): | 91 def T(tests, extra_args=None): |
| 89 return TestConfig(tests, extra_args) | 92 return TestConfig(tests, extra_args) |
| 90 | 93 |
| 91 bot_configs = [ | 94 bot_configs = [ |
| 92 # Main builders | 95 # Main builders |
| 93 B('main-builder-dbg', | 96 B('main-builder-dbg', |
| 94 ['bb_check_webview_licenses', 'bb_compile', 'bb_run_findbugs', | 97 ['bb_check_webview_licenses', 'bb_compile', 'bb_run_findbugs', |
| 95 'bb_zip_build'], None, None), | 98 'bb_zip_build']), |
| 96 B('main-builder-rel', | 99 B('main-builder-rel', ['bb_compile', 'bb_zip_build']), |
| 97 ['bb_compile', 'bb_zip_build'], None, None), | 100 B('main-clang-builder', compile_step, slave_props={extra_gyp: 'clang=1'}), |
| 98 B('main-clang-builder', compile_step, None, None), | 101 B('main-clobber', compile_step), |
| 99 B('main-clobber', compile_step, None, None), | 102 B('main-tests', std_test_steps, T(std_tests, [flakiness_server])), |
| 100 B('main-tests', std_test_steps, T(std_tests, [flakiness_server]), | |
| 101 None), | |
| 102 | 103 |
| 103 # Other waterfalls | 104 # Other waterfalls |
| 104 B('asan-builder-tests', compile_step + ['bb_asan_tests_setup'], | 105 B('asan-builder-tests', compile_step + ['bb_asan_tests_setup'], |
| 105 T(std_tests, ['--asan']), {'extra_gyp_defines': 'asan=1'}), | 106 T(std_tests, ['--asan']), {extra_gyp: 'asan=1'}), |
| 106 B('chromedriver-fyi-tests-dbg', std_test_steps, | 107 B('chromedriver-fyi-tests-dbg', std_test_steps, |
| 107 T(['chromedriver'], ['--install=ChromiumTestShell']), None), | 108 T(['chromedriver'], ['--install=ChromiumTestShell'])), |
| 108 B('fyi-builder-dbg', | 109 B('fyi-builder-dbg', |
| 109 ['bb_check_webview_licenses', 'bb_compile', 'bb_compile_experimental', | 110 ['bb_check_webview_licenses', 'bb_compile', 'bb_compile_experimental', |
| 110 'bb_run_findbugs', 'bb_zip_build'], None, None), | 111 'bb_run_findbugs', 'bb_zip_build']), |
| 111 B('fyi-builder-rel', | 112 B('fyi-builder-rel', |
| 112 ['bb_compile', 'bb_compile_experimental', 'bb_zip_build'], None, None), | 113 ['bb_compile', 'bb_compile_experimental', 'bb_zip_build']), |
| 113 B('fyi-tests-dbg-ics-gn', ['bb_compile', 'bb_compile_experimental'], | 114 B('fyi-tests-dbg-ics-gn', ['bb_compile', 'bb_compile_experimental'], |
| 114 T(std_tests, ['--experimental', flakiness_server]), None), | 115 T(std_tests, ['--experimental', flakiness_server])), |
| 115 B('fyi-tests', std_test_steps, | 116 B('fyi-tests', std_test_steps, |
| 116 T(std_tests, ['--experimental', flakiness_server]), None), | 117 T(std_tests, ['--experimental', flakiness_server])), |
| 117 B('fyi-component-builder-tests-dbg', compile_step, | 118 B('fyi-component-builder-tests-dbg', compile_step, |
| 118 T(std_tests, ['--experimental', flakiness_server]), None), | 119 T(std_tests, ['--experimental', flakiness_server]), |
| 119 B('perf-tests-rel', std_test_steps, | 120 {extra_gyp: 'component=shared_library'}), |
| 120 T([], ['--install=ContentShell']), | 121 B('perf-tests-rel', std_test_steps, T([], ['--install=ContentShell'])), |
| 121 None), | |
| 122 B('webkit-latest-webkit-tests', std_test_steps, | 122 B('webkit-latest-webkit-tests', std_test_steps, |
| 123 T(['webkit_layout', 'webkit']), None), | 123 T(['webkit_layout', 'webkit'])), |
| 124 B('webkit-latest-contentshell', compile_step, T(['webkit_layout']), None), | 124 B('webkit-latest-contentshell', compile_step, T(['webkit_layout'])), |
| 125 B('builder-unit-tests', compile_step, T(['unit'])), |
| 125 | 126 |
| 126 # Generic builder config (for substring match). | 127 # Generic builder config (for substring match). |
| 127 B('builder', std_build_steps, None, None), | 128 B('builder', std_build_steps), |
| 128 ] | 129 ] |
| 129 | 130 |
| 130 bot_map = dict((config.bot_id, config) for config in bot_configs) | 131 bot_map = dict((config.bot_id, config) for config in bot_configs) |
| 131 | 132 |
| 132 # These bots have identical configuration to ones defined earlier. | 133 # These bots have identical configuration to ones defined earlier. |
| 133 copy_map = [ | 134 copy_map = [ |
| 134 ('lkgr-clobber', 'main-clobber'), | 135 ('lkgr-clobber', 'main-clobber'), |
| 135 ('try-builder-dbg', 'main-builder-dbg'), | 136 ('try-builder-dbg', 'main-builder-dbg'), |
| 136 ('try-builder-rel', 'main-builder-rel'), | 137 ('try-builder-rel', 'main-builder-rel'), |
| 137 ('try-clang-builder', 'main-clang-builder'), | 138 ('try-clang-builder', 'main-clang-builder'), |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 cwd=CHROME_SRC, | 220 cwd=CHROME_SRC, |
| 220 env=dict(os.environ, BUILDBOT_TESTING='1')) | 221 env=dict(os.environ, BUILDBOT_TESTING='1')) |
| 221 else: | 222 else: |
| 222 return_code = subprocess.call(command, cwd=CHROME_SRC, env=env) | 223 return_code = subprocess.call(command, cwd=CHROME_SRC, env=env) |
| 223 if return_code != 0: | 224 if return_code != 0: |
| 224 return return_code | 225 return return_code |
| 225 | 226 |
| 226 | 227 |
| 227 if __name__ == '__main__': | 228 if __name__ == '__main__': |
| 228 sys.exit(main(sys.argv)) | 229 sys.exit(main(sys.argv)) |
| OLD | NEW |