talos-staging-pool/master-common.cfg
author John Hopkins <john.hopkins@mozillamessaging.com>
Wed, 07 Sep 2011 14:45:07 -0700
changeset 4719 9b613cd3fcfc123a3e4e1c431b9a35dd85a72a1e
parent 2704 d60b702f815116db7888e9aef1076fa106015642
permissions -rw-r--r--
Symlink comm-central-tested -> comm-central.

# 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'] = []

# 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