Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
Michael Comella 88203f8ad7 Bug 1752381 - only parse stdout in substitute-local-geckoview. r=nalexander
Root cause: in the current tree, mach commands in mozilla-central output a
warning to stderr. The substitute-local-geckoview script was calling a mach
command and combining the stdout and stderr streams of the process, parsing
it as JSON. This warning is not JSON so the script crashed.

The crashing code was copied from settings.gradle:
  https://searchfox.org/mozilla-central/rev/b70bc09685763c44a8e56e4e04cb741fa020701a/settings.gradle#26

The code in settings.gradle does an intuitive thing - capture stderr separately
but only print it on subprocess non-zero exit value - so we also copy that
solution. I'm not sure what an appropriate place to store code shared between
these two files would be so I didn't try to deduplicate it.

Differential Revision: https://phabricator.services.mozilla.com/D137591
2022-02-02 18:00:46 +00:00
Agi Sferro 51f42fd9a0 Bug 1745246 - Allow specifying multiple maven artifacts from build. r=calu,ahal
This patch introduces a new field maven-artifacts which allows specifying a
list of maven artifacts that will be generated by a build and published to our
maven repository.

This allows us to split up GeckoView into separate maven packages.

Differential Revision: https://phabricator.services.mozilla.com/D133790
2022-01-11 19:16:01 +00:00
Michael Comella f6fb629fa9 Bug 1744336 - load mozconfig only once in substitute-local-geckoview. r=agi
Root cause analysis: in the changed implementation, the
substitute-local-geckoview script is called for every subproject in
android-components. Since this script calls a mach command, we're forced to wait
on the python interpretter for each a-c subproject (~113), which is very slow.

This patch addresses the problem by caching the output of loadMozconfig, which
calls the mach command, on the first run and using the cache on subsequent
invocations of the script.

Locally, with non-robust testing, I saw incremental build times decrease from
over five minutes to between 5-30 seconds.

This solution is ideal because it does not break downstream consumers. However,
it may not be the most correct solution because it's difficult to avoid writing
code that's not redundant if called multiple times. A more correct solution
would request that consumers call the script once and return a function for them
to call for each subproject.

Differential Revision: https://phabricator.services.mozilla.com/D132850
2021-12-07 17:53:25 +00:00
Agi Sferro 1f930e4253 Bug 1557796 - Custom mozconfig for gradle build. r=nalexander,owlish
This patch introduces a new local.settings field: mozilla-central.mozconfig.

This field can be used to set a custom mozconfig file for the gradle build (and
for Android Studio).

The environment variable MOZCONFIG will take precedence over what is defined in
local.settings to allow Gecko engineers to use multiple mozconfig files.

Co-Authored-By: Nick Alexander <nalexander@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D124830
2021-09-29 17:54:57 +00:00
Agi Sferro 9df33a60f4 Bug 1724782 - Allow substituting GeckoView lite and omni builds. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D122142
2021-08-10 20:24:33 +00:00
Agi Sferro 8fc4964dd1 Bug 1709640 - Add GeckoView Lite build variant. r=jmaher,aklotz,mhentges,glandium
This patch adds a new GeckoView build variant dubbed "lite". We are in the
process of adding some optional dependencies to GeckoView that are needed by
Fenix (like Glean and Nimbus) which are likely not going to be used by anyone
else at Mozilla. To avoid bloating third party consumers, we provide a
geckoview-lite build that doesn't contain any optional dependency.

The min SDK version of GeckoView (non-lite) is being increased to 21 to match
Glean's min SDK. Given that Fenix's min SDK version is already 21 and that the
lite version's min SDK is still at 16 this change is safe to do and will not
incur in any loss of usability.

Differential Revision: https://phabricator.services.mozilla.com/D114370
2021-07-20 22:19:17 +00:00
Sebastian Hengst 5a4f8ee0eb Backed out 13 changesets (bug 1709640, bug 1718341) for failing geckoview-junit tasks on shippable lite platform. CLOSED TREE
Backed out changeset abc4249b08a0 (bug 1709640)
Backed out changeset c7f2fa8d7535 (bug 1709640)
Backed out changeset 45b07d37f247 (bug 1709640)
Backed out changeset a15b3b87d71e (bug 1718341)
Backed out changeset a87639f2921b (bug 1718341)
Backed out changeset 31a57851c6d1 (bug 1718341)
Backed out changeset c7de56a1f886 (bug 1718341)
Backed out changeset 5e76806752c8 (bug 1718341)
Backed out changeset 74cfe6df218b (bug 1718341)
Backed out changeset 3bd0e376de51 (bug 1718341)
Backed out changeset 176238f92cfe (bug 1718341)
Backed out changeset 38d622f60fa5 (bug 1718341)
Backed out changeset 2e16fa5f0a1f (bug 1718341)
2021-07-20 11:31:01 +02:00
Agi Sferro 4c9aa8ef11 Bug 1709640 - Add GeckoView Lite build variant. r=jmaher,aklotz,mhentges,glandium
This patch adds a new GeckoView build variant dubbed "lite". We are in the
process of adding some optional dependencies to GeckoView that are needed by
Fenix (like Glean and Nimbus) which are likely not going to be used by anyone
else at Mozilla. To avoid bloating third party consumers, we provide a
geckoview-lite build that doesn't contain any optional dependency.

