Closed Bug 1345619 Opened 8 years ago Closed 7 years ago

l10n-bumper for desktop repacks

Categories

(Release Engineering :: Release Automation: Other, enhancement, P2)

enhancement

Tracking

(firefox58 fixed)

RESOLVED FIXED
Tracking Status
firefox58 --- fixed

People

(Reporter: mozilla, Assigned: mozilla)

References

Details

Attachments

(9 files, 1 obsolete file)

(deleted), text/x-review-board-request
Callek
: review+
Details
(deleted), text/x-review-board-request
Callek
: review+
Details
(deleted), text/x-review-board-request
Callek
: review+
Details
(deleted), text/x-review-board-request
Callek
: review+
Details
(deleted), text/x-review-board-request
Callek
: review+
Details
(deleted), patch
Callek
: review+
Details | Diff | Splinter Review
(deleted), patch
Callek
: review+
Details | Diff | Splinter Review
(deleted), patch
RyanVM
: review+
Details | Diff | Splinter Review
(deleted), patch
Pike
: review+
Details | Diff | Splinter Review
As noted in bug 1345340, it would make sense to bump desktop l10n changesets as well. We can do two approaches: completeness / convergence ========================== - bump l10n-changesets.json for desktop (use all-locales + elmo revisions + a platform map for this) - change all desktop repacks + release automation to use l10n-changesets.json - change shipit to know about l10n-changesets.json pros: - same format as mobile - same/similar logic as mobile - one file to reference cons: - more work / things to break less short-term work ==================== - bump shipped-locales for desktop (use all-locales + elmo revisions, only do thi s on m-b?) - don't change logic in repacks or release automation opposite pros/cons from above
It's probably not too much extra work to bump both shipped-locales and an l10n-changesets.json file; that way we'd have a window of time to migrate everything to point to l10n-changesets.json.
Priority: -- → P2
... I think l10n bumper for desktop may Just Work in taskcluster. For our desktop nightly l10n [1], we're already passing in `locale=pa-IN:default locale=gd:default` to desktop, from here [2]. But if the locales file ends in .json, we use this logic [3], which hardcodes the `android` string, but we can change it to use `build_platform`. We already have `android-api-15` in the mobile l10n changesets file; we can update this to -16 if needed [4]. We specify the locales file here [5]. I think we: - add a browser/locales/l10n-changesets.json to each repo, then start bumping them - m-c will have `default` revisions; m-b will get the revisions from the dashboard like fennec - fix the mobile bumper to specify android-api-16 - fix the l10n logic to unhardcode the `android` string, and check for `build_platform` - change the nightly-l10n kind to point `default` at `browser/locales/l10n-changesets.json` [1] https://tools.taskcluster.net/groups/UdvyXhWmQ9SWGOQOLBK2yg/tasks/NjaS2FSXT5KGmrEr59LH6g/details [2] https://hg.mozilla.org/mozilla-central/file/tip/taskcluster/taskgraph/transforms/l10n.py#l153 [3] https://hg.mozilla.org/mozilla-central/file/tip/taskcluster/taskgraph/transforms/l10n.py#l142 [4] https://hg.mozilla.org/mozilla-central/file/tip/mobile/locales/l10n-changesets.json#l5 [5] https://hg.mozilla.org/mozilla-central/file/tip/taskcluster/ci/nightly-l10n/kind.yml#l31
I suppose that will need to be `android-api-16-nightly` as build_platform. Also, for posterity, the `tip` in the urls should be `f8dd3f21e434`.
Pike, do you have any concerns on your end with c#2?
Flags: needinfo?(l10n)
Ah, we also have to update https://dxr.mozilla.org/mozilla-central/source/build/sparse-profiles/taskgraph with browser/locales/l10n-changesets.json.
I think this should do it: https://github.com/escapewindow/gecko/commits/bumper When I diff the new task-graph against the clean task-graph (but with the sorting patch applied), the task graphs are identical. When I add revisions to browser/locales/l10n-changesets.json, the nightly task graph gets revisions applied. I just merged central->date and kicked off some nightlies as a baseline. I can land these commits on date and trigger new nightlies. Assuming we get this landed on central, we'll need a followup puppet patch to remove the aurora bumper and adjust the revisions of the central and beta bumpers.
When these patches land, we need a puppet patch to update/remove the various l10n-bumpers.
Keywords: leave-open
(In reply to Justin Wood (:Callek) from comment #4) > Pike, do you have any concerns on your end with c#2? I'm waiting on this before I review at the moment. It's my understanding that we're not yet blocked on this bugs reviews.
Sorry for the lag, we were deep down in a workweek, and I didn't dare to page this into memory. The only thing that I'd like to get a better understanding of is how we keep locales in Nightly or Beta? Another question that we'll ask some time late this year or early next year is wether we can ship updates to localizations on release and ESR. We'll be able to do so technically with cross-channel, and my guess is that it'll be easier from a release automation POV with bumper, too, but I'd like to ask explicitly. Any concerns on that in the light of this patch, just from a technical POV? This would be good technical information to have when we open this conversation up with release management.
Flags: needinfo?(l10n)
(In reply to Axel Hecht [:Pike] from comment #14) > Sorry for the lag, we were deep down in a workweek, and I didn't dare to > page this into memory. > > The only thing that I'd like to get a better understanding of is how we keep > locales in Nightly or Beta? With the bumper, Nightly for desktop uses all-locales, and specifies the revision as `default`. Beta for desktop uses shipped-locales and the l10n dashboard for its locale list and revisions. > Another question that we'll ask some time late this year or early next year > is wether we can ship updates to localizations on release and ESR. We'll be > able to do so technically with cross-channel, and my guess is that it'll be > easier from a release automation POV with bumper, too, but I'd like to ask > explicitly. Any concerns on that in the light of this patch, just from a > technical POV? This would be good technical information to have when we open > this conversation up with release management. Once this patch lands, it'll ride the trains, so unless we uplift it, it'll be >=Fx58 only. Once 58 reaches m-r, it'll be static, but anyone can write a patch to update l10n-changesets.json. If we foresee regular locale updates on m-r, we can run bumper there as well. The same is true for ESR59.
Attachment #8911877 - Flags: review?(bugspam.Callek) → review+
Comment on attachment 8911879 [details] bug 1345619 - land initial browser/locales/l10n-changesets.json. https://reviewboard.mozilla.org/r/183256/#review190560 ::: browser/locales/l10n-changesets.json:7 (Diff revision 1) > + "ach": { > + "platforms": [ > + "linux", > + "linux64", > + "macosx64", > + "win32", nit: line endings (whole file)?
Attachment #8911879 - Flags: review?(bugspam.Callek) → review+
Comment on attachment 8911880 [details] bug 1345619 - look for build_platform in l10n-changesets.json. https://reviewboard.mozilla.org/r/183258/#review190564
Attachment #8911880 - Flags: review?(bugspam.Callek) → review+
Attachment #8911881 - Flags: review?(bugspam.Callek) → review+
Comment on attachment 8911882 [details] bug 1345619 - point at browser/locales/l10n-changesets.json. https://reviewboard.mozilla.org/r/183262/#review190568
Attachment #8911882 - Flags: review?(bugspam.Callek) → review+
(In reply to Justin Wood (:Callek) from comment #17) > Comment on attachment 8911879 [details] > bug 1345619 - land initial browser/locales/l10n-changesets.json. > > https://reviewboard.mozilla.org/r/183256/#review190560 > > ::: browser/locales/l10n-changesets.json:7 > (Diff revision 1) > > + "ach": { > > + "platforms": [ > > + "linux", > > + "linux64", > > + "macosx64", > > + "win32", > > nit: line endings (whole file)? Yeah. I don't like it, but afaict that's what py2 json outputs; if I edit it, I think l10n-bumper will add them back in. I think py3 json doesn't have the trailing whitespace.
Assignee: nobody → aki
Pushed by asasaki@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/13c7532c9df7 update l10n-bumper to include desktop. r=Callek https://hg.mozilla.org/integration/autoland/rev/b34bd373582d land initial browser/locales/l10n-changesets.json. r=Callek https://hg.mozilla.org/integration/autoland/rev/3a9620622d8f look for build_platform in l10n-changesets.json. r=Callek https://hg.mozilla.org/integration/autoland/rev/82365523b591 sorted locales. r=Callek https://hg.mozilla.org/integration/autoland/rev/56158165aeea point at browser/locales/l10n-changesets.json. r=Callek
Blocks: 1397774
Attachment #8914536 - Flags: review?(bugspam.Callek)
Comment on attachment 8914536 [details] [diff] [review] [puppet] use latest bumper script+configs; stop bumping aurora >diff --git a/manifests/moco-config.pp b/manifests/moco-config.pp > $l10n_bumper_env_config = { > 'jamun' => { > mozharness_repo => 'https://hg.mozilla.org/projects/jamun', >- mozharness_revision => 'e1af5dd01c02', >+ mozharness_revision => '8c6b4fd1d769', No such rev on jamun > config_file => 'l10n_bumper/jamun.py', > }, > 'mozilla-central' => { > mozharness_repo => 'https://hg.mozilla.org/mozilla-central', >- mozharness_revision => 'e1af5dd01c02', >+ mozharness_revision => '8c6b4fd1d769', > config_file => 'l10n_bumper/mozilla-central.py', > }, > 'mozilla-beta' => { > mozharness_repo => 'https://hg.mozilla.org/mozilla-central', Just a drive-by question, why m-c for beta?
Attachment #8914536 - Flags: review?(bugspam.Callek) → review-
(In reply to Justin Wood (:Callek) from comment #25) > Comment on attachment 8914536 [details] [diff] [review] > [puppet] use latest bumper script+configs; stop bumping aurora > > >diff --git a/manifests/moco-config.pp b/manifests/moco-config.pp > > $l10n_bumper_env_config = { > > 'jamun' => { > > mozharness_repo => 'https://hg.mozilla.org/projects/jamun', > >- mozharness_revision => 'e1af5dd01c02', > >+ mozharness_revision => '8c6b4fd1d769', > > No such rev on jamun Ah, good catch. It's not scheduled anyway; maybe I should just remove that. > > config_file => 'l10n_bumper/jamun.py', > > }, > > 'mozilla-central' => { > > mozharness_repo => 'https://hg.mozilla.org/mozilla-central', > >- mozharness_revision => 'e1af5dd01c02', > >+ mozharness_revision => '8c6b4fd1d769', > > config_file => 'l10n_bumper/mozilla-central.py', > > }, > > 'mozilla-beta' => { > > mozharness_repo => 'https://hg.mozilla.org/mozilla-central', > > Just a drive-by question, why m-c for beta? They all use the same revision on m-c. Otherwise I'd have to uplift everything to m-b.
Attachment #8914536 - Attachment is obsolete: true
Attachment #8914571 - Flags: review?(bugspam.Callek)
Attachment #8914571 - Flags: review?(bugspam.Callek) → review+
Attached patch fix-central-bumper.diff (deleted) — Splinter Review
Oops. central-changesets.json was my jamun testing config, so I could test bumping both beta-style and central-style. On m-c we want it to be browser/locales/l10n-changesets.json. Once this merges to m-c, I'll need to bump the revision in puppet, and then we're good.
Attachment #8914847 - Flags: review?(bugspam.Callek)
Attached patch dontbuild_bumper.diff (deleted) — Splinter Review
Attachment #8914879 - Flags: review?(ryanvm)
Attachment #8914879 - Flags: review?(ryanvm) → review+
Attachment #8914847 - Flags: review?(bugspam.Callek) → review+
Once the above changesets make it to central, I'll create another puppet patch and a remove-central-changesets.json patch.
Attached patch remove-central-changesets (deleted) — Splinter Review
Attachment #8915395 - Flags: review?(l10n)
Attachment #8915395 - Flags: review?(l10n) → review+
Keywords: leave-open
Pushed by asasaki@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/445c25bcc6fa remove central-changesets.json. DONTBUILD r=pike
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: