[Buildbot-devel] Should Try_Userpass interact well with MailNotifier in buildbot 0.8.4p2?

Dan Kegel dank at kegel.com
Fri Aug 12 15:16:28 UTC 2011


I turned the tutorial into a shell script,
http://winezeug.googlecode.com/svn/trunk/buildbot/buildbot-tutorial.sh
which also adds the bits needed for a try server and email notification.

Try works, but email notification doesn't, even if I switch to using
buildbot 0.8.4p2 instead of the default.

master/twistd.log shows

2011-08-11 19:14:04-0700 [-] sending mail (3200 bytes) to []
<------ shouldn't this include the --who arg from --try?
2011-08-11 19:14:04-0700 [-] Starting factory
<twisted.mail.smtp.ESMTPSenderFactory instance at 0xa3f966c>
...
2011-08-11 19:14:05-0700 [ESMTPSender,client] Unhandled error in Deferred:
2011-08-11 19:14:05-0700 [ESMTPSender,client] Unhandled Error
        Traceback (most recent call last):
        Failure: twisted.mail.smtp.SMTPDeliveryError: No recipients accepted
        >>> MAIL FROM:<dank at kegel.com>
        <<< 250 2.1.0 Ok

The script creates a master.cfg which is the same as the sample one,
but with a felines appended:

###### One more scheduler ########
# Enable 'buildbot try' and set allowed usernames/passwords and port number
# You could also use Try_Jobdir, which uses ssh authentication; see
# http://buildbot.net/buildbot/docs/latest/Try-Schedulers.html
from buildbot.scheduler import Try_Userpass
c['schedulers'].append(Try_Userpass(
                            name='try',
                            builderNames=['runtests'],
                            port=5555,
userpass=[('sampletryuser','sampletrypassword')]))

###### One more status target ########
from buildbot.status.mail import MailNotifier
mn = MailNotifier(
    fromaddr='dank at kohl.kegel.com',
    lookup="example-unused-if-try-users-are-email-addresses.com")
c['status'].append(mn)




More information about the devel mailing list