Commit Graph
4007 Commits
Author SHA1 Message Date
Dorel Luca 5b8abdda61 Merge mozilla-central to mozilla-inbound 2018-07-27 13:48:50 +03:00
Dorel Luca fa5250719f Merge mozilla-inbound to mozilla-central. a=merge 2018-07-27 13:19:26 +03:00
Andreas Tolfsen 7f05f910e9 Bug 1476263 - Suggest to create mozconfig if it does not exist. r=gps
A frequent question when mentoring new contributors is what "your
mozconfig file" is.  By suggesting to create the file if it does
not exist, we can hopefully alleviate some new contributor frustration.

This change does unfortunately not take into account that the
mozconfig file can be named .mozconfig or even be in a designated
location defined by the MOZCONFIG environment variable, but it
seems reasonable to assume that developers who already know about
those alternatives will know which file to edit, and that what we
should optimise for during the bootstrapping process is to get new
contributors up and running quickly.
2018-07-27 11:15:16 +01:00
Ursula Sarracini 2e6b296592 Bug 1474414 - Move most of browser/extensions/activity-stream to browser/components/newtab r=Mardak
MozReview-Commit-ID: GnMIh1n4d3c
2018-07-26 20:50:49 -07:00
Csoregi Natalia f1a56b4743 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-27 01:02:37 +03:00
Axel Hecht bf74fc3c96 bug 1478343, update existing fluent migrations to 0.6 AST, r=stas
MozReview-Commit-ID: 2XRhie0TN9R
2018-07-25 16:49:30 +02:00
David Major bb6a923e1a Bug 1477744 - Re-enable -Werror in clang-cl for Spidermonkey. r=froydnj 2018-07-26 16:14:27 -04:00
Aniket Kadam 44072233d0 Bug 1460355 - Fix: Change how the packages are sent to the sdkmanager to install, avoid missing argument. r=nalexander
The argument --package_file was removed in the latest sdkmanager by Google's Android. But the docs for it say
packages can also be sent by putting them in quotes and calling the sdk manager with them as individual args.
So now instead of sending the file directly with the --package_file argument, the package names are read from
the file and the sdk manager is called with them as individual args.
Historically this has been thought of as a bug that happens with the wrong version of the JDK, but this can be
reproduced with just java 1.8.0_181 and the most up to date version of sdkmanager currently 26.1.1
Important note, the mach bootstrap command downloads an older version of the sdk and this bug is not present in
the older version.
Since the way of updating packages I'm proposiing to use is backwards compatible, there shouldn't be any problem
in any version of the sdkamanger.
This is a simpler fix than trying the --package_file argument, particularly because it would involve capturing
output (to detect this particular bug) that's also supposed to be shown to the user because this also happens
when the user is supposed to be interacting with the install.

MozReview-Commit-ID: L7VhCVKJNIf
***
Formatting changes to satisfy the linter.
2018-07-24 20:06:21 +05:30
Sofia Carrillo b6befd12c5 Bug 1474442 - mach command to analyze files in build graph r=chmanchester,mshal
This patch introduces |mach summarize| so developers can see how expensive
changing a file will be. For a file in the build graph, developers can get
the total wall clock time for the file and the number of downstream commands.
This command requires that developers have a local tup db.

