mozilla-tests/scheduler_master.cfg
author Aki Sasaki <asasaki@mozilla.com>
Tue, 29 Mar 2011 15:37:52 -0700
changeset 3856 98b401d22226309d9b99cc1f74abdbcfa5bf4337
parent 3779 5a8621756e60fc16a9736de740ee1646d8bb6397
child 4723 f017fae779fecb6c514f36d2586a800bfd7cd8a4
permissions -rw-r--r--
bug 645283 - EOL Fennec 1.1, r=jhford

# vim: ft=python
from copy import deepcopy

# import/reload dance so that reconfigs work
import master_common
import config
import master_localconfig
import buildbotcustom.misc
reload(master_common)
reload(config)
reload(master_localconfig)
reload(buildbotcustom.misc)

from master_common import BuildmasterConfig
c = BuildmasterConfig
for key, value in master_localconfig.BuildmasterConfig.items():
    if key in c:
        c[key].extend(value)
    else:
        c[key] = value

from config import BRANCHES, PLATFORMS, SUITES, BRANCH_UNITTEST_VARS, PROJECTS, SLAVES
from master_localconfig import ACTIVE_BRANCHES, ACTIVE_PLATFORMS, ACTIVE_PROJECTS

from buildbotcustom.misc import generateTalosBranchObjects, generateProjectObjects, mergeBuildObjects

for p in ACTIVE_PLATFORMS.keys():
    ACTIVE_PLATFORMS[p] = deepcopy(PLATFORMS[p])

buildObjects = {}

for branch in ACTIVE_BRANCHES:
    talosObjects = generateTalosBranchObjects(branch, BRANCHES[branch],
                                               ACTIVE_PLATFORMS, SUITES,
                                               BRANCH_UNITTEST_VARS['platforms'])
    buildObjects = mergeBuildObjects(buildObjects, talosObjects)

for project in ACTIVE_PROJECTS:
    projectObjects = generateProjectObjects(project, PROJECTS[project], SLAVES)
    buildObjects = mergeBuildObjects(buildObjects, projectObjects)

# We only want the schedulers and change sources
c['schedulers'].extend(buildObjects['schedulers'])
c['change_source'].extend(buildObjects['change_source'])

# Required for sendchange
from buildbot.changes.pb import PBChangeSource
c['change_source'].append(PBChangeSource())

import passwords
from passwords import BBDB_URL
c['db_url'] = BBDB_URL
c['db_poll_interval'] = 60
c['multiMaster'] = True

# c is shorthand for BuildmasterConfig, so make sure they still refer to the
# same thing
assert c is BuildmasterConfig