> On Jan 4, 2023, at 3:15 PM, sebb <seb...@gmail.com> wrote: > > On Wed, 4 Jan 2023 at 18:18, Chris Lambertus <c...@apache.org > <mailto:c...@apache.org>> wrote: >> >> >> >>> On Jan 4, 2023, at 4:03 AM, sebb <seb...@gmail.com> wrote: >>> >>> The www-site builds failed recently, however this was not obvious >>> because the failures don't appear to have been reported anywhere >>> outside the dashboard. >>> >>> As I recall, the previous version of BuildBot would send an email for >>> broken (and mended) builds. This was very handy for detecting and >>> fixing errors. >>> >>> Are there any plans to provide something similar for the current Buildbot? >>> >> >> The functionality is available. Here is an example configuration for setting >> up an email notifier. > > Thanks, AFAICT something similar is already set up here: > > https://github.com/apache/infrastructure-p6/blob/bd3e16c73a14b306942829baa516ca5101cbcdd3/modules/buildbot_asf/files/pelican_websites.py#L56 > > However it does not seem to be working.
I've opened INFRA-24056 to track this. The error is attached below. As a stopgap, we can add an extraRecipients field, because it's not correctly detecting the contributors, and is thus unable to generate a list of "interested users." What list makes most sense to see failures related to the pelican websites builds? 2022-12-31 19:22:37+0000 [-] INVALID EMAIL: asfinfra 2022-12-31 19:22:37+0000 [-] sending mail (653 bytes) to [] 2022-12-31 19:22:37+0000 [-] Starting factory <twisted.mail.smtp.ESMTPSenderFactory object at 0x7fa8f003ce80> 2022-12-31 19:22:37+0000 [ESMTPSender,client] Got exception when handling reporter events Traceback (most recent call last): File "/x1/buildmaster/lib/python3.6/site-packages/twisted/internet/defer.py", line 1658, in _inlineCallbacks cast(Failure, result).throwExceptionIntoGenerator, gen File "/x1/buildmaster/lib/python3.6/site-packages/twisted/internet/defer.py", line 63, in run return f(*args, **kwargs) File "/x1/buildmaster/lib/python3.6/site-packages/twisted/python/failure.py", line 500, in throwExceptionIntoGenerato r return g.throw(self.type, self.value, self.tb) File "/x1/buildmaster/lib/python3.6/site-packages/buildbot/reporters/base.py", line 95, in _got_event log.err(e, 'Got exception when handling reporter events') --- <exception caught here> --- File "/x1/buildmaster/lib/python3.6/site-packages/buildbot/reporters/base.py", line 93, in _got_event yield self.sendMessage(reports) twisted.mail._except.SMTPDeliveryError: No recipients accepted >>> MAIL FROM:<build...@apache.org> <<< 250 2.1.0 Ok > > Sebb >> template=u'''\ >> Build status: {{ summary }} >> Worker used: {{ workername }} >> URL: {{ build_url }} >> Blamelist: {{ blamelist | join(', ') }} >> Build Text: {{ build['state_string'] }} >> Status Detected: {{ status_detected }} >> {{ sourcestamps }} >> >> Steps: >> {% for step in build['steps'] %} >> {{ step['name'] }}: {{ step['results'] }} >> {% endfor %} >> >> -- ASF Buildbot >> ''' >> simple_generator = reporters.BuildStatusGenerator( >> mode=('all'), >> builders=["infrastructure-test",], >> message_formatter=reporters.MessageFormatter( >> template=template, >> template_type='plain', >> want_properties=True, >> want_steps=True, >> ), >> ) >> itn = reporters.MailNotifier( >> fromaddr="build...@apache.org", >> sendToInterestedUsers=True, >> generators=[simple_generator], >> extraRecipients=["gno...@infra.apache.org"], >> ) >> bb.add_service(itn) >> >> >> >> >>> Sebb