[Buildbot-commits] [Buildbot] #2129: Support unix domain sockets for build slaves.
Buildbot
nobody at buildbot.net
Wed Oct 12 23:17:45 UTC 2011
#2129: Support unix domain sockets for build slaves.
------------------------+-----------------------
Reporter: simpletoon | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: undecided
Version: 0.8.5 | Keywords:
------------------------+-----------------------
I'm using build-bot for a simple single-machine continuous build system.
I don't really care to have TCP sockets open if not really needed. I have
noticed that both status and slave ports can work with unix domain
sockets:
c [ 'slavePortnum' ] = "unix:/home/user/build/master/slaveconnect"
c [ 'status'
].append(html.WebStatus(http_port="unix:/home/user/build/master/status"))
This way it doesn't open any TCP ports on the host system. When I desire
to view the status I can start as simple socat connection to redirect to
the socket and use any web browser.
socat -v tcp-l:<portnum>,fork,reuseaddr,bind=127.0.0.1
unix:/home/user/build/master/status
I would like to find a way to configure the build slave
(/home/user/build/slave) to connect to the master by using unix domain
sockets instead of requiring a TCP connection. The
buildbot.slave.bot.BuildSlave code uses internet.TCPClient so it can't do
this. It seems like a simple check could be done on hostname (if it
starts with unix:) and then use internet.UnixClient instead.
--
Ticket URL: <http://trac.buildbot.net/ticket/2129>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list