[SCM] build.samba.org - branch master updated
Stefan Metzmacher
metze at samba.org
Mon Aug 18 23:45:17 MDT 2014
The branch, master has been updated
via 24fb6cf Revert "Reuse DEADAGE rather than defining our own constant."
from 6f0134c Revert style changes on instructions page.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 24fb6cfe7e6a98c48fdb73c9926d85006d70fcc0
Author: Stefan Metzmacher <metze at samba.org>
Date: Tue Aug 19 07:42:13 2014 +0200
Revert "Reuse DEADAGE rather than defining our own constant."
This reverts commit b60f215d1fa2f04bee4c650efbba629a215fda6f.
This generates the following error:
Traceback (most recent call last):
File "/usr/lib/python2.6/wsgiref/handlers.py", line 94, in run
self.finish_response()
File "/usr/lib/python2.6/wsgiref/handlers.py", line 134, in finish_response
for data in self.result:
File "/home/build/master/web/../buildfarm/web/__init__.py", line 1178, in __call__
yield "".join(self.html_page(form, page.render_html(myself)))
File "/home/build/master/web/../buildfarm/web/__init__.py", line 1017, in html_page
yield "".join(lines)
File "/home/build/master/web/../buildfarm/web/__init__.py", line 757, in render_html
(host_count, broken_count, panic_count) = self._get_counts()
File "/home/build/master/web/../buildfarm/web/__init__.py", line 730, in _get_counts
builds = self.buildfarm.get_summary_builds(min_age=time.time() - BuildFarm.DEADAGE)
NameError: global name 'BuildFarm' is not defined
Signed-off-by: Stefan Metzmacher <metze at samba.org>
-----------------------------------------------------------------------
Summary of changes:
TODO | 1 -
buildfarm/web/__init__.py | 7 ++++++-
2 files changed, 6 insertions(+), 2 deletions(-)
delete mode 100644 TODO
Changeset truncated at 500 lines:
diff --git a/TODO b/TODO
deleted file mode 100644
index 1480b02..0000000
--- a/TODO
+++ /dev/null
@@ -1 +0,0 @@
-- age is misnamed
diff --git a/buildfarm/web/__init__.py b/buildfarm/web/__init__.py
index 8794978..7ba04c5 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 = "//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() - BuildFarm.DEADAGE)
+ 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