summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-03-06 20:32:16 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-07 10:46:47 +0100
commitbd701840d583dd96d190c25c34c46b1c9e0885df (patch)
tree903b147373783fa3b5d77ec40a72954e96a8c318
parent639abbad1a430cdbe45873ec81e16120ff90bc93 (diff)
downloadjenkins.debian.net-bd701840d583dd96d190c25c34c46b1c9e0885df.tar.xz
reproducible: scheduler: tweak the final message to print also how many pacakges are now scheduled for that suite
-rwxr-xr-xbin/reproducible_scheduler.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 8f19b17e..dbebb7ae 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -254,18 +254,19 @@ def scheduler():
for suite in SUITES:
all_scheduled_pkgs = []
+ all_scheduled_pkgs.extend(untested[suite])
+ all_scheduled_pkgs.extend(new[suite])
+ all_scheduled_pkgs.extend(old[suite])
# build the final message text
- message = 'Scheduled in ' + suite + ':' + str(len(untested[suite])) + ' untested packages, ' + \
- str(len(new[suite])) + ' packages with new versions and ' + \
- str(len(old[suite])) + ' with the same version (total: ' + \
- str(total)+')'
+ message = 'Scheduled in ' + suite + ': ' + \
+ str(len(untested[suite])) + ' untested packages, ' + \
+ str(len(new[suite])) + ' packages with new versions and ' + \
+ str(len(old[suite])) + ' with the same version ' + \
+ '(total: ' + str(total) + ' of which ' + \
+ str(len(all_scheduled_pkgs)) + ' in ' + suite + ')'
kgb = ['kgb-client', '--conf', '/srv/jenkins/kgb/debian-reproducible.conf',
'--relay-msg']
kgb.extend(message.split())
- # schedule...
- all_scheduled_pkgs.extend(untested[suite])
- all_scheduled_pkgs.extend(new[suite])
- all_scheduled_pkgs.extend(old[suite])
# finally
schedule_packages(all_scheduled_pkgs)
call(kgb)