Page MenuHomePhabricator

mediawiki_web_ab_test_enrollment schema is logging users in the unsampled bucket
Closed, ResolvedPublic3 Estimated Story Points

Description

mediawiki_web_ab_test_enrollment logs users in the A/B test.

  • 30% of people should be in the control bucket
  • 30% of people should be in the stickyHeaderDisabled bucket
  • 30% of people should be in the stickyHeaderEnabled bucket
  • 10% of people should be in the unsampled bucket and not appear in the database.

However, in current data on test wikipedia we are seeing users in the unsampled bucket appear in the database (Hue query select * from mediawiki_web_ab_test_enrollment WHERE year = 2021 AND wiki = 'testwiki')

TODO

  • Don't log user in the unsampled bucket
  • Add validation to Vector to deal with bad config

Event Timeline

Debugged this in Slack with Clare. Looks like we need to add a conditional.

Change 746973 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/skins/Vector@master] Prevent A/B test enrollment hook from firing for unsampled

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

Change 746973 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Prevent A/B test enrollment hook from firing for unsampled

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

Change 747075 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/skins/Vector@wmf/1.38.0-wmf.12] Prevent A/B test enrollment hook from firing for unsampled

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

Change 747075 merged by jenkins-bot:

[mediawiki/skins/Vector@wmf/1.38.0-wmf.12] Prevent A/B test enrollment hook from firing for unsampled

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

Change 747197 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Validate the value of VectorWebABTestEnrollment

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

Mentioned in SAL (#wikimedia-operations) [2021-12-14T19:53:00Z] <urbanecm@deploy1002> Synchronized php-1.38.0-wmf.12/skins/Vector/resources/skins.vector.es6/AB.js: 62e84e7467c1765986cd1f80b466b8cacc6d91f6: Prevent A/B test enrollment hook from firing for unsampled (T297662) (duration: 00m 56s)

Change 747197 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Validate the value of VectorWebABTestEnrollment

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

This one can skip QA and be resolved as there are no fatals on the beta cluster and T292587#7571287