It seems that once there are new commits, buildbot restarts building all
targets in alphabetical order. The current logic pretty much disables
the building of the alphabetically last targets, so until there is
proper solution just workaround it by randomly shuffling the builders
list.
References: https://github.com/buildbot/buildbot/issues/5193
Signed-off-by: Petr Štetiar <ynezz@true.cz>
import os
import re
import base64
+import random
import subprocess
import configparser
return r
return requests[0]
+def prioritizeBuilders(buildmaster, builders):
+ random.shuffle(builders)
+ return builders
+
+c['prioritizeBuilders'] = prioritizeBuilders
+
def MakeEnv(overrides=None, tryccache=False):
env = {
'CCC': Interpolate("%(kw:cc)s", cc=GetCC),
import os
import re
import base64
+import random
import subprocess
import configparser
def IsSharedWorkdir(step):
return bool(step.getProperty("shared_wd"))
+def prioritizeBuilders(buildmaster, builders):
+ random.shuffle(builders)
+ return builders
+c['prioritizeBuilders'] = prioritizeBuilders
c['builders'] = []
dlLock = locks.WorkerLock("worker_dl")