Sha256: 21d76375609f2c2e9913f21e49eab8ae0043f08324fca575786562babcee9bcd

Contents?: true

Size: 1.21 KB

Versions: 45

Compression:

Stored size: 1.21 KB

Contents

"""
This module contains the logic which returns the set of
schedulers to use for the build master.
"""

from buildbot.changes.filter import ChangeFilter
from buildbot.schedulers.basic import (
    Dependent,
    SingleBranchScheduler)

def get_schedulers(builders):
    platforms = ["linux", "osx", "win"]
    schedulers = []

    for platform in platforms:
        platform_builders = [b for b in builders if platform in b.name]

        # Unit tests for this platform
        unit_builders = [b.name for b in platform_builders if "unit" in b.name]
        master_unit = SingleBranchScheduler(name="%s-master-unit" % platform,
                                            change_filter=ChangeFilter(branch="master"),
                                            treeStableTimer=60,
                                            builderNames=unit_builders)

        acceptance_builders = [b.name for b in platform_builders if "acceptance" in b.name]
        master_acceptance = Dependent(name="%s-master-acceptance" % platform,
                                      upstream=master_unit,
                                      builderNames=acceptance_builders)

        schedulers.extend([master_unit, master_acceptance])

    return schedulers

Version data entries

45 entries across 45 versions & 6 rubygems

Version Path
bmhatfield-vagrant-1.0.10 test/buildbot/buildbot_config/master/schedulers.py
bmhatfield-vagrant-1.0.9 test/buildbot/buildbot_config/master/schedulers.py
bmhatfield-vagrant-1.0.8 test/buildbot/buildbot_config/master/schedulers.py
bmhatfield-vagrant-1.0.7 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-1.0.7 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-1.0.6 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-1.0.5 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-1.0.4 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-1.0.3 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-1.0.2 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-1.0.1 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-1.0.0 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-0.9.99.2 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-0.9.99.1 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-0.9.7 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-0.9.6 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-0.9.5 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-0.9.4 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-0.9.3 test/buildbot/buildbot_config/master/schedulers.py
vagrantup-0.9.2 test/buildbot/buildbot_config/master/schedulers.py