From 63fd28b70c169d9008ce303794d784659bdcf19f Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sun, 8 Mar 2015 00:33:19 +0100 Subject: reproducible: scheduler: show the number of total packages now scheduled in , instead of only new ones --- bin/reproducible_scheduler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index dbebb7ae..024a32f6 100755 --- a/bin/reproducible_scheduler.py +++ b/bin/reproducible_scheduler.py @@ -257,13 +257,17 @@ def scheduler(): all_scheduled_pkgs.extend(untested[suite]) all_scheduled_pkgs.extend(new[suite]) all_scheduled_pkgs.extend(old[suite]) + query = 'SELECT count(*) ' + \ + 'FROM schedule AS p JOIN sources AS s ON p.package_id=s.id ' + \ + 'WHERE s.suite="{suite}"'.format(suite=suite) + now_queued_here = int(query_db(query)[0][0]) + len(all_scheduled_pkgs) # 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) + ' of which ' + \ - str(len(all_scheduled_pkgs)) + ' in ' + suite + ')' + str(now_queued_here) + ' in ' + suite + ')' kgb = ['kgb-client', '--conf', '/srv/jenkins/kgb/debian-reproducible.conf', '--relay-msg'] kgb.extend(message.split()) -- cgit v1.2.3-70-g09d2