If this is not done, the state dir (`.mozbuild`) is owned by root. With
the upcoming changes to moving the python site venvs to the state dir,
this would prevent the mach process from writing to the state dir, and
causing the python virtualenvs to not be successfully created.
Differential Revision: https://phabricator.services.mozilla.com/D181910
snapshot.debian.org is causing us some grief by being extremely slow
(there are also more rare occasions of it returning e.g. 404s for files
that do exist, but those are less common).
The reason we use snapshot.debian.org rather than deb.debian.org is for
reproducibility of the docker images. But, in practical terms, most of
the packages we do pull from snapshot.debian.org are on deb.debian.org
because they haven't received updates between the snapshot date and now.
So we interpose the HTTP method from APT, such that when it requests
an URL on snapshot.debian.org, we check whether the equivalent URL
exists on deb.debian.org and make it use that instead.
The downside is that we do need to pull python first before being able
to use the script, since it's not in the base docker image.
There are a few alternatives I've considered:
- A shell script, but that's more fragile, requires curl or wget, which
is not available either.
- A perl script, as perl is available in the base image, but pulling the
required libraries is as much data as pulling python, spread across
more packages, which unfortunately tends to make it slower to
download.
- A custom proxy server, but that felt like more work, and would still
require the same amount of extra packages.
I've kept the hack simple, not looking too deep in the internal protocol
used by APT to talk to its HTTP method.
We may want to dig deeper in the future, though, if the 404s get too
problematic.
Differential Revision: https://phabricator.services.mozilla.com/D181830
The settings must be put into (path depends on architecture and branch):
/var/lib/flatpak/extension/org.mozilla.firefox.systemconfig/x86_64/stable/defaults/pref
Currently policies.json to be placed into:
/var/lib/flatpak/extension/org.mozilla.firefox.systemconfig/x86_64/stable/policies/policies.json
Differential Revision: https://phabricator.services.mozilla.com/D168803
Recently the Chromium-as-Release linux builds started to fail and that is due to some changes upstream with the install-build-deps script.
This patch instead updates the Dockerfile packages and removes the (currently) failing script call.
Differential Revision: https://phabricator.services.mozilla.com/D177415
Work around our docker version not supporting the close_range syscall
properly, by overriding it to return ENOSYS so glib knows to fall back.
Differential Revision: https://phabricator.services.mozilla.com/D175994
This patch adds a Dockerfile and shell script for building an official custom configuration of Chromium i.e. "chromium-as-release" (CaR).
These CaR builds will be much more useful and realistic than our existing chromium performance tests in CI when doing
browser-browser comparisons for benchmarks, page load tests, etc.
Differential Revision: https://phabricator.services.mozilla.com/D173756
This patch adds a Dockerfile and shell script for building an official custom configuration of Chromium i.e. "chromium-as-release" (CaR).
These CaR builds will be much more useful and realistic than our existing chromium performance tests in CI when doing
browser-browser comparisons for benchmarks, page load tests, etc.
Differential Revision: https://phabricator.services.mozilla.com/D173756
This patch introduces:
1. fetch jobs to fetch python source / installer
2. a) build jobs to build python from source on Linux and OSX
b) build job to manually extract python tree from Windows installer
Some details, per category:
(1) fetches Python 3.8.10 (source) and 3.8.10 (installer).
(2.a) the builds generate optimized version of Python (LTO + PGO)
(2.a) the builds are patched to honor MOZPYTHONHOME instead of
PYTHONHOME. This is used to make OSX builds relocatable, and not
needed on Windows.
(2) zstandard and psutil are added to the default build
Differential Revision: https://phabricator.services.mozilla.com/D164663
This patch introduces:
1. fetch jobs to fetch python source / installer
2. a) build jobs to build python from source on Linux and OSX
b) build job to manually extract python tree from Windows installer
Some details, per category:
(1) fetches Python 3.8.10 (source) and 3.8.10 (installer).
(2.a) the builds generate optimized version of Python (LTO + PGO)
(2.a) the builds are patched to honor MOZPYTHONHOME instead of
PYTHONHOME. This is used to make OSX builds relocatable, and not
needed on Windows.
(2) zstandard and psutil are added to the default build
Differential Revision: https://phabricator.services.mozilla.com/D164663
This patch introduces:
1. fetch jobs to fetch python source / installer
2. a) build jobs to build python from source on Linux and OSX
b) build job to manually extract python tree from Windows installer
Some details, per category:
(1) fetches Python 3.8.10 (source) and 3.8.10 (installer).
(2.a) the builds generate optimized version of Python (LTO + PGO)
(2.a) the builds are patched to honor MOZPYTHONHOME instead of
PYTHONHOME. This is used to make OSX builds relocatable, and not
needed on Windows.
(2) zstandard and psutil are added to the default build
Differential Revision: https://phabricator.services.mozilla.com/D164663
This is hardcoded to point at tip of mozilla-central instead of the revision
corresponding to the actual build, for simplicity's sake.
Thanks to barthalion for the tip.
Differential Revision: https://phabricator.services.mozilla.com/D169838
Locales in the flatpak desktop files have the language and the country
separated by a hyphen, but it should be separated by underscore.
"-mac" in Japanese locale is also removed according to bug 418485.
Spanish translation is added for the action to open the profile manager.
Differential Revision: https://phabricator.services.mozilla.com/D169220