[SCM] build.samba.org - branch master updated

Matthieu Patou mat at samba.org
Mon Nov 8 15:36:56 MST 2010


The branch, master has been updated
       via  7483d6c Do explicit cast to string of Host attributes
      from  9e6974d Make build_status_from_logs take files rather than huge strings.

http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 7483d6c76101cfa93232b4f57ec70daeccef145d
Author: Matthieu Patou <mat at matws.net>
Date:   Tue Nov 9 01:37:10 2010 +0300

    Do explicit cast to string of Host attributes

-----------------------------------------------------------------------

Summary of changes:
 web/build.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/web/build.py b/web/build.py
index 48239aa..4a49798 100755
--- a/web/build.py
+++ b/web/build.py
@@ -166,7 +166,7 @@ def view_summary(myself, output_type):
         for compiler in compilers:
             for tree in trees:
                 try:
-                    build = db.get_build(tree, host.name, compiler)
+                    build = db.get_build(tree, str(host.name), compiler)
                     status = build_status_html(myself, build)
                 except data.NoSuchBuildError:
                     continue
@@ -291,7 +291,7 @@ def view_recent_builds(myself, tree, sort_by):
     for host in hosts.values():
         for compiler in compilers:
             try:
-                build = db.get_build(tree, host.name, compiler)
+                build = db.get_build(tree, str(host.name), compiler)
                 status = build_status_html(myself, build)
             except data.NoSuchBuildError:
                 pass
@@ -302,7 +302,7 @@ def view_recent_builds(myself, tree, sort_by):
                 if commit_revision:
                     revision = commit_revision
                 if revision:
-                    all_builds.append([age_ctime, str(host.platform), "<a href='%s?function=View+Host;host=%s;tree=%s;compiler=%s#%s'>%s</a>" % (myself, host.name, tree, compiler, host.name, host.name), compiler, tree, status, revision_link(myself, revision, tree), revision_time])
+                    all_builds.append([age_ctime, str(host.platform), "<a href='%s?function=View+Host;host=%s;tree=%s;compiler=%s#%s'>%s</a>" % (myself, str(host.name), tree, compiler, str(host.name), str(host.name)), compiler, tree, status, revision_link(myself, revision, tree), revision_time])
 
     all_builds.sort(cmp_funcs[sort_by])
 
@@ -543,7 +543,7 @@ def view_host(myself, output_type, *requested_hosts):
                         else:
                             yield "<div class='host summary'>"
                             yield "<a id='host' name='host'/>"
-                            yield "<h3>%s - %s</h3>" % (host, hosts[host].platform)
+                            yield "<h3>%s - %s</h3>" % (host, str(hosts[host].platform))
                             yield "<table class='real'>"
                             yield "<thead><tr><th>Target</th><th>Build<br/>Revision</th><th>Build<br />Age</th><th>Status<br />config/build<br />install/test</th><th>Warnings</th></tr></thead>"
                             yield "<tbody>"


-- 
build.samba.org


More information about the samba-cvs mailing list