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

3362 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey 8bfba15706 Bug 1519042 - Replace the last non-third-part uses of OS_TEST with TARGET_CPU. r=ted
Depends on D16161

Differential Revision: https://phabricator.services.mozilla.com/D16162

--HG--
extra : moz-landing-system : lando
2019-01-10 22:06:10 +00:00
Mike Hommey d5fbdc4b28 Bug 1519030 - Move libav-fft configuration to python configure. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D16157

--HG--
extra : moz-landing-system : lando
2019-01-10 22:00:41 +00:00
Ted Mielczarek 70af650a9f bug 1517909 - format build telemetry time correctly when seconds has no fractional component. r=nalexander
It turns out that Python's `datetime.isoformat` method will leave off the
fractional component of seconds if it would be all zeroes, but the voluptuous
`Datetime` validator wants it to be present, so it's possible to hit an error
if you run mach at exactly an integer second.

This patch switches from `isoformat` to `strftime` with an explicit format
string instead.

Differential Revision: https://phabricator.services.mozilla.com/D15981

--HG--
extra : moz-landing-system : lando
2019-01-08 21:29:26 +00:00
Ehsan Akhgari 946ce15a46 Bug 1518959 - Don't format Java files by default; r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D16115

--HG--
extra : moz-landing-system : lando
2019-01-10 09:05:54 +00:00
Chris Manchester b101c5a8f3 Bug 1517532 - Extend artifact builds to find and download artifacts from pgo builds when MOZ_PGO is set. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D15988

--HG--
extra : moz-landing-system : lando
2019-01-08 23:03:27 +00:00
Nick Alexander 848c9b1c1e Bug 1496190 - Add |mach package-multi-locale|; produce multi-locale GeckoView archives. r=Callek,firefox-build-system-reviewers,ted
All that is really required for this ticket is to invoke |mach android
archive-geckoview| after |mach package| in the right place.

But it's actively unhelpful to have this magic in mozharness --
especially since the documentation in `locales.rst` is subtly
incorrect (the environment variables and Make variables don't quite
work as written).  So this commit adds a Mach command to do the actual
work and replaces most of the mozharness magic with that command.
Since the l10n Make targets check out the l10n HG repositories
locally, this basically Just Works without the mozharness checkout
steps when developing locally.

Differential Revision: https://phabricator.services.mozilla.com/D12455

--HG--
extra : moz-landing-system : lando
2019-01-07 19:22:44 +00:00
Chris Manchester 0851ff9f4a Bug 1507344 - Add configure machinery for MOZ_PROFILE_USE and merging profile. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D13863

--HG--
extra : moz-landing-system : lando
2018-12-21 19:02:11 +00:00
Mike Hommey 012ea52a90 Bug 1515901 - Avoid loading mozconfig multiple times from MozbuildObject. r=froydnj
When running `mach help`, mozconfig is loaded multiple times, and even
with an almost empty mozconfig, this makes mach help take close to 10
seconds on my Windows machine.

With some memoization, the time to run mach help gets down to 2s.

Differential Revision: https://phabricator.services.mozilla.com/D15186

--HG--
extra : moz-landing-system : lando
2018-12-29 14:15:38 +00:00
Dorel Luca af4a060def Backed out changeset e8700e52f777 (bug 1515901) for build bustage. CLOSED TREE 2018-12-22 01:17:42 +02:00
Mike Hommey c683c549a5 Bug 1515852 - Move --with-system-jpeg to python configure. r=froydnj
We remove --disable-libjpeg-turbo because that's only useful when Yasm
is too old, and the required version is now almost 8 years old, so we
can reasonably require people to upgrade rather than workaround with a
--disable option.

The valid_yasm_version function can seem overkill, but that's because
future moves of other things to python configure will pile up.

Differential Revision: https://phabricator.services.mozilla.com/D15184

--HG--
extra : moz-landing-system : lando
2018-12-21 15:47:22 +00:00
Mike Hommey eb8e6cb9c3 Bug 1515843 - Remove HOST_AR/HOST_RANLIB. r=ted
Now that we're not even building host static libraries, we don't need
variables for the tools used to build them.

Ironically, we weren't even running HOST_RANLIB.

Depends on D15172

Differential Revision: https://phabricator.services.mozilla.com/D15173

--HG--
extra : moz-landing-system : lando
2018-12-21 23:00:17 +00:00
Mike Hommey d3856a0bf1 Bug 1515843 - Stop building host static libraries. r=ted
The build system has skipped creating target static libraries for very
long, except in very specific cases.

We can actually do the same for host static libraries, for which we
don't even need the escape hatch to still allow to create static
libraries.

Depends on D15171

Differential Revision: https://phabricator.services.mozilla.com/D15172

