Commit Graph

3337 Commits

Author SHA1 Message Date
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
Ehsan Akhgari
548cd8f122 Bug 1510919 - Make mach clang-format support .cc files r=andi
Differential Revision: https://phabricator.services.mozilla.com/D13372

--HG--
extra : moz-landing-system : lando
2018-11-29 07:21:33 +00:00
Coroiu Cristina
e92b0f1d7f Merge inbound to mozilla-central a=merge 2018-11-29 06:27:40 +02:00
Geoff Brown
bea83b7523 Bug 1505536 - Add Android x86-64 debug builds; r=nalexander 2018-11-28 15:46:37 -07:00
Geoff Brown
35c2d7106c Bug 1467868 - Support Android aarch64 artifact builds; r=nalexander 2018-11-28 15:46:37 -07:00
Andi-Bogdan Postelnicu
ee2279f302 Bug 1510637 - mach clang-format: when using --assume-filename we don't want to download the actual clang-tools package. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D13254

--HG--
extra : moz-landing-system : lando
2018-11-28 21:32:05 +00:00
Tom Prince
8c933de83a Bug 1397847: Add supported API to get tasks of a given kind from a taskgraph; r=dustin
`mach artifact toolchain` gets task definitions from taskgraph, to get the
index path to find the artifacts at. Now that these index paths depend on the
digests of fetch tasks, those kinds need to be loaded as well. This adds a
supported API to get task definitions for a given kind, which loads all the
kind dependencies.

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

--HG--
extra : moz-landing-system : lando
2018-11-28 17:55:35 +00:00
arthur.iakab
af07f9b9d4 Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE
Backed out changeset c3fe435e473a (bug 1509362)
Backed out changeset 6494840edc17 (bug 1509591)
Backed out changeset 123b5d5a3637 (bug 1509591)
Backed out changeset bce195f98895 (bug 1509930)
Backed out changeset 66db13126408 (bug 1500950)
Backed out changeset 3b5fffae2d2b (bug 1500949)
Backed out changeset 71c3b3677db8 (bug 1500948)
Backed out changeset 784b3b56e2ab (bug 1500944)
Backed out changeset 0bad27401ddb (bug 1500944)
Backed out changeset e0f95dd96d54 (bug 1448426)
Backed out changeset c60fa11538db (bug 1487249)
Backed out changeset 0190d4ffa54f (bug 1487249)
Backed out changeset 3cd10aba9130 (bug 1487249)
2018-11-28 02:57:32 +02:00
Nika Layzell
9f648dce32 Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium
By default, windows.h exposes a large number of problematic define statements
which are UpperCamelCase, such as a define from `CreateWindow` to
`CreateWindow{A,W}`.

As many of these names are generic (e.g. CreateFile, CreateWindow), they can
mess up Gecko code that may legitimately have its own methods with the same
names.

The header also defines some traditional SCREAMING_SNAKE_CASE defines which
can mess up our code by conflicting with local values.

This patch adds a simple code generator which generates wrappers for these
defines, and uses them to wrap the windows.h wrapper using the `stl_wrappers`
mechanism, allowing us to use windows.h in more places.

Differential Revision: https://phabricator.services.mozilla.com/D10932
2018-11-27 18:09:33 -05:00
Nika Layzell
568787b95f Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium
By default, windows.h exposes a large number of problematic define statements
which are UpperCamelCase, such as a define from `CreateWindow` to
`CreateWindow{A,W}`.

As many of these names are generic (e.g. CreateFile, CreateWindow), they can
mess up Gecko code that may legitimately have its own methods with the same
names.

The header also defines some traditional SCREAMING_SNAKE_CASE defines which
can mess up our code by conflicting with local values.

This patch adds a simple code generator which generates wrappers for these
defines, and uses them to wrap the windows.h wrapper using the `stl_wrappers`
mechanism, allowing us to use windows.h in more places.

Differential Revision: https://phabricator.services.mozilla.com/D10932
2018-11-28 12:56:20 -05:00
Cosmin Sabou
1b7e778d69 Merge mozilla-central to mozilla-inbound. 2018-11-28 00:04:55 +02:00
Mark Banner
43e3063ea9 Bug 1509387 - When setting up ESLint, call npm via node so that node doesn't need to be in the path. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D12742

