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

Side by Side Diff: masters/master.tryserver.chromium/master.cfg

Issue 10787011: Add split builder/tester android trybot target (Closed) Base URL: https://git.chromium.org/chromium/tools/build.git@master
Patch Set: Created 8 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 # -*- python -*- 1 # -*- python -*-
2 # ex: set syntax=python: 2 # ex: set syntax=python:
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 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 # READ THIS: 7 # READ THIS:
8 # See http://dev.chromium.org/developers/testing/chromium-build-infrastructure 8 # See http://dev.chromium.org/developers/testing/chromium-build-infrastructure
9 9
10 from buildbot.scheduler import Triggerable
11
10 # These modules come from scripts, which must be in the PYTHONPATH. 12 # These modules come from scripts, which must be in the PYTHONPATH.
11 from master import master_utils 13 from master import master_utils
12 from master import slaves_list 14 from master import slaves_list
13 from master.builders_pools import BuildersPools 15 from master.builders_pools import BuildersPools
14 from master.factory import chromium_factory, chromeos_factory 16 from master.factory import chromium_factory, chromeos_factory
15 from master.try_job_http import TryJobHTTP 17 from master.try_job_http import TryJobHTTP
16 from master.try_job_rietveld import TryJobRietveld 18 from master.try_job_rietveld import TryJobRietveld
17 from master.try_job_svn import TryJobSubversion 19 from master.try_job_svn import TryJobSubversion
18 20
19 import config 21 import config
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 return req 79 return req
78 return requests[0] 80 return requests[0]
79 81
80 82
81 def CreateBuilder(platform, builder_name, target, 83 def CreateBuilder(platform, builder_name, target,
82 tests=None, options=None, mode=None, timeout=2400, 84 tests=None, options=None, mode=None, timeout=2400,
83 slavebuilddir=None, extra_gyp_defines=None, 85 slavebuilddir=None, extra_gyp_defines=None,
84 gclient_env=None, gyp_generators=None, 86 gclient_env=None, gyp_generators=None,
85 factory_properties=None): 87 factory_properties=None):
86 """Generates and register a builder along with its slave(s).""" 88 """Generates and register a builder along with its slave(s)."""
87 if platform not in ('win32', 'win64', 'linux', 'mac', 89 if platform not in ('win32', 'win64', 'linux', 'mac', 'android'):
88 'android', 'android_test'):
89 raise Exception(platform + ' is not a known os type') 90 raise Exception(platform + ' is not a known os type')
90 91
91 factory_properties = (factory_properties or {}).copy() 92 factory_properties = (factory_properties or {}).copy()
92 93
93 factory_properties.setdefault('non_default', [ 94 factory_properties.setdefault('non_default', [
94 'check_licenses', 95 'check_licenses',
95 'courgette_unittests', 96 'courgette_unittests',
96 'googleurl_unittests', 97 'googleurl_unittests',
97 'pyauto_functional_tests', 98 'pyauto_functional_tests',
98 'sync_integration_tests', 99 'sync_integration_tests',
(...skipping 16 matching lines...) Expand all
115 else: 116 else:
116 project = 'all.sln' 117 project = 'all.sln'
117 factory_properties['process_dumps'] = True 118 factory_properties['process_dumps'] = True
118 factory_properties['gclient_env']['GYP_DEFINES'] = 'fastbuild=1' 119 factory_properties['gclient_env']['GYP_DEFINES'] = 'fastbuild=1'
119 factory_properties['start_crash_handler'] = True 120 factory_properties['start_crash_handler'] = True
120 elif platform == 'linux': 121 elif platform == 'linux':
121 factory = m_chromium_linux 122 factory = m_chromium_linux
122 factory_properties['gclient_env']['GYP_DEFINES'] = 'fastbuild=1' 123 factory_properties['gclient_env']['GYP_DEFINES'] = 'fastbuild=1'
123 elif platform == 'android': 124 elif platform == 'android':
124 factory = m_chromium_android 125 factory = m_chromium_android
125 annotation_script = 'src/build/android/buildbot_try_compile.sh' 126 if builder_name == 'android':
126 elif platform == 'android_test': 127 annotation_script = 'src/build/android/buildbot_try_compile.sh'
127 factory = m_chromium_android 128 elif builder_name == 'android_compiler':
128 annotation_script = 'src/build/android/buildbot_try_compile_test.sh' 129 annotation_script = 'src/build/android/buildbot_try_compiler.sh'
M-A Ruel 2012/07/14 22:32:50 the difference it really subtle :(
Isaac (away) 2012/07/16 10:00:10 yes it is, and the scripts are very similar too...
130 else:
131 annotation_script = 'src/build/android/buildbot_try_tester.sh'
129 elif platform == 'mac': 132 elif platform == 'mac':
130 factory = m_chromium_mac 133 factory = m_chromium_mac
131 factory_properties['gclient_env']['GYP_DEFINES'] = 'fastbuild=1' 134 factory_properties['gclient_env']['GYP_DEFINES'] = 'fastbuild=1'
132 135
133 if gclient_env: 136 if gclient_env:
134 factory_properties['gclient_env'].update(gclient_env) 137 factory_properties['gclient_env'].update(gclient_env)
135 if extra_gyp_defines: 138 if extra_gyp_defines:
136 factory_properties['gclient_env']['GYP_DEFINES'] += ' ' + extra_gyp_defines 139 factory_properties['gclient_env']['GYP_DEFINES'] += ' ' + extra_gyp_defines
137 if gyp_generators: 140 if gyp_generators:
138 factory_properties['gclient_env']['GYP_GENERATORS'] = gyp_generators 141 factory_properties['gclient_env']['GYP_GENERATORS'] = gyp_generators
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 ' ffmpeg_branding=ChromeOS' 595 ' ffmpeg_branding=ChromeOS'
593 ' dcheck_always_on=1' 596 ' dcheck_always_on=1'
594 ' component=shared_library' 597 ' component=shared_library'
595 ' proprietary_codecs=1')}}) 598 ' proprietary_codecs=1')}})
596 } 599 }
597 600
598 b_android = CreateBuilder(platform='android', 601 b_android = CreateBuilder(platform='android',
599 target='Release', 602 target='Release',
600 builder_name='android') 603 builder_name='android')
601 604
602 b_android_test = CreateBuilder(platform='android_test', 605 b_android_compiler = CreateBuilder(platform='android',
603 target='Release', 606 target='Release',
604 builder_name='android_test') 607 builder_name='android_compiler',
608 factory_properties={'trigger': 'android'})
609
610 b_android_tester = CreateBuilder(platform='android',
611 target='Release',
612 builder_name='android_tester',
613 factory_properties={
614 'halt_on_missing_build': True})
605 615
606 # 32 bits tools can't link libwebcore.a anymore due to lack of virtual address 616 # 32 bits tools can't link libwebcore.a anymore due to lack of virtual address
607 # space, including OSX 10.5. 617 # space, including OSX 10.5.
608 valgrind_gyp_defines = ( 618 valgrind_gyp_defines = (
609 chromium_factory.ChromiumFactory.MEMORY_TOOLS_GYP_DEFINES + ' enable_svg=0') 619 chromium_factory.ChromiumFactory.MEMORY_TOOLS_GYP_DEFINES + ' enable_svg=0')
610 drmemory_gyp_defines = chromium_factory.ChromiumFactory.DR_MEMORY_GYP_DEFINES 620 drmemory_gyp_defines = chromium_factory.ChromiumFactory.DR_MEMORY_GYP_DEFINES
611 621
612 b_valgrind_linux = { 622 b_valgrind_linux = {
613 'name': 'linux_valgrind', 623 'name': 'linux_valgrind',
614 'factory': m_chromium_linux.ChromiumFactory( 624 'factory': m_chromium_linux.ChromiumFactory(
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 'arm_thumb=1 ' 1314 'arm_thumb=1 '
1305 'arm_neon=0 ' 1315 'arm_neon=0 '
1306 'arm_fpu=vfpv3-d16 ' 1316 'arm_fpu=vfpv3-d16 '
1307 'chromeos=1 ' # Since this is the intersting variation. 1317 'chromeos=1 ' # Since this is the intersting variation.
1308 ), 1318 ),
1309 } 1319 }
1310 1320
1311 c['builders'] = [ 1321 c['builders'] = [
1312 b_linux_rel, b_linux_rel_alt, b_mac_rel, b_win_rel, 1322 b_linux_rel, b_linux_rel_alt, b_mac_rel, b_win_rel,
1313 b_linux_clang, 1323 b_linux_clang,
1314 b_linux, b_mac, b_win, b_android, b_android_test, 1324 b_linux, b_mac, b_win,
1325 b_android, b_android_compiler, b_android_tester,
1315 b_win_vs2010_rel, b_win_vs2010, 1326 b_win_vs2010_rel, b_win_vs2010,
1316 b_chromium_chromiumos, 1327 b_chromium_chromiumos,
1317 b_valgrind_linux, b_valgrind_mac, 1328 b_valgrind_linux, b_valgrind_mac,
1318 b_chromium_chromiumos_valgrind, 1329 b_chromium_chromiumos_valgrind,
1319 b_tsan_linux, b_drmemory_win, 1330 b_tsan_linux, b_drmemory_win,
1320 b_linux_layout, b_mac_layout, b_win_layout, 1331 b_linux_layout, b_mac_layout, b_win_layout,
1321 b_linux_layout_rel, b_mac_layout_rel, b_win_layout_rel, 1332 b_linux_layout_rel, b_mac_layout_rel, b_win_layout_rel,
1322 b_coverage_linux, 1333 b_coverage_linux,
1323 b_win_chrome_frame, 1334 b_win_chrome_frame,
1324 b_mac_no_goma, b_linux_clang_no_goma, 1335 b_mac_no_goma, b_linux_clang_no_goma,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 project='chrome')) 1396 project='chrome'))
1386 1397
1387 if LISTEN_TO_SVN: 1398 if LISTEN_TO_SVN:
1388 c['schedulers'].append(TryJobSubversion( 1399 c['schedulers'].append(TryJobSubversion(
1389 name='try_job_svn', 1400 name='try_job_svn',
1390 svn_url=ActiveMaster.svn_url, 1401 svn_url=ActiveMaster.svn_url,
1391 last_good_urls=last_good_urls, 1402 last_good_urls=last_good_urls,
1392 code_review_sites=code_review_sites, 1403 code_review_sites=code_review_sites,
1393 pools=pools)) 1404 pools=pools))
1394 1405
1406 # Triggerable scheduler for Android Builder
cmp 2012/07/16 17:29:24 nit: append period to end of sentence
1407 c['schedulers'].append(Triggerable(
1408 name='android',
1409 builderNames=['android_tester']))
1395 1410
1396 ####### STATUS TARGETS 1411 ####### STATUS TARGETS
1397 1412
1398 # Adds common status and tools to this master. 1413 # Adds common status and tools to this master.
1399 # Use our own mail notifier. 1414 # Use our own mail notifier.
1400 master_utils.AutoSetupMaster(c, ActiveMaster, False, 1415 master_utils.AutoSetupMaster(c, ActiveMaster, False,
1401 public_html='../master.chromium/public_html', 1416 public_html='../master.chromium/public_html',
1402 templates=['./templates', 1417 templates=['./templates',
1403 '../master.chromium/templates']) 1418 '../master.chromium/templates'])
1404 1419
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 ####### PROJECT IDENTITY 1479 ####### PROJECT IDENTITY
1465 1480
1466 # The 'projectURL' string will be used to provide a link 1481 # The 'projectURL' string will be used to provide a link
1467 # from buildbot HTML pages to your project's home page. 1482 # from buildbot HTML pages to your project's home page.
1468 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' 1483 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage'
1469 1484
1470 # Buildbot master url: 1485 # Buildbot master url:
1471 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.chromium/' 1486 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.chromium/'
1472 1487
1473 # vi: set ts=4 sts=2 sw=2 et: 1488 # vi: set ts=4 sts=2 sw=2 et:
OLDNEW
« no previous file with comments | « no previous file | masters/master.tryserver.chromium/slaves.cfg » ('j') | masters/master.tryserver.chromium/slaves.cfg » ('J')

Powered by Google App Engine
This is Rietveld 408576698