summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-28 13:41:08 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-28 13:41:08 +0200
commit7bc0ae59871f46e68482a4aa836a8744eed33c65 (patch)
tree20e731f2ac6a993bd7a6ca3dbb6648c5ce6c6b67
parentf5fdd5939e1a6021605ed5e97579e3a7a9372e46 (diff)
downloadjenkins.debian.net-7bc0ae59871f46e68482a4aa836a8744eed33c65.tar.xz
reproducible: schedule packages in unstable before those in other suites
-rwxr-xr-xbin/reproducible_scheduler.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index f07734ea..baa41ed3 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -279,7 +279,13 @@ def scheduler():
log.info('==============================================================')
now_queued_here = {}
+ # make sure to schedule packages in unstable first
+ # (but keep the view ordering everywhere else)
+ priotized_suite_order = ['unstable']
for suite in SUITES:
+ if suite not in priotized_suite_order:
+ priotized_suite_order += suite
+ for suite in priotized_suite_order:
query = 'SELECT count(*) ' + \
'FROM schedule AS p JOIN sources AS s ON p.package_id=s.id ' + \
'WHERE s.suite="{suite}"'.format(suite=suite)