--HG--
extra : moz-landing-system : lando
2018-12-21 23:00:00 +00:00
Mike Hommey 5bd8a6be34 Bug 1515526 - Remove need_help_dependency arguments in python configure code. r=chmanchester
It turns out all the changes related to --help linting in lint.py make
them unnecessary, and we still can detect missing --help arguments
without them, per test_lint.py. On the flip side, keeping those
need_help_dependency arguments makes some functions executed twice
because some memoized functions end up being called for both cases
need_help_dependency=True and need_help_dependency=False.

Differential Revision: https://phabricator.services.mozilla.com/D15054

--HG--
extra : moz-landing-system : lando
2018-12-21 22:55:16 +00:00
Mike Hommey 94a4048c0f Bug 1515901 - Avoid loading mozconfig multiple times from MozbuildObject. r=froydnj
When running `mach help`, mozconfig is loaded multiple times, and even
with an almost empty mozconfig, this makes mach help take close to 10
seconds on my Windows machine.

With some memoization, the time to run mach help gets down to 2s.

Differential Revision: https://phabricator.services.mozilla.com/D15186

--HG--
extra : moz-landing-system : lando
2018-12-21 15:43:03 +00:00
Mike Hommey 73f192f7fd Bug 1515808 - Compensate for older python's buggy inspect.getblock. r=nalexander
Fixing this unveils an issue in TestRecursiveMake::test_linkage that
was happening locally but not on automation, due to the Binary()
template never being invoked on automation.

Differential Revision: https://phabricator.services.mozilla.com/D15162

--HG--
extra : moz-landing-system : lando
2018-12-21 00:47:29 +00:00
Mike Hommey 67f412262c Bug 1515577 - Don't quote shell strings when they contain a ~, except in first position. r=ted
We only need to quote strings that would be treated specially by the
shell, and "foo~bar" doesn't get any sort of expansion, while "~foo"
gets a user expansion, and to avoid that expansion, those latter strings
need to be quoted, but not the former.

Differential Revision: https://phabricator.services.mozilla.com/D15065

--HG--
extra : moz-landing-system : lando
2018-12-21 00:05:32 +00:00
Brindusan Cristian c292cb5988 Backed out changeset 6944bc1c900b (bug 1515577) for build bustages on test_checks_configure.py. 2018-12-21 00:45:51 +02:00
Mike Hommey 7fe4875fe9 Bug 1515577 - Don't quote shell strings when they contain a ~, except in first position. r=ted
We only need to quote strings that would be treated specially by the
shell, and "foo~bar" doesn't get any sort of expansion, while "~foo"
gets a user expansion, and to avoid that expansion, those latter strings
need to be quoted, but not the former.

Differential Revision: https://phabricator.services.mozilla.com/D15065

--HG--
extra : moz-landing-system : lando
2018-12-20 21:51:01 +00:00
Sebastian Hengst 767c971623 Backed out 21 changesets (bug 1492664) for breaking cron task for nightlies. a=backout
Backed out changeset a7d50dbb2c8e (bug 1492664)
Backed out changeset 2d876c4ece8b (bug 1492664)
Backed out changeset c82285d253de (bug 1492664)
Backed out changeset bf6d089640eb (bug 1492664)
Backed out changeset d9a7f2ce49c3 (bug 1492664)
Backed out changeset 06c466ab4323 (bug 1492664)
Backed out changeset c1ea4a10cc8d (bug 1492664)
Backed out changeset 4c63a04fdd47 (bug 1492664)
Backed out changeset 742b038bb1dd (bug 1492664)
Backed out changeset 911b4b0fb683 (bug 1492664)
Backed out changeset 870c8cec99e5 (bug 1492664)
Backed out changeset 77699b51336b (bug 1492664)
Backed out changeset 29f33f22fd8b (bug 1492664)
Backed out changeset e7f305408708 (bug 1492664)
Backed out changeset 335a92b1f424 (bug 1492664)
Backed out changeset c566f1c8dcdf (bug 1492664)
Backed out changeset c77ae59aba41 (bug 1492664)
Backed out changeset 9c35dd209c6b (bug 1492664)
Backed out changeset a972d6b4434e (bug 1492664)
Backed out changeset 5ea6f03f845e (bug 1492664)
Backed out changeset 0699d3873e44 (bug 1492664)

--HG--
extra : histedit_source : 5cb1f7e50f25d4a875c1a58c86b7dce902e1a89c%2C20f1ab1a843b612cfcc67cf5c6ff745d65abf076
2018-12-20 12:43:22 +02:00
Razvan Maries f658ebcbab Merge mozilla-inbound to mozilla-central a=merge 2018-12-20 07:04:06 +02:00
Tom Prince afa141b26c Bug 1514124: [win64-aarch64] Pass the architecture to mar generation, so that it can pass the appropriate arch flag to xz; r=aki,Callek
XZ supports rewritting addresses in executable code, which is architechture
specific. The updater is compiled with support for the target architecture
only, so we can't always compress updates passing `--x86` to XZ. This threads
the architecture through to the repackage steps, so we can pass the appropraite
flags to the update packaging scripts.

