In T401308 an ad-hoc experiment enrollment was introduced in order to log the experiment exposure metric from newcomers in our grafana dashboard. In order to do so the TestKitchen experiment manager initialization steps are replicated in GrowthExperiments' LocalUserCreated hook, see ExperimentXLabManager.php#48. This is bad because it makes the result of wgMetricsPlatformUserExperiments nondeterministic for other extensions depending on hook order execution. Also because it makes GrowthExperiments responsible for something it should not be at all.
This hack has to be removed but keeping the grafana dashboards is maybe desirable. In T410896: Expose Experiment Enrollment Sampling method TestKitchen exposes the notion of a Coordinator that could be suitable for this use-case.
Open questions
- How much are this charts used and how useful are they?
Acceptance criteria
- GrowthExperiments does not initialize TestKitchen's manager
- GrowthExperiments does not override TestKitchen's JS config vars
- [To clatrify] GrowthExperiments logs experiment exposure for newcomers to grafana
- Related test code is also removed