[Buildbot-commits] [Buildbot] #2405: buildmaster 0.8.7p1 does not start from a buildout

Buildbot nobody at buildbot.net
Fri Nov 30 21:46:26 UTC 2012


#2405: buildmaster 0.8.7p1 does not start from a buildout
--------------------+-----------------------
Reporter:  flox     |      Owner:
    Type:  defect   |     Status:  new
Priority:  major    |  Milestone:  undecided
 Version:  0.8.7p1  |   Keywords:
--------------------+-----------------------
 The change of the start script between 0.8.7 and 0.8.7p1 is not compatible
 with zc.buildout.

 The buildout modifies the `sys.path` to include the configured eggs before
 running the application.
 However Buildbot 0.8.7p1 will use sys.executable to spawn another process.
 In the spawn process, the `sys.path` is the default and does not include
 the paths to the eggs needed.

 This patch fixes the issue:
 {{{
 #!diff
 --- a/buildbot/scripts/start.py        2012-11-30 21:26:42.000000000 +0100
 +++ b/buildbot/scripts/start.py    2012-11-30 22:29:55.000000000 +0100
 @@ -88,7 +88,8 @@
              # this is copied from bin/twistd. twisted-2.0.0 through 2.4.0
 use
              # _twistw.run . Twisted-2.5.0 and later use twistd.run, even
 for
              # windows.
 -            "from twisted.scripts import twistd; twistd.run()",
 +            "import sys; sys.path[:] = %r; "
 +            "from twisted.scripts import twistd; twistd.run()" %
 (sys.path,),
              "--no_save",
              "--logfile=twistd.log", # windows doesn't use the same
 default
              "--python=buildbot.tac"]
 }}}

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2405>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list