summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2016-02-19 07:38:03 +0000
committerHolger Levsen <holger@layer-acht.org>2016-02-19 10:34:33 +0100
commita367ceb9379fdc9082c76b4d1ff2fdfa8caed401 (patch)
tree43850ab30b32069d3b840893d7a39fb37e3333ad
parenta26e14805afab72a5a5f7ba4ca34f564e29516f5 (diff)
downloadjenkins.debian.net-a367ceb9379fdc9082c76b4d1ff2fdfa8caed401.tar.xz
reproducible: scheduler: shuffle the package list right before scheduling them
-rwxr-xr-xbin/reproducible_scheduler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index f3f41aff..d31a8fb6 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -297,6 +297,7 @@ def queue_packages(all_pkgs, packages, date):
def schedule_packages(packages):
+ random.shuffle(packages)
pkgs = ((x, packages[x]) for x in packages)
log.debug('IDs about to be scheduled: ' + str(packages.keys()))
query = 'INSERT INTO schedule ' + \