[Qa-jenkins-scm] [jenkins.debian.net] 05/05: reproducible live_status: point out if there are stale builds in the db

Holger Levsen holger at moszumanska.debian.org
Thu Sep 10 23:28:42 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit f19deee7e887c7c1d272e5bf9a500025a88083f7
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Sep 11 01:27:58 2015 +0200

    reproducible live_status: point out if there are stale builds in the db
---
 bin/reproducible_html_live_status.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/reproducible_html_live_status.py b/bin/reproducible_html_live_status.py
index d8808a0..5ed8d5b 100755
--- a/bin/reproducible_html_live_status.py
+++ b/bin/reproducible_html_live_status.py
@@ -55,7 +55,12 @@ def generate_live_status_table(arch):
     html += '<th>scheduled on</th><th>build started</th><th>status</th>'
     html += '<th>version building</th><th>previous build duration</th><th>builder job</th><th>notify</th>'
     html += '</tr>\n'
+    counter = 0
     for row in rows:
+        counter += 1
+        # the numbers 16 and 7 should really be derived from /var/lib/jenkins/jobs/reproducible_builder_${arch}_* instead of being hard-coded here...
+        if ( arch == 'amd64' and counter == 16 ) or ( arch = 'armhf' and counter == 7 ):
+             html += '<tr><td colspan="14">There are more builds marked as currently building in the database than there are ' + arch + ' build jobs. This does not compute. Please cleanup and please automate cleanup.</td></tr>'
         pkg = row[1]
         arch = row[4]
         suite = row[3]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list