MozReview-Commit-ID: AWxrMibXH4r
2018-07-25 14:06:51 -04:00
Gurzau Raul baa96ee9b1 Backed out changeset 357206a19974 (bug 1474414) for build bustage at mozbuild/test/codecoverage/test_lcov_rewrite.py on a CLOSED TREE 2018-07-27 00:30:29 +03:00
Ursula Sarracini 3203f6e02b Bug 1474414 - Move most of browser/extensions/activity-stream to browser/components/newtab r=Mardak
MozReview-Commit-ID: GnMIh1n4d3c
2018-07-26 16:24:06 -04:00
Chris Manchester d4c7b948f8 Bug 1478557 - Use the command string rather than output list as a key for cargo commands in the tup backend. r=mshal
MozReview-Commit-ID: B8FtvHScXon
2018-07-25 22:51:54 -07:00
Aaron Klotz 1978f3a9e1 Bug 1473423: Allow test symbols to be included in full symbol archive in try builds; r=ted
This patch moves the logic for include/exclude/compress from the makefile into
symbols_archive.py, and adds an additional check to the full-archive case to
allow the inclusion of test symbols in try builds.
2018-07-11 17:38:37 -06:00
Tudor-Gabriel Vîjială 2fdae55c4d Bug 1476165 - Part 2: Update Android Gradle plugin to version 3.1.0. r=nalexander,snorp
MozReview-Commit-ID: LR1OWncvuwt
2018-07-17 13:20:19 +01:00
Sebastian Hengst b4efb2668b Merge mozilla-inbound to mozilla-central. a=merge 2018-07-25 17:16:53 +03:00
Sebastian Hengst c601b60a99 No bug - remove obsolete leftover from merge. CLOSED TREE 2018-07-25 14:27:38 +03:00
Sebastian Hengst 4c88673b55 No bug - remove obsolete leftover from merge. CLOSED TREE 2018-07-25 14:22:14 +03:00
Tiberius Oros 283ae3132d No bug - Fix issues from merge. CLOSED TREE 2018-07-25 14:12:52 +03:00
Tiberius Oros bf61e8358e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-25 13:43:03 +03:00
Mike Shal 9a87627f15 Bug 1473667 - Handle multiple GENERATED_FILES outputs in the faster make backend; r=gps
For files that come from the objdir in install manifests (eg: '!buildid.h'),
the FasterMake backend runs 'make -C dirname filename' to build the file
with the RecursiveMake backend before the install manifest is processed.
This works fine for GENERATED_FILES that produce a single target, but if
the GENERATED_FILES invocation produces multiple targets, the FasterMake
backend will run the command multiple times. Eg:

GENERATED_FILES += [('output1', 'output2')]
...
make -C dirname output1
make -C dirname output2

These invocations may be run in parallel, and would produce both output1
and output2 twice.

Instead we can track the GeneratedFile objects as they are emitted, and
only add the first output as a dependency on the install manifest. The
RecursiveMake backend is then only invoked once for the whole group of
GENERATED_FILES.

MozReview-Commit-ID: 6mvkHow2V2i
2018-07-05 11:48:59 -04:00
Andrew Halberstadt 0ee3e35612 Bug 1472177 - Run mozversioncontrol tests under python 3 r=gps
This also enables the py2 linter which will help maintain compatibility
with both 2 and 3.

Differential Revision: https://phabricator.services.mozilla.com/D1884
2018-07-24 21:21:46 +00:00
Chris Manchester c546c85243 Bug 1478121 - Fix tup backend bustage due to XPIDL build system api changes. r=froydnj 2018-07-24 13:48:21 -07:00
Nathan Froyd 145a30c4c4 Bug 1477332 - add aarch64 to mozinfo's known list of 64-bit cpus; r=chmanchester 2018-07-24 15:49:16 -04:00
Nathan Froyd f042e48fbc Bug 1476973 - part 5 - make xpidl variables simply expanded; r=gps
These kind of variables are slightly more efficient in make.
2018-07-24 15:41:47 -04:00
Nathan Froyd 4134adbd3c Bug 1476973 - part 4 - emit XPIDLModule, rather than multiple XPIDLFile; r=gps
XPIDL files are logically grouped together into a module, but the
current model for the moz.build frontend is that we emit individual
XPIDLFile objects, and leave it to the backend to reconstruct
module-ness from those.  This setup causes a small amout of useless work
to be done (e.g. see XPIDLFile handling in
RecursiveMakeBackend.consume_object; such handling should only be done
once), and it would be cleaner to have the objects emitted reflect the
build system concepts as closely as possible.  To that end, let's emit
XPIDLModule objects instead, which fortunately requires relatively few
changes.
2018-07-24 15:41:47 -04:00
Nathan Froyd 0e7c23e728 Bug 1476973 - part 3 - rationalize the backend's IDLManager; r=gps
The IDLManager in the moz.build backend is a bit weird.  It maintains a
bunch of per-IDL file information, some of which isn't used, and
attempts to map module names to information about what entities the
module needs to be built.  The former is done with Python dicts, and the
latter with Python tuples, both resulting in some contortions by the
clients of IDLManager to specify exactly what they need.

Let's clean this up, by making IDLManager to more clearly do two jobs:

1. Keep track of whether IDL files are globally unique; and
2. Map module names to the information needed to build them.

