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

Dan Kegel dank at kegel.com
Sat Aug 13 14:04:06 UTC 2011


Nope.  The mail server's fine; the problem is there were no recipients.
Adding the line
   extraRecipients=["user at example.com"],
to the mailNotifier to force a recipient shows that mail is
going out fine when there are recipients.

sendToInterestedUsers=True is the default, and doesn't help.

I tried running buildbot from git, but setup.py fails.

I guess I'm going to have to get comfortable with
the innards of buildbot.  How do buildbot developers run
it without installing?
- Dan

On Fri, Aug 12, 2011 at 10:02 AM, Philippe McLean
<philippe.mclean at gmail.com> wrote:
> looks like an error on the mail server end: the mail server needs to know
> about the recipients
>
> On Fri, Aug 12, 2011 at 8:16 AM, Dan Kegel <dank at kegel.com> wrote:
>>
>> 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