Page MenuHomePhabricator

FY 24-25 SDS 2.4.9 CDN Synthetic Beacon: Route experiment-oriented MediaWiki JavaScript-based events conditionally
Closed, ResolvedPublic5 Estimated Story Points

Description

When a browser-based JavaScript event from a MediaWiki desktop/mobile webpage is oriented around an experiment, route it to the v2/beacon endpoint on the same domain as the webpage.

Probable changes:

Event Timeline

Milimetric set the point value for this task to 5.Apr 15 2025, 3:46 PM
dr0ptp4kt renamed this task from FY 24-25 SDS 2.4 Route experiment-oriented MediaWiki JavaScript-based events conditionally to FY 24-25 SDS 2.4.9 CDN Synthetic Beacon: Route experiment-oriented MediaWiki JavaScript-based events conditionally.Apr 17 2025, 6:47 PM

Additional patches up at https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MetricsPlatform/+/1138120 and https://gerrit.wikimedia.org/r/c/mediawiki/extensions/EventLogging/+/1138106 , although @phuedx and I are thinking upon if we want to provide somewhat different mechanics to future-proof ourselves (or not).

Sam is going to pick this up from here - I will focus on the security and EventGate-side tasks.

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

[mediawiki/extensions/MetricsPlatform@master] mw.xLab: Experiment: Bump schema ID to 1.4.2

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

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

[mediawiki/extensions/EventLogging@master] Update metrics-platform to facfb0e71227

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

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

[mediawiki/extensions/EventLogging@master] ext.eventLogging: Extract ext.eventLogging.metricsClient module

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

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

[mediawiki/extensions/MetricsPlatform@master] tests: Simplify and organize mw.xLab.getExperiment() tests

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

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

[mediawiki/extensions/MetricsPlatform@master] ext.xLab: Send events to a different event intake service URL

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

@dr0ptp4kt and @cjming are going to take a look

Note: there are multiple patches to review

Change #1146035 merged by jenkins-bot:

[mediawiki/extensions/MetricsPlatform@master] tests: Simplify and organize mw.xLab.getExperiment() tests

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

Change #1146036 merged by jenkins-bot:

[mediawiki/extensions/MetricsPlatform@master] ext.xLab: Experiment: Bump schema ID to 1.4.2

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

phuedx raised the priority of this task from Medium to High.May 22 2025, 3:14 PM

Change #1146574 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@master] Update metrics-platform to db53b6a9

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

Change #1146575 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@master] ext.eventLogging: Extract ext.eventLogging.metricsPlatform module

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

Change #1146582 merged by jenkins-bot:

[mediawiki/extensions/MetricsPlatform@master] ext.xLab: Send events to a different event intake service URL

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

Moving this back to In Progress as there's a stream config that needs to be delivered with the xLab JS SDK.

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

[mediawiki/extensions/MetricsPlatform@master] ext.xLab: Send limited copies of stream configs

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

Change #1151189 merged by jenkins-bot:

[mediawiki/extensions/MetricsPlatform@master] ext.xLab: Send limited copies of stream configs

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

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

[mediawiki/extensions/MetricsPlatform@wmf/1.45.0-wmf.3] ext.xLab: Send limited copies of stream configs

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

Change #1152779 merged by jenkins-bot:

[mediawiki/extensions/MetricsPlatform@wmf/1.45.0-wmf.3] ext.xLab: Send limited copies of stream configs

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

Mentioned in SAL (#wikimedia-operations) [2025-06-02T20:07:45Z] <cjming@deploy1003> Started scap sync-world: Backport for [[gerrit:1152779|ext.xLab: Send limited copies of stream configs (T391988)]]

Mentioned in SAL (#wikimedia-operations) [2025-06-02T20:10:02Z] <cjming@deploy1003> cjming, phuedx: Backport for [[gerrit:1152779|ext.xLab: Send limited copies of stream configs (T391988)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-06-02T20:23:37Z] <cjming@deploy1003> Finished scap sync-world: Backport for [[gerrit:1152779|ext.xLab: Send limited copies of stream configs (T391988)]] (duration: 15m 51s)