In the case of #2, we store everything as a straight Python object, so
we can use actual property accesses everywhere.  We also provide a
stems() function on IDLManager to make some client code more
straightforward.

Doing this makes IDLManager much more XPIDL module-centric, and paves
the way for the same change to be made in the frontend as well.
2018-07-24 15:41:47 -04:00
Nathan Froyd 0c8011a1d5 Bug 1476973 - part 2 - assert that XPIDL_SOURCES files all exist; r=gps
We should have been checking for this from the beginning.
2018-07-24 15:41:47 -04:00
Nathan Froyd 4664aa1811 Bug 1476973 - part 1 - make XPIDL_SOURCES a list of SourcePath objects; r=gps
XPIDL_SOURCES would benefit from being more explicit about what sort of
values it contains; let's define it as a list of SourcePath objects, and
propagate those objects into XPIDLFile frontend objects as well.
2018-07-24 15:41:47 -04:00
Ted Mielczarek 37a68a07fc bug 1447932 - Add support for localized files to fastermake backend. r=mshal
Co-authored by Nick Alexander <[email protected]>

This patch adds support to the fastermake backend for taking localized files
from a locale directory as specified by the combination of --with-l10n-base
and --enable-ui-locale. This allows artifact builds to be built localized
with a different locale.

MozReview-Commit-ID: 1bD9Gy0ewJ2
2018-03-21 16:47:02 -04:00
Narcis Beleuzu b15da4b711 Backed out 5 changesets (bug 1476973) for build tup bustages. CLOSED TREE
Backed out changeset e59a3967c1e4 (bug 1476973)
Backed out changeset 19e5a88621d1 (bug 1476973)
Backed out changeset 24bcc39a55f2 (bug 1476973)
Backed out changeset 08370aca03f5 (bug 1476973)
Backed out changeset 7d6a7a63abc0 (bug 1476973)
2018-07-24 21:51:43 +03:00
Nathan Froyd 6b6a7faea4 Bug 1476973 - part 5 - make xpidl variables simply expanded; r=gps
These kind of variables are slightly more efficient in make.
2018-07-24 14:30:53 -04:00
Nathan Froyd c90ee98a20 Bug 1476973 - part 4 - emit XPIDLModule, rather than multiple XPIDLFile; r=gps
XPIDL files are logically grouped together into a module, but the
current model for the moz.build frontend is that we emit individual
XPIDLFile objects, and leave it to the backend to reconstruct
module-ness from those.  This setup causes a small amout of useless work
to be done (e.g. see XPIDLFile handling in
RecursiveMakeBackend.consume_object; such handling should only be done
once), and it would be cleaner to have the objects emitted reflect the
build system concepts as closely as possible.  To that end, let's emit
XPIDLModule objects instead, which fortunately requires relatively few
changes.
2018-07-24 14:30:53 -04:00
Nathan Froyd 679be90142 Bug 1476973 - part 3 - rationalize the backend's IDLManager; r=gps
The IDLManager in the moz.build backend is a bit weird.  It maintains a
bunch of per-IDL file information, some of which isn't used, and
attempts to map module names to information about what entities the
module needs to be built.  The former is done with Python dicts, and the
latter with Python tuples, both resulting in some contortions by the
clients of IDLManager to specify exactly what they need.

Let's clean this up, by making IDLManager to more clearly do two jobs:

1. Keep track of whether IDL files are globally unique; and
2. Map module names to the information needed to build them.

In the case of #2, we store everything as a straight Python object, so
we can use actual property accesses everywhere.  We also provide a
stems() function on IDLManager to make some client code more
straightforward.

Doing this makes IDLManager much more XPIDL module-centric, and paves
the way for the same change to be made in the frontend as well.
2018-07-24 14:30:53 -04:00
Nathan Froyd 7c41a94ef2 Bug 1476973 - part 2 - assert that XPIDL_SOURCES files all exist; r=gps
We should have been checking for this from the beginning.
2018-07-24 14:30:53 -04:00
Nathan Froyd 4f7dcff69b Bug 1476973 - part 1 - make XPIDL_SOURCES a list of SourcePath objects; r=gps
XPIDL_SOURCES would benefit from being more explicit about what sort of
values it contains; let's define it as a list of SourcePath objects, and
propagate those objects into XPIDLFile frontend objects as well.
2018-07-24 14:30:54 -04:00
Cosmin Sabou 2a055383f7 Backed out changeset f19f8d717c6b (bug 1447932) for build bustages on test_fastermake. CLOSED TREE 2018-07-23 14:41:16 +03:00
Ted Mielczarek db92574247 bug 1447932 - Add support for localized files to fastermake backend. r=mshal
Co-authored by Nick Alexander <[email protected]>

