[devel at bb.net] [users at bb.net] py3 master <==> py2 worker, problem

Pierre Tardy tardyp at gmail.com
Wed Jun 14 11:16:59 UTC 2017


'slave-config' is an old marker which is only valid for eight workers.
https://github.com/buildbot/buildbot/blob/master/master/buildbot/process/remotecommand.py#L404

it is set here:
            if self.step.workerVersionIsOlderThan("shell", "3.0"):
                # Old worker default of usePTY is to use
worker-configuration.
                self.args['usePTY'] = "slave-config"

but it shouldn't as you are using a nine worker. I think maybe
workerVersionIsOlderThan may not work because of nativeString use.


Piere

On Wed, Jun 14, 2017 at 12:23 PM Craig Rodrigues <rodrigc at crodrigues.org>
wrote:

> Hi,
>
> From the buildbot master branch, I experimented with setting up
> a Python 3.6 master and a Python 2.7 worker.  I was able to start the
> master and worker,
> and saw that they connected to each other.
>
> However, when I triggered a build, I got:
>
> T
>
> raceback (most recent call last):
>   File
> "/home/vagrant/buildbot-venv/lib64/python3.6/site-packages/twisted/internet/defer.py",
> line 653, in _runCallbacks
>     current.result = callback(current.result, *args, **kw)
>   File
> "/home/vagrant/buildbot-venv/lib64/python3.6/site-packages/twisted/internet/defer.py",
> line 1442, in gotResult
>     _inlineCallbacks(r, g, deferred)
>   File
> "/home/vagrant/buildbot-venv/lib64/python3.6/site-packages/twisted/internet/defer.py",
> line 1384, in _inlineCallbacks
>     result = result.throwExceptionIntoGenerator(g)
>   File
> "/home/vagrant/buildbot-venv/lib64/python3.6/site-packages/twisted/python/failure.py",
> line 393, in throwExceptionIntoGenerator
>     return g.throw(self.type, self.value, self.tb)
> --- <exception caught here> ---
>   File "/home/vagrant/buildbot/master/buildbot/process/buildstep.py",
> line 574, in startStep
>     self.results = yield self.run()
>   File
> "/home/vagrant/buildbot-venv/lib64/python3.6/site-packages/twisted/internet/defer.py",
> line 1386, in _inlineCallbacks
>     result = g.send(result)
>   File "/home/vagrant/buildbot/master/buildbot/process/buildstep.py",
> line 704, in run
>     results = yield self._start_deferred
>   File "/home/vagrant/buildbot/master/buildbot/steps/source/git.py", line
> 171, in startVC
>     gitInstalled = yield self.checkBranchSupport()
>   File
> "/home/vagrant/buildbot-venv/lib64/python3.6/site-packages/twisted/internet/defer.py",
> line 1384, in _inlineCallbacks
>     result = result.throwExceptionIntoGenerator(g)
>   File
> "/home/vagrant/buildbot-venv/lib64/python3.6/site-packages/twisted/python/failure.py",
> line 393, in throwExceptionIntoGenerator
>     return g.throw(self.type, self.value, self.tb)
>   File "/home/vagrant/buildbot/master/buildbot/steps/source/git.py", line
> 583, in checkBranchSupport
>     stdout = yield self._dovccmd(['--version'], collectStdout=True)
>   File
> "/home/vagrant/buildbot-venv/lib64/python3.6/site-packages/twisted/internet/defer.py",
> line 1384, in _inlineCallbacks
>     result = result.throwExceptionIntoGenerator(g)
>   File
> "/home/vagrant/buildbot-venv/lib64/python3.6/site-packages/twisted/python/failure.py",
> line 393, in throwExceptionIntoGenerator
>     return g.throw(self.type, self.value, self.tb)
>   File "/home/vagrant/buildbot/master/buildbot/steps/source/git.py", line
> 381, in _dovccmd
>     yield self.runCommand(cmd)
>   File
> "/home/vagrant/buildbot-venv/lib64/python3.6/site-packages/twisted/internet/defer.py",
> line 1384, in _inlineCallbacks
>     result = result.throwExceptionIntoGenerator(g)
>   File
> "/home/vagrant/buildbot-venv/lib64/python3.6/site-packages/twisted/python/failure.py",
> line 393, in throwExceptionIntoGenerator
>     return g.throw(self.type, self.value, self.tb)
>   File "/home/vagrant/buildbot/master/buildbot/process/buildstep.py",
> line 900, in runCommand
>     res = yield command.run(self, self.remote, self.build.builder.name)
> buildbot.process.remotecommand.RemoteException: b
> 'exceptions.AssertionError': b"Unexpected usePTY argument value:
> u'slave-config'. Expected boolean."
> b'Traceback (most recent call last):\n  File
> "/home/vagrant/buildbot-venv-2.7/lib/python2.7/site-packages/twisted/spread/pb.py",
> line 1054, in _recvMessage\n    netResult =
> object.remoteMessageReceived(self, message, netArgs, netKw)\n  File
> "/home/vagrant/buildbot-venv-2.7/lib/python2.7/site-packages/twisted/spread/flavors.py",
> line 125, in remoteMessageReceived\n    state = method(*args, **kw)\n  File
> "/home/vagrant/buildbot/worker/buildbot_worker/base.py", line 150, in
> remote_startCommand\n    d = self.command.doStart()\n  File
> "/home/vagrant/buildbot/worker/buildbot_worker/commands/base.py", line 163,
> in doStart\n    d = defer.maybeDeferred(self.start)\n--- <exception caught
> here> ---\n  File
> "/home/vagrant/buildbot-venv-2.7/lib/python2.7/site-packages/twisted/internet/defer.py",
> line 150, in maybeDeferred\n    result = f(*args, **kw)\n  File
> "/home/vagrant/buildbot/worker/buildbot_worker/commands/shell.py", line 47,
> in start\n    logEnviron=args.get(\'logEnviron\', True),\n  File
> "/home/vagrant/buildbot/worker/buildbot_worker/runprocess.py", line 388, in
> __init__\n    usePTY)\nexceptions.AssertionError: Unexpected usePTY
> argument value: u\'slave-config\'. Expected boolean.\n'
>
>
>
> Any ideas what the problem could be?
>
> --
> Craig
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/devel/attachments/20170614/42e00666/attachment.html>


More information about the devel mailing list