Closed Bug 1588668 Opened 6 years ago Closed 6 years ago

Package multi-locale Lightning at build-time for upload to ATN

Categories

(Calendar :: Build Config, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file, 2 obsolete files)

I want Lightning packaging happening as a build-time task so that pulling localised artifacts across a slow network isn't necessary. Note this bug doesn't include uploading to ATN, which has been discussed.

Attached patch 1588668-lightning-repack-1.diff (obsolete) — Splinter Review

Here's what I just ran on Try to get a build of Lightning 68.1.2 (sans ja-JP-mac, which I added manually due to problems with the Mac L10n task). I'm going to push the same thing now on comm-central to check I haven't broken it there since I first wrote it.

It's not perfect and I expect there's probably things to complain about. Right now it's set to not run unless somebody asks for it (run-on-projects: []) but it could run on any build that already does L10n for little cost.

Attachment #9101022 - Flags: review?(rob)

I've put the line to extract the ja-JP-mac .dmg in the wrong place, but apart from that all still works fine on comm-central.

Comment on attachment 9101022 [details] [diff] [review] 1588668-lightning-repack-1.diff Review of attachment 9101022 [details] [diff] [review]: ----------------------------------------------------------------- Nothing major jumps out at me. Out of curiosity, do you run your bash scripts through shellcheck? I plan to enable those tests at some point. ::: calendar/lightning/repack/all-locale-repack.sh @@ +1,1 @@ > +# This Source Code Form is subject to the terms of the Mozilla Public #!/bin/bash @@ +26,5 @@ > +for l in * > +do > + if [[ $l == ja-JP-mac ]] > + then > + prepath='Thunderbird/Thunderbird.app/Contents/Resources' This might not work with Daily builds. IIRC it gets named "Thunderbird Daily.app' @@ +80,5 @@ > +python3 "$GECKO_PATH/comm/calendar/lightning/repack/modify-manifest.py" > +touch -d 20100101 manifest.json > +zip lightning.xpi manifest.json > + > +mkdir ../artifacts $UPLOAD_DIR maybe? ::: taskcluster/comm_taskgraph/__init__.py @@ +145,5 @@ > > yield job > + > + > +def add_l10n_dependencies(config, jobs): Can you add a documentation comment please?
Attachment #9101022 - Flags: review?(rob) → review+

(In reply to Rob Lemley [:rjl] from comment #4)

Nothing major jumps out at me. Out of curiosity, do you run your bash
scripts through shellcheck? I plan to enable those tests at some point.

I had no idea that was a thing but I like it.

  • prepath='Thunderbird/Thunderbird.app/Contents/Resources'

This might not work with Daily builds. IIRC it gets named "Thunderbird
Daily.app'

You're right. Now I need to figure out how to know if we're building Daily.

Attached patch 1588668-lightning-repack-2.diff (obsolete) — Splinter Review

With changes. Setting r? again for peace of mind.

Attachment #9102020 - Flags: review?(rob)
Comment on attachment 9102020 [details] [diff] [review] 1588668-lightning-repack-2.diff Scratch that. The ancient version of 7z on the builders fails to extract the .dmg.
Attachment #9102020 - Attachment is obsolete: true
Attachment #9102020 - Flags: review?(rob)

Now using Mozilla's dmg tools because the version of 7z on the builders is ancient and can't handle what I wanted it to.

Attachment #9102033 - Flags: review?(rob)
Attachment #9101022 - Attachment is obsolete: true
Attachment #9102033 - Flags: review?(rob) → review+
Keywords: checkin-needed

You want that backported? To TB 68 perhaps?

Target Milestone: --- → 71

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/0618eba9d869
Package multi-locale Lightning at build-time for upload to ATN. r=rjl DONTBUILD

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Comment on attachment 9102033 [details] [diff] [review] 1588668-lightning-repack-3.diff Yes I do. Bug 1588659's got to go with it.
Attachment #9102033 - Flags: approval-calendar-esr?(paul)
Attachment #9102033 - Flags: approval-calendar-esr?(paul) → approval-calendar-esr+

The pushed patches have lost the file mode of all-locale-repack.sh. The very first line should say new file mode 100755, as I posted them, not new file mode 100644.

Maybe a Windows thing? Can you push a fix with DONTBUILD?

Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/c6e68117d8ac follow-up - Reapply correct file mode to all-locale-repack.sh; rs=bustage-fix DONTBUILD

Do we need that on the branches?

After bug 1576707 landed, and with the typo fixed that they landed (bug 1576707 comment #15), we get:
Exception: addon-calendar-l10n can't fetch toolchain-linux64-libdmg artifacts because there are no tasks with label toolchain-linux64-libdmg in kind dependencies!

Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/7c4a9a0edb69 Follow-up: Add missing toolchain kind dependency required after bug 1576707. r=me DONTBUILD

Well that was unfortunate timing!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: