[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: drop date_scheduled from live_status

Holger Levsen holger at moszumanska.debian.org
Thu Sep 10 23:43:22 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 56bb0a7e59b9302122a64c00a07427b3757d04d1
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Sep 11 01:42:45 2015 +0200

    reproducible: drop date_scheduled from live_status
---
 bin/reproducible_html_live_status.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/reproducible_html_live_status.py b/bin/reproducible_html_live_status.py
index 0ce5a14..18ff970 100755
--- a/bin/reproducible_html_live_status.py
+++ b/bin/reproducible_html_live_status.py
@@ -42,7 +42,7 @@ def generate_schedule(arch):
 
 def generate_live_status_table(arch):
     query = 'SELECT s.id, s.name, s.version, s.suite, s.architecture, ' + \
-            'p.scheduler, p.date_scheduled, p.date_build_started, ' + \
+            'p.scheduler, p.date_build_started, ' + \
             'r.status, r.version, r.build_duration, p.builder, p.notify ' + \
             'FROM sources AS s JOIN schedule AS p ON p.package_id=s.id LEFT JOIN results AS r ON s.id=r.package_id ' + \
             'WHERE (p.date_build_started != "" OR p.notify != "") AND s.architecture="{arch}" ' + \
@@ -52,7 +52,7 @@ def generate_live_status_table(arch):
     html += '<p><table class="scheduled">\n' + tab
     html += '<tr><th>#</th><th>src pkg id</th><th>name</th><th>version</th>'
     html += '<th>suite</th><th>arch</th><th>scheduled by</th>'
-    html += '<th>scheduled on</th><th>build started</th><th>status</th>'
+    html += '<th>build started</th><th>previous build status</th>'
     html += '<th>version building</th><th>previous build duration</th><th>builder job</th><th>notify</th>'
     html += '</tr>\n'
     counter = 0
@@ -60,7 +60,7 @@ def generate_live_status_table(arch):
         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>'
+             html += '<tr><td colspan="13">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]
@@ -70,7 +70,7 @@ def generate_live_status_table(arch):
         html += '</code></td><td>' + str(row[2]) + '</td><td>' + str(row[3]) + '</td>'
         html += '<td>' + str(row[4]) + '</td><td>' + str(row[5]) + '</td><td>' + str(row[6]) + '</td>'
         html += '<td>' + str(row[7]) + '</td><td>' + str(row[8]) + '</td><td>' + str(row[9]) + '</td>'
-        html += '<td>' + str(row[10]) + '</td><td><a href="https://jenkins.debian.net/job/reproducible_builder_' + str(row[11]) + '/console">' + str(row[11]) + '</a></td><td>' + str(row[12]) + '</td>'
+        html += '<td><a href="https://jenkins.debian.net/job/reproducible_builder_' + str(row[10]) + '/console">' + str(row[10]) + '</a></td><td>' + str(row[11]) + '</td>'
         html += '</tr>\n'
     html += '</table></p>\n'
     return html

-- 
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