summaryrefslogtreecommitdiffstats
path: root/WebKitTools/BuildSlaveSupport/build.webkit.org-config/webkit/schedulers.py
blob: 11f9d418e7df6729019e6b13ba03969bf30484ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from buildbot.scheduler import Scheduler, Periodic

def getSchedulers(builders):
    builder_names = map(lambda builder: builder['name'], builders)
    post_commit_builders = [name for name in builder_names if name.startswith('post-commit-')] + ['page-layout-test-mac-os-x']
    post_commit_builders = [name for name in post_commit_builders if name in builder_names]
    post_commit_builders.sort()
    
    periodic_builders = [b['name'] for b in builders if b['name'].startswith('periodic-')]
    periodic_builders.sort()
    
    post_commit = Scheduler(name="post-commit", branch=None, treeStableTimer=90, builderNames=post_commit_builders)
    periodic = Periodic("periodic", periodic_builders, 6 * 60 * 60)

    return [post_commit, periodic]