[users at bb.net] 'try' scheduler with SSH

Алексей Катеров lexus_690 at mail.ru
Thu Dec 3 16:41:15 UTC 2015


 Have anyone used some try schedulers before? If so, could you please share some working code?
I gave up using ssh connection and tried to implement try scheduler from tutorial:

from buildbot.scheduler import Try_Userpass
c['schedulers'].append(Try_Userpass(
                                    name='try',
                                    builderNames=<builders>,
                                    port=5555,
                                    userpass=[('sampleuser','samplepass')]))
and command  
buildbot try --connect=pb --master=127.0.0.1:5555 --username=sampleuser --passwd=samplepass --vc=git
gives me 

File "/localdisk/bb/python/lib/python2.7/site-packages/buildbot/clients/tryclient.py", line 647, in _deliverJob_pb
self.config.get('properties', {}))
File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/spread/pb.py", line 343, in callRemote
_name, args, kw)
File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/spread/pb.py", line 871, in _sendMessage
self.sendCall(prefix+"message", requestID, objectID, message, answerRequired, netArgs, netKw)
File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/spread/pb.py", line 584, in sendCall
self.sendEncoded(exp)
File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/spread/banana.py", line 314, in sendEncoded
self._encode(obj, io.write)
File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/spread/banana.py", line 326, in _encode
self._encode(elem, write)
File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/spread/banana.py", line 326, in _encode
self._encode(elem, write)
File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/spread/banana.py", line 326, in _encode
self._encode(elem, write)
File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/spread/banana.py", line 355, in _encode
"string is too long to send (%d)" % (len(obj),))
twisted.spread.banana.BananaError: string is too long to send (17640849)

>Вторник,  1 декабря 2015, 19:16 +03:00 от Алексей Катеров <lexus_690 at mail.ru>:
>
>Hello,
>
>I am trying to configure try scheduler which uses SSH connection, here is code in master.cfg:
>
>c['schedulers'].append(Try_Jobdir(name="try1",
>builderNames=builders,
>jobdir="jobdir"))
>
>and when I call following command on the master machine:
>buildbot try --connect=ssh --username=<user_name> --jobdir=<path_to_jobdir> --vc=git --builder=''linux_builder'
>
>I get exception:
>Unhandled Error
>Traceback (most recent call last):
>File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/internet/_baseprocess.py", line 64, in maybeCallProcessEnded
>proto.processEnded(Failure(reason))
>File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/internet/utils.py", line 163, in processEnded
>self.deferred.callback((out, err, code))
>File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/internet/defer.py", line 393, in callback
>self._startRunCallbacks(result)
>File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
>self._runCallbacks()
>--- <exception caught here> ---
>File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/internet/defer.py", line 588, in _runCallbacks
>current.result = callback(current.result, *args, **kw)
>File "/localdisk/bb/python/lib/python2.7/site-packages/buildbot/clients/tryclient.py", line 855, in <lambda>
>d.addCallback(lambda res: deliver())
>File "/localdisk/bb/python/lib/python2.7/site-packages/buildbot/clients/tryclient.py", line 617, in deliverJob
>reactor.spawnProcess(pp, argv[0], argv, os.environ)
>File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 333, in spawnProcess
>args, env = self._checkProcessArgs(args, env)
>File "/localdisk/bb/python/lib/python2.7/site-packages/twisted/internet/base.py", line 912, in _checkProcessArgs
>raise TypeError("Arguments contain a non-string value")
>exceptions.TypeError: Arguments contain a non-string value
> So if anyone used 'try' with SSH, could you please  help me to find where the problem is?
>
>Thanks,


Aleksey Katerov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20151203/15d6c51d/attachment.html>


More information about the users mailing list