[Buildbot-devel] ShellCommand Description Errors

Rishi Verma rishi_verma at apple.com
Mon Nov 29 23:47:55 UTC 2010


I attempted to pass description and descriptionDone as strings, however the errors persist.

-Rishi
On Nov 29, 2010, at 2:59 PM, Amber Yust wrote:

> I don't think description/descriptionDone are supposed to be lists? I think they're supposed to be strings.
> 
> ~Amber
> 
> On Mon, Nov 29, 2010 at 2:34 PM, Rishi Verma <rishi_verma at apple.com> wrote:
> Hi All,
> 
> I am having issues with my shell commands throwing errors when attempt to describe the commands at the end of running them.  I setup descrpitionDone, however the issue persists.  Looking at my waterfall, I see the new descriptionDone as I should.
> 
> Calling Source:
> class InstallBuildFromArchivePath(ShellCommand):
>        def start(self):
>                self.description = ["installing results"]
>                self.descriptionDone = ["results installed"]
>                archivepath = self.getProperty("archivepath")
>                self.setCommand(["./scripts/untar.pl", "%s/latest.path" % archivepath])
>                ShellCommand.start(self)
> 
> Error:
> 2010-11-29 13:16:22-0800 [-] ShellCommand.startCommand(cmd=<RemoteShellCommand '['./scripts/untar.pl', './archive/S**-trunk-B***/latest.path']'>)
> 2010-11-29 13:16:22-0800 [-]   cmd.args = {'workdir': 'build', 'timeout': 1200, 'env': None, 'want_stdout': 1, 'usePTY': 'slave-config', 'maxTime': None, 'logEnviron': True, 'want_stderr': 1, 'logfiles': {}}
> 2010-11-29 13:16:22-0800 [-] <RemoteShellCommand '['./scripts/untar.pl', './archive/S**-trunk-B***/latest.path']'>: RemoteCommand.run [13]
> 2010-11-29 13:16:22-0800 [-] command '['./scripts/untar.pl', './archive/S***-trunk-B***/latest.path']' in dir 'build'
> 2010-11-29 13:16:22-0800 [-] LoggedRemoteCommand.start
> 2010-11-29 13:16:28-0800 [Broker,10,17.226.22.161] <RemoteShellCommand '['./scripts/untar.pl', './archive/S***-trunk-B**/latest.path']'> rc=0
> 2010-11-29 13:16:28-0800 [-] closing log <buildbot.status.builder.LogFile instance at 0x103a9f8c0>
> 2010-11-29 13:16:28-0800 [-] releaseLocks(<myBuilders2_0.InstallBuildFromArchivePath instance at 0x103a9c4d0>): []
> 2010-11-29 13:16:28-0800 [-]  step 'shell_2' complete: success
> 2010-11-29 13:16:28-0800 [-] Error describing step
> 2010-11-29 13:16:28-0800 [-] Unhandled Error
>        Traceback (most recent call last):
>          File "/Library/Python/2.6/site-packages/buildbot-0.8.2-py2.6.egg/buildbot/process/base.py", line 374, in _stepDone
>            return self.startNextStep()
>          File "/Library/Python/2.6/site-packages/buildbot-0.8.2-py2.6.egg/buildbot/process/base.py", line 363, in startNextStep
>            d = defer.maybeDeferred(s.startStep, self.remote)
>          File "/Library/Python/2.6/site-packages/Twisted-8.2.0-py2.6-macosx-10.6-universal.egg/twisted/internet/defer.py", line 106, in maybeDeferred
>            result = f(*args, **kw)
>          File "/Library/Python/2.6/site-packages/buildbot-0.8.2-py2.6.egg/buildbot/process/buildstep.py", line 724, in startStep
>            self.step_status.setText(self.describe(False))
>        --- <exception caught here> ---
>          File "/Library/Python/2.6/site-packages/buildbot-0.8.2-py2.6.egg/buildbot/steps/shell.py", line 145, in describe
>            if len(words) < 1:
>        exceptions.TypeError: object of type 'NoneType' has no len()
> 
> Any ideas? These errors do not seem to cause an issues with my build slaves, however they are a nuisance.
> 
> Cheers,
> Rishi
> ------------------------------------------------------------------------------
> 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/20101129/2d29cb74/attachment.html>


More information about the devel mailing list