Page MenuHomePhabricator

Configure the WikimediaEvents extension for the PHP 8.3 migration
Closed, ResolvedPublic

Description

In advance of the PHP 8.3 migration, we'll need to configure the WikimediaEvents extension (see phpEngine.js) to set the PHP_ENGINE=8.3 Cookie value based on the desired (initially zero) consistent enrollment fraction.

This is a fairly straightforward mediawiki-config change to set WMENewPHPVersion and WMENewPHPSamplingRate, similar to https://gerrit.wikimedia.org/r/1080388 during the 8.1 migration.

Event Timeline

Change #1184935 had a related patch set uploaded (by Scott French; author: Scott French):

[operations/mediawiki-config@master] Configure cookie-based enrollment in PHP 8.3

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

Scott_French changed the task status from Open to In Progress.Sep 11 2025, 7:13 PM
Scott_French triaged this task as Medium priority.

Change #1184935 merged by jenkins-bot:

[operations/mediawiki-config@master] Configure cookie-based enrollment in PHP 8.3

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

Mentioned in SAL (#wikimedia-operations) [2025-09-11T21:39:18Z] <swfrench@deploy1003> Started scap sync-world: Backport for [[gerrit:1184935|Configure cookie-based enrollment in PHP 8.3 (T403657)]]

Mentioned in SAL (#wikimedia-operations) [2025-09-11T22:04:56Z] <swfrench@deploy1003> swfrench: Backport for [[gerrit:1184935|Configure cookie-based enrollment in PHP 8.3 (T403657)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-09-11T22:20:47Z] <swfrench@deploy1003> Finished scap sync-world: Backport for [[gerrit:1184935|Configure cookie-based enrollment in PHP 8.3 (T403657)]] (duration: 41m 28s)

The config change is now live, and I've verified that:

  • I do not erroneously receive the PHP_ENGINE enrollment cookie (sampling rate is zero).
  • If I manually set the PHP_ENGINE cookie, it is cleared by the extension javascript upon page load.
  • If I manually set the PHP_ENGINE and PHP_ENGINE_STICKY cookies, the cookie is not cleared by the extension javascript upon page load.