Closed Bug 1540379 Opened 6 years ago Closed 6 years ago

Redirect obsolete locales in Firefox Nightly 68 via update snippets

Categories

(Release Engineering :: Release Requests, enhancement, P1)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: flod, Assigned: sfraser)

References

Details

(Whiteboard: [releaseduty])

We have two set of changes happening in 68.

The following locales are being removed from builds: as, bn-BD, bn-IN, en-ZA, mai, ml, or.

Nightly builds have already stopped. We're also removing them from Beta, but the change to stop building will ride the trains with 68.

bn-BD, bn-IN users need to be redirected to bn. That's a new locale that we're adding in 68, so the redirect can only happen one channel at a time (i.e. we won't have builds on Beta until 68 moves there).

as, en-ZA, mai, ml, or need to be redirect to en-GB. Technically we could do all channels now, but we're still making builds for them, so people could still download them.

I thought it could make sense to group all locales in one bug, and file one bug for each distribution channel (aurora, beta, release, esr). If there's a better process for RelEng, please let me know.

Query to track usage on Nightly: https://sql.telemetry.mozilla.org/queries/62110#159682

NI per IRC conversation of the other day.

Flags: needinfo?(jlund)

@sfraser - is this something you can look at during your releaseduty cycle? We will need to tweak the channel rules as 68 rides trains. Callek may be a good contact if you need help.

The idea to have separate bugs for each channel is probably a good idea to make sure we are always ahead.

Assignee: nobody → sfraser
Flags: needinfo?(jlund) → needinfo?(sfraser)
Priority: -- → P1
Whiteboard: [releaseduty]
Summary: Redirect obsolete locales in Firefox 68 via update snippets → Redirect obsolete locales in Firefox Nightly 68 via update snippets

(In reply to Francesco Lodolo [:flod] from comment #0)

We have two set of changes happening in 68.

The following locales are being removed from builds: as, bn-BD, bn-IN, en-ZA, mai, ml, or.

Nightly builds have already stopped. We're also removing them from Beta, but the change to stop building will ride the trains with 68.

This does mean that nightly users for those locales are currently not receiving updates.

bn-BD, bn-IN users need to be redirected to bn. That's a new locale that we're adding in 68, so the redirect can only happen one channel at a time (i.e. we won't have builds on Beta until 68 moves there).

as, en-ZA, mai, ml, or need to be redirect to en-GB. Technically we could do all channels now, but we're still making builds for them, so people could still download them.

I'll ask around for advice as I'm not sure we have a method to replace a locale in this way

Flags: needinfo?(sfraser)

(In reply to Simon Fraser [:sfraser] ⌚️GMT from comment #3)

(In reply to Francesco Lodolo [:flod] from comment #0)

We have two set of changes happening in 68.

The following locales are being removed from builds: as, bn-BD, bn-IN, en-ZA, mai, ml, or.

Nightly builds have already stopped. We're also removing them from Beta, but the change to stop building will ride the trains with 68.

This does mean that nightly users for those locales are currently not receiving updates.

It does. We're talking about very small numbers though, or no users at all in some cases.

I've taken yesterday's nightly, build ID 20190404215521, and made two new release blobs. One is for the bn redirections, and the other for en-GB redirections.

I used:

$ gron Firefox-mozilla-central-nightly-20190404215521.json | grep '.bn.' | grep -v partials | gron --ungron > filter.json
$ cat rewrite.py

import json
import sys

data = json.load(open(sys.argv[1]))
for platform in data['platforms']:
    if 'locales' not in data['platforms'][platform]:
        continue
    locale_data = data['platforms'][platform]['locales']['en-GB']
    for dest in ['as', 'en-ZA', 'mai', 'ml']:
        data['platforms'][platform]['locales'][dest] = locale_data
    del data['platforms'][platform]['locales']['en-GB']

with open('out_{}'.format(sys.argv[1]), 'w') as f:
    json.dump(data, f, indent=4)

Ran the script, reinserted the hashFunction, name and schema_version, then uploaded the blogs as:

Firefox-mozilla-central-nightly-20190404215521-en_gb
Firefox-mozilla-central-nightly-20190404215521-bn

Also created two new rules on the Firefox,Nightly channel to catch buildid <20190404215521 on those locales and redirect them to these blobs.

Could we remove those locales from the Firefox-mozilla-central-nightly-latest blob now? And maybe close out this bug?

Flags: needinfo?(sfraser)

Depends on the uptake - flod?

Flags: needinfo?(sfraser) → needinfo?(francesco.lodolo)

I've just updated the query, and it looks like most of the users have moved away from these locales.

Flags: needinfo?(francesco.lodolo)

Great, thanks - I'll remove the rules.

I've updated the latest blob (not the release rules, sorry for the confusion)

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.