Page MenuHomePhabricator

Image Browsing: Deploy the prototype to Beta
Closed, ResolvedPublic3 Estimated Story Points

Description

Checklist
  • Add the new extension submodule to the git mediawiki/extensions repo: see here
  • Move your extension's 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. See here.
  • Request security review for the ReaderExperiments extension. Tracked in T400703.
  • Add ReaderExperiments to the wmf-core list in the make-release tool settings file. MR for review here.
  • Add ReaderExperiments to extension-list (patch here – should be safe to merge after 9/29)
  • Add ReaderExperiments config variable to InitialiseSettings.php and set it to be default false (patch here)
  • Add ReaderExperiments config variable (same as in previous step) to InitialiseSettings-labs.php and set it to be true (patch here)
  • Load ReaderExperiments in CommonSettings-labs.php (patch here)
Acceptance Criteria
  • The ReaderExperiments codebase is deployed to Beta, regardless of security review status
  • The ImageBrowsing feature can be viewed and interacted with on Beta (provided the URL feature flag is used and the user is on the mobile view)
  • The $wgReaderExperimentsShowImageBrowsing config variable should not be set in Beta, because we want to hide our feature behind a URL feature flag here. In order to actually see the ImageBrowsing UI on a page, the ?imageBrowsing=true URL param must be provided.

Event Timeline

ovasileva set the point value for this task to 3.Sep 15 2025, 4:40 PM

I will update this (probably tomorrow) but in the mean time this task is a good example that could be adapted: https://phabricator.wikimedia.org/T369945#9999622

Most other necessary information can be found here: https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment#Deploy_to_Beta_Cluster.

@egardner thanks for sharing the link!

Most other necessary information can be found here: https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment#Deploy_to_Beta_Cluster

Steps 1 and 2 are already complete:

Before we proceed to step 3, which ensures the extension is automatically branched by make-wmf-branch, we'll need clarity about the security review requirements. As per the preparing for deployment section:

IMPORTANT: Not receiving a satisfactory security readiness review is a blocker for this step.
IMPORTANT: Do this early! Ideally, at least three weeks prior to your target deployment date, to ensure that your extension is present as a submodule in the required branches. (The extension submodule must be present in all branches currently running on the cluster, or the localization cache builder will fail.)

@lwatson there are some conflicting pieces of information on that page. I think I'm going to go by the list in this section: https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment#Deploy_to_Beta_Cluster

I also see this text in the "Preparing for Deployment" section just above:

Request deployment to the Beta Cluster. See #Deploy to Beta Cluster below for more information. While it is strongly recommended to have a security readiness review performed prior to beta cluster deployment, the timing of various project milestones and the nature of the project itself may not accommodate this. In this case, it is best to discuss any proposed beta cluster deployments with the Security Team outside of any requested reviews. Having a proper, long-term maintenance plan for the code base that does not rely on individual volunteers has often been a blocker for passing the application security review.[2]

Change #1189281 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[operations/mediawiki-config@master] Add ReaderExperiments extension

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

Change #1189288 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[operations/mediawiki-config@master] Deploy ReaderExperiments to Beta cluster

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

Change #1189293 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[operations/mediawiki-config@master] Enable ReaderExperiments on Beta

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

Change #1189294 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[operations/mediawiki-config@master] Load ReaderExperiments extension in CommonSettings-labs.php

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

I've created a series of patches which are held up by a gate patch that is -2ed until 9/29 (2 train cycles after the initial merger of the Gitlab MR in the make-release tool).

Next steps:

On Tuesday 9/23:

  • Verify that a branch named wmf/1.45.0-wmf.20 was created in the ReaderExperiments repo
  • Verify that the branch wmf/1.45-wmf.20 in MW Core includes a submodule for ReaderExperiments (should be able to browse in GitHub to see this)

@lwatson thanks, that looks correct to me! I think we can start merging these patches now (there is a series ready to go linked to this task).

@egardner +1 all patches. I don't have +2 rights in those repos

Change #1189281 merged by jenkins-bot:

[operations/mediawiki-config@master] Add ReaderExperiments extension

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

Change #1189288 merged by jenkins-bot:

[operations/mediawiki-config@master] Deploy ReaderExperiments to Beta cluster

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

Change #1189293 merged by jenkins-bot:

[operations/mediawiki-config@master] Enable ReaderExperiments on Beta

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

Change #1189294 merged by jenkins-bot:

[operations/mediawiki-config@master] Load ReaderExperiments extension in CommonSettings-labs.php

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

Mentioned in SAL (#wikimedia-operations) [2025-10-01T22:12:02Z] <bvibber@deploy2002> Started scap sync-world: Backport for [[gerrit:1189281|Add ReaderExperiments extension (T404398)]], [[gerrit:1189288|Deploy ReaderExperiments to Beta cluster (T404398)]], [[gerrit:1189293|Enable ReaderExperiments on Beta (T404398)]], [[gerrit:1189294|Load ReaderExperiments extension in CommonSettings-labs.php (T404398)]]

Mentioned in SAL (#wikimedia-operations) [2025-10-01T22:39:42Z] <bvibber@deploy2002> egardner, bvibber: Backport for [[gerrit:1189281|Add ReaderExperiments extension (T404398)]], [[gerrit:1189288|Deploy ReaderExperiments to Beta cluster (T404398)]], [[gerrit:1189293|Enable ReaderExperiments on Beta (T404398)]], [[gerrit:1189294|Load ReaderExperiments extension in CommonSettings-labs.php (T404398)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes

Mentioned in SAL (#wikimedia-operations) [2025-10-01T22:52:35Z] <bvibber@deploy2002> Finished scap sync-world: Backport for [[gerrit:1189281|Add ReaderExperiments extension (T404398)]], [[gerrit:1189288|Deploy ReaderExperiments to Beta cluster (T404398)]], [[gerrit:1189293|Enable ReaderExperiments on Beta (T404398)]], [[gerrit:1189294|Load ReaderExperiments extension in CommonSettings-labs.php (T404398)]] (duration: 40m 32s)