Last modified: 2013-08-02 13:19:35 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 T37538, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35538 - gerrit-wm should not report commits from the l10n-bot
gerrit-wm should not report commits from the l10n-bot
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 22596
  Show dependency treegraph
 
Reported: 2012-03-27 20:35 UTC by Nemo
Modified: 2013-08-02 13:19 UTC (History)
12 users (show)

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


Attachments

Description Nemo 2012-03-27 20:35:39 UTC
Each l10n update will create lots of commits but it would be nice if one didn't get a notification for each of them.
Comment 1 Antoine "hashar" Musso (WMF) 2012-04-04 09:20:09 UTC
I think we should default to send the notifications. People not willing to receive them could set up a filter in their mail agent.
Comment 2 Niklas Laxström 2012-04-04 11:33:50 UTC
I can't imagine anyone who wouldn't want to filter those commits. It may not be a problem for those who are watching only few projects.
Comment 3 Siebrand Mazeland 2012-04-16 16:27:08 UTC
Was just treated to 198 e-mails connected to the L10n updates (up from 1). Scary.
Comment 4 MZMcBride 2012-04-21 19:07:32 UTC
This bug didn't mention "gerrit-wm", so I didn't find it in a search. I left a comment about the effect of these commits at bug 35427 comment 5.
Comment 5 Alex Monk 2012-04-21 19:33:14 UTC
I think Gerrit change #5547 fixes this.
Comment 6 Antoine "hashar" Musso (WMF) 2012-04-23 09:08:43 UTC
Rewrite summary: we do not want to spam IRC channels.
Comment 7 Niklas Laxström 2012-04-23 09:11:56 UTC
It's not only about IRC. It's also about email. If it makes sense to have two bugs for those, then let's do that.
Comment 8 Antoine "hashar" Musso (WMF) 2012-04-23 09:22:56 UTC
(In reply to comment #7)
> It's not only about IRC. It's also about email. If it makes sense to have two
> bugs for those, then let's do that.

I want the email notifications.
Comment 9 Nemo 2012-04-23 09:43:20 UTC
(In reply to comment #7)
> It's not only about IRC. It's also about email. If it makes sense to have two
> bugs for those, then let's do that.

Done as bug 36168.
Comment 10 Chad H. 2012-04-25 17:00:19 UTC
This was a simple config change for the L10n-bot group (I hope). I enabled the "only notify authors" group setting.

If we survive the next L10n deluge, we'll know I was right and this can be FIXED.
Comment 11 Chad H. 2012-04-25 17:01:21 UTC
Actually, this will be different from bug 36168, we'll still need hook changes here.
Comment 12 Chad H. 2012-05-03 23:58:55 UTC
Submitted as https://gerrit.wikimedia.org/r/#change,6578.
Comment 13 Chad H. 2012-05-22 18:43:23 UTC
Change merged, should be fixed. Will know later today.
Comment 14 MZMcBride 2012-05-22 22:49:02 UTC
(In reply to comment #13)
> Change merged, should be fixed. Will know later today.

This is not fixed. The bot started flooding again just a few minutes ago:

---
[18:39] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/AbsenteeLandlord] (master) - https://gerrit.wikimedia.org/r/8513
[18:39] <Reedy> Useful error message is useful
[18:39] * Reedy facepalms
[18:39] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/AbuseFilter] (master) - https://gerrit.wikimedia.org/r/8514
[18:39] <Ryan_Lane> well
[18:39] <Krenair> uh oh
[18:39] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/AkismetKlik] (master) - https://gerrit.wikimedia.org/r/8515
[18:39] <Krenair> I guess it didn't work
[18:39] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/ArticleFeedback] (master) - https://gerrit.wikimedia.org/r/8516
[18:39] <Ryan_Lane> fix our *shitty, shitty* authentication code and I'll report better errors
[18:39] <Reedy> We knew that early
[18:39] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/ArticleFeedbackv5] (master) - https://gerrit.wikimedia.org/r/8517
[18:39] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/AuthorProtect] (master) - https://gerrit.wikimedia.org/r/8518
[18:39] <Krenair> Might be a good idea to +q again
[18:39] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/Babel] (master) - https://gerrit.wikimedia.org/r/8519
[18:40] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/CategoryTree] (master) - https://gerrit.wikimedia.org/r/8520
[18:40] <Ryan_Lane> I've had a bug in for *years* asking to allow auth plugins to report custom errors
[18:40] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/CentralAuth] (master) - https://gerrit.wikimedia.org/r/8521
[18:40] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/CentralNotice] (master) - https://gerrit.wikimedia.org/r/8522
[18:40] <Ryan_Lane> though I guess I was kind of a cookie licker on it, since I said I'd do it
[18:40] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/Cite] (master) - https://gerrit.wikimedia.org/r/8523
[18:40] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/CodeEditor] (master) - https://gerrit.wikimedia.org/r/8524
[18:40] ... mode/#mediawiki +o Joan by ChanServ
[18:40] ... mode/#mediawiki +b *!*@manganese.wikimedia.org by Joan
[18:40] <gerrit-wm> New patchset: L10n-bot; "Localisation updates from http://translatewiki.net." [mediawiki/extensions/CodeReview] (master) - https://gerrit.wikimedia.org/r/8525
[18:40] <Krenair> I knew this was going to happen.
[18:40] ... mode/#mediawiki -o Joan by ChanServ
---
Comment 15 MZMcBride 2012-05-22 23:04:15 UTC
The issue here seems to be that the 	l10nuser variable is "Translation updater bot (l10n-bot@translatewiki.net)", when it should be "L10n-bot (l10n-bot@translatewiki.net)".

