Page MenuHomePhabricator

purgeExpiredMentorStatus.php fails with in nawiki with error "Key <code>Mentors</code> is missing"
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

purgeExpiredMentorStatus.php is failing in nawiki because the GrowthMentors.json page was deleted

message
nawiki Key <code>Mentors</code> is missing
Impact

The script stops processing wikis at nawiki

Notes

This is a fallout from the changes in T347152

Acceptance Criteria:

  • Remove Growth Experiments from nawiki.
  • Create a subtask (research spike) on how to deal with this more holistically in the future

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
KStoller-WMF subscribed.

Change #1196877 had a related patch set uploaded (by Sergio Gimeno; author: Sergio Gimeno):

[mediawiki/extensions/GrowthExperiments@master] maintenance(purgeExpiredMentorStatus): dont bail out on wikis with invalid config

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

Change #1196877 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] maintenance(purgeExpiredMentorStatus): dont bail out on wikis with invalid config

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

Both nawiki and pihwiki which are locked belong to group0 so I will monitor the script run today once the wmf.24 is fully deployed and confirm that it's running correctly.

Mentioned in SAL (#wikimedia-operations) [2025-10-29T16:20:02Z] <sergi0> sgimeno@deploy2002:~$ mwscript-k8s --comment="T407366" --dblist="growthexperiments" --follow -- GrowthExperiments:purgeExpiredMentorStatus.php (T407366)

I run it manually and it finished correctly, tentatively resolving,