summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_live_status.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-11 01:27:58 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-11 01:27:58 +0200
commitf19deee7e887c7c1d272e5bf9a500025a88083f7 (patch)
tree141d0d538f03452ca83e0411738f981459c37afb /bin/reproducible_html_live_status.py
parent9fb5fe1d991b856c440ba2ff4b1596aa3bedf71c (diff)
downloadjenkins.debian.net-f19deee7e887c7c1d272e5bf9a500025a88083f7.tar.xz
reproducible live_status: point out if there are stale builds in the db
Diffstat (limited to 'bin/reproducible_html_live_status.py')
-rwxr-xr-xbin/reproducible_html_live_status.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/reproducible_html_live_status.py b/bin/reproducible_html_live_status.py
index d8808a0b..5ed8d5b1 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]