Make it possible to change the max client version in a rollout that is already running

Open
#17,984 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by tracing how Experimenter stores and applies a rollout's client version limits, then check the relevant rollout form and API or backend validation. The issue gives no file or test names, so first locate those entry points and their tests. Done means an already running rollout can be capped at a chosen maximum version while continuing to target older clients.

Written by the indexing model from the issue text.

Description

There's a pattern we've established over the years where (if we've done it right), we'll roll out a feature to Nightly and Beta, and then do a rollout to Release. Once those rollouts are out there at 100%, we then land a pref flip or other client side change to hardcode the behaviour of the rollout, and then eventually end the rollout.

Unfortunately, sometimes it's not always easy to predict when the patch to hardcode the behaviour will land. This means that we typically leave the max client version as "Not set".

What this means then is that we have these long-standing rollouts sitting out there, matching most if not all clients, because the rollouts keep running but they really only matter to the clients that hadn't yet updated to the version that hardcoded the behaviour.

I think that at least in part contributes to us having multi-year rollouts running out there, because it's not always clear how big the population is that still needs to receive the rollout.

Take this rollout for example: https://experimenter.services.mozilla.com/nimbus/rollouts/unified-api-for-spocs-and-top-sites-controlled-rollout-for-release-133/

The pref flip to enable the UAPI went out in 137 here: https://bugzilla.mozilla.org/show_bug.cgi?id=1948311

So ideally, we'd be able to shut off the rollout for everybody on 137+, while keeping it enabled for everybody from release 133-136 inclusive.

But once a rollout is out there, we can't easily do this restriction. We can create a new rollout that targets that restricted population, and then end the older rollout... but it feels like it should be possible to just cap the max version after the fact for the rollout. That'd certainly be easier for us on the consumption side of Experimenter, though perhaps it opens other cans of worms I'm not considering.

┆Issue is synchronized with this Jira Task

Dominant language
Python
Stars
152
Forks
231
Avg merge
23h 54m
Merged PRs (30d)
201

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/experimenter

All issues in mozilla/experimenter

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.