[Buildbot-devel] ShellCommand Description Errors

Rishi Verma rishi_verma at apple.com
Mon Nov 29 22:34:30 UTC 2010


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



More information about the devel mailing list