This patch adds support to the fastermake backend for taking localized files
from a locale directory as specified by the combination of --with-l10n-base
and --enable-ui-locale. This allows artifact builds to be built localized
with a different locale.

MozReview-Commit-ID: 1bD9Gy0ewJ2
2018-03-21 16:47:02 -04:00
Mike Shal 4fb390da04 Bug 1476802 - Make toolkit/library/rust/Tupfile work with --dry-run; r=cmanchester+432261
We shouldn't call _get_backend_file during TupBackend:_init() since
self.dry_run is not set yet. Instead we can just call it when we need to
add rust rules.

MozReview-Commit-ID: 5elqXGFMSuG
2018-07-18 17:20:13 -04:00
Chris Manchester c2513d85bd Bug 1475278 - Link a HostRustLibrary to a HostProgram where necessary in the Tup backend. r=mshal
MozReview-Commit-ID: qghHI02Bfs
2018-07-12 16:31:54 -07:00
Andrew Halberstadt ef5e8b1023 Bug 1476390 - [python-test] Default number of processes to multiprocessing.cpu_count() r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D2201
2018-07-18 16:15:48 +00:00
Tooru Fujisawa 2315509abb Bug 1475443 - Properly detect Xcode licence agreement issue in bootstrap.py; r=gps 2018-07-13 12:32:45 +09:00
Bogdan Tara d0c9078e52 Merge autoland to mozilla-central. a=merge 2018-07-17 00:58:15 +03:00
Simon Fraser 867700166b Bug 1476003 Update python virtual environment for |mach python-safety| r=davehunt
Following the lead from 1473727 and python-test.

Differential Revision: https://phabricator.services.mozilla.com/D2158
2018-07-16 15:36:50 +00:00
Masatoshi Kimura 4637a1969a Bug 1476000 - Support warnings format from clang-cl. r=dmajor 2018-07-17 01:08:04 +09:00
Gregory Szorc aca0c6ba55 Bug 1475649 - Always use --untracked-files; r=ahal
a35b188d0e44 inadvertently regressed behavior in the case where
the Git status.showUntrackedFiles config option was set and
we want to purge untracked files.

Differential Revision: https://phabricator.services.mozilla.com/D2141
2018-07-16 13:19:09 +00:00
Chris Manchester 3b0a2b4d1f Bug 1472490 - Make adding a source to SOURCES, UNIFIED_SOURCES, or HOST_SOURCES multiple times an error in moz.build. r=gps
MozReview-Commit-ID: FtPF3dxUxb5
2018-07-13 15:55:45 -07:00
Andrew Halberstadt aac1f94bb3 Bug 1475649 - [mozversioncontrol] Make vcs.working_directory_clean() ignore untracked files by default r=jgraham
The doc string for the "working_directory_clean" function states:
> By default, untracked and ignored files are not considered.

But the git implementation for this function used to run:
git status --porcelain

Which *does* consider untracked files by default. Instead, we need to run:
git status --porcelain --untracked-files=no

Differential Revision: https://phabricator.services.mozilla.com/D2134
2018-07-13 20:54:08 +00:00
Chris Manchester 7512cec7a5 Bug 1475058 - Send SIGINT when interrupting interactive in mach before sending SIGKILL. r=mshal
MozReview-Commit-ID: 2XxLyNi1ZuS
2018-07-12 11:50:48 -07:00
Gurzau Raul 8a06c38829 Merge inbound to mozilla-central. a=merge 2018-07-12 01:04:09 +03:00
Dan Minor 7bf9d2f738 Bug 1371485 - Use updated version of gyp; r=chmanchester
Tags: #secure-revision

Bug #: 1371485

Differential Revision: https://phabricator.services.mozilla.com/D1801
2018-06-21 14:39:34 -04:00