Differential Revision: https://phabricator.services.mozilla.com/D14601

--HG--
extra : moz-landing-system : lando
2018-12-17 21:45:09 +00:00
Ted Mielczarek ca6f7a626f bug 1512499 - handle psutil returning None for physical_cores. r=froydnj
psutil has a bug on arm systems where it will return None for physical_cores:
https://github.com/giampaolo/psutil/issues/1359

This causes us to generate invalid telemetry data which raises an error. Fix
this by simply omitting the field in this case.

Differential Revision: https://phabricator.services.mozilla.com/D14969

--HG--
extra : moz-landing-system : lando
2018-12-19 15:07:11 +00:00
Nick Alexander b1f817c8c9 Bug 1509573 - Part 0: Only compile Java via Gradle in export tier. r=chmanchester.mielczarek
This was always an accident of history: we forced export tier without
avoiding it in the libs tier.

Differential Revision: https://phabricator.services.mozilla.com/D14893

--HG--
extra : moz-landing-system : lando
2018-12-18 23:25:55 +00:00
Nick Alexander a79bace97e Bug 1498406 - Part 1: Don't check for javac, javah, jar. r=froydnj
The build system no longer invokes these directly: they're all fetched
and invoked by Gradle and its plugins.

Differential Revision: https://phabricator.services.mozilla.com/D14287

--HG--
extra : moz-landing-system : lando
2018-12-17 23:04:14 +00:00
Brindusan Cristian 64199f841e Merge inbound to mozilla-central. a=merge 2018-12-15 23:41:35 +02:00
Andi-Bogdan Postelnicu d471aefa7d Bug 1514341 - mach clang-format - fix path on windows. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D14605

--HG--
extra : moz-landing-system : lando
2018-12-15 07:24:18 +00:00
Thomas Daede 427d23f3d7 Bug 1512462 - Only use nasm when explicitly requested. r=firefox-build-system-reviewers,mshal
This is needed because ffvpx does not build with nasm on win64.

Differential Revision: https://phabricator.services.mozilla.com/D13966

--HG--
extra : moz-landing-system : lando
2018-12-13 15:40:17 +00:00
Geoff Lankow cc6b70c96c Bug 1506715 - Adapt Mochitest so it can run on Thunderbird r=darktrojan 2018-12-14 10:43:22 +13:00
Coroiu Cristina 3160ddc1f0 Merge inbound to mozilla-central a=merge 2018-12-12 07:12:07 +02:00
Geoff Brown 079ed326fd Bug 1512427 - Use correct artifact jobs for android 64-bit artifact builds; r=nalexander 2018-12-11 15:34:41 -07:00
Mike Hommey 69c1294a3a Bug 1513134 - Lint python/mozbuild/mozbuild/test/configure/data/moz.configure. r=firefox-build-system-reviewers,gps
Depends on D14126

Differential Revision: https://phabricator.services.mozilla.com/D14127

--HG--
extra : moz-landing-system : lando
2018-12-11 19:34:51 +00:00
Mike Hommey ab48d17e1a Bug 1513134 - Detect unnecessary --help dependencies. r=firefox-build-system-reviewers,gps
Depends on D14125

Differential Revision: https://phabricator.services.mozilla.com/D14126

--HG--
extra : moz-landing-system : lando
2018-12-11 19:34:28 +00:00
Mike Hommey 893e2bb5b1 Bug 1513134 - Don't rely on ConfigureSandbox._imports for the lint. r=firefox-build-system-reviewers,gps
_imports is cleared of functions at runtime, and that can cause
the `func in self._imports` test to return False in cases where the
function *does* have imports.

Make the lint track which functions has imports on its own.

This fortunately didn't cause mistakes not being caught by the lint in
the current python configure code, but causes problems with upcoming
changes.

Depends on D14124

Differential Revision: https://phabricator.services.mozilla.com/D14125

--HG--
extra : moz-landing-system : lando
2018-12-11 19:33:55 +00:00
Mike Hommey 3ab0bd82c9 Bug 1513134 - Make ConfigureSandbox._apply_imports clear _imports itself. r=firefox-build-system-reviewers,gps
This is a not strictly necessary drive-by cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D14124

--HG--
extra : moz-landing-system : lando
2018-12-11 19:33:17 +00:00
Mike Hommey 3dec5bb706 Bug 1512918 - Emit a warning instead of a hard error when an unknown option is used with configure --help. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D14114

--HG--
extra : moz-landing-system : lando
2018-12-11 01:12:41 +00:00
Chris Manchester 49528bb9e6 Bug 1510714 - Use mozbuild instead of path heuristics to prioritize rust in the compile traversal. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D13921

--HG--
extra : moz-landing-system : lando
2018-12-06 22:48:11 +00:00
Sylvestre Ledru d2ca9ab951 Bug 1510458 - Ride along: simplify the declaration (else after a return) r=ahal
Depends on D13709

Differential Revision: https://phabricator.services.mozilla.com/D13710

--HG--
extra : moz-landing-system : lando
2018-12-06 18:51:22 +00:00
Sylvestre Ledru 1d186ac794 Bug 1510458 - Ride along: declare import shutil once r=ahal
Depends on D13708

Differential Revision: https://phabricator.services.mozilla.com/D13709

--HG--
extra : moz-landing-system : lando
2018-12-06 18:48:59 +00:00
Sylvestre Ledru 5234aab2bf Bug 1510458 - Show the diff without doing the change r=Ehsan
1) Creates a temp directory
2) Copy the files
3) Run clang-format on then
4) Diff the files

Differential Revision: https://phabricator.services.mozilla.com/D13708

--HG--
extra : moz-landing-system : lando
2018-12-05 20:08:22 +00:00
Bob Clary 28890c828c Bug 1501802 - Update tooltool.py fetch_file to log.info exceptions instead of log.debug, r=garbas
--HG--
extra : rebase_source : 3268310f08f1911273ab8bff9f8db465ad75e32c
extra : intermediate-source : 565215cf2e5e42034860257f4ea4b5d0b0adf75d
extra : source : 4034fbcc0a551d86deb3463115c0cf7f8c228b65
2018-11-10 03:10:08 -08:00
Kartikaya Gupta efd20ae0bc Bug 1510490 - Make tup build typenum. r=frodynj
Differential Revision: https://phabricator.services.mozilla.com//D13619
2018-12-01 10:46:08 -08:00
Kartikaya Gupta 4c68f66445 Bug 1510490 - Follow-up to fix Btup build bustage. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D13604
2018-12-01 10:44:44 -08:00
shindli aa7aa6a656 Backed out changeset fedf8f5b79e5 (bug 1510490) for not fixing the Btup bustages CLOSED TREE 2018-12-01 07:08:10 +02:00
Kartikaya Gupta 8e62dec647 Bug 1510490 - Follow-up to fix Btup build bustage on a CLOSED TREE. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D13604

--HG--
extra : moz-landing-system : lando
2018-12-01 04:39:39 +00:00
Ryan VanderMeulen c180635643 Merge m-c to autoland. a=merge on a CLOSED TREE
--HG--
extra : amend_source : 73ac1169c4dcaf634f1e8df61f319f7bc4f02cd4
2018-11-30 13:35:17 -05:00
Emilio Cobos Álvarez c66317aedb Bug 1511285 - followup: Properly wait for the child process. r+a=Andi 2018-11-30 19:12:53 +01:00
Andi-Bogdan Postelnicu 4e2f400fdf Bug 1511285 - Make 'mach clang-format' more efficient when outputting to stdout. r=ehsan, a=aryx
Differential Revision: https://phabricator.services.mozilla.com/D13508

--HG--
extra : rebase_source : e4c31242d0bc309b80dfc36e08ed3ec55d277126
extra : amend_source : 8070ca927657f4078e557e06e4435600f5ce4a33
2018-11-30 14:04:46 +02:00
Mark Banner da86564348 Bug 1511079 - Don't apply the node wrapper for npm when on windows. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D13456

--HG--
extra : moz-landing-system : lando
2018-11-29 21:41:13 +00:00
Emilio Cobos Álvarez 34921f8b0b Bug 1511258 - Fix ./mach clang-format -a so it doesn't make assumptions about the incoming file name. r=Ehsan
I tried to use it to write a git merge driver. Git merge drivers
receive garbage names like .merge_file_EE7Nlw. That's clearly not a useful file
name to give to _generate_path_list. Instead, give the path name to be assumed,
which is actually the right path name to use.

Differential Revision: https://phabricator.services.mozilla.com/D13505

--HG--
extra : moz-landing-system : lando
2018-11-30 04:02:58 +00:00
Tom Prince a3540aa22f Bug 1397847: Pass the taskcluster root to `load_tasks_for_kind` in `mach artifact toolchain`; r=dustin a=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D13433

--HG--
extra : rebase_source : ab46822cbf7cb72de61285eb336cb80356943752
extra : amend_source : 9ec807b18a8cc7d1b5d33cb4a4c65988fee4ff00
2018-11-29 09:37:39 -07:00