There are some tests disabled in mwbot-rs, because they are hard to test on test Wikipedia:
- T391120: test_undo cannot be run parallel
- d52e608d8c14dd35d5b2213a7d1e8d7abd12e20e: query_recentchanges_patrolled, query_usercontribs_patrolled, the bot user does not have permission to query patrolled data
In the future, we may add support for some extensions that are not used in Wikimedia sites or not available on test WP. There are also chances that our tests are failing just because there are too many pipelines running at the same time and hitting the rate limit of MediaWiki.
Thus I propose to setup MediaWiki (with all extensions we are going to test) in the CI environment to address the above issues.
Remaining questions:
- How to confirm the list of extensions we need? Probably https://gitlab.wikimedia.org/repos/test-platform/catalyst/patchdemo/-/blob/main/repository-lists/wikimedia.yaml or minimal.yaml?
- How do we import pages? I suggest we create a XML dump of pages starting with "Mwbot-rs" (include Category NS) of Test Wikipedia, and commit it to the Git repo.