=== Background
We recently [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MetricsPlatform/+/1172066 | refactored instrument configs fetching to make updating configs asynchronous ]] which is riding the train this week.
Also this week, Moderator Tools is running a [[ https://mpic.wikimedia.org/read/fy24-25-we-1-7-rc-grouping-toggle | logged-in experiment that is scheduled to start 8/6/25 ]].
===Description
There are a few steps we need to sequence in order to make sure events are not dropped for our partner product team as we transition from the previous method of instrument configs fetching to the asynchronous new way.
Here are a few things to keep in mind as we make a rollout plan:
- The wikis in the Moderator Tools experiment are all group2 wikis - the [[ https://wikitech.wikimedia.org/wiki/Deployments#deploycal-item-20250807T1800 | train cut for this group ]] is 8/7/25 UTC 18:00
- The [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MetricsPlatform/+/1172066 | asynchronous instrument configs fetching patch ]] was merged on 7/30 and will ride the train this week - it will roll out to group2 wikis on 8/7/25 UTC 18:00
- The [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MetricsPlatform/+/1172066 | asynchronous instrument configs fetching patch ]] requires a [[ https://gerrit.wikimedia.org/r/c/operations/puppet/+/1171205 | puppet change to be deployed that runs a periodic maintenance script to update configs ]]
- The puppet change needs to be [[ https://wikitech.wikimedia.org/wiki/Puppet_request_window#How_to_get_a_patch_in_a_Puppet_request_window | deployed by an SRE ]] << and this [[ https://wikitech.wikimedia.org/wiki/Puppet_request_window#How_to_get_a_patch_in_a_Puppet_request_window | deployment needs to be scheduled ]]
- In order to not have data loss for the Moderator Tools experiment, we need to deploy a config patch to include the group2 wikis in `$wgMetricsPlatformEnableStreamConfigsFetching`and `$wgMetricsPlatformEnableExperimentConfigsFetching`
- `$wgMetricsPlatformEnableExperimentConfigsFetching` for the current (old) way of configs fetching which will go out to prod 8/6 before the asynchronous patch goes to group2 on 8/7
- `$wgMetricsPlatformEnableStreamConfigsFetching` for the old way and for the asynchronous patch which goes on to prod on 8/7 and for that weird liminal period before we get the puppet change deployed
- As a last resort, inquire with Moderator Tools to see if we can punt the start date to 8/11/25
Rollout Plan:
[] Deploy a config patch to include `fy24-25-we-1-7-rc-grouping-toggle` wikis in `$wgMetricsPlatformEnableStreamConfigsFetching` and `$wgMetricsPlatformEnableExperimentConfigsFetching` - schedule this for 8/6/25
[] Deploy the [[ https://gerrit.wikimedia.org/r/c/operations/puppet/+/1171205 | puppet patch ]] after the [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MetricsPlatform/+/1172066 | asynchronous instrument configs fetching patch ]] is on production i.e. after 8/7/25 UTC 18:00
[] After verifying that data collection is still working, remove the unnecessary config vars.
In theory, there should not be data loss for the Moderator Tools logged-in experiment based on reviewing the code path for updating configs as long as the correct config vars are in production.