--HG--
extra : moz-landing-system : lando
2018-11-27 14:46:53 +00:00
Thomas Daede
e6a11914f8 Bug 1493400 - Import dav1d into tree. r=glob
Differential Revision: https://phabricator.services.mozilla.com/D9607

--HG--
extra : moz-landing-system : lando
2018-11-24 01:53:30 +00:00
Andreea Pavel
5208359b12 Backed out changeset f851c3e82c2b (bug 1509387) for build bustages on a CLOSED TREE 2018-11-27 12:17:23 +02:00
Mark Banner
a74ab6032f Bug 1509387 - When setting up ESLint, call npm via node so that node doesn't need to be in the path. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D12742

--HG--
extra : moz-landing-system : lando
2018-11-26 20:49:00 +00:00
James Willcox
992335e0bf Bug 1486524 - Don't use XZ compression for libs on Android r=glandium,nalexander
This also uses idiomatic packaging of the native libraries, which
will allow easier downstream consumption of GeckoView.

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

--HG--
extra : moz-landing-system : lando
2018-11-23 20:31:57 +00:00
Chris Pearce
16512588df Bug 1503776 - Add marionette-gpu job. r=jmaher
In order to reduce the cost of running marionette tests on a virtual machine
with a GPU, add a marionette-gpu job, and run the WebRender rollout test added
in the previous patch in this new job.

Depends on D10528

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

--HG--
extra : moz-landing-system : lando
2018-11-22 21:36:46 +00:00
Tom Prince
dd59ad1f35 Bug 1482395: Allow python3 specific entries in virtualenv_packages.txt; r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D12706

--HG--
extra : moz-landing-system : lando
2018-11-22 21:44:09 +00:00
Andi-Bogdan Postelnicu
fc1d362d7e Bug 1509276 - mach static-analysis install - should accept more flags in order to make it more robust. r=sylvestre
Depends on D12599

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

--HG--
extra : moz-landing-system : lando
2018-11-22 10:47:52 +00:00
Andi-Bogdan Postelnicu
ea2810cf13 Bug 1508635 - mach clang-format should be able to print back the file that has been reformatted to stdin, suitable when it ise used with 3rd party tools for merging. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D12599

--HG--
extra : moz-landing-system : lando
2018-11-22 10:47:50 +00:00
Marco Castelluccio
65ca4461a5 Bug 1489100 - Specify tests per suite in MOZHARNESS_TEST_PATHS. r=ahal
--HG--
extra : rebase_source : 09d05ca38ad25ce6178172e607ce0207525ea484
2018-11-15 17:54:13 +01:00
Jonathan Watt
96f02e3f50 Bug 1508506. Set the necessary objdir include paths and defines for Eclipse CDT. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D12375

--HG--
extra : rebase_source : c72015e85b1f72ef02fff93a9d1b4aa68a5efb6f
extra : amend_source : 3191aa7c975b2d279eee6d843b47c0082d938370
2018-11-01 14:55:27 +00:00
Jonathan Watt
26ece90d1a Bug 1408675 p4. Set per-directory include paths for Eclipse CDT. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D12011

--HG--
extra : rebase_source : 73bbcf56a398bef19c0c373435eb57791804330c
2018-10-31 17:49:22 +00:00
Jonathan Watt
cc5ca8bd39 Bug 1408675 p3. Have Eclipse CDT globally set MOZILLA_CLIENT and the NSS include path. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D12010

--HG--
extra : rebase_source : efca8735223d8e6e18085cd75b2a30c4220e721d
extra : intermediate-source : 9930d9d71cdf677490cf2a66bd66cc481be88880
extra : source : c2d648eaa388362a034164500fcf807050358fc9
2018-10-31 14:19:51 +00:00
Jonathan Watt
4f243d8604 Bug 1408675 p2. Fix Eclipse CDT project missing defines. r=botond
consume_object() is only called with Defines objects for directories containing
a moz.build file that sets a DEFINES value, and those Defines objects only
contain the defines set in that moz.build (not defines that affect the
directory's files that are set elsewhere).  That's why we fail to set some
defines.

This commit changes consume_object to obtain defines from the ComputedFlags
objects that it is passed instead.  We get one of these objects for every
directory with a moz.build, and we can obtain all defines passed to the
compiler for the files in a given directory from these objects.

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

--HG--
extra : rebase_source : 6b9bb42c5fed1ed530499e7c09fb1c77c0508904
2018-10-31 13:27:00 +00:00