Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Gerrit bots notification

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


hashar+wmf at free

Mar 27, 2012, 11:28 AM

Post #1 of 8 (229 views)
Permalink
Gerrit bots notification

Hello,

Whenever an action is made in Gerrit, a notification is sent to some IRC
channels. Previously we had to map each project to an IRC channel fall
backing to #mediawiki.

I have enhanced the python script to support wildcard when filtering on
Gerrit project name. Leslie Carr has deployed the changes some minutes
ago, and now:

projects from:
- analytics and integrations are sent to #wikimedia-dev
- operations are sent to #wikimedia-operations
- labs to #wikimedia-labs
- mediawiki and mediawiki extensions to #mediawiki

Default is still #mediawiki


If someone need more specific rules, you should tweak the filenames
dictionary in templates/gerrit/hookconfig.py.erb .

As an example, we might want to send MobileFrontend notifications to
#wikimedia-mobile .


--
Antoine "hashar" Musso


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


preilly at wikimedia

Mar 27, 2012, 11:56 AM

Post #2 of 8 (218 views)
Permalink
Re: Gerrit bots notification [In reply to]

Yeah, can we modify it to send MobileFrontend notifications
to #wikimedia-mobile.

— Patrick

On Tue, Mar 27, 2012 at 11:28 AM, Antoine Musso <hashar+wmf [at] free> wrote:

> Hello,
>
> Whenever an action is made in Gerrit, a notification is sent to some IRC
> channels. Previously we had to map each project to an IRC channel fall
> backing to #mediawiki.
>
> I have enhanced the python script to support wildcard when filtering on
> Gerrit project name. Leslie Carr has deployed the changes some minutes
> ago, and now:
>
> projects from:
> - analytics and integrations are sent to #wikimedia-dev
> - operations are sent to #wikimedia-operations
> - labs to #wikimedia-labs
> - mediawiki and mediawiki extensions to #mediawiki
>
> Default is still #mediawiki
>
>
> If someone need more specific rules, you should tweak the filenames
> dictionary in templates/gerrit/hookconfig.py.erb .
>
> As an example, we might want to send MobileFrontend notifications to
> #wikimedia-mobile .
>
>
> --
> Antoine "hashar" Musso
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


maxsem.wiki at gmail

Mar 27, 2012, 12:10 PM

Post #3 of 8 (216 views)
Permalink
Re: Gerrit bots notification [In reply to]

On 27.03.2012, 22:56 Patrick wrote:

> Yeah, can we modify it to send MobileFrontend notifications
> to #wikimedia-mobile.

As well as other mobile extensions: ZeroRatedMobileAccess and
FeaturedFeeds. I think these notifications should be sent to
#mediawiki too, as this concerns WM/MW in general, too.

--
Best regards,
Max Semenik ([[User:MaxSem]])


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


hashar+wmf at free

Mar 27, 2012, 2:06 PM

Post #4 of 8 (214 views)
Permalink
Re: Gerrit bots notification [In reply to]

Le 27/03/12 21:10, Max Semenik a écrit :
> I think these notifications should be sent to #mediawiki too, as this
> concerns WM/MW in general, too.

Unfortunately the python script does not support sending to multiple
channels yet. Something any pythonist should be able to do :-]

Can you possibly open a bug about the ability to send to multiple
channels? Since that is a Gerrit hook, it should be in Wikimedia
product under the git/gerrit component.

Thanks!

--
Antoine "hashar" Musso


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


rlane32 at gmail

Mar 27, 2012, 7:37 PM

Post #5 of 8 (210 views)
Permalink
Re: Gerrit bots notification [In reply to]

It already supports sending to multiple channels. I can't go into
details right now, but I'll follow up on this later with more info.

On Wed, Mar 28, 2012 at 6:06 AM, Antoine Musso <hashar+wmf [at] free> wrote:
> Le 27/03/12 21:10, Max Semenik a écrit :
>> I think these notifications should be sent to #mediawiki too, as this
>> concerns WM/MW in general, too.
>
> Unfortunately the python script does not support sending to multiple
> channels yet.  Something any pythonist should be able to do :-]
>
> Can you possibly open a bug about the ability to send to multiple
> channels?  Since that is a Gerrit hook, it should be in Wikimedia
> product under the git/gerrit component.
>
> Thanks!
>
> --
> Antoine "hashar" Musso
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


hashar+wmf at free

Mar 28, 2012, 3:17 AM

Post #6 of 8 (203 views)
Permalink
Re: Gerrit bots notification [In reply to]

Le 28/03/12 04:37, Ryan Lane a écrit :
> It already supports sending to multiple channels. I can't go into
> details right now, but I'll follow up on this later with more info.

That message remembers meof Fermat last theorem :-)

Fermat published a mathematical conjecture and claimed in the margin he
had a proof that did not fit in.

Long story made short: the conjecture has been proven 358 years later.

http://en.wikipedia.org/wiki/Fermat%27s_Last_Theorem

--
Antoine "hashar" Musso


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Platonides at gmail

Apr 13, 2012, 9:27 AM

Post #7 of 8 (184 views)
Permalink
Re: Gerrit bots notification [In reply to]

On 28/03/12 12:17, Antoine Musso wrote:
> Le 28/03/12 04:37, Ryan Lane a écrit :
>> It already supports sending to multiple channels. I can't go into
>> details right now, but I'll follow up on this later with more info.
>
> That message remembers meof Fermat last theorem :-)

You can just separate the channels with a comma.
(Seems it was reenabled on ircd-seven)


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


rlane32 at gmail

Apr 13, 2012, 11:11 AM

Post #8 of 8 (185 views)
Permalink
Re: Gerrit bots notification [In reply to]

On Fri, Apr 13, 2012 at 9:27 AM, Platonides <Platonides [at] gmail> wrote:
> On 28/03/12 12:17, Antoine Musso wrote:
>> Le 28/03/12 04:37, Ryan Lane a écrit :
>>> It already supports sending to multiple channels. I can't go into
>>> details right now, but I'll follow up on this later with more info.
>>
>> That message remembers meof Fermat last theorem :-)
>
> You can just separate the channels with a comma.
> (Seems it was reenabled on ircd-seven)
>

Seems I forgot to follow up on this. You can see how it's currently
being done in class gerrit::ircbot in manifests/gerrit.pp in the
operations/puppet repository.

- Ryan

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.