Ryan Lane has tweaked this variable and will be submitting a change shortly, I believe.
Comment 16 Ryan Lane 2012-05-22 23:08:03 UTC
https://gerrit.wikimedia.org/r/#/c/8554/3
Comment 17 Chad H. 2012-05-22 23:41:27 UTC
(In reply to comment #15)
> The issue here seems to be that the     l10nuser variable is "Translation
> updater bot (l10n-bot@translatewiki.net)", when it should be "L10n-bot
> (l10n-bot@translatewiki.net)".
> 

We already tried that and it didn't work. Any other ideas?
Comment 18 MZMcBride 2012-05-23 00:36:46 UTC
(In reply to comment #17)
> (In reply to comment #15)
>> The issue here seems to be that the     l10nuser variable is "Translation
>> updater bot (l10n-bot@translatewiki.net)", when it should be "L10n-bot
>> (l10n-bot@translatewiki.net)".
>> 
> 
> We already tried that and it didn't work. Any other ideas?

I'm not sure why this is so elusive. The logic looks sound to me:

From <>:
---
		if subject and options.uploader != hookconfig.l10nuser:
			message = "New patchset: " + re.sub(' \(.*', "", options.uploader) + '; "' + subject + '" [' + options.project + "] (" + options.branch + ") - " + options.changeurl + "\n"
			self.log_to_file(options.project, options.branch, message)
---

I believe this is the correct branch. Print options.uploader and hookconfig.l10nuser and see why they're not equal? If you believe there's still a bug here.
Comment 19 Antoine "hashar" Musso (WMF) 2012-05-23 12:50:29 UTC
maybe the field as a trailing space or some invisible char?

the hookconfig.l10nuser field could be made to only be the email address and then use a regex match. That will discard various issues.

Are you sure there is a subject?

I would add a logging/debugging infrastructure to write some informations to some /var/log/gerrit/ log file. That will help a bit.
Comment 20 Alex Monk 2012-06-17 20:21:22 UTC
Is this fixed now? I can't find anything in my logs for gerrit-wm in #mediawiki mentioning the l10n-bot since the 14th of June, but it's definitely made a lot of changes in Gerrit.
Comment 21 Chad H. 2012-06-17 23:32:38 UTC
(In reply to comment #20)
> Is this fixed now? I can't find anything in my logs for gerrit-wm in #mediawiki
> mentioning the l10n-bot since the 14th of June, but it's definitely made a lot
> of changes in Gerrit.

Pretty sure I got it fixed in Gerrit change #11615. If nobody's been seeing anything from L10n-bot (but has been seeing other stuff), then let's mark this FIXED :)

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


Navigation
Links