Wikimedia blog

News from the Wikimedia Foundation and about the Wikimedia movement

Posts by Amir Sarabadani

Pywikibot will have its next bug triage on July 24−27

For most Wikimedia projects, Pywikibot (formerly pywikipedia) has proved to be a trusted and powerful tool. Literally millions of edits have been made by “bots” through this (semi-)automated software suite, written in Python.

Bug triage is like a check-up for bots: we check the list of things that need to be done and clean up the list. During a bug triage, we go through the list of our open bugs and check them for reproducibility (Can we make them happen on our computer to investigate them), severity, priority, and we categorize them when necessary. Bugs in this context can imply a problem in scripts, or a feature request that improves Pywikibot.

From July 24 to July 27, we’ll be holding a big online event to learn what more needs to be done for Pywikibot. Which bugs need an urgent fix, what features are missing or incomplete, etc. Obviously, it is a also a good opportunity to look at the code and look for “bit rot”.

Fixing bugs can sometimes be hard and time-consuming, but bug triaging doesn’t require deep technical knowledge: anyone with a little experience about running bots can be of great help in the bug triage. Triage can be a tedious task due to the number of bugs involved, so we need your help to go through them all.

If you know your Python and are interested in putting your skills to good use to support Wikimedia sites, join us for the bug-a-thon starting July 24. Until then, you can start familiarizing yourself with Pywikibot and bug triaging!

Amir Sarabadani (User:Ladsgroup), editor on the Persian Wikipedia and Pywikibot developer

Pywikipediabot moving to git on July 26

Wikipedia isn’t written just by humans! Bots have made great contributions to Wikipedia and other wikis like Wikidata (where bots have made over 90 percent of the edits so far). “Bots” are automated editing programs that can do anything from archiving discussions to reverting vandalism and  creating articles. Some bots even patrol new pages and report to Wikimedians.

How can you operate a bot? There are several ways and frameworks to run a bot, but the most popular is Pywikipediabot. It’s written in the Python programming language and has been in use since 2003. Pywikipediabot contains scripts for moving categories, creating articles, checking new images, working with Wikidata items and many other tasks. Besides the existing scripts, you can also create your own bot using generic scripts and classes (like “Page,” which handles Wikipedia pages in general).

Pywikipedia is now joining many other Wikimedia-related software tools and taking a big step forward by changing its version control system from SVN to Git. After July 26, developers will be able to easily submit their patches directly to Gerrit to help maintain the code.

If you’re already a bot operator, you should know that after that date, SVN checkouts won’t be updated and you’ll need to switch to git; we’re providing a manual to help with the process.

If you’re interested in working with us, there are several help pages in different languages. You can also contact us through our mailing list and the IRC channel.

Amir Sarabadani (User:Ladsgroup), editor on the Persian Wikipedia and pywikipedia developer

Test features in a right-to-left language environment

Wikimedia sites are facing many technical changes, like VisualEditor, Wikidata, Flow and Echo, just to name a few. As an ordinary Wikipedian, I like it very much and I’m pretty excited, but sometimes change is scary, especially for people who are working on “small” wikis. People constantly ask “Is this feature localized for my wiki?” or “Will it work properly?” and if you’re using a right-to-left (RTL) language (like Persian, Hebrew, Arabic, etc.), an otherwise great feature can quickly become a nightmare.

Sadly, it is difficult to test these features in your language before they are enabled on Wikipedia. Even if you’re an experienced MediaWiki developer, and you can install a wiki on your own server and add these features to test them, reporting bugs is hard because a locally-hosted wiki isn’t accessible to the rest of the world.

This is why we’ve set up a public test wiki dedicated to RTL languages. Wikimedians can come and test upcoming features, and see which interface messages are translated incorrectly. They can report bugs easily, communicate with other Wikimedians who are working in RTL languages, and work with them on features. Maybe you want to be sure a feature works properly in your language, or maybe you’re just curious and you want to know what Wikipedia will look like in the future. In both cases, the RTL test wiki can help you.

You can visit the RTL test wiki at http://tools.wmflabs.org/wikitest-rtl/w/ ; we have already installed some upcoming features, but if you think something is missing, feel free to contact me or Amir Aharoni and ask us to add it. This wiki uses the Universal language selector, which means that when you open it, the language of the interface is automatically set to the one your browser requests, and you can easily change it.

We hope to see you soon on the RTL test wiki.

Amir Sarabadani (User:Ladsgroup), editor on the Persian Wikipedia and pywikipedia developer