IRC nick: qedk
Working hours: 1300 - 2300 hours (UTC+05:30)
Zulip-bot module is too nascent to use as full-fledged bot, instead we must make use of the core Zulip API and utilize its full functionality. The resulting bot will be a bot that records every message, waiting for a cue to activate, instead of only activating via a mention or private message trigger. This means that the bot can be summoned from anywhere with any message we want to summon it with.
Fig 1.1 goodbot is always listening and can be summoned anywhere in various simple ways
The # announce stream announces all new signups, each signup will trigger a bot action from goodbot on the # general stream (Getting started topic). The bot will direct them to https://www.mediawiki.org/wiki/How_to_contribute , . https://www.mediawiki.org/wiki/New_Developers , https://www.mediawiki.org/wiki/Good_first_bugs , offer a list of available GSoC/GSoD/Outreachy commands and inform the participant about the !help command.
Fig 2.1 goodbot actively detects new users to Wikimedia Zulipchat and provides kickstart resources
Replying and error control
If summoning the bot, the bot will helpfully give a list of commands and expect you to answer them, some commands (such as faq) expect additional commands, so each command will have a failsafe to not trigger an error, as well as helpful follow-ups like "if you intended to ask a question, type !help faq your-question".
Fig 3.1 goodbot intelligently understands queries and uses a given list of FAQs to answer them
The bot will seek to assist applicants about respective project ideas, guide them to instructions and GSoC/GSoD/Outreachy org-admins. The participant can request help by summoning the bot with a specific command such as !help gsoc, the bot will display further resources related to the outreach program and subscribe them to relevant streams.
Fig 3.2 goodbot will provide targeted organization-specific help
The bot will seek to assist them with specific projects by directing them to respective mentors, Phab tasks and instructions about that particular project by dynamically accessing continually-updated resources.
Fig 3.3 Planned project-level assistance workflow
The bot will direct participants to technical IRC channels such as # wikimedia-tech, # pywikibot and other technical channels (with configurable options) when requested.
Fig 3.4 goodbot will provide technical assistance by guiding users to help channels
Zulip-IRC bridge bot
The bot will also sync messages across a specific stream such as #technical-support stream on Zulipchat and Wikimedia technical IRC channels such as #wikimedia-tech to ensure proper and quick resolution of queries. This will be achieved in real-time without any human intervention.
Fig 4.1 ircbot will provide real-time and seamless integration between Zulipchat and IRC *
Since Zulip API does not allow bots to fetch user_groups, the bot will maintain its own database of user_groups, such as mentors for specific projects, GSoC/GSoD/Outreachy org-admins. The bot will provide resources to contact these user-groups as well the ability to send pings via Zulipchat itself.
Fig 5.1 goodbot will quickly summon user_groups if other users require their help
We will use Travis CI for continuous integration, build verification and continuous deployment. We will use a mirror testbot and use integration testing instead of standard unit-testing and rely on preventive error control mechanisms, integration testing using the mirror-testbot should relay any errors instead of setting up expensive unit-testing methods that will bulk up bot packages.
Fig 6.1 goodbot repository is set up for continuous integration
Toolforge deployment and integration
The entire pipeline of integration and deployment to Toolforge will be triggered by an event (either through Travis CI or GitHub Actions) carried out after the commit is pushed to production and results in a successful build. Setting up config files needs to be done on the production host itself as well as Travis, as well as integration testing in a staged production environment (such as a # test stream) that will be done using scripts in Travis CI.
Searching Wikipedia and StackOverflow
Wikipedia and StackOverflow can prove to be very helpful resources for applicants and participants. Both sites have strong, mature APIs and will be a very useful resource without needing to leave Zulipchat, also helpful in answering queries by mentors on why certain errors are occurring.
Fig 7.1 goodbot will allow users to quickly search necessary resources
Extension documentation is always a prerequisite for maintaining code quality presently and in the future. Hence, I have provided ample time for documentation purposes, which we can host on GitHub wiki itself.
Another aspect of maintaining code quality is to enforce a consistent style guide and ensure absence of logical and syntactical errors in our project using a linter - preferably such as flake8, primarily for its speed and the lack of false-positives. It combines pyflakes (logical linting), pycodestyle (stylistic linting) and mccabe (cyclomatic complexity), thus making a well-rounded wrapper for overall Python linting. Linting will be automatically enforced in continuous integration via Travis-CI.
Fig 8.1 Travis-CI will automatically lint all code with flake8 to ensure code quality is enforced
Dependency management will be handled by Dependabot. It seeks to serve as a drop-in solution for most repositories and works without any human intervention (except merging a pull request), saving time and effort on our side.
Fig 8.2 Dependabot will automatically upgrade goodbot dependencies when necessary
- Possible mentor(s): @Pavithraes @D3r1ck01 @Medhabansal
- Have you contacted the mentor?** Yes, I've contacted the mentors via email and Zulipchat.
|[x] May 4 to June 1|
Community bonding period
|Discuss requisites and prerequisites with mentors and identify most important features. Research about deployment on Toolforge and identify potential problems (proactive risk strategy). Also, talk to current and ex (if available) Outreachy, GSoC, GSoD participants and mentors, and see what features they would want in such a bot and how they would like it to be implemented.|
|[x] June 1 to June 7||Start implementing core features for the bot, such as welcoming and replying to participants.|
|[x] June 8 to June 14||Start implementing more user-facing features, such as intelligently answering questions based on given FAQs, links and subscribing them depending on whether they are an Outreachy/GSoC/GSoD participant as well as directing them to technical resources.|
|[x] June 15 to June 21||Begin production deployment on Toolforge and iron out all possible errors.|
|[x] June 22 to June 28||Testing Round 1: Exploratory testing and documentation. Get an MVP out the door.|
|[x] June 29 to July 3||Phase I evaluation|
|[x] July 4 to July 10||Take input from stakeholders such as volunteer developers, current and previous mentors and participants to gauge requirements of features. Identify and implement strategies to enable seamless message transfers between Wikimedia IRC channels and Zulipchat.|
|[x] July 11 to July 17||Deploy bridgebot to production and iron out all possible kinks to ensure reliability and uptime.|
|[x] July 18 to July 23||Implement a feature to allow the bot to intelligently determine projects and assist in the same by parsing MediaWiki project idea pages and matching it to queries.|
|[x] July 24 to July 27||Testing Round 2: Exploratory testing, automated testing and documentation. Refine present features and strategize on what features to be added next.|
|[x] July 27 to July 31||Phase II evaluation|
|[x] August 1 to August 7||Allow setting of summon groups, such as "org-admins", “GSoC”, “Outreachy”. Participants can make use of these summon groups to summon them as well as get available details (such as email, IRC nick).|
|[x] August 8 to August 14||Use goodbot's user_groups functionality to set up bot administration via on-stream commands.|
|[x] August 9 to August 15||Implement search functionality from Wikipedia and StackOverflow.|
|[x] August 15 to August 21||Testing Round 3: test robustness and recovery, set up failsafe measures.|
|[x] August 22 to August 27||Freeze the codebase and iron out all kinks (bug fixes, production errors) before final deployment.|
|[x] August 28 to August 31||Improve UX, prettify documentation, introduce bot to participants.|
Submit project summaries and final evaluations.
|[x] August 31 to September 7||Mentors submit final student evaluations.|
|[x] September 8||Final results of Google Summer of Code 2020 announced|
- Contributor guide for new contributors
- Allow bot admins to configure core messages, such as links to resources and welcome messages.
- Possibility of expansion beyond GSoC/GSoD/Outreachy by increasing modularity in the code.
Google Code-In 2020 as a first priority.(cancelled)
- Expand querying beyond Wikipedia and StackOverflow.
- Chatting with the bot!
- Implement a feature to play games with the bot, such as Tic-Tac-Toe.
- A user-friendly bot that can understand commands and assist new members to the Zulipchat realm.
- A robust and reliable bot that has mechanisms in place that will restart by itself in case it fails.
- An interactive bot that does exactly what it's asked with a 100% accuracy.
- A bot that makes the org-admins' life easier by summoning them only when required.
- A real-time Zulip-IRC bridgebot that functions seamlessly without any intervention.
- Proper documentation about the functioning of the bot on the repository itself - to assist future volunteer developers to make new features.
- High-quality code with potential for reusability and modularity.
- I will communicate with mentors via email and Zulipchat. I am also active on WhatsApp if that's preferable.
- I plan to deploy the development code to GitHub:https://github.com/QEDK/goodbot preferably under an MIT license. It can be branched into development and master/production branches to separate development from production code if required.
- I will use Phabricator for managing tasks and subtasks.
- The production code will be deployed to Toolforge, which will be synced via a deploy script running through Travis CI.
- I will provide reports twice a week via Google Docs and publish a blog post at the end of the period on my Medium (https://medium.com/@ankittt) summarizing the entire experience.
- I am currently pursuing Bachelor's of Science in Computer Science (Honours). I expect to graduate in May 2021.
- My friend from a nearby university successfully completed his GSoC project with FOSSASIA, we participated in hackathons together, during one of which he told me about this experience.
- In the first week (of the community bonding period), I will have my semester exams but I expect to be available on most days. They are fairly spread out so I doubt that it will impact my availability. After my exams, I do not have any job or educational commitments as it will be my semester break period. I am confident I will be available for the entire duration of this project. I expect to give 350+ hours (estimating from 5x70) to this project.
- I am only applying for GSoC '20. As of now, Wikimedia Foundation is the only organization I am applying to. Per eligibility requirements, I would also like to state that I have never participated in GSoC or Outreachy.
- As someone who has been a long-time contributor to Wikipedia and someone who intends to be a part of the Wikimedia movement in the future as well, taking on the role of a student developer with the Foundation gives me the opportunity to give back to the project. Outreachy and GSoC do a good job of bringing excellent developer candidates directly in contact with people organizations such as the WMF. I believe I can make that process easier for those candidates, as well as expand my knowledge and involvement with the worldwide Wikimedia movement. It would mean a lot to me personally to be able to contribute positively towards making their onboarding process easier and giving deserving candidates a helping hand to begin contributing to the Wikimedia community. I would also like to keep contributing to this particular project to make it successful and also the Wikimedia movement as a whole.
I've been a long-time contributor to Wikimedia projects (~10 years), I also hold the sysop and edit filter manager rights on the English Wikipedia and autopatrolled on a few others. I began contributing to the Twinkle codebase in 2012, a Gadget that is used by most editors contributing to Wikipedia. I am still an active contributor to the codebase:
I also assisted in the updating of Twinkle Bengali back in 2013 as their version was running out-of-date:
until it was localized and branched off via a Gadget as Twinkle is not yet i18n-ized.
I've interned with companies in the fields of data science and machine learning, unfortunately, most of my work there is covered by copyright and NDA. I've been reporting bugs on MediaWiki since the Bugzilla days, I've also contributed code to the Xtools project (1) and the Toolforge-hosted WHOIS tool (1, 2, 3) both of which are widely used by contributors.
Apart from this, I've recently worked on fixing Phabricator tasks tagged as "patch welcome" and "good first bug" some of which are in core MediaWiki:
- https://gerrit.wikimedia.org/r/c/mediawiki/core/+/578578 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/core/+/578580 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/PageInCat/+/582494 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/LoopFunctions/+/583213 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/581628 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/DynamicPageList/+/579919 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/DynamicPageList/+/578548 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/NetworkAuth/+/580321 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ArticleFeedbackv5/+/580322 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/AnonPrivacy/+/579855 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CookieWarning/+/579685 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecureSessions/+/579736 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MassMessage/+/578977 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ContentTranslation/+/578976 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ExtJSBase/+/579654 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/EditNotify/+/581544 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MintyDocs/+/584384 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/RandomPages/+/584967 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/579011 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Gadgets/+/578978 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GlobalContributions/+/579524 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GlobalContribs/+/579618 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/NamespacePopups/+/586080 (merged)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/DonationInterface/+/579738 (will be merged after extension migrates to 1.35 LTS)
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/News/+/588078 (merged)
- https://gerrit.wikimedia.org/r/c/operations/puppet/+/578575 (merged)
- https://gerrit.wikimedia.org/r/c/operations/puppet/+/578611 (merged)
- https://gerrit.wikimedia.org/r/c/operations/puppet/+/578609 (merged)
- https://github.com/femiwiki/Sanctions/commit/81a9144bd38a624ec355f04d81642f3628cad6ca (merged)
- https://github.com/examknow/CentralCheckUser/commit/737a245f49463d325b1c8f5051e07353e47fcbe1 (merged)
- https://github.com/wmde/wikibase-docker/commit/2638332a6faad3273b6d402d04ee1a0b5797f701 (merged)
Working with the Wikimedia community as well the local developer community has given me experience with community organization and collaboration, which has been enlightening for me. I've used and set up multiple bots (like Tatsumaki) on Discord which gives me an idea about suitable workflows for helpbots and chatbots.
The demo pictures can be found at https://phabricator.wikimedia.org/M298
Goodbot video demo: https://youtu.be/vz0l8wwemoE
Zulip-IRC bridgebot video demo: https://youtu.be/pH88rWM9vbI
The bot (currently run locally) is accessible on the private # goodbot stream on the Zulipchat channel.