[llvm-commits] [zorg] r120835 - in /zorg/trunk/buildbot/smooshlab/slave-0.8: ./ Makefile buildbot.tac info/ info/admin info/host
Daniel Dunbar
daniel at zuster.org
Fri Dec 3 11:51:11 PST 2010
Author: ddunbar
Date: Fri Dec 3 13:51:11 2010
New Revision: 120835
URL: http://llvm.org/viewvc/llvm-project?rev=120835&view=rev
Log:
[buildbot] Add a test config for use with buildbot-slave==0.8.2
Added:
zorg/trunk/buildbot/smooshlab/slave-0.8/
zorg/trunk/buildbot/smooshlab/slave-0.8/Makefile
zorg/trunk/buildbot/smooshlab/slave-0.8/buildbot.tac
zorg/trunk/buildbot/smooshlab/slave-0.8/info/
zorg/trunk/buildbot/smooshlab/slave-0.8/info/admin
zorg/trunk/buildbot/smooshlab/slave-0.8/info/host
Added: zorg/trunk/buildbot/smooshlab/slave-0.8/Makefile
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/buildbot/smooshlab/slave-0.8/Makefile?rev=120835&view=auto
==============================================================================
--- zorg/trunk/buildbot/smooshlab/slave-0.8/Makefile (added)
+++ zorg/trunk/buildbot/smooshlab/slave-0.8/Makefile Fri Dec 3 13:51:11 2010
@@ -0,0 +1,32 @@
+# -*- makefile -*-
+
+# This is a simple makefile which lives in a buildmaster/buildslave
+# directory (next to the buildbot.tac file). It allows you to start/stop the
+# master or slave in a launchd-friendly way by doing 'make start' or 'make stop'
+# and includes some other targets for convenience.
+
+start:
+ launchctl start org.llvm.smooshlab.slave
+
+start-standalone:
+ /usr/bin/twistd \
+ --nodaemon \
+ --python=buildbot.tac \
+ --logfile=twistd.log \
+ --prefix=smooshlab
+
+# This stops the buildbot cleanly so launchd will not restart it, use
+# 'make start' to restart it correctly via launchctl
+stop:
+ buildbot stop .
+
+restart: stop start
+
+# Reloads the master.cfg and associated files.
+sighup:
+ buildbot sighup .
+
+reconfig: sighup
+
+checkconfig:
+ buildbot checkconfig
Added: zorg/trunk/buildbot/smooshlab/slave-0.8/buildbot.tac
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/buildbot/smooshlab/slave-0.8/buildbot.tac?rev=120835&view=auto
==============================================================================
--- zorg/trunk/buildbot/smooshlab/slave-0.8/buildbot.tac (added)
+++ zorg/trunk/buildbot/smooshlab/slave-0.8/buildbot.tac Fri Dec 3 13:51:11 2010
@@ -0,0 +1,50 @@
+# -*- Python -*-
+
+from twisted.application import service
+from buildslave.bot import BuildSlave
+import os, sys
+
+basedir = os.path.dirname(os.path.abspath(__file__))
+
+# Allow finding smooshlab module.
+sys.path.append(os.path.join(basedir,
+ "../.."))
+
+# Import smooshlab to get configuration info.
+import smooshlab
+
+rotateLength = 10000000
+maxRotatedFiles = 10
+
+# if this is a relocatable tac file, get the directory containing the TAC
+if basedir == '.':
+ import os.path
+ basedir = os.path.abspath(os.path.dirname(__file__))
+
+# note: this line is matched against to check that this is a buildslave
+# directory; do not edit it.
+application = service.Application('buildslave')
+
+try:
+ from twisted.python.logfile import LogFile
+ from twisted.python.log import ILogObserver, FileLogObserver
+ logfile = LogFile.fromFullPath(os.path.join(basedir, "twistd.log"), rotateLength=rotateLength,
+ maxRotatedFiles=maxRotatedFiles)
+ application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
+except ImportError:
+ # probably not yet twisted 8.2.0 and beyond, can't set log yet
+ pass
+
+buildmaster_host = smooshlab.Config.getBuildmasterHost()
+port = smooshlab.Config.getBuildmasterPort()
+slavename = smooshlab.Config.getBuildslaveName()
+passwd = smooshlab.Config.getBuildslavePassword()
+keepalive = 600
+usepty = 0
+umask = None
+maxdelay = 300
+
+s = BuildSlave(buildmaster_host, port, slavename, passwd, basedir,
+ keepalive, usepty, umask=umask, maxdelay=maxdelay)
+s.setServiceParent(application)
+
Added: zorg/trunk/buildbot/smooshlab/slave-0.8/info/admin
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/buildbot/smooshlab/slave-0.8/info/admin?rev=120835&view=auto
==============================================================================
--- zorg/trunk/buildbot/smooshlab/slave-0.8/info/admin (added)
+++ zorg/trunk/buildbot/smooshlab/slave-0.8/info/admin Fri Dec 3 13:51:11 2010
@@ -0,0 +1 @@
+Zorg Buildslave <llvm-testresults at llvm.org>
Added: zorg/trunk/buildbot/smooshlab/slave-0.8/info/host
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/buildbot/smooshlab/slave-0.8/info/host?rev=120835&view=auto
==============================================================================
--- zorg/trunk/buildbot/smooshlab/slave-0.8/info/host (added)
+++ zorg/trunk/buildbot/smooshlab/slave-0.8/info/host Fri Dec 3 13:51:11 2010
@@ -0,0 +1 @@
+INSERT YOUR HOST INFORMATION HERE
More information about the llvm-commits
mailing list