Closed Bug 1896374 Opened 4 months ago Closed 1 month ago

remove firefox snap repackage taskcluster execution

Categories

(Firefox Build System :: Third Party Packaging, task)

task

Tracking

(firefox129 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: gerard-majax, Assigned: gerard-majax)

References

Details

Attachments

(2 files)

No description provided.

this broke in https://bugzilla.mozilla.org/show_bug.cgi?id=1895338 and the yaml definition is now severely outdated. per https://bugzilla.mozilla.org/show_bug.cgi?id=1895338#c7 there's no use, i think jed would be the sole user via mach repackage snap

Flags: needinfo?(jlorenzo)
Flags: needinfo?(jld)
Summary: remove firefox snap repackage → remove firefox snap repackage taskcluster execution
Blocks: 1896376

This is fine by me. I confirm this has little use. I defer to :jld regarding his usage.

Flags: needinfo?(jlorenzo)

We should get rid of this task. I agree with the reasons in bug 1895338 comment #2; in addition, the code that tries to install snaps without snapd seems like… not something we'd want to maintain if we can avoid it.

The mach repackage snap patches never landed; I got some review feedback a while ago and haven't had time to revisit them. So, if I need to figure something else out in terms of how to generate a snapcraft.yaml file to do the repackaging, I can do that the next time I look at those patches.

Flags: needinfo?(jld)

Martin, Johan, do you think we could rather use the one provided in https://searchfox.org/mozilla-central/source/browser/components/shell/search-provider-files/firefox.desktop ?

The most important differences are translations, a few names of categories that the Snap one has and this one does no, but they serve the same purpose otherwise.

Flags: needinfo?(stransky)
Flags: needinfo?(jlorenzo)

(In reply to :gerard-majax from comment #7)

Martin, Johan, do you think we could rather use the one provided in https://searchfox.org/mozilla-central/source/browser/components/shell/search-provider-files/firefox.desktop ?

The most important differences are translations, a few names of categories that the Snap one has and this one does no, but they serve the same purpose otherwise.

Yes, it'd use the one. But you need to flip DBusActivatable to false as you perhaps don't ship Firefox DBus service.

Flags: needinfo?(stransky)

Agreed. I'm okay to merge taskcluster/docker/firefox-snap/firefox.desktop into browser/components/shell/search-provider-files/firefox.desktop

Flags: needinfo?(jlorenzo)

Amin, would you be fine if we removed taskcluster/docker/firefox-snap/firefox.desktop file and rather rely on DesktopFileTransform from https://phabricator.services.mozilla.com/D210807 to generate it?

You'd need to update the build step to include something like:

from mozbuild.repackaging.snapcraft_transform import DesktopFileTransform
source_desktop = os.path.join(srcdir, "browser/components/shell/search-provider-files/firefox.desktop")
with open(os.path.join(snapdir, "firefox.desktop"), "w") as desktop_file:
    desktop_file.write(
        DesktopFileTransform(source_desktop, icon="default256.png").repack()
    )

Which can be invoked via mach python

Flags: needinfo?(bandali)

As long as the upstream snap use-case is covered (which per what you said it very well would be, via DesktopFileTransform) then sure, it's fine by me.

Just to clarify for myself, is mach python a proper wrapper around the Python interpreter, so I could pass the above snippet to its standard input or with -c as a literal string or an actual file? (Asking to make sure this new step could be done fully non-interactively during Firefox snap build.)

Flags: needinfo?(bandali)

Yes

Depends on: 1841370
Depends on: 1901703
Attachment #9401721 - Attachment description: WIP: Bug 1896374 - Remove release-snap-repackage → Bug 1896374 - Remove release-snap-repackage task r?#releng!
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f1163b1b4b0a Remove release-snap-repackage task r=releng-reviewers,taskgraph-reviewers,jcristau
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

Looks like we need keep open even when there are two patches ?

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Depends on: 1907512
Attachment #9410977 - Attachment description: WIP: Bug 1896374 - Remove firefox-snap docker image → Bug 1896374 - Remove firefox-snap docker image r?#releng!
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9fdd37f88130 Remove firefox-snap docker image r=releng-reviewers,bhearsum
Status: REOPENED → RESOLVED
Closed: 3 months ago1 month ago
Resolution: --- → FIXED

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Blocks: 1907512
No longer depends on: 1907512
Blocks: 1901703
No longer depends on: 1901703
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: