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 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 90 'src/build', | 90 'src/build', |
| 91 target_platform='darwin', | 91 target_platform='darwin', |
| 92 full_checkout=True) | 92 full_checkout=True) |
| 93 | 93 |
| 94 m_win_swarm = swarm_factory.SwarmFactory( | 94 m_win_swarm = swarm_factory.SwarmFactory( |
| 95 'src/build', | 95 'src/build', |
| 96 target_platform='win32', | 96 target_platform='win32', |
| 97 full_checkout=True) | 97 full_checkout=True) |
| 98 | 98 |
| 99 # GS archive vars | 99 # GS archive vars |
| 100 chromium_android_archive = master_config.GetGSUtilUrl('chromium-android', | 100 android_dbg_archive = master_config.GetGSUtilUrl( |
| 101 'android_try_builder') | 101 'chromium-android', 'android_try_dbg') |
| 102 android_fyi_dbg_archive = master_config.GetGSUtilUrl( | |
| 103 'chromium-android', 'android_try_fyi_dbg') | |
| 102 | 104 |
| 103 def NextJob(builder, requests): | 105 def NextJob(builder, requests): |
| 104 """Always prioritize commit queue jobs over try jobs.""" | 106 """Always prioritize commit queue jobs over try jobs.""" |
| 105 for req in requests: | 107 for req in requests: |
| 106 if any(c.who == 'commit-bot@chromium.org' for c in req.source.changes): | 108 if any(c.who == 'commit-bot@chromium.org' for c in req.source.changes): |
| 107 return req | 109 return req |
| 108 return requests[0] | 110 return requests[0] |
| 109 | 111 |
| 110 | 112 |
| 111 def CreateBuilder(platform, builder_name, target, | 113 def CreateBuilder(platform, builder_name, target, |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 706 ' proprietary_codecs=1')}}) | 708 ' proprietary_codecs=1')}}) |
| 707 } | 709 } |
| 708 | 710 |
| 709 # Compile only trybot | 711 # Compile only trybot |
| 710 b_android = CreateBuilder( | 712 b_android = CreateBuilder( |
| 711 platform='android', | 713 platform='android', |
| 712 target='Debug', | 714 target='Debug', |
| 713 builder_name='android', | 715 builder_name='android', |
| 714 annotation_script='src/build/android/buildbot/bb_try_compile.sh') | 716 annotation_script='src/build/android/buildbot/bb_try_compile.sh') |
| 715 | 717 |
| 716 # Compile and run tests | 718 # Compile and zip build, triggers testers |
| 717 b_android_test = CreateBuilder( | 719 b_android_dbg = CreateBuilder( |
| 718 platform='android', | 720 platform='android', |
| 719 target='Debug', | 721 target='Debug', |
| 720 builder_name='android_test', | 722 builder_name='android_dbg', |
| 721 annotation_script='src/build/android/buildbot/bb_try_compile_test.sh') | |
| 722 | |
| 723 # Compile and zip build, triggers android_tester | |
| 724 b_android_builder = CreateBuilder( | |
| 725 platform='android', | |
| 726 target='Debug', | |
| 727 builder_name='android_builder', | |
| 728 factory_properties={'trigger': 'android', | 723 factory_properties={'trigger': 'android', |
| 729 'build_url': chromium_android_archive}, | 724 'build_url': android_dbg_archive}, |
| 730 annotation_script='src/build/android/buildbot/bb_try_builder.sh') | 725 annotation_script='src/build/android/buildbot/bb_try_builder.sh') |
| 731 | 726 |
| 732 # Download and extract build, run tests. | 727 # Download and extract build, run tests. |
| 733 b_android_tester = CreateBuilder( | 728 b_android_dbg_tester = CreateBuilder( |
|
M-A Ruel
2012/09/12 13:01:26
I prefer the variable to be the name of the builde
| |
| 734 platform='android', | 729 platform='android', |
| 735 target='Debug', | 730 target='Debug', |
| 736 builder_name='android_tester', | 731 builder_name='android_dbg_triggered_tests', |
| 737 factory_properties={'halt_on_missing_build': True, | 732 factory_properties={'halt_on_missing_build': True, |
| 738 'build_url': chromium_android_archive}, | 733 'build_url': android_dbg_archive}, |
| 739 annotation_script='src/build/android/buildbot/bb_try_tester.sh') | 734 annotation_script='src/build/android/buildbot/bb_try_tester.sh') |
| 740 | 735 |
| 736 # Compile and zip build, triggers testers | |
| 737 b_android_fyi_dbg = CreateBuilder( | |
|
M-A Ruel
2012/09/12 13:01:26
What's different on fyi? Can't this be achieved wi
Isaac (away)
2012/09/12 16:56:49
It will build additional targets on the builder si
| |
| 738 platform='android', | |
| 739 target='Debug', | |
| 740 builder_name='android_fyi_dbg', | |
| 741 factory_properties={'trigger': 'android_fyi', | |
| 742 'build_url': android_fyi_dbg_archive}, | |
| 743 annotation_script='src/build/android/buildbot/bb_try_fyi_builder.sh') | |
| 744 | |
| 745 # Download and extract build, run tests. | |
| 746 b_android_fyi_dbg_tester = CreateBuilder( | |
| 747 platform='android', | |
| 748 target='Debug', | |
| 749 builder_name='android_fyi_dbg_triggered_tests', | |
| 750 factory_properties={'halt_on_missing_build': True, | |
| 751 'build_url': android_fyi_dbg_archive}, | |
| 752 annotation_script='src/build/android/buildbot/bb_try_fyi_tester.sh') | |
| 753 | |
| 741 b_ios_rel_device = CreateBuilder( | 754 b_ios_rel_device = CreateBuilder( |
| 742 platform='ios', | 755 platform='ios', |
| 743 builder_name='ios_rel_device', | 756 builder_name='ios_rel_device', |
| 744 target='Release', | 757 target='Release', |
| 745 options=[ | 758 options=[ |
| 746 '--', | 759 '--', |
| 747 '-project', '../build/all.xcodeproj', | 760 '-project', '../build/all.xcodeproj', |
| 748 '-sdk', 'iphoneos5.1', | 761 '-sdk', 'iphoneos5.1', |
| 749 '-target', 'All', | 762 '-target', 'All', |
| 750 ], | 763 ], |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1616 'arm_fpu=vfpv3-d16 ' | 1629 'arm_fpu=vfpv3-d16 ' |
| 1617 'chromeos=1 ' # Since this is the intersting variation. | 1630 'chromeos=1 ' # Since this is the intersting variation. |
| 1618 ), | 1631 ), |
| 1619 } | 1632 } |
| 1620 | 1633 |
| 1621 c['builders'] = [ | 1634 c['builders'] = [ |
| 1622 b_linux_rel, b_linux_rel_alt, b_linux_rel_precise, b_mac_rel, b_win_rel, | 1635 b_linux_rel, b_linux_rel_alt, b_linux_rel_precise, b_mac_rel, b_win_rel, |
| 1623 b_linux_rel_naclmore, b_mac_rel_naclmore, b_win_rel_naclmore, | 1636 b_linux_rel_naclmore, b_mac_rel_naclmore, b_win_rel_naclmore, |
| 1624 b_linux_clang, | 1637 b_linux_clang, |
| 1625 b_linux, b_mac, b_win, | 1638 b_linux, b_mac, b_win, |
| 1626 b_android, b_android_test, b_android_builder, b_android_tester, | 1639 b_android, b_android_dbg, b_android_dbg_tester, |
| 1640 b_android_fyi_dbg, b_android_fyi_dbg_tester, | |
| 1627 b_ios_rel_device, b_ios_dbg_simulator, | 1641 b_ios_rel_device, b_ios_dbg_simulator, |
| 1628 b_win_vs2010_rel, b_win_vs2010, | 1642 b_win_vs2010_rel, b_win_vs2010, |
| 1629 b_chromium_chromiumos, | 1643 b_chromium_chromiumos, |
| 1630 b_valgrind_linux, b_valgrind_mac, | 1644 b_valgrind_linux, b_valgrind_mac, |
| 1631 b_chromium_chromiumos_valgrind, | 1645 b_chromium_chromiumos_valgrind, |
| 1632 b_tsan_linux, b_drmemory_win, | 1646 b_tsan_linux, b_drmemory_win, |
| 1633 b_linux_layout, b_mac_layout, b_win_layout, | 1647 b_linux_layout, b_mac_layout, b_win_layout, |
| 1634 b_linux_layout_rel, b_mac_layout_rel, b_win_layout_rel, | 1648 b_linux_layout_rel, b_mac_layout_rel, b_win_layout_rel, |
| 1635 b_coverage_linux, | 1649 b_coverage_linux, |
| 1636 b_win_chrome_frame, | 1650 b_win_chrome_frame, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1702 project='chrome')) | 1716 project='chrome')) |
| 1703 | 1717 |
| 1704 if LISTEN_TO_SVN: | 1718 if LISTEN_TO_SVN: |
| 1705 c['schedulers'].append(TryJobSubversion( | 1719 c['schedulers'].append(TryJobSubversion( |
| 1706 name='try_job_svn', | 1720 name='try_job_svn', |
| 1707 svn_url=ActiveMaster.svn_url, | 1721 svn_url=ActiveMaster.svn_url, |
| 1708 last_good_urls=last_good_urls, | 1722 last_good_urls=last_good_urls, |
| 1709 code_review_sites=code_review_sites, | 1723 code_review_sites=code_review_sites, |
| 1710 pools=pools)) | 1724 pools=pools)) |
| 1711 | 1725 |
| 1712 # Triggerable scheduler for Android Builder. | 1726 # Triggerable schedulers for Android Builder. |
| 1713 c['schedulers'].append(Triggerable( | 1727 c['schedulers'].append(Triggerable( |
| 1714 name='android', | 1728 name='android', |
| 1715 builderNames=['android_tester'])) | 1729 builderNames=['android_dbg_triggered_tests'])) |
| 1730 c['schedulers'].append(Triggerable( | |
| 1731 name='android_fyi', | |
| 1732 builderNames=['android_fyi_dbg_triggered_tests'])) | |
| 1716 | 1733 |
| 1717 | 1734 |
| 1718 ####### STATUS TARGETS | 1735 ####### STATUS TARGETS |
| 1719 | 1736 |
| 1720 # Adds common status and tools to this master. | 1737 # Adds common status and tools to this master. |
| 1721 # Use our own mail notifier. | 1738 # Use our own mail notifier. |
| 1722 master_utils.AutoSetupMaster(c, ActiveMaster, False) | 1739 master_utils.AutoSetupMaster(c, ActiveMaster, False) |
| 1723 | 1740 |
| 1724 if MAIL_NOTIFIER: | 1741 if MAIL_NOTIFIER: |
| 1725 # Add a dumb MailNotifier first so it will be used for BuildSlave with | 1742 # Add a dumb MailNotifier first so it will be used for BuildSlave with |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1783 ####### PROJECT IDENTITY | 1800 ####### PROJECT IDENTITY |
| 1784 | 1801 |
| 1785 # The 'projectURL' string will be used to provide a link | 1802 # The 'projectURL' string will be used to provide a link |
| 1786 # from buildbot HTML pages to your project's home page. | 1803 # from buildbot HTML pages to your project's home page. |
| 1787 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' | 1804 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' |
| 1788 | 1805 |
| 1789 # Buildbot master url: | 1806 # Buildbot master url: |
| 1790 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.chromium/' | 1807 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.chromium/' |
| 1791 | 1808 |
| 1792 # vi: set ts=4 sts=2 sw=2 et: | 1809 # vi: set ts=4 sts=2 sw=2 et: |
| OLD | NEW |