talos-r3/master-common.cfg
author John Hopkins <jhopkins@mozilla.com>
Mon, 30 Apr 2012 09:49:11 -0400
changeset 5892 d344e17405c7b83018460f420c7da031f0d632c5
parent 2704 d60b702f815116db7888e9aef1076fa106015642
child 6326 7ec525209823d918c2df8374c04a239db761bacf
permissions -rw-r--r--
copy Thunderbird l10n files under mozilla/ directory (Bug 711534 - Configure Thunderbird release builders) r=standard8

# Shorthand
c = BuildmasterConfig = {}

c['debugPassword'] = "mozilla"
c['projectName'] = "Talos"
c['projectURL'] = "http://wiki.mozilla.org/ReleaseEngineering"

# Keep 100 changes
c['changeHorizon'] = 100

# Cap the log size at 50 MB
c['logMaxSize'] = 50 * 1024 * 1024

c['status'] = []

from buildbot.status.mail import MailNotifier

c['status'].append(MailNotifier(
                       fromaddr="talos.buildbot@build.mozilla.org",
                       sendToInterestedUsers=False,
                       extraRecipients=["joduinn@mozilla.com"],
                       mode="failing",
                       builders=None, # send for all builders
                       relayhost="smtp.mozilla.org"))

# Slaves
import BuildSlaves
reload(BuildSlaves)
from BuildSlaves import SlavePasswords

from buildbot.buildslave import BuildSlave

c['slaves'] = []
for platform, names in SLAVES.items():
    c['slaves'].extend(BuildSlave(name, SlavePasswords[platform], max_builds=1) for name in names)

from buildbot.changes.pb import PBChangeSource
c['change_source'] = [PBChangeSource()]

c['schedulers'] = []
c['builders'] = []

# Give the release builders highest priority, then all branches priority over try
def prioritizeBuilders(botmaster, builders):
    def sortkey(builder):
        if builder.builder_status.category.endswith('-release'):
            return 0, builder.getOldestRequestTime()
        elif builder.builder_status.category == 'tryserver':
            return 2, builder.getOldestRequestTime()
        else:
            return 1, builder.getOldestRequestTime()
    builders.sort(key=sortkey)
    return builders
c['prioritizeBuilders'] = prioritizeBuilders