Wikibugs

From Wikitech
(Difference between revisions)
Jump to: navigation, search
(Related services)
(it's not in SVN anymore. at least minimal instructions where to find it in git)
Line 1: Line 1:
 
'''Wikibugs''' is a bot which writes bug reports to [[IRC]]. It is a perl mail pipe processor which is executed by the MTA. It writes IRC-formatted log lines to a file, to be read by an IRC client such as [[ircecho]].
 
'''Wikibugs''' is a bot which writes bug reports to [[IRC]]. It is a perl mail pipe processor which is executed by the MTA. It writes IRC-formatted log lines to a file, to be read by an IRC client such as [[ircecho]].
  
The source is [http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/wikibugs/ in svn].
+
<s>The source is [http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/wikibugs/ in svn].</s> The source is in [https://gerrit.wikimedia.org/r/#/q/status:merged+project:wikimedia/bugzilla/wikibugs,n,z git]. (wikimedia/bugzilla/wikibugs).
  
 
== Ops ==
 
== Ops ==
Line 30: Line 30:
 
** this may not work. See [http://www.cpanforum.com/threads/502 this thread] which explains you must go into CPAN shell and do:
 
** this may not work. See [http://www.cpanforum.com/threads/502 this thread] which explains you must go into CPAN shell and do:
 
*** o conf make /usr/bin/make
 
*** o conf make /usr/bin/make
* svn export --force svn+ssh://svn.wikimedia.org/svnroot/mediawiki/trunk/tools/wikibugs /usr/local/bin
+
* <s>svn export --force svn+ssh://svn.wikimedia.org/svnroot/mediawiki/trunk/tools/wikibugs /usr/local/bin</s> Get the latest version from git and copy it over to /usr/local/bin/wikibugs.
 
* Set up a filter in the MTA. For example the current configuration on mchenry uses the following line in /etc/exim4/aliases/wikimedia.org, presumably with wikibugs-irc subscribed to the mailing list:
 
* Set up a filter in the MTA. For example the current configuration on mchenry uses the following line in /etc/exim4/aliases/wikimedia.org, presumably with wikibugs-irc subscribed to the mailing list:
 
*: wikibugs-irc: |/usr/local/bin/wikibugs.pl
 
*: wikibugs-irc: |/usr/local/bin/wikibugs.pl

Revision as of 21:14, 17 January 2013

Wikibugs is a bot which writes bug reports to IRC. It is a perl mail pipe processor which is executed by the MTA. It writes IRC-formatted log lines to a file, to be read by an IRC client such as ircecho.

The source is in svn. The source is in git. (wikimedia/bugzilla/wikibugs).

Ops

It runs on mchenry, the mail server. It's installed at /usr/local/bin/wikibugs, and exim is configured to start it via /etc/exim4/aliases/wikimedia.org

To start the IRC part:

/usr/local/bin/start-wikibugs-bot

To kill the IRC part:

killall -u wikibugs

Related services

Depends on:

How to set it up

First, install the perl dependencies:

  • apt-get install build-essential
  • perl -MCPAN -e 'install Email::MIME'
    • this may not work. See this thread which explains you must go into CPAN shell and do:
      • o conf make /usr/bin/make
  • svn export --force svn+ssh://svn.wikimedia.org/svnroot/mediawiki/trunk/tools/wikibugs /usr/local/bin Get the latest version from git and copy it over to /usr/local/bin/wikibugs.
  • Set up a filter in the MTA. For example the current configuration on mchenry uses the following line in /etc/exim4/aliases/wikimedia.org, presumably with wikibugs-irc subscribed to the mailing list:
    wikibugs-irc: |/usr/local/bin/wikibugs.pl
  • useradd wikibugs
  • Start the bot using /usr/local/bin/start-wikibugs-bot
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox