[SCM] build.samba.org - branch master updated
Jelmer Vernooij
jelmer at samba.org
Mon Nov 15 06:32:59 MST 2010
The branch, master has been updated
via 0baa292 Use rlimit.
via b384226 Add build cgi script.
from 4c30514 Implement sql-specific get_old_revs.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 0baa292e4a249522f569ea5dcb6f3468896717a9
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Mon Nov 15 14:20:15 2010 +0100
Use rlimit.
commit b3842262e68aea66a1929ebb4c7aab56118e7883
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Mon Nov 15 13:25:37 2010 +0100
Add build cgi script.
-----------------------------------------------------------------------
Summary of changes:
web/build.py => buildfarm/web/__init__.py | 6 -----
web/build.cgi | 35 +++++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 6 deletions(-)
rename web/build.py => buildfarm/web/__init__.py (99%)
create mode 100644 web/build.cgi
Changeset truncated at 500 lines:
diff --git a/web/build.py b/buildfarm/web/__init__.py
similarity index 99%
rename from web/build.py
rename to buildfarm/web/__init__.py
index d4edffe..df5e608 100755
--- a/web/build.py
+++ b/buildfarm/web/__init__.py
@@ -30,8 +30,6 @@
# e.g. only broken builds or only builds that you care about.
import os
-import sys
-sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
from buildfarm import (
data,
@@ -1067,7 +1065,3 @@ if __name__ == '__main__':
httpd = make_server(address, int(port), standaloneApp)
print "Serving on %s:%d..." % (address, int(port))
httpd.serve_forever()
- else:
- import wsgiref.handlers
- handler = wsgiref.handlers.CGIHandler()
- handler.run(buildApp)
diff --git a/web/build.cgi b/web/build.cgi
new file mode 100644
index 0000000..246fca2
--- /dev/null
+++ b/web/build.cgi
@@ -0,0 +1,35 @@
+#!/usr/bin/python
+# This CGI script presents the results of the build_farm build
+
+# Copyright (C) Jelmer Vernooij <jelmer at samba.org> 2010
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+import os
+import sys
+sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
+
+from buildfarm.filecache import CachingBuildFarm
+from buildfarm.web import BuildFarmApp
+import wsgiref.handlers
+import resource
+
+resource.setrlimit(resource.RLIMIT_RSS, (300000, -1))
+resource.setrlimit(resource.RLIMIT_DATA, (300000, -1))
+
+buildfarm = CachingBuildFarm()
+buildApp = BuildFarmApp(buildfarm)
+handler = wsgiref.handlers.CGIHandler()
+handler.run(buildApp)
--
build.samba.org
More information about the samba-cvs
mailing list