| 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 buildbot.scheduler import Triggerable | 5 from buildbot.scheduler import Triggerable |
| 6 from buildbot.scheduler import Scheduler | 6 from buildbot.scheduler import Scheduler |
| 7 | 7 |
| 8 from common import chromium_utils | 8 from common import chromium_utils |
| 9 | 9 |
| 10 # These modules come from scripts/master, which must be in the PYTHONPATH. | 10 # These modules come from scripts/master, which must be in the PYTHONPATH. |
| 11 from master import gitiles_poller | 11 from master import gitiles_poller |
| 12 from master import master_config | 12 from master import master_config |
| 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 | 15 |
| 16 from master.factory import annotator_factory | 16 from master.factory import annotator_factory |
| 17 from master.factory import chromium_factory | 17 from master.factory import chromium_factory |
| 18 | 18 |
| 19 import config | 19 import config |
| 20 import master_site_config | 20 import master_site_config |
| 21 | 21 |
| 22 ActiveMaster = master_site_config.ChromiumMemoryFYI | 22 ActiveMaster = master_site_config.ChromiumMemoryFull |
| 23 | 23 |
| 24 c = BuildmasterConfig = {} | 24 c = BuildmasterConfig = {} |
| 25 c['logCompressionLimit'] = False | 25 c['logCompressionLimit'] = False |
| 26 | 26 |
| 27 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 27 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) |
| 28 | 28 |
| 29 ####### CHANGESOURCES | 29 ####### CHANGESOURCES |
| 30 | 30 |
| 31 master_poller = gitiles_poller.GitilesPoller( | 31 master_poller = gitiles_poller.GitilesPoller( |
| 32 'https://chromium.googlesource.com/chromium/src') | 32 'https://chromium.googlesource.com/chromium/src') |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 # Some shortcut to simplify the code below. | 128 # Some shortcut to simplify the code below. |
| 129 F_WIN = m_win.ChromiumFactory | 129 F_WIN = m_win.ChromiumFactory |
| 130 F_WIN_NINJA = m_win_ninja.ChromiumFactory | 130 F_WIN_NINJA = m_win_ninja.ChromiumFactory |
| 131 F_LINUX = m_linux.ChromiumFactory | 131 F_LINUX = m_linux.ChromiumFactory |
| 132 F_CR_OS = m_chromeos.ChromiumOSFactory | 132 F_CR_OS = m_chromeos.ChromiumOSFactory |
| 133 | 133 |
| 134 m_annotator = annotator_factory.AnnotatorFactory() | 134 m_annotator = annotator_factory.AnnotatorFactory() |
| 135 | 135 |
| 136 chromium_win_drmemory_archive = master_config.GetGSUtilUrl( | 136 chromium_win_drmemory_archive = master_config.GetGSUtilUrl( |
| 137 'chromium-memory-fyi', 'drm-cr') | 137 'chromium-memory-full', 'drm-cr') |
| 138 | 138 |
| 139 chromium_win_drmemory_64_archive = master_config.GetGSUtilUrl( | 139 chromium_win_drmemory_64_archive = master_config.GetGSUtilUrl( |
| 140 'chromium-memory-fyi', 'drm-cr-64') | 140 'chromium-memory-full', 'drm-cr-64') |
| 141 | 141 |
| 142 # IMPORTANT NOTE about adding new tests. | 142 # IMPORTANT NOTE about adding new tests. |
| 143 # If you want to add a new test, make sure it's: | 143 # If you want to add a new test, make sure it's: |
| 144 # a) buildable, | 144 # a) buildable, |
| 145 # b) runnable by all the tools, | 145 # b) runnable by all the tools, |
| 146 # c) green locally under all tools (at least mostly) and | 146 # c) green locally under all tools (at least mostly) and |
| 147 # d) the e-mail notifier is configured to watch for its failures. | 147 # d) the e-mail notifier is configured to watch for its failures. |
| 148 # [See details below] | 148 # [See details below] |
| 149 # | 149 # |
| 150 # Also, please do your best to estimate the time it takes to run the new test | 150 # Also, please do your best to estimate the time it takes to run the new test |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 b_chromium_rel_linux_tsan_builder, | 699 b_chromium_rel_linux_tsan_builder, |
| 700 b_chromium_rel_linux_tsan, | 700 b_chromium_rel_linux_tsan, |
| 701 b_chromium_rel_linux_msan_builder, | 701 b_chromium_rel_linux_msan_builder, |
| 702 b_chromium_rel_linux_msan, | 702 b_chromium_rel_linux_msan, |
| 703 b_chromium_rel_linux_chromeos_msan_builder, | 703 b_chromium_rel_linux_chromeos_msan_builder, |
| 704 b_chromium_rel_linux_chromeos_msan, | 704 b_chromium_rel_linux_chromeos_msan, |
| 705 ]) | 705 ]) |
| 706 | 706 |
| 707 # Associate the slaves to the manual builders. The configuration is in | 707 # Associate the slaves to the manual builders. The configuration is in |
| 708 # slaves.cfg. | 708 # slaves.cfg. |
| 709 slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumMemoryFYI') | 709 slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumMemoryFull') |
| 710 for builder in c['builders']: | 710 for builder in c['builders']: |
| 711 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) | 711 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) |
| 712 | 712 |
| 713 ####### BUILDSLAVES | 713 ####### BUILDSLAVES |
| 714 | 714 |
| 715 # The 'slaves' list defines the set of allowable buildslaves. List all the | 715 # The 'slaves' list defines the set of allowable buildslaves. List all the |
| 716 # slaves registered to a builder. Remove dupes. | 716 # slaves registered to a builder. Remove dupes. |
| 717 c['slaves'] = master_utils.AutoSetupSlaves(c['builders'], | 717 c['slaves'] = master_utils.AutoSetupSlaves(c['builders'], |
| 718 config.Master.GetBotPassword()) | 718 config.Master.GetBotPassword()) |
| 719 | 719 |
| 720 # Make sure everything works together. | 720 # Make sure everything works together. |
| 721 master_utils.VerifySetup(c, slaves) | 721 master_utils.VerifySetup(c, slaves) |
| 722 | 722 |
| 723 ####### STATUS TARGETS | 723 ####### STATUS TARGETS |
| 724 | 724 |
| 725 # Buildbot master url: | 725 # Buildbot master url: |
| 726 # Must come before AutoSetupMaster(). | 726 # Must come before AutoSetupMaster(). |
| 727 c['buildbotURL'] = ActiveMaster.buildbot_url | 727 c['buildbotURL'] = ActiveMaster.buildbot_url |
| 728 | 728 |
| 729 # Adds common status and tools to this master. | 729 # Adds common status and tools to this master. |
| 730 master_utils.AutoSetupMaster(c, ActiveMaster, | 730 master_utils.AutoSetupMaster(c, ActiveMaster, |
| 731 public_html='../master.chromium/public_html', | 731 public_html='../master.chromium/public_html', |
| 732 templates=['../master.chromium/templates'], | 732 templates=['../master.chromium/templates'], |
| 733 tagComparator=master_poller.comparator, | 733 tagComparator=master_poller.comparator, |
| 734 enable_http_status_push=ActiveMaster.is_production_host) | 734 enable_http_status_push=ActiveMaster.is_production_host) |
| 735 | 735 |
| 736 if ActiveMaster.is_production_host: | 736 if ActiveMaster.is_production_host: |
| 737 import notifier_cfg | 737 import notifier_cfg |
| 738 notifier_cfg.Update(config, ActiveMaster, c) | 738 notifier_cfg.Update(config, ActiveMaster, c) |
| OLD | NEW |