Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 | 10 from buildbot.scheduler import Triggerable |
| 11 | 11 |
| 12 # These modules come from scripts, which must be in the PYTHONPATH. | 12 # These modules come from scripts, which must be in the PYTHONPATH. |
| 13 from master import master_utils | 13 from master import master_utils |
| 14 from master import slaves_list | 14 from master import slaves_list |
| 15 from master.builders_pools import BuildersPools | 15 from master.builders_pools import BuildersPools |
| 16 from master.factory import chromium_factory, chromeos_factory | 16 from master.factory import chromium_factory, chromeos_factory, swarm_factory |
| 17 from master.try_job_http import TryJobHTTP | 17 from master.try_job_http import TryJobHTTP |
| 18 from master.try_job_rietveld import TryJobRietveld | 18 from master.try_job_rietveld import TryJobRietveld |
| 19 from master.try_job_svn import TryJobSubversion | 19 from master.try_job_svn import TryJobSubversion |
| 20 | 20 |
| 21 import config | 21 import config |
| 22 | 22 |
| 23 ActiveMaster = config.Master.TryServer | 23 ActiveMaster = config.Master.TryServer |
| 24 | 24 |
| 25 | 25 |
| 26 MAIL_NOTIFIER = True | 26 MAIL_NOTIFIER = True |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 '', | 70 '', |
| 71 target_platform='linux2', | 71 target_platform='linux2', |
| 72 nohooks_on_update=True, | 72 nohooks_on_update=True, |
| 73 target_os='android') | 73 target_os='android') |
| 74 | 74 |
| 75 m_chromium_ios = chromium_factory.ChromiumFactory( | 75 m_chromium_ios = chromium_factory.ChromiumFactory( |
| 76 'src/build', | 76 'src/build', |
| 77 target_platform='darwin', | 77 target_platform='darwin', |
| 78 ) | 78 ) |
| 79 | 79 |
| 80 # Swarm | |
| 81 m_win_swarm = swarm_factory.SwarmFactory( | |
| 82 'src/build', | |
| 83 target_platform='win32', | |
| 84 full_checkout=True) | |
| 85 | |
| 80 def NextJob(builder, requests): | 86 def NextJob(builder, requests): |
| 81 """Always prioritize commit queue jobs over try jobs.""" | 87 """Always prioritize commit queue jobs over try jobs.""" |
| 82 for req in requests: | 88 for req in requests: |
| 83 if any(c.who == 'commit-bot@chromium.org' for c in req.source.changes): | 89 if any(c.who == 'commit-bot@chromium.org' for c in req.source.changes): |
| 84 return req | 90 return req |
| 85 return requests[0] | 91 return requests[0] |
| 86 | 92 |
| 87 | 93 |
| 88 def CreateBuilder(platform, builder_name, target, | 94 def CreateBuilder(platform, builder_name, target, |
| 89 tests=None, options=None, mode=None, timeout=2400, | 95 tests=None, options=None, mode=None, timeout=2400, |
| (...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 992 platform='win32', | 998 platform='win32', |
| 993 target='Debug', | 999 target='Debug', |
| 994 tests=[ | 1000 tests=[ |
| 995 'chrome_frame_net_tests', | 1001 'chrome_frame_net_tests', |
| 996 'chrome_frame_tests', | 1002 'chrome_frame_tests', |
| 997 ], | 1003 ], |
| 998 builder_name='win_cf', | 1004 builder_name='win_cf', |
| 999 slavebuilddir='win', | 1005 slavebuilddir='win', |
| 1000 extra_gyp_defines='fastbuild=0') | 1006 extra_gyp_defines='fastbuild=0') |
| 1001 | 1007 |
| 1008 # Win Swarm Build | |
| 1009 b_win_swarm = { | |
| 1010 'name': 'win_swarm', | |
| 1011 'factory': m_win_swarm.SwarmFactory( | |
| 1012 options=['--build-tool=ninja', '--compiler=goma', | |
| 1013 'chromium_swarm_tests', '--', '-k', '0'], | |
| 1014 tests = [ | |
| 1015 # They must be in the reverse order of latency to get results, | |
| 1016 # e.g. the slowest test should be last. | |
| 1017 swarm_factory.SwarmTest('base_unittests', 1), | |
| 1018 swarm_factory.SwarmTest('net_unittests', 3), | |
| 1019 swarm_factory.SwarmTest('unit_tests', 4), | |
| 1020 swarm_factory.SwarmTest('browser_tests', 5), | |
| 1021 ], | |
|
cmp
2012/08/09 19:22:02
indent here should move to be under 't' in 'tests
csharp
2012/08/09 19:36:28
Done.
| |
| 1022 factory_properties = { | |
| 1023 'gclient_env' : { | |
| 1024 'GYP_DEFINES': ( | |
| 1025 'test_isolation_mode=hashtable ' | |
| 1026 'test_isolation_outdir=' + | |
| 1027 config.Master.swarm_windows_hashtable_internal + | |
| 1028 ' disable_nacl=1' | |
| 1029 #' enable_svg=0' | |
| 1030 ' fastbuild=1' | |
| 1031 ), | |
| 1032 'GYP_GENERATORS': 'ninja', | |
| 1033 'GYP_MSVS_VERSION': '2010', | |
| 1034 }, | |
|
cmp
2012/08/09 19:22:02
indent here should move to be under first single q
csharp
2012/08/09 19:36:28
Done.
| |
| 1035 'data_server': config.Master.swarm_data_server_vm1_internal, | |
| 1036 'data_dest_dir': config.Master.swarm_windows_hashtable_internal, | |
| 1037 'swarm_server': config.Master.swarm_server_internal_url | |
|
cmp
2012/08/09 19:22:02
append a ,
csharp
2012/08/09 19:36:28
Done.
| |
| 1038 }) | |
|
cmp
2012/08/09 19:22:02
this should be under f in factory_properties on li
csharp
2012/08/09 19:36:28
Done.
| |
| 1039 } | |
| 1040 | |
| 1002 # Clang builders | 1041 # Clang builders |
| 1003 b_linux_clang = CreateBuilder( | 1042 b_linux_clang = CreateBuilder( |
| 1004 platform='linux', | 1043 platform='linux', |
| 1005 target='Debug', | 1044 target='Debug', |
| 1006 options=['--build-tool=make', '--compiler=goma-clang'], | 1045 options=['--build-tool=make', '--compiler=goma-clang'], |
| 1007 tests=linux_tests, | 1046 tests=linux_tests, |
| 1008 extra_gyp_defines='clang=1 clang_use_chrome_plugins=1', | 1047 extra_gyp_defines='clang=1 clang_use_chrome_plugins=1', |
| 1009 builder_name='linux_clang', | 1048 builder_name='linux_clang', |
| 1010 # Keep all tests off by default. | 1049 # Keep all tests off by default. |
| 1011 factory_properties={'non_default':linux_tests_full_name}) | 1050 factory_properties={'non_default':linux_tests_full_name}) |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1402 b_ios_rel_device, b_ios_dbg_simulator, | 1441 b_ios_rel_device, b_ios_dbg_simulator, |
| 1403 b_win_vs2010_rel, b_win_vs2010, | 1442 b_win_vs2010_rel, b_win_vs2010, |
| 1404 b_chromium_chromiumos, | 1443 b_chromium_chromiumos, |
| 1405 b_valgrind_linux, b_valgrind_mac, | 1444 b_valgrind_linux, b_valgrind_mac, |
| 1406 b_chromium_chromiumos_valgrind, | 1445 b_chromium_chromiumos_valgrind, |
| 1407 b_tsan_linux, b_drmemory_win, | 1446 b_tsan_linux, b_drmemory_win, |
| 1408 b_linux_layout, b_mac_layout, b_win_layout, | 1447 b_linux_layout, b_mac_layout, b_win_layout, |
| 1409 b_linux_layout_rel, b_mac_layout_rel, b_win_layout_rel, | 1448 b_linux_layout_rel, b_mac_layout_rel, b_win_layout_rel, |
| 1410 b_coverage_linux, | 1449 b_coverage_linux, |
| 1411 b_win_chrome_frame, | 1450 b_win_chrome_frame, |
| 1451 b_win_swarm, | |
| 1412 b_mac_no_goma, b_linux_clang_no_goma, | 1452 b_mac_no_goma, b_linux_clang_no_goma, |
| 1413 b_linux_chromeos_clang, | 1453 b_linux_chromeos_clang, |
| 1414 b_linux_futura, b_linux_aura, b_win_ash, b_win_aura, | 1454 b_linux_futura, b_linux_aura, b_win_ash, b_win_aura, |
| 1415 b_linux_asan, | 1455 b_linux_asan, |
| 1416 b_linux_chromeos_asan, | 1456 b_linux_chromeos_asan, |
| 1417 b_mac_asan, | 1457 b_mac_asan, |
| 1418 b_linux_heapcheck, | 1458 b_linux_heapcheck, |
| 1419 b_linux_redux, | 1459 b_linux_redux, |
| 1420 b_cros_pfq_x86, b_cros_pfq_amd64, b_cros_pfq_arm, b_cros_pfq_tegra2, | 1460 b_cros_pfq_x86, b_cros_pfq_amd64, b_cros_pfq_arm, b_cros_pfq_tegra2, |
| 1421 b_linux_gpu, b_win_gpu, b_mac_gpu, | 1461 b_linux_gpu, b_win_gpu, b_mac_gpu, |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1556 ####### PROJECT IDENTITY | 1596 ####### PROJECT IDENTITY |
| 1557 | 1597 |
| 1558 # The 'projectURL' string will be used to provide a link | 1598 # The 'projectURL' string will be used to provide a link |
| 1559 # from buildbot HTML pages to your project's home page. | 1599 # from buildbot HTML pages to your project's home page. |
| 1560 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' | 1600 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' |
| 1561 | 1601 |
| 1562 # Buildbot master url: | 1602 # Buildbot master url: |
| 1563 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.chromium/' | 1603 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.chromium/' |
| 1564 | 1604 |
| 1565 # vi: set ts=4 sts=2 sw=2 et: | 1605 # vi: set ts=4 sts=2 sw=2 et: |
| OLD | NEW |