Page MenuHomePhabricator

Figure out missing GrowthExperiments db tables on new wikis
Closed, ResolvedPublicSpike

Description

In T414474: growthexperiments_mentor_mentee.gemm_mentee_is_active is not present on some Wikipedias, a sometimes missing column gemm_mentee_is_active was added to the table growthexperiments_mentor_mentee on some wikis. However, it was noticed there that the growthexperiments_mentor_mentee table is entirely missing on some wikis.

Why?

One example:

  • sylwiki, created in February 2025, did not have that table growthexperiments_mentor_mentee at all. Why is that? In the "old" addWiki.php script this table was explicitly defined as to be created, at least during May 2024 when that code was modified for T364308.
    • do we no longer add the tables in new wikis for extensions that are not yet enabled?
    • does sylwiki have any of the other GrowthExperiments tables?

I notice that the addWiki.php script has changed a lot. Particularly T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core and the related Convert addWiki.php to a wrapper around core installPreConfigured.php might have affected this part of the behavior of that script?

Note:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
KStoller-WMF moved this task from Product Backlog to Needs Estimation on the Growth-Team board.
KStoller-WMF added a subscriber: Urbanecm_WMF.
Urbanecm_WMF claimed this task.

This happened, because the schema change task used growthexperiments.dblist as the list of wikis to perform the change on. Unfortunately, that dblist has wikis where GrowthExperiments is _enabled_ (which is a subset of the wikis where growthexperiments tables exist).

There are two possible fixes. Either we drop the tables on wikis where the features do not exist (requires DBA intervention), or we enable the features. I decided to go for the latter, and filled T417019: Enable GrowthExperiments on all wikis where growthexperiments tables exist to perform that action. With regards to this spike, it can be closed.