Page MenuHomePhabricator

Use PHP 8.3 in MediaWiki-Docker
Closed, ResolvedPublic

Description

MediaWiki-Docker uses an image based on buster and PHP 8.1. Considering that:

  • The image has been broken for months due to buster being EOL (T362702)
  • Production is moving to PHP 8.1 reeeeal soon (T319432)
  • The next PHP target for production is PHP 8.3: T360995

I am proposing that MediaWiki-Docker be updated to use a new image based on PHP 8.3 (and not-EOL Debian, possibly Bookworm). This would allow us to keep development ahead of production and catch incompatibilities earlier.

Related Objects

Event Timeline

Change #1101594 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/core@master] docker: Switch to Debian Bookworm and PHP 8.3

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

Change #1101594 merged by jenkins-bot:

[mediawiki/core@master] docker: Switch to Debian Bookworm and PHP 8.3

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

I've tested this again, including my custom dockerfiles, and it's looking great! I said this already, but the environment feels much faster now. Selenium tests seem to confirm this, with a -20% total time on the CampaignEvents extension, and similarly for core.

Change #1105795 had a related patch set uploaded (by Jforrester; author: Daimona Eaytoy):

[mediawiki/core@REL1_43] docker: Switch to Debian Bookworm and PHP 8.3

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

Change #1105795 merged by jenkins-bot:

[mediawiki/core@REL1_43] docker: Switch to Debian Bookworm and PHP 8.3

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

I've tested this again, including my custom dockerfiles, and it's looking great! I said this already, but the environment feels much faster now. Selenium tests seem to confirm this, with a -20% total time on the CampaignEvents extension, and similarly for core.

FTR: This caused T382709: Since the update to bookworm, unable to start mediawiki-web on my M2 Mac.

Change #1108790 had a related patch set uploaded (by Jforrester; author: Daimona Eaytoy):

[mediawiki/core@REL1_42] docker: Switch to Debian Bookworm and PHP 8.3

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

Change #1108791 had a related patch set uploaded (by Jforrester; author: Daimona Eaytoy):

[mediawiki/core@REL1_39] docker: Switch to Debian Bookworm and PHP 8.3

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

Change #1108791 abandoned by Jforrester:

[mediawiki/core@REL1_39] docker: Switch to Debian Bookworm and PHP 8.3

Reason:

We don't actually try for 8.2/8.3 on REL1_39, I believe.

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

Change #1108790 merged by jenkins-bot:

[mediawiki/core@REL1_42] docker: Switch to Debian Bookworm and PHP 8.3

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