Page MenuHomePhabricator

Migrate JS and PHP client libraries to TestKitchen extension
Closed, ResolvedPublic5 Estimated Story Points

Description

Description

We recently agreed on, after doing T407810: Rename Client Libraries, we will migrate JS and PHP client libraries to the new TestKitchen extension that will replace MetricsPlatform at some point in the near future. We also discussed the right approach to address that work and we agreed on keep using EventLogging extension just as a lean EventGate client to simply send the event to the EventGate once it has been build and prepared using an EventFactory that will reside in TestKitchen codebase (like the one that was already created in T367034: TestKitchen Extension: Merge PHP MetricsPlatform client library where PHP client library was almost completely migrated.

We could say that, the goal here, is that JS and PHP client libraries will be merged to be part of the Test Kitchen SDK.

The above means that we will move most of the code that reside at this time in EventLogging but we will keep the one related to being able to send events for JS: ext.eventLogging/EventSubmmiter

We will also take the opportunity to remove ExternalMetricsClient and ExternalIntegration. Once client libraries are part of the Test Kitchen SDK which is part of TestKitchenextension, it doesn't make to provide support for non-wiki places

Acceptance criteria

Event Timeline

Sfaci updated the task description. (Show Details)

Change #1239675 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/TestKitchen@master] JS SDK: Merge MetricsPlatform Client library

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

Change #1239938 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/WikimediaEvents@master] pageVisitBotDetection: Instrument#isStreamInSample() -> #isInSample()

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

Change #1239940 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/Cite@master] ext.cite.track: Instrument#isEnabled() -> #isInSample()

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

Change #1240269 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/TestKitchen@master] JS SDK: Remove Instrument#isStreamInSample() and #isEnabled()

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

phuedx set the point value for this task to 5.Feb 18 2026, 1:03 PM

Change #1239675 merged by jenkins-bot:

[mediawiki/extensions/TestKitchen@master] JS SDK: Merge MetricsPlatform Client library

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

My fault! I moved the ticket while still reviewing the related patches.
Now all those ones are reviewed and merged

Change #1239940 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] ext.cite.track: Instrument#isEnabled() -> #isInSample()

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

Change #1239938 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] pageVisitBotDetection: Use new methods

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

Change #1240269 merged by jenkins-bot:

[mediawiki/extensions/TestKitchen@master] JS SDK: Remove Instrument#isStreamInSample() and #isEnabled()

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