mozilla2/master2.cfg
author Alice Nodelman <alice@mozilla.com>
Thu, 10 Sep 2009 09:14:36 -0700
changeset 1489 e095d2e1a3447c87a62c1f18d88615ae9483b8b1
parent 1463 075bff5b85679dba88a17ab8b5ccbf86286d0c96
child 1497 16da32d6d680895b2a85fccdf75f390a9a898c9c
permissions -rw-r--r--
bug 514070 (max dirty profile testing) patch for production/try p=anodelman, r=catlee

import config
reload(config)
from config import SLAVES, MAC_MINIS, XSERVES

import buildbotcustom.misc
reload(buildbotcustom.misc)
from buildbotcustom.misc import generateBranchObjects

ACTIVE_BRANCHES = ['tracemonkey', 'mozilla-1.9.1', 'electrolysis']
L10N_SLAVES = {
    'linux': SLAVES['linux'][-8:],
    'win32': SLAVES['win32'][-8:],
    'macosx': MAC_MINIS[-6:] + XSERVES[-2:],
}

execfile("master-main.cfg")

c['buildbotURL'] = 'http://production-master02.build.mozilla.org:8010/'

for branch in ACTIVE_BRANCHES:
    branchObjects = generateBranchObjects(BRANCHES[branch], branch)
    c['builders'].extend(branchObjects['builders'])
    c['schedulers'].extend(branchObjects['schedulers'])
    c['change_source'].extend(branchObjects['change_source'])
    c['status'].extend(branchObjects['status'])

import buildbotcustom.log
import buildbotcustom.l10n
reload(buildbotcustom.log)
reload(buildbotcustom.l10n)
from buildbotcustom.l10n import Scheduler as SchedulerL10n

buildbotcustom.log.init(
    scheduler = buildbotcustom.log.DEBUG,
    dispatcher = buildbotcustom.log.DEBUG
)

s = SchedulerL10n("l10n", "l10nbuilds2.ini")
c['schedulers'].append(s)

########## Mobile

import mobile_master
reload(mobile_master)

c['builders'].extend(mobile_master.m['builders'])
c['schedulers'].extend(mobile_master.m['schedulers'])
c['change_source'].extend(mobile_master.m['change_source'])
c['status'].extend(mobile_master.m['status'])

# We need to add an HgPoller for mozilla-central because we're running
# mobile builds off mozilla-central in this master instance, but
# running mozilla-central proper in the other.
from buildbotcustom.changes.hgpoller import HgPoller

mozillaCentralConfig = BRANCHES['mozilla-central']
c['change_source'].append(HgPoller(
    hgURL=mozillaCentralConfig['hgurl'],
    branch=mozillaCentralConfig['repo_path'],
    pushlogUrlOverride='%s/%s/pushlog' % (mozillaCentralConfig['hgurl'],
                                          mozillaCentralConfig['repo_path']),
    pollInterval=1*60
))
mozilla192Config = BRANCHES['mozilla-1.9.2']
from buildbotcustom.changes.hgpoller import HgPoller
c['change_source'].append(HgPoller(
    hgURL=mozilla192Config['hgurl'],
    branch=mozilla192Config['repo_path'],
    pushlogUrlOverride='%s/%s/pushlog' % (mozilla192Config['hgurl'],
                                          mozilla192Config['repo_path']),
    pollInterval=1*60
))