[Buildbot] #2437: New Master-Slave Protocol
Buildbot trac
trac at buildbot.net
Tue Dec 2 23:07:54 UTC 2014
#2437: New Master-Slave Protocol
------------------------+-----------------------
Reporter: dustin | Owner:
Type: enhancement | Status: assigned
Priority: major | Milestone: 0.9.+
Version: 0.8.7p1 | Resolution:
Keywords: |
------------------------+-----------------------
Changes (by dustin):
* owner: tomprince =>
Old description:
> Buildbot currently uses Twisted Python's ''perspective broker'' to
> communicate with slaves. This is a remote procedure call library that
> operates on TCP connections, and has a few disadvantages:
> * It is Python-only, so slaves must be implemented in Python
> * It keeps the TCP connection open for many hours, and does not handle
> connection failure well
> * The RPC model is complex and does not map well to the operations
> Buildbot performs
> * The RPC implementation is inefficient and imposes some arbitrary
> limits on Buildbot's flexibility.
>
> == Scope ==
> Here be dragons! Several people have attempted this before:
> * http://src.chromium.org/viewvc/chrome/trunk/tools/slavelastic/
> (maruel)
> * http://github.com/djmitche/remsh (djmitche)
> either of these may be a great starting point for this project, but at
> any rate this is a challenging project that will require a lot of
> thoughtful design work. The current plan is to use [http://amp-
> protocol.net amp] over
> [http://twistedmatrix.com/documents/current/conch/index.html ssh] as the
> default slave protocol.
>
> It's probably worth looking at off-the-shelf Message Queuing projects
> like [http://www.zeromq.org/intro:read-the-manual zeromq],
> [http://www.rabbitmq.com/tutorials/tutorial-six-python.html RabbitMQ] or
> [http://ask.github.com/celery/getting-started/introduction.html Celery].
>
> The best approach is to find a way to get some working code put together
> quickly, while still allowing Buildbot to do everything its users expect.
> For example, if you can write your new protocol such that Buildbot can
> use perspective broker ''or'' your protocol, but you only get as far as a
> simple slave that can run {{{echo hello world}}}, that's great! We can
> ship that code, and someone else can pick up where you've left off to add
> more capabilities to your protocol -- assuming your design does not make
> that impossible.
>
> It would be great to select a communication protocol that is not Python-
> specific, so that a non-Python slave could be used to run Buildbot on
> more limited hardware (e.g., mobile devices).
New description:
Buildbot currently uses Twisted Python's ''perspective broker'' to
communicate with slaves. This is a remote procedure call library that
operates on TCP connections, and has a few disadvantages:
* It is Python-only, so slaves must be implemented in Python
* It keeps the TCP connection open for many hours, and does not handle
connection failure well
* The RPC model is complex and does not map well to the operations
Buildbot performs
* The RPC implementation is inefficient and imposes some arbitrary limits
on Buildbot's flexibility.
== Scope ==
Here be dragons! Several people have attempted this before:
* http://src.chromium.org/viewvc/chrome/trunk/tools/slavelastic/ (maruel)
* http://github.com/djmitche/remsh (djmitche)
either of these may be a great starting point for this project, but at any
rate this is a challenging project that will require a lot of thoughtful
design work. The current plan is to use [http://amp-protocol.net amp] over
[http://twistedmatrix.com/documents/current/conch/index.html ssh] as the
default slave protocol.
It's probably worth looking at off-the-shelf Message Queuing projects like
[http://www.zeromq.org/intro:read-the-manual zeromq],
[http://www.rabbitmq.com/tutorials/tutorial-six-python.html RabbitMQ] or
[http://ask.github.com/celery/getting-started/introduction.html Celery].
The best approach is to find a way to get some working code put together
quickly, while still allowing Buildbot to do everything its users expect.
For example, if you can write your new protocol such that Buildbot can use
perspective broker ''or'' your protocol, but you only get as far as a
simple slave that can run {{{echo hello world}}}, that's great! We can
ship that code, and someone else can pick up where you've left off to add
more capabilities to your protocol -- assuming your design does not make
that impossible.
It would be great to select a communication protocol that is not Python-
specific, so that a non-Python slave could be used to run Buildbot on more
limited hardware (e.g., mobile devices).
= Remaining Work =
* Stop leaking PB references out of the protocol - in particular,
startCommand takes a !RemoteCommand argument on which it calls `remote_*`
methods.
--
Comment:
Tom isn't actively working on this. There are a few issues (which should
probably break out into bugs) remaining here. I've updated the
description accordingly.
--
Ticket URL: <http://trac.buildbot.net/ticket/2437#comment:6>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the bugs
mailing list