The min SDK version of GeckoView (non-lite) is being increased to 21 to match
Glean's min SDK. Given that Fenix's min SDK version is already 21 and that the
lite version's min SDK is still at 16 this change is safe to do and will not
incur in any loss of usability.

Differential Revision: https://phabricator.services.mozilla.com/D114370
2021-07-20 03:23:32 +00:00
Butkovits Atila df5b6f3929 Backed out 13 changesets (bug 1709640, bug 1718341) for causing android build bustages. CLOSED TREE
Backed out changeset 20645ae32b84 (bug 1709640)
Backed out changeset 7c45682a8f98 (bug 1709640)
Backed out changeset 667e768fd75e (bug 1709640)
Backed out changeset f072adb45b85 (bug 1718341)
Backed out changeset cf443dddb5f5 (bug 1718341)
Backed out changeset 09d3d3e4ce7d (bug 1718341)
Backed out changeset 2b47cc469477 (bug 1718341)
Backed out changeset 8ec277361e46 (bug 1718341)
Backed out changeset b6c4c82d3efc (bug 1718341)
Backed out changeset 8afb8fcd0dc3 (bug 1718341)
Backed out changeset 7723d3a9ba7f (bug 1718341)
Backed out changeset f33b120a77d0 (bug 1718341)
Backed out changeset e7bf6deac270 (bug 1718341)
2021-07-17 01:02:51 +03:00
Agi Sferro 73fdfec807 Bug 1709640 - Add GeckoView Lite build variant. r=jmaher,aklotz,mhentges,glandium
This patch adds a new GeckoView build variant dubbed "lite". We are in the
process of adding some optional dependencies to GeckoView that are needed by
Fenix (like Glean and Nimbus) which are likely not going to be used by anyone
else at Mozilla. To avoid bloating third party consumers, we provide a
geckoview-lite build that doesn't contain any optional dependency.

The min SDK version of GeckoView (non-lite) is being increased to 21 to match
Glean's min SDK. Given that Fenix's min SDK version is already 21 and that the
lite version's min SDK is still at 16 this change is safe to do and will not
incur in any loss of usability.

Differential Revision: https://phabricator.services.mozilla.com/D114370
2021-07-16 19:26:48 +00:00
Brindusan Cristian 19785b8b33 Backed out 3 changesets (bug 1709640) for causing android-4-1-armv7 pgo build bustages.
CLOSED TREE

Backed out changeset d8f2f3cc4da7 (bug 1709640)
Backed out changeset 3a6a274dae0d (bug 1709640)
Backed out changeset decc4edd47f9 (bug 1709640)
2021-06-08 03:58:27 +03:00
Agi Sferro 63b9850a4c Bug 1709640 - Add GeckoView Lite build variant. r=jmaher,aklotz,mhentges,glandium
This patch adds a new GeckoView build variant dubbed "lite". We are in the
process of adding some optional dependencies to GeckoView that are needed by
Fenix (like Glean and Nimbus) which are likely not going to be used by anyone
else at Mozilla. To avoid bloating third party consumers, we provide a
geckoview-lite build that doesn't contain any optional dependency.

The min SDK version of GeckoView (non-lite) is being increased to 21 to match
Glean's min SDK. Given that Fenix's min SDK version is already 21 and that the
lite version's min SDK is still at 16 this change is safe to do and will not
incur in any loss of usability.

Differential Revision: https://phabricator.services.mozilla.com/D114370
2021-06-07 21:49:07 +00:00
Ricky Stewart 635eab170b Bug 1581979 - Use -SNAPSHOT versions locally to enable the local GeckoView substitution flow. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D46235

--HG--
extra : moz-landing-system : lando
2019-12-11 21:29:44 +00:00
Nick Alexander b64c6171a1 Bug 1533465 - Add Gradle script for substituting local GeckoView into downstream consumers. r=sebastian
Differential Revision: https://phabricator.services.mozilla.com/D22552

--HG--
extra : moz-landing-system : lando
2019-08-15 21:18:24 +00:00