OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 master import gitiles_poller | 5 from master import gitiles_poller |
6 from master import master_config | 6 from master import master_config |
7 from master.factory import annotator_factory | 7 from master.factory import annotator_factory |
8 from master.factory import chromium_factory | 8 from master.factory import chromium_factory |
9 | 9 |
10 import master_site_config | 10 import master_site_config |
11 | 11 |
12 ActiveMaster = master_site_config.ChromiumLKGR | 12 ActiveMaster = master_site_config.ChromiumLKGR |
13 | 13 |
14 defaults = {} | 14 defaults = {} |
15 | 15 |
16 helper = master_config.Helper(defaults) | 16 helper = master_config.Helper(defaults) |
17 B = helper.Builder | 17 B = helper.Builder |
18 F = helper.Factory | 18 F = helper.Factory |
19 S = helper.Scheduler | 19 S = helper.Scheduler |
20 | 20 |
21 def win(): return chromium_factory.ChromiumFactory('src/build', 'win32') | |
22 def win_out(): return chromium_factory.ChromiumFactory('src/out', 'win32') | 21 def win_out(): return chromium_factory.ChromiumFactory('src/out', 'win32') |
23 def linux(): return chromium_factory.ChromiumFactory('src/build', 'linux2') | 22 def linux(): return chromium_factory.ChromiumFactory('src/build', 'linux2') |
24 def mac(): return chromium_factory.ChromiumFactory('src/build', 'darwin') | 23 def mac(): return chromium_factory.ChromiumFactory('src/build', 'darwin') |
25 def linux_android(): return chromium_factory.ChromiumFactory( | |
26 'src/out', 'linux2', nohooks_on_update=True, target_os='android') | |
27 | 24 |
28 m_annotator = annotator_factory.AnnotatorFactory() | 25 m_annotator = annotator_factory.AnnotatorFactory() |
29 | 26 |
30 defaults['category'] = '1lkgr' | 27 defaults['category'] = '1lkgr' |
31 | 28 |
32 # Global scheduler | 29 # Global scheduler |
33 S(name='chromium_lkgr', branch='lkgr') | 30 S(name='chromium_lkgr', branch='lkgr') |
34 | 31 |
35 ################################################################################ | 32 ################################################################################ |
36 ## Windows | 33 ## Windows |
37 ################################################################################ | 34 ################################################################################ |
38 | 35 |
39 B('Win', 'win_full', 'compile|windows', 'chromium_lkgr') | |
40 F('win_full', win().ChromiumFactory( | |
41 clobber=True, | |
42 project='all.sln', | |
43 factory_properties={'archive_build': ActiveMaster.is_production_host, | |
44 'gs_bucket': 'gs://chromium-browser-continuous', | |
45 'gs_acl': 'public-read', | |
46 'gclient_env': { | |
47 'GYP_LINK_CONCURRENCY_MAX': '4', | |
48 }, | |
49 })) | |
50 | |
51 B('Win x64', 'win_x64_full', 'windows', 'chromium_lkgr') | |
52 F('win_x64_full', win_out().ChromiumFactory( | |
53 clobber=True, | |
54 compile_timeout=9600, # Release build is LOOONG | |
55 target='Release_x64', | |
56 options=['--build-tool=ninja', '--', 'all'], | |
57 factory_properties={ | |
58 'archive_build': ActiveMaster.is_production_host, | |
59 'gclient_env': { | |
60 'GYP_DEFINES': 'component=static_library target_arch=x64', | |
61 'GYP_LINK_CONCURRENCY_MAX': '4', | |
62 }, | |
63 'gs_bucket': 'gs://chromium-browser-continuous', | |
64 'gs_acl': 'public-read', | |
65 })) | |
66 | |
67 # ASan/Win supports neither the component build nor NaCL at the moment. | 36 # ASan/Win supports neither the component build nor NaCL at the moment. |
68 asan_win_gyp = ('asan=1 component=static_library enable_ipc_fuzzer=1 ' | 37 asan_win_gyp = ('asan=1 component=static_library enable_ipc_fuzzer=1 ' |
69 'v8_enable_verify_heap=1') | 38 'v8_enable_verify_heap=1') |
70 | 39 |
71 # Clang is not stable enough on Windows to use a gatekeeper yet. | 40 # Clang is not stable enough on Windows to use a gatekeeper yet. |
72 B('Win ASan Release', 'win_asan_rel', scheduler='chromium_lkgr') | 41 B('Win ASan Release', 'win_asan_rel', scheduler='chromium_lkgr') |
73 F('win_asan_rel', win_out().ChromiumASANFactory( | 42 F('win_asan_rel', win_out().ChromiumASANFactory( |
74 compile_timeout=8*3600, # We currently use a VM, which is extremely slow. | 43 compile_timeout=8*3600, # We currently use a VM, which is extremely slow. |
75 clobber=True, | 44 clobber=True, |
76 options=['--build-tool=ninja', '--', 'chromium_builder_asan'], | 45 options=['--build-tool=ninja', '--', 'chromium_builder_asan'], |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 # Win SyzyASan bot. | 85 # Win SyzyASan bot. |
117 B('Win SyzyASAN LKGR', 'win_syzyasan_lkgr', 'compile', 'chromium_lkgr') | 86 B('Win SyzyASAN LKGR', 'win_syzyasan_lkgr', 'compile', 'chromium_lkgr') |
118 F('win_syzyasan_lkgr', m_annotator.BaseFactory(recipe='chromium', timeout=7200)) | 87 F('win_syzyasan_lkgr', m_annotator.BaseFactory(recipe='chromium', timeout=7200)) |
119 | 88 |
120 ################################################################################ | 89 ################################################################################ |
121 ## Mac | 90 ## Mac |
122 ################################################################################ | 91 ################################################################################ |
123 | 92 |
124 asan_mac_gyp = 'asan=1 v8_enable_verify_heap=1 ' | 93 asan_mac_gyp = 'asan=1 v8_enable_verify_heap=1 ' |
125 | 94 |
126 B('Mac', 'mac_full', 'compile|testers', 'chromium_lkgr') | |
127 F('mac_full', mac().ChromiumFactory( | |
128 clobber=True, | |
129 factory_properties={'archive_build': ActiveMaster.is_production_host, | |
130 'gs_bucket': 'gs://chromium-browser-continuous', | |
131 'gs_acl': 'public-read',})) | |
132 | |
133 B('Mac ASAN Release', 'mac_asan_rel', 'compile', 'chromium_lkgr') | 95 B('Mac ASAN Release', 'mac_asan_rel', 'compile', 'chromium_lkgr') |
134 F('mac_asan_rel', linux().ChromiumASANFactory( | 96 F('mac_asan_rel', linux().ChromiumASANFactory( |
135 clobber=True, | 97 clobber=True, |
136 options=['--compiler=goma-clang', '--', '-target', 'chromium_builder_asan'], | 98 options=['--compiler=goma-clang', '--', '-target', 'chromium_builder_asan'], |
137 factory_properties={ | 99 factory_properties={ |
138 'cf_archive_build': ActiveMaster.is_production_host, | 100 'cf_archive_build': ActiveMaster.is_production_host, |
139 'cf_archive_name': 'asan', | 101 'cf_archive_name': 'asan', |
140 'gs_bucket': 'gs://chromium-browser-asan', | 102 'gs_bucket': 'gs://chromium-browser-asan', |
141 'gs_acl': 'public-read', | 103 'gs_acl': 'public-read', |
142 'gclient_env': {'GYP_DEFINES': asan_mac_gyp}})) | 104 'gclient_env': {'GYP_DEFINES': asan_mac_gyp}})) |
(...skipping 18 matching lines...) Expand all Loading... |
161 'cf_archive_name': 'asan', | 123 'cf_archive_name': 'asan', |
162 'gs_bucket': 'gs://chromium-browser-asan', | 124 'gs_bucket': 'gs://chromium-browser-asan', |
163 'gs_acl': 'public-read', | 125 'gs_acl': 'public-read', |
164 'gclient_env': {'GYP_DEFINES': asan_mac_gyp + | 126 'gclient_env': {'GYP_DEFINES': asan_mac_gyp + |
165 ' component=static_library '}})) | 127 ' component=static_library '}})) |
166 | 128 |
167 ################################################################################ | 129 ################################################################################ |
168 ## Linux | 130 ## Linux |
169 ################################################################################ | 131 ################################################################################ |
170 | 132 |
171 B('Linux', 'linux_full', 'compile|testers', 'chromium_lkgr') | |
172 F('linux_full', linux().ChromiumFactory( | |
173 clobber=True, | |
174 factory_properties={'archive_build': ActiveMaster.is_production_host, | |
175 'gs_bucket': 'gs://chromium-browser-continuous', | |
176 'gs_acl': 'public-read',})) | |
177 | |
178 B('Linux x64', 'linux64_full', 'compile|testers', 'chromium_lkgr') | |
179 F('linux64_full', linux().ChromiumFactory( | |
180 clobber=True, | |
181 factory_properties={ | |
182 'archive_build': ActiveMaster.is_production_host, | |
183 'gs_bucket': 'gs://chromium-browser-continuous', | |
184 'gs_acl': 'public-read', | |
185 'gclient_env': {'GYP_DEFINES':'target_arch=x64'}})) | |
186 | |
187 asan_rel_gyp = ('asan=1 lsan=1 sanitizer_coverage=edge ' | 133 asan_rel_gyp = ('asan=1 lsan=1 sanitizer_coverage=edge ' |
188 'v8_enable_verify_heap=1 enable_ipc_fuzzer=1 ') | 134 'v8_enable_verify_heap=1 enable_ipc_fuzzer=1 ') |
189 | 135 |
190 B('ASAN Release', 'linux_asan_rel', 'compile', 'chromium_lkgr') | 136 B('ASAN Release', 'linux_asan_rel', 'compile', 'chromium_lkgr') |
191 F('linux_asan_rel', linux().ChromiumASANFactory( | 137 F('linux_asan_rel', linux().ChromiumASANFactory( |
192 compile_timeout=2400, # We started seeing 29 minute links, bug 360158 | 138 compile_timeout=2400, # We started seeing 29 minute links, bug 360158 |
193 clobber=True, | 139 clobber=True, |
194 options=['--compiler=goma-clang', 'chromium_builder_asan'], | 140 options=['--compiler=goma-clang', 'chromium_builder_asan'], |
195 factory_properties={ | 141 factory_properties={ |
196 'cf_archive_build': ActiveMaster.is_production_host, | 142 'cf_archive_build': ActiveMaster.is_production_host, |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 target='Release', | 363 target='Release', |
418 options=['--compiler=goma-clang', 'chromium_builder_asan'], | 364 options=['--compiler=goma-clang', 'chromium_builder_asan'], |
419 factory_properties={ | 365 factory_properties={ |
420 'cf_archive_build': ActiveMaster.is_production_host, | 366 'cf_archive_build': ActiveMaster.is_production_host, |
421 'cf_archive_subdir_suffix': 'vptr', | 367 'cf_archive_subdir_suffix': 'vptr', |
422 'cf_archive_name': 'ubsan-vptr', | 368 'cf_archive_name': 'ubsan-vptr', |
423 'gs_bucket': 'gs://chromium-browser-ubsan', | 369 'gs_bucket': 'gs://chromium-browser-ubsan', |
424 'gs_acl': 'public-read', | 370 'gs_acl': 'public-read', |
425 'gclient_env': {'GYP_DEFINES': ubsan_vptr_gyp}})) | 371 'gclient_env': {'GYP_DEFINES': ubsan_vptr_gyp}})) |
426 | 372 |
427 ################################################################################ | |
428 ## Android | |
429 ################################################################################ | |
430 | |
431 B('Android', 'android', None, 'chromium_lkgr') | |
432 F('android', linux_android().ChromiumAnnotationFactory( | |
433 clobber=True, | |
434 target='Release', | |
435 factory_properties={ | |
436 'android_bot_id': 'lkgr-clobber-rel', | |
437 'archive_build': True, | |
438 'gs_acl': 'public-read', | |
439 'gs_bucket': 'gs://chromium-browser-continuous', | |
440 'perf_id': 'android-release', | |
441 'show_perf_results': True, | |
442 }, | |
443 annotation_script='src/build/android/buildbot/bb_run_bot.py', | |
444 )) | |
445 | |
446 | |
447 def Update(_config, active_master, c): | 373 def Update(_config, active_master, c): |
448 lkgr_poller = gitiles_poller.GitilesPoller( | 374 lkgr_poller = gitiles_poller.GitilesPoller( |
449 'https://chromium.googlesource.com/chromium/src', | 375 'https://chromium.googlesource.com/chromium/src', |
450 branches=['lkgr']) | 376 branches=['lkgr']) |
451 c['change_source'].append(lkgr_poller) | 377 c['change_source'].append(lkgr_poller) |
452 return helper.Update(c) | 378 return helper.Update(c) |
OLD | NEW |