[Buildbot-devel] sendchange and 0.8.4

Jean-Michel Beuken jean-michel.beuken at uclouvain.be
Wed Jun 15 08:53:33 UTC 2011


  Hello,

I answer to my problem partially...

in  scripts/runner.py :

----
def sendchange(config, runReactor=False):
...
     s = Sender(master, auth, encoding=encoding)
     d = s.send(branch, revision, comments, files, who=who, category=category, when=when,
                properties=properties, repository=repository, project=project,
                revlink=revlink)
     if runReactor:
         status = [True]
         def failed(res):
             status[0] = False
             s.printFailure(res)
         d.addCallbacks(s.printSuccess, failed)
         d.addBoth(s.stop)
         s.run()
         return status[0]
     return d
--------

but in clients/sendchange.py

the class Sender does not contain the definitions of printFailure and printSuccess  like in version 0.7.12

regards

jmb
> I'm just install the 0.8.4 version ( buildbot & buildslave ) on a fresh installed machine ( SL 6 )
> I'm used pip for installation ( run all tests ) and it seems that everything works ( on waterfall )
>
> but there is error when I tried to use "buildbot sendchange" ( as I used since some years with my old installation 0.7.12 )
> here, some tests with the commands "buildbot sendchange" and some arguments...
>
> ----------------------------------------------------------------------------------------
>
> *[buildbot at buildbot Buildmaster]$ buildbot sendchange --master=buildbot:9989 --who=buildbot*
> Traceback (most recent call last):
>   File "/usr/bin/buildbot", line 4, in <module>
>     runner.run()
>   File "/usr/lib/python2.6/site-packages/buildbot/scripts/runner.py", line 1231, in run
>     if not sendchange(so, True):
>   File "/usr/lib/python2.6/site-packages/buildbot/scripts/runner.py", line 904, in sendchange
>     d.addCallbacks(s.printSuccess, failed)
> AttributeError: Sender instance has no attribute 'printSuccess'
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110615/9f62a772/attachment.html>


More information about the devel mailing list