Page MenuHomePhabricator

Add "php 7.4" option to the Wikimedia Debug extension
Closed, ResolvedPublic

Description

We need to add an option to the interface of the extension to allow selecting php 7.4 - a radio button would be ok.

Then we need to work on the backend, basically adding to modules/profile/files/trafficserver/x-wikimedia-debug-routing.lua some lines to add PHP_ENGINE=7.4 to the cookies in the request if we find the relevant string.

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
Resolved toan
ResolvedLucas_Werkmeister_WMDE
ResolvedJoe
ResolvedJdforrester-WMF
ResolvedLadsgroup
InvalidNone
ResolvedReedy
OpenNone
Resolvedtstarling
ResolvedJdforrester-WMF
ResolvedPRODUCTION ERRORLegoktm
Resolvedtstarling
ResolvedJoe
ResolvedMainframe98

Event Timeline

Change 812444 had a related patch set uploaded (by Mainframe98; author: Mainframe98):

[performance/WikimediaDebug@master] Add switch for serving content via PHP 7.4

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

I'd appreciate another pair of eyes on the patch I uploaded. I cannot get the debug header to actually contain anything but the debug host; none of the other options such as readonly have any effect. This was already like this in 2.4.6, so it's not something I did.

Instructions on how to test it are in the readme.

I cannot get the debug header to actually contain anything but the debug host; none of the other options such as readonly have any effect. This was already like this in 2.4.6, so it's not something I did. […]

I've checked the other three, and those appear to work fine, e.g. inline profile, XHGui, and Verbose log. There appears to be something funky with the readonly option indeed.

capture2.png (406×848 px, 74 KB)
capture1.png (455×907 px, 111 KB)

Change 812444 merged by jenkins-bot:

[performance/WikimediaDebug@master] Add switch for serving content via PHP 7.4

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

Change 816230 had a related patch set uploaded (by Krinkle; author: Krinkle):

[performance/WikimediaDebug@master] popup: Let options continue to render under the main toggle

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

Change 816230 merged by jenkins-bot:

[performance/WikimediaDebug@master] popup: Let options continue to render under the main toggle

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

Change 816233 had a related patch set uploaded (by Krinkle; author: Krinkle):

[performance/WikimediaDebug@master] Add missing reset for php74

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

Change 816233 merged by jenkins-bot:

[performance/WikimediaDebug@master] Add missing reset for php74

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

Hi! When do you think we can make a release of the extension? What will be sent over the wire?

Hi! When do you think we can make a release of the extension? What will be sent over the wire?

Submitted to web stores yesterday (T314108) and is live now. It sets a php74 attribute, similar to other XWD attributes. E.g.

X-Wikimedia-Debug; backend=; php74
X-Wikimedia-Debug: backend=mwdebug1001.eqiad.wmnet; php74
X-Wikimedia-Debug: backend=mwdebug1001.eqiad.wmnet; log; php74; querysort

Change 819510 had a related patch set uploaded (by Giuseppe Lavagetto; author: Giuseppe Lavagetto):

[operations/puppet@production] trafficserver: allow x-wikimedia-debug to pick a php backend

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

Change 819510 merged by Giuseppe Lavagetto:

[operations/puppet@production] trafficserver: allow x-wikimedia-debug to pick a php backend

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

Change 836924 had a related patch set uploaded (by Krinkle; author: Krinkle):

[performance/WikimediaDebug@master] Remove temporary "php74" option

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

Change 836924 merged by jenkins-bot:

[performance/WikimediaDebug@master] Remove temporary "php74" option

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