Jump to content

Tool:Bash

From Wikitech
Toolforge tools
Wikimedia Quips
Website https://bash.toolforge.org/
Description A bash.org inspired quips server
Keywords bash, quips, php
Author(s) BryanDavis
Maintainer(s) BryanDavis, Yuvipanda (View all)
Source code github
License GNU General Public License 3.0 or later
Issues github

Wikimedia Quips is a bash.org inspired quips server.

When Wikimedia used Bugzilla as its issue tracker, we also used the quips functionality to store funny quotes from irc, bug reports, code reviews and other sources. Since we have moved to Phabricator, this functionality has been missed. This tool attempts to bring joy back to the masses by allowing access to the former quips dataset that is now stored in an Elasticsearch index. The quips database was bootstrapped with a list of quips that were salvaged from the former bugzilla.wikimedia.org server.

Adding quips

New quips can be added in two ways. Stashbot listens for !bash messages on irc. The bash tool itself also provides a form for adding and editing quips for users who have authenticated using OAuth and their Wikimedia SUL account. See the online help for more information.

Maintenance

Bash is a simple PHP application running on the Toolforge kubernetes infrastructure. It is configured by the /data/project/bash/quips/.env file which includes OAuth and Elasticsearch configuration settings.

$ ssh dev.toolforge.org
$ become bash
$ webservice status
Your webservice is running
$ webservice restart
Restarting webservice...
$ kubectl get pods
NAME                    READY     STATUS    RESTARTS   AGE
bash-4123945888-wf21s   1/1       Running   0          1m

See also