[Buildbot-devel] Shell command that cannot describe itself
Amber Yust
ayust at yelp.com
Fri Dec 3 17:44:33 UTC 2010
What version of Twisted are you using?
~Amber
On Fri, Dec 3, 2010 at 8:29 AM, Almad <bugs at almad.net> wrote:
> Hi,
> in my factory, I have a boring ShellCommand created like that:
>
> ShellCommand(command=['sudo', 'aptitude', 'update'], **{})
>
> However, for some reason and unlike another steps in same factory,
> RemoteShellCommand is not created properly.
> Any hints on that? Using 0.8.0.
>
> Thanks,
>
> Almad
>
> 2010-12-03 16:52:44+0100 [-] Unhandled Error
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
> line 195, in addCallback
> callbackKeywords=kw)
> File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
> line 186, in addCallbacks
> self._runCallbacks()
> File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
> line 328, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib/python2.5/site-
> packages/buildbot/process/buildstep.py", line 742, in _startStep_2
> self.step_status.setText(self.describe(False))
> --- <exception caught here> ---
> File "/usr/lib/python2.5/site-packages/buildbot/steps/shell.py",
> line 144, in describe
> if len(words) < 1:
> exceptions.TypeError: object of type 'NoneType' has no len()
> 2010-12-03 16:52:44+0100 [-] buildbot-mongodb-status: Step
> 4cf9124cdc30b36873000005 for build 4cf9123ddc30b36873000000 started
> 2010-12-03 16:52:44+0100 [-]
> ShellCommand.startCommand(cmd=<RemoteShellCommand
> 'None'>)
> 2010-12-03 16:52:44+0100 [-] cmd.args = {'workdir': 'build', 'env': None,
> 'want_stderr': 1, 'logfiles': {}, 'logEnviron': True, 'timeout': 1200,
> 'want_stdout':
> 1, 'usePTY': 'slave-config', 'maxTime': None}
> 2010-12-03 16:52:44+0100 [-] Error describing step
> 2010-12-03 16:52:44+0100 [-] Unhandled Error
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
> line 328, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib/python2.5/site-
> packages/buildbot/process/buildstep.py", line 753, in _startStep_2
> skip = self.start()
> File "/usr/lib/python2.5/site-packages/buildbot/steps/shell.py",
> line 224, in start
> self.startCommand(cmd, warnings)
> File "/usr/lib/python2.5/site-
> packages/buildbot/process/buildstep.py", line 1017, in startCommand
> self.step_status.setText(self.describe(False))
> --- <exception caught here> ---
> File "/usr/lib/python2.5/site-packages/buildbot/steps/shell.py",
> line 144, in describe
> if len(words) < 1:
> exceptions.TypeError: object of type 'NoneType' has no len()
> 2010-12-03 16:52:44+0100 [-] <RemoteShellCommand 'None'>: RemoteCommand.run
> [4]
> 2010-12-03 16:52:44+0100 [-] command 'None' in dir 'build'
> 2010-12-03 16:52:44+0100 [-] LoggedRemoteCommand.start
> 2010-12-03 16:52:44+0100 [-] BuildStep.failed, traceback follows
> 2010-12-03 16:52:44+0100 [-] Unhandled Error
> Traceback (most recent call last):
> Failure: buildbot.slave.commands.base.AbandonChain
> 2010-12-03 16:52:44+0100 [-] addHTMLLog(err.html)
> 2010-12-03 16:52:44+0100 [-] exception during failure processing
> 2010-12-03 16:52:44+0100 [-] Unhandled Error
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
> line 328, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
> line 243, in callback
> self._startRunCallbacks(result)
> File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
> line 312, in _startRunCallbacks
> self._runCallbacks()
> File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
> line 328, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> --- <exception caught here> ---
> File "/usr/lib/python2.5/site-
> packages/buildbot/process/buildstep.py", line 854, in failed
> self.addHTMLLog("err.html", formatFailure(why))
> File "/usr/lib/python2.5/site-
> packages/buildbot/process/buildstep.py", line 933, in addHTMLLog
> self.step_status.addHTMLLog(name, html)
> File
> "/usr/lib/python2.5/site-packages/buildbot/status/builder.py",
> line 993, in addHTMLLog
> w.logFinished(self.build, self, log)
> File "/var/lib/python-support/python2.5/bbmongostatus/status.py",
> line 295, in logFinished
> step.db_step['stdout'] =
> ''.join(log.readlines(LOG_CHANNEL_STDOUT))
> exceptions.AttributeError: HTMLLogFile instance has no attribute
> 'readlines'
>
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20101203/af6cd8dc/attachment.html>
More information about the devel
mailing list