Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bb.org: Give priority to the Windows amd64 builders
  • Loading branch information
vladbogo committed Jan 5, 2022
1 parent 933d027 commit 875e378
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildbot.mariadb.org/master-nonlatent/master.cfg
Expand Up @@ -75,6 +75,9 @@ gs = reporters.GitHubStatusPush(token=config["private"]["gh_mdbci"]["access_toke
builders=github_status_builders)
c['services'].append(gs)

####### Builder priority
c['prioritizeBuilders'] = prioritizeBuilders

####### WORKERS

# The 'workers' list defines the set of recognized workers. Each element is
Expand Down
13 changes: 13 additions & 0 deletions buildbot.mariadb.org/utils.py
Expand Up @@ -302,3 +302,16 @@ def getEcoBuilderNames(props):
builds.append(b)
return builds

##### Builder priority
# Prioritize builders. At this point, only the Windows builders need a higher priority
# since the others run on dedicated machines.
def prioritizeBuilders(buildmaster, builders):
"""amd64-windows-* builders should have the highest priority since they are used for
protected branches"""
builderPriorities = {
"amd64-windows": 0,
"amd64-windows-packages": 0,
}
builders.sort(key=lambda b: builderPriorities.get(b.name, 1))
return builders

0 comments on commit 875e378

Please sign in to comment.