Page MenuHomePhabricator

[SPIKE] Investigate alternatives for mwbot's use of the request library
Closed, ResolvedPublic3 Estimated Story Points

Description

xLab's actionLogger.js utilizes the mwbot library, which in turn utilizes the request library, which is no longer maintained and which has its own stale dependencies. This is a task to identify an alternative and plan this out. Possible obvious alternatives include:

⚫️ Remove mwbot
⚪️ Migrating to a different library without stale dependencies
⚪️ Making our own replacement
⚪️ (not needed?) Updating mwbot upstream

We identified that removal of mwbot was easiest.

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Remove mwbotrepos/data-engineering/test-kitchen!279dr0ptp4ktT395839-remove-mwbot-and-requests-libmain
Customize query in GitLab

Event Timeline

JVanderhoop-WMF renamed this task from Investigate alternatives for mwbot's use of the request library to [SPIKE] Investigate alternatives for mwbot's use of the request library.Sep 11 2025, 3:51 PM
JVanderhoop-WMF triaged this task as Medium priority.
JVanderhoop-WMF set the point value for this task to 1.

Test Platform is working on replacing mwbot in end-to-end (selenium) tests with an alternative: T405079: Stop using mwbot in Selenium tests.

Milimetric updated the task description. (Show Details)
Milimetric changed the point value for this task from 1 to 3.

FYI I removed mwbot from core in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1193892 and a couple of follow ups. We didn't use so much of the functionality so we rewrote what we needed using NodeJS Fetch.

FYI I removed mwbot from core in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1193892 and a couple of follow ups. We didn't use so much of the functionality so we rewrote what we needed using NodeJS Fetch.

Thanks! We realized we can delete the dependency now. That is a solid point about just keeping it simple with NodeJS Fetch.

Change #1217244 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[operations/deployment-charts@master] Test Kitchen UI: Deploying v1.1.4 release to staging

https://gerrit.wikimedia.org/r/1217244

Change #1217246 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[operations/deployment-charts@master] Test Kitchen UI: Deploying v1.1.4 release to staging Test Kitchen UI: Deploying v1.1.4 release to production

https://gerrit.wikimedia.org/r/1217246

Change #1217244 merged by jenkins-bot:

[operations/deployment-charts@master] Test Kitchen UI: Deploying v1.1.4 release to staging

https://gerrit.wikimedia.org/r/1217244

Change #1217246 merged by jenkins-bot:

[operations/deployment-charts@master] Test Kitchen UI: Deploying v1.1.4 release to production

https://gerrit.wikimedia.org/r/1217246