From 0fa33d5401acea4c9228b2aaa80c990bcf7d35db Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Tue, 26 Jul 2016 14:07:09 -0400 Subject: [PATCH] Fixing a few mistakes on mail lookup --- master.cfg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/master.cfg b/master.cfg index 0c3eef3..a40723a 100644 --- a/master.cfg +++ b/master.cfg @@ -26,6 +26,8 @@ from buildbot.steps.slave import RemoveDirectory from buildbot.changes.filter import ChangeFilter from buildbot.buildslave import BuildSlave from buildbot.status.results import SUCCESS, WARNINGS, FAILURE, EXCEPTION +from buildbot.interfaces import IEmailLookup +from zope.interface import implements from gdbcommand import CopyOldGDBSumFile, GdbCatSumfileCommand from gdbgitdb import SaveGDBResults, get_builder_commit_id from racyanalyze import GDBAnalyzeRacyTests @@ -565,7 +567,7 @@ mn = MyMailNotifier(fromaddr = GDB_MAIL_FROM, 'In-Reply-To' : WithProperties ("<%s@gdb-build>", 'got_revision') }) -class MyLookupEmail (object): +class LookupEmailTryBuild (object): implements (interfaces.IEmailLookup) def getAddress (self, name): @@ -583,9 +585,10 @@ class MyLookupEmail (object): return m.group (1) mn_try = MyMailNotifier(fromaddr = GDB_MAIL_FROM, + sendToInterestedUsers = True, mode = ( 'failing', 'passing', 'warnings' ), messageFormatter = MessageGDBTestersTryBuild, - lookup = MyLookupEmail, + lookup = LookupEmailTryBuild (), tags = [ "MAIL", "TRY" ], extraHeaders = { 'X-GDB-Buildbot' : '1', 'In-Reply-To' : WithProperties ("<%s-try@gdb-build>",