[MacPorts] #52446: Buildbot failure emails go to too many recipients

MacPorts noreply at macports.org
Thu Sep 29 12:04:10 CEST 2016


#52446: Buildbot failure emails go to too many recipients
---------------------------+--------------------------------
  Reporter:  ryandesign@…  |      Owner:  macports-tickets@…
      Type:  defect        |     Status:  new
  Priority:  High          |  Milestone:
 Component:  contrib       |    Version:
Resolution:                |   Keywords:
      Port:                |
---------------------------+--------------------------------

Comment (by raimue@…):

 There is only one instance of PortsMailNotifier and it is created in our
 `master.cfg`. Therefore the code in `__init__` is only run once.

 As I understand it, the `interested_users` attribute is only used to pass
 the list of users from the `portMessageFormatter` to `useLookup` as there
 is no direct way for interaction.

 Maybe it is as simple as this:

 {{{
 Index: master.cfg
 ===================================================================
 --- master.cfg  (revision 153357)
 +++ master.cfg  (working copy)
 @@ -682,6 +682,7 @@

      # same as original, but calls portMessageFormatter with access to
 interested_users
      def buildMessageDict(self, name, build, results):
 +        self.interested_users = set()
          msgdict = self.portMessageFormatter(self.mode, name, build,
 results,
                                              self.master_status,
 self.interested_users)
          return msgdict
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/52446#comment:3>
MacPorts <https://www.macports.org/>
Ports system for the Mac operating system


More information about the macports-tickets mailing list