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

Jelmer Vernooij jelmer at samba.org
Sat Aug 2 13:39:40 MDT 2014


The branch, master has been updated
       via  295dc1a Add constant for maximum build age.
      from  e73c92c min_age takes an absolute timestamp.

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


- Log -----------------------------------------------------------------
commit 295dc1ad7e31efcb8313a0ad2fc4ab4683ee40d3
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Sat Aug 2 21:39:37 2014 +0200

    Add constant for maximum build age.

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

Summary of changes:
 buildfarm/web/__init__.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildfarm/web/__init__.py b/buildfarm/web/__init__.py
index b66ffce..7cd1a7e 100755
--- a/buildfarm/web/__init__.py
+++ b/buildfarm/web/__init__.py
@@ -58,6 +58,11 @@ webdir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "we
 GITWEB_BASE = "https://gitweb.samba.org"
 HISTORY_HORIZON = 1000
 
+# Maximum age of builds to consider when displaying summary page statistics.
+# Note that trees only get rebuilt when they change, so this value is
+# intentionally set to a high value to cope with trees that don't change often.
+SUMMARY_MAX_BUILD_AGE = (180 * 24 * 60 * 60)
+
 # this is automatically filled in
 deadhosts = []
 
@@ -727,7 +732,7 @@ class ViewSummaryPage(BuildFarmPage):
         # output when we want
         broken_table = ""
 
-        builds = self.buildfarm.get_summary_builds(min_age=time.time() - (7 * 24 * 60 * 60))
+        builds = self.buildfarm.get_summary_builds(min_age=time.time() - SUMMARY_MAX_BUILD_AGE)
 
         for tree, status in builds:
             host_count[tree]+=1


-- 
build.samba.org


More information about the samba-cvs mailing list