Last modified: 2014-07-26 17:35:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55778, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53778 - [Regression] wikitech.wikimedia.org is sending empty Echo notification emails
[Regression] wikitech.wikimedia.org is sending empty Echo notification emails
Status: PATCH_TO_REVIEW
Product: Wikimedia Labs
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-04 22:04 UTC by spage
Modified: 2014-07-26 17:35 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2013-09-04 22:04:46 UTC
In bug 53771 Roan noted receiving an empty e-mail from wikitech:

To: Catrope <roan@wikimedia.org>
Subject: New notification at Wikitech
X-PHP-Originating-Script: 0:UserMailer.php
From: MediaWiki Mail <noc@wikimedia.org>
Reply-To: No Reply <noc@wikimedia.org>
Date: Wed, 04 Sep 2013 19:03:04 +0000
Message-ID: <labswiki.522783e832fdd3.58527144@wikitech.wikimedia.org>
X-Mailer: MediaWiki mailer
MIME-Version: 1.0
Content-type: text/plain; charset=UTF-8
Content-transfer-encoding: 8bit

You have a new notification.

________________________________________________

To control which emails we send you, check your preferences:
https://wikitech.wikimedia.org/wiki/Special:Preferences#mw-prefsection-echo

- - - - -

Benny Situ commented that this is the "default notification message for email if a notification type doesn't define such message."
I got the same empty e-mail, and my notifications from Wikitech are all special ones from the OpenStack integration code, such as:
  Hashar built instance 'deployment-sql03' in project Nova
Resource:Deployment-prep

so it sounds like this code needs to define some messages.
Comment 1 Krinkle 2013-09-10 00:27:51 UTC
According to what I heard earlier (forgot who said it) this just needs Ryan (or someone else with access to wikitech wiki) to the proper update scripts.

Either way, please figure this out between Ryan and Echo. Whatever the case is, this looks broken and needs to be fixed.
Comment 2 Krinkle 2013-10-25 18:03:44 UTC
bump
Comment 3 Maarten Dammers 2014-05-04 16:10:35 UTC
This is fairly annoying. It should at least contain the message you see when you sign in to Wikitech.
Comment 4 Tim Landscheidt 2014-05-04 21:55:53 UTC
With Ryan being elsewhere, unassigning for the moment.
Comment 5 Bryan Davis 2014-05-23 20:16:47 UTC
It looks to me like OpenStackManager needs to implement the onBeforeCreateEchoEvent hook [0] to provide the proper messages for the email subject and body. The implementation in Thanks [1] could probably be used as a reference. Additional instructions can be found in the Echo Developer guide [2].

[0]: https://www.mediawiki.org/wiki/Extension:Echo/BeforeCreateEchoEvent
[1]: https://github.com/wikimedia/mediawiki-extensions-Thanks/blob/master/Thanks.hooks.php#L128-L172
[2]: https://www.mediawiki.org/wiki/Echo_(Notifications)/Developer_guide#Hook_the_notification_into_the_Echo_extension
Comment 6 Gerrit Notification Bot 2014-07-06 00:19:55 UTC
Change 144334 had a related patch set uploaded by BryanDavis:
Add Echo email customization

https://gerrit.wikimedia.org/r/144334
Comment 7 Gerrit Notification Bot 2014-07-09 16:38:44 UTC
Change 144334 merged by jenkins-bot:
Add Echo email customization

https://gerrit.wikimedia.org/r/144334
Comment 8 Bryan Davis 2014-07-25 15:07:54 UTC
[2014-07-24T03:36:49] <bd808> andrewbogott_afk: I haven't gotten any echo notification emails from wikitech since Sun, 20 Jul 2014 21:38:05 +0000. I'm more than a bit worried that my patch to change the echo emails broke something.
[2014-07-24T03:41:17] <bd808> andrewbogott_afk: <  legoktm>         umm, is wikitech running processEchoEmailBatch.php?
[2014-07-24T03:41:34] <bd808> andrewbogott_afk: <  legoktm>         by adding "email-body-batch-params" and "email-body-batch-message" I think you enabled batching support, which requires a script to be run
[2014-07-24T03:41:45] <legoktm> okay, I'll just talk in here now :P
[2014-07-24T03:42:55] <bd808> legoktm: I was just queuing up things for Andrew's bouncer to tell him in the morning :)
[2014-07-24T03:44:45] <legoktm> bd808: is wikitech's configuration public anywhere?
[2014-07-24T03:44:54] <legoktm> $wgEchoEnableEmailBatch = false; should fix it
[2014-07-24T03:45:12] <legoktm> but people would miss emails...setting up a cronjob is probably better
[2014-07-24T03:45:20] <bd808> I don't think the config is public. At least I've never seen it.
[2014-07-24T03:45:29] <Krinkle> Indeed, not public and not versioned.
[2014-07-24T03:45:38] <bd808> poor wikitech
[2014-07-24T03:45:50] <bd808> the cobbler's children...
[2014-07-24T03:46:26] <legoktm> :(
Comment 9 Maarten Dammers 2014-07-26 09:31:39 UTC
So you fixed the bug by not sending out any emails at all? Haha, nice

What's the next step now?
Comment 10 Alex Monk 2014-07-26 14:36:14 UTC
Well, there was Gerrit change #149459
Comment 11 Bryan Davis 2014-07-26 17:35:00 UTC
(In reply to Alex Monk from comment #10)
> Well, there was Gerrit change #149459

Andrew ran the batch send manually yesterday and it did send out some emails, but apparently only for people who had selected batch notification in their preferences. The gerrit change referenced should continue to send batches, assuming of course that Echo is placing message requests in the database table.

Last I heard we still didn't know why emails were not being sent for users like me who have individual delivery specified in their preferences.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links