[Buildbot-commits] [Buildbot] #2326: Web status raises exception when using Properties in step description

Buildbot nobody at buildbot.net
Thu Jul 12 07:34:25 UTC 2012


#2326: Web status raises exception when using Properties in step description
---------------------+-------------------
Reporter:  mthalmei  |      Owner:
    Type:  defect    |     Status:  new
Priority:  major     |  Milestone:  0.8.7
 Version:  master    |   Keywords:  web
---------------------+-------------------
 We have a buildstep where one of the description elements is a property.
 This used to work with 0.8.6p1. With the latest master version this gives
 an exception when viewing the Step in the web status (waterfall display
 works).

 Out code is like the following:

 {{{
 ShellCommand(
     description = [ 'Build xxx', Interpolate('%(prop:config)s') ],
     ...

 or
     description = [ 'Build xxx', Property('config', default='debug') ],
     ...
 }}}

 The following exception is raised:
 {{{
         Traceback (most recent call last):
           File "/home/buildbot/thebot/sandbox/lib/python2.6/site-
 packages/twisted/web/http.py", line 773, in requestReceived
             self.process()
           File "/home/buildbot/thebot/sandbox/lib/python2.6/site-
 packages/twisted/web/server.py", line 156, in process
             self.render(resrc)
           File "/home/buildbot/thebot/sandbox/lib/python2.6/site-
 packages/twisted/web/server.py", line 191, in render
             body = resrc.render(self)
           File "/home/buildbot/thebot/sandbox/lib/python2.6/site-
 packages/buildbot-0.8.7_pre2_578_g28fa571-py2.6.egg/buildbot/status/web/base.py",
 line 326, in render
             d = defer.maybeDeferred(lambda : self.content(request, ctx))
         --- <exception caught here> ---
           File "/home/buildbot/thebot/sandbox/lib/python2.6/site-
 packages/twisted/internet/defer.py", line 134, in maybeDeferred
             result = f(*args, **kw)
           File "/home/buildbot/thebot/sandbox/lib/python2.6/site-
 packages/buildbot-0.8.7_pre2_578_g28fa571-py2.6.egg/buildbot/status/web/base.py",
 line 326, in <lambda>
             d = defer.maybeDeferred(lambda : self.content(request, ctx))
           File "/home/buildbot/thebot/sandbox/lib/python2.6/site-
 packages/buildbot-0.8.7_pre2_578_g28fa571-py2.6.egg/buildbot/status/web/build.py",
 line 203, in content
             step['text'] = " ".join(s.getText())
         exceptions.TypeError: sequence item 1: expected string, instance
 found
 }}}

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


More information about the Commits mailing list