Page MenuHomePhabricator

Run a logged-in synthetic A/A test using the PHP SDK
Closed, ResolvedPublic3 Estimated Story Points

Description

Background

The Experiment Platform team have verified that the Experimentation Platform is capable of running a test on all visitors using the JS SDK (see T392313: [Epic] SDS 2.4.11 Run a Synthetic A/A Experiment and most recent update to Hypothesis SDS2.4.11 Synthetic A/A experiment / e2e testing of edge uniques for data collection in Asana). We would like to verify that it is capable of running a synthetic A/A test on logged-in visitors only using the PHP SDK.

To do this we will duplicate and tweak the experiment configuration for T395342: Configure synthetic A/A experiment in xLab:

DetailConfiguration
Traffic allocationEnglish Wikipedia, 25%
Identifier typemw-user
Duration14 days
Experiment name (machine-readable name)"Logged-in Synthetic A/A Test (PHP SDK)" (synth-aa-test-mw-php)
Treatment group name (machine-readable name)"Control 2" (control-2) "No changes for subjects in this group."
InstrumentationPageVisit, producing action: "page-visited" events server-side
Metrics"Page visits", "Page visits per hour"
NOTE: The PageVisit experiment/instrument will have to be implemented using the PHP SDK.

AC

Event Timeline

Milimetric moved this task from Incoming to READY TO GROOM on the Test Kitchen board.
Milimetric set the point value for this task to 3.Jul 1 2025, 3:22 PM
Milimetric moved this task from READY TO GROOM to Backlog on the Test Kitchen board.

Change #1178527 had a related patch set uploaded (by Santiago Faci; author: Santiago Faci):

[mediawiki/extensions/WikimediaEvents@master] XLab/PageVisitsInstrument.php: Add xLab PageVisit instrument implemented using the xLab PHP SDK

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

Change #1178541 had a related patch set uploaded (by Santiago Faci; author: Santiago Faci):

[integration/config@master] Zuul: [mediawiki/extensions/WikimediaEvents]: Updated CI dependencies

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

Not sure if this matters, but FYI: user-agent will always be collected for PHP submitted events.
See: T385180: Implement agent.ua_string as contextual attribute

Not sure if this matters, but FYI: user-agent will always be collected for PHP submitted events.
See: T385180: Implement agent.ua_string as contextual attribute

Thank you @Ottomata for letting us know!.
Although I would say it's not relevant here because we only want to test the SDK for experiments, taking a look at that ticket I have realized it could be relevant for T401384: FY25-26 SDS2.1.5 User Experience - Attribute Selection. In fact, we were already considering to work on T397467: xLab: Allow users to toggle user agent collection by an instrument as part of that hypothesis, which seems to be like a similar ticket with a "neutral" approach for the same thing.

Change #1178541 merged by jenkins-bot:

[integration/config@master] Zuul: add MetricsPlatform as Phan dependency for WikimediaEvents

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

Once the related zuul change is merged (it was needed to add MetricsPlatform as a phan dependency for WikimediaEvents, the PageVisit instrument developed using the PHP SDK is ready for review: https://gerrit.wikimedia.org/r/1178527

Change #1178527 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] Add xLab PageVisit instrument implemented using the xLab PHP SDK

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

Change #1199293 had a related patch set uploaded (by Santiago Faci; author: Santiago Faci):

[mediawiki/extensions/EventLogging@master] Metrics Platform PHP client library: set performer_registration_dt as null when the user is anon

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