talos-staging-pool/master-common.cfg
author 'John Ford <jhford@mozilla.com>'
Thu, 21 Oct 2010 14:58:09 -0700
changeset 3164 c5f1d20795a5945dd1d1cecedc56993c97e98c61
parent 2704 d60b702f815116db7888e9aef1076fa106015642
permissions -rw-r--r--
bug 602120 - new master for n900s r=aki p=jhford

# 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