[Buildbot] #2227: Make contrib/post_build_request.py usable via import

Buildbot trac trac at buildbot.net
Sat Jun 14 15:49:19 UTC 2014


#2227: Make contrib/post_build_request.py usable via import
------------------------+--------------------
Reporter:  tom.prince   |       Owner:
    Type:  enhancement  |      Status:  new
Priority:  minor        |   Milestone:  0.8.+
 Version:  0.8.5        |  Resolution:
Keywords:               |
------------------------+--------------------
Changes (by Jc2k):

 * milestone:  0.8.9 => 0.8.+


Old description:

> `contrib/bzr_buildbot.py` and `buildbot/changes/hgbuildbot.py` both talk
> to the master via twisted PB. However, they are designed to be imported
> by other potentially long running code. If they are called twice from the
> same process, they will fail, since twisted's reactor is not restartable.
>
> `contrib/post_build_request.py` is designed to be used without twisted,
> so if it had a library entry point, the about two programs could be
> implemented in terms of it.

New description:

 `contrib/bzr_buildbot.py` and `buildbot/changes/hgbuildbot.py` both talk
 to the master via twisted PB. However, they are designed to be imported by
 other potentially long running code. If they are called twice from the
 same process, they will fail, since twisted's reactor is not restartable.

 `contrib/post_build_request.py` is designed to be used without twisted, so
 if it had a library entry point, the about two programs could be
 implemented in terms of it.

--

--
Ticket URL: <http://trac.buildbot.net/ticket/2227#comment:3>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list