jhbuild r2244 - in trunk: . buildbot/public_html jhbuild/buildbot/status/web
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: jhbuild r2244 - in trunk: . buildbot/public_html jhbuild/buildbot/status/web
- Date: Fri, 15 Aug 2008 10:54:01 +0000 (UTC)
Author: fpeters
Date: Fri Aug 15 10:54:01 2008
New Revision: 2244
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2244&view=rev
Log:
* jhbuild/buildbot/status/web/__init__.py,
buildbot/public_html/lgo.css: changed layout to have only one column
per buildslave, with icons and tooltips to give details; and a totals
row at the bottom.
Added:
trunk/buildbot/public_html/building.png (contents, props changed)
trunk/buildbot/public_html/idle.png (contents, props changed)
trunk/buildbot/public_html/offline.png (contents, props changed)
Modified:
trunk/ChangeLog
trunk/buildbot/public_html/lgo.css
trunk/jhbuild/buildbot/status/web/__init__.py
Added: trunk/buildbot/public_html/building.png
==============================================================================
Binary file. No diff available.
Added: trunk/buildbot/public_html/idle.png
==============================================================================
Binary file. No diff available.
Modified: trunk/buildbot/public_html/lgo.css
==============================================================================
--- trunk/buildbot/public_html/lgo.css (original)
+++ trunk/buildbot/public_html/lgo.css Fri Aug 15 10:54:01 2008
@@ -213,6 +213,18 @@
padding-right: 2px;
}
+th.offline {
+ background: white url(offline.png) center right no-repeat;
+}
+
+th.idle {
+ background: white url(idle.png) center right no-repeat;
+}
+
+th.building {
+ background: white url(building.png) center right no-repeat;
+}
+
td.success {
background: #8f8;
}
@@ -245,3 +257,8 @@
border-left: 1px solid;
}
+tr.totals td {
+ padding-top: 1ex;
+ text-align: center;
+ font-weight: bold;
+}
Added: trunk/buildbot/public_html/offline.png
==============================================================================
Binary file. No diff available.
Modified: trunk/jhbuild/buildbot/status/web/__init__.py
==============================================================================
--- trunk/jhbuild/buildbot/status/web/__init__.py (original)
+++ trunk/jhbuild/buildbot/status/web/__init__.py Fri Aug 15 10:54:01 2008
@@ -51,20 +51,36 @@
result += '<table class="ProjectSummary">\n'
# Headers
+ slave_status = {}
+ for slave in parent.slaves:
+ for module in parent.modules:
+ builder = status.getBuilder("%s-%s" % (module, slave))
+ state, builds = builder.getState()
+ if state in ('offline', 'building'):
+ slave_status[slave] = (state, module)
+ break
+ else:
+ slave_status[slave] = ('idle', None)
+
result += '<thead><tr><td> </td><td> </td><th>' + parent.moduleset + '</td>'
for name in parent.slaves:
if len(name) > 25:
- name = name[:25] + "(...)"
- result += '<th colspan="2">' + name + '</th>\n'
- result += '</tr>\n'
- result += '<tr><th></th><th></th><th>Project</td>\n'
- for i in range(len(parent.slaves)):
- result += '<td>Last-Build</td>\n'
- result += '<td>State</td>\n'
+ name = name[:25] + '(...)'
+ klass, module = slave_status.get(name)
+ if klass == 'building':
+ title = 'Building %s' % module
+ else:
+ title = klass
+ result += '<th class="%s" title="%s">%s</th>' % (klass, title, name)
result += '</tr></thead>\n'
# Contents
result += '<tbody>'
+
+ slave_results = {}
+ for slave in parent.slaves:
+ slave_results[slave] = [0, 0]
+
for module in parent.modules:
result += '<tr>'
result += '<td class="feed"><a href="%s/atom">' % module
@@ -84,11 +100,23 @@
class_ = build_get_class(builder.getLastFinishedBuild())
else:
class_ = ''
- result += '<td class="%s">%s</td>' % (class_, lastbuild)
state, builds = builder.getState()
- result += '<td class="%s">%s</td>' % (state, state)
+ if state == 'building':
+ result += '<td class="%s">%s</td>' % (state, state)
+ else:
+ result += '<td class="%s">%s</td>' % (class_, lastbuild)
+
+ if lastbuild in ('failed', 'successful'):
+ slave_results[slave][1] += 1
+ if lastbuild == 'successful':
+ slave_results[slave][0] += 1
+
result += '</tr>\n'
- result += '</tbody>'
+ result += '</tbody>\n'
+ result += '<tfoot><tr class="totals"><td colspan="3"></td>'
+ for slave in parent.slaves:
+ result += '<td>%s / %s</td>' % tuple(slave_results[slave])
+ result += '</tr></tfoot>\n'
result += '</table>'
return result
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]