Background
Create the Metrics Platform MediaWiki extension T360737
https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment
Description
Deploy the Metrics Platform extension
Checklist
- Set up gerrit repo
- Set up Phabricator project T372368
- Create the Extension:MetricsPlatform documentation page
- Create the Help:Extension:MetricsPlatform help page
- Add to Developers/Maintainers
Preparing for deployment
Per https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment#Preparing_for_deployment
- Create a deployment tracking task - checklist recursion!
- Deploy to Beta Cluster T366460
- Add the MetricsPlatform submodule to the git mediawiki/extensions repo
- Move MetricsPlatform CI config to the "Wikimedia production" section, add the "in-wikimedia-production" job template, and make sure it has and passes all the expected jobs for production code. (https://gerrit.wikimedia.org/r/c/integration/config/+/1039654)
- Add MetricsPlatform to the json make-wmf-branch release tool (releng/release/-/merge_requests/82).
- Add MetricsPlatform to extension-list. This requires that the code be present on every branch running in production, since extension-list is used to build the CDB database for i18n files in both Beta and production. (https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/1046710)
- Add $wmgMetricsPlatformEnable config variable to InitialiseSettings.php and set it to be default false. (https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/1046732)
- Add $wmgMetricsPlatformEnable config variable (same as in previous step) to InitialiseSettings-labs.php and set it to be true on Beta Cluster wikis we want it to be on. Turn it off for loginwiki (which doesn't have most extensions). (https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/1046732)
- Load MetricsPlatform in CommonSettings-labs.php.
- Passed reviews:
- Deploy on testwiki
- Make sure extension is automatically branched by make-wmf-branch
- Write config patches
- Request a dedicated deployment window
- Schedule the config patches for deployment
- Deploy to production wikis
Targets
The extension should be enabled on testwiki only for now.
