Page MenuHomePhabricator

Configure new streams for the mobile search A/B test
Closed, ResolvedPublic3 Estimated Story Points

Description

Description:
We need to create 2 new streams to validate events generated by the session tick mixin and click tracking. We can use the existing product web base schema, which has the right data shape for what we need.

This is instructions on how to configure a new stream.
https://wikitech.wikimedia.org/wiki/Metrics_Platform/Stream_configuration

The new streams will be called:
'product_metrics.web_base.search_ab_test_session_ticks',
'product_metrics.web_base.search_ab_test_clicks',

User Story
As an engineer working on event instrumentation, I need a well-defined schema and stream to validate session tick mixin events, so that event data is reliable and adheres to expected standards.

Requirements
This stream has the right shape for all the ab test click and session tick events

  • after the stream is configured it should show up in Hive

Acceptance Criteria
Stream is configured and validated .

Communication Criteria

Rollback Plan
If issues arise, revert instrumentation changes to the previous state, and disable schema validation temporarily until resolved.

Details

Event Timeline

Jdrewniak renamed this task from Create/Update Schema for Validating Events from Session Tick Mixin to Create/Update schema for mobile search A/B test .Nov 26 2024, 9:46 PM
Jdrewniak triaged this task as High priority.
Jdrewniak moved this task from Incoming to Sprint Backlog on the Web-Team board.
bwang changed the task status from Open to In Progress.Nov 27 2024, 5:17 PM

After consulting with Metrics Platform regarding the schema, based on the following specification, it looks like we should be able to use the analytics/product_metrics/web/base schema for this experiment. The ui actions can be sent to the action property and session id has an equivalent session_id field.

The test buckets (test & control) can be sent to the experiments fragment which has a assigned property, and the name of the experiment can be logged to the enrolled property.

The search_session_id can be logged as the action_context of each UI action.

Jdlrobson renamed this task from Create/Update schema for mobile search A/B test to Create/Update SessionTick schema for mobile search A/B test .Dec 4 2024, 5:53 PM
bwang subscribed.

My recommendation is to close this ticket, given we can just use the existing analytics/product_metrics/web/base schema. I think we should have this work encompassed in https://phabricator.wikimedia.org/T381604

Jdlrobson changed the task status from Open to In Progress.Jan 10 2025, 1:06 AM
Jdlrobson assigned this task to bwang.
bwang renamed this task from Create/Update SessionTick schema for mobile search A/B test to Create a new stream for the mobile search A/B test .Jan 13 2025, 5:37 PM
bwang updated the task description. (Show Details)
bwang renamed this task from Create a new stream for the mobile search A/B test to Configure new stream for the mobile search A/B test .Jan 13 2025, 7:17 PM
Jdlrobson set the point value for this task to 3.Jan 14 2025, 5:23 PM
Jdlrobson subscribed.

Will require a backport and might require coordination with data engineering.

A patch will be up shortly and we will review and deploy it in the web team window.

Change #1112074 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[operations/mediawiki-config@master] Configure streams for web empty search AB test

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

bwang renamed this task from Configure new stream for the mobile search A/B test to Configure new streams for the mobile search A/B test .Jan 16 2025, 7:46 PM
bwang updated the task description. (Show Details)

Change #1112074 merged by jenkins-bot:

[operations/mediawiki-config@master] Configure streams for web empty search AB test

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

Mentioned in SAL (#wikimedia-operations) [2025-01-16T22:28:43Z] <toyofuku@deploy2002> Started scap sync-world: Backport for [[gerrit:1112074|Configure streams for web empty search AB test (T380926)]]

Mentioned in SAL (#wikimedia-operations) [2025-01-16T22:33:24Z] <toyofuku@deploy2002> bwang, toyofuku: Backport for [[gerrit:1112074|Configure streams for web empty search AB test (T380926)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-01-16T22:45:31Z] <toyofuku@deploy2002> Finished scap sync-world: Backport for [[gerrit:1112074|Configure streams for web empty search AB test (T380926)]] (duration: 16m 47s)

The work here should be done, but can't be signed off until T383358 is complete.

bwang removed jwang as the assignee of this task.