Commit Graph
4035 Commits
Author SHA1 Message Date
Dão Gottwald bfd25b09a2 Bug 1369456 - Replace nsSessionStartup.js with SessionStartup.jsm. r=florian
MozReview-Commit-ID: 53Mu4zb9X1C
2018-08-04 13:27:40 +02:00
Bogdan Tara ed871660f1 Merge inbound to mozilla-central. a=merge 2018-08-03 13:16:27 +03:00
Nathan Froyd 4690d4b2fe Bug 1480553 - part 1 - add Windows-specific aarch64 macro detection; r=glandium
MSVC doesn't define __aarch64__, but uses its own symbol instead.
2018-08-02 21:40:40 -04:00
Tudor-Gabriel Vîjială 0c8bb6ace3 Bug 1473313 - Part 1: Set up geckoview build config for androidTest coverage runs. r=nalexander
This patch adds JaCoCo as a dependency for the geckoview androidTest configurations, as well as
the `mach android archive-geckoview-coverage-artifacts` command, and the `--enable-java-coverage`
mozconfig flag.

MozReview-Commit-ID: 36jNAzK44g3
2018-07-24 11:44:24 +01:00
Nathan Froyd b7a1bfff7d Bug 1480424 - clarify the meaning of --from-build for mach artifact toolchain; r=emilio
It never hurts to be explicit in documentation.
2018-08-02 10:01:41 -04:00
Andi-Bogdan Postelnicu cb4fc9cc52 Bug 1480370 - pass checks to _get_clang_tidy_command. r=babadie+588857
MozReview-Commit-ID: JO9nr59WYk5
2018-08-02 13:48:29 +03:00
dvarga 7f13b5d1cc Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-02 01:19:44 +03:00
dvarga 20d9adda48 Merge inbound to mozilla-central. a=merge 2018-08-02 01:09:38 +03:00
Dorel Luca 38dd3e7de8 Backed out 2 changesets (bug 1473648, bug 1476661) for mochitest failure on testing/mochitest/tests/python/test_basic_mochitest_plain.py
Backed out changeset dbb14978acf8 (bug 1473648)
Backed out changeset de933cb380f9 (bug 1476661)
2018-08-01 16:01:05 +03:00
Sofia Carrillo e7fe71f2ca Bug 1479557 - upload cost metric for all files in build graph r=chmanchester
With this artifact, we will have the total wall time for all files in the build
graph.

MozReview-Commit-ID: I6hLxavX3QY
2018-07-26 19:47:51 -04:00
Andreea Pavel 21bafea76d Backed out 6 changesets (bug 1478499) for failing spidermonkey pkg
Backed out changeset 9dee6a08a2dd (bug 1478499)
Backed out changeset 3982c14a834e (bug 1478499)
Backed out changeset 6f6e562e2013 (bug 1478499)
Backed out changeset 03f68a47b89e (bug 1478499)
Backed out changeset 237dc169f486 (bug 1478499)
Backed out changeset 3f72358d338a (bug 1478499)
2018-08-01 22:22:41 +03:00
Chris Manchester c69fbbacb1 Bug 1478499 - Consider GCC_USE_GNU_LD when passing a symbols file in the Tup build for consistency with the Make build. r=mshal
MozReview-Commit-ID: 7D4zYj6vhly
2018-07-31 16:11:33 -07:00
Chris Manchester 46dbf07d81 Bug 1478499 - Skip additional js shell installation via ObjdirFiles in the tup build. r=mshal
Having an output to !/js/src/js causes problems for tup, because many
compilation invocations will attempt to find headers in !/js/src/js,
meaning tup thinks these invocations should depend on generating
!/js/src/js (the file).

MozReview-Commit-ID: CHP20RqH1OM
2018-07-31 15:16:04 -07:00
Chris Manchester 1fe5e9b6b6 Bug 1478499 - Consider GCC_USE_GNU_LD when passing a symbols file in the Tup build for consistency with the Make build. r=mshal
MozReview-Commit-ID: 8o4o9HiGdrR
2018-08-01 13:25:48 -07:00
Chris Manchester 1ffa6b7611 Bug 1478499 - Skip additional js shell installation via ObjdirFiles in the tup build. r=mshal
Having an output to !/js/src/js causes problems for tup, because many
compilation invocations will attempt to find headers in !/js/src/js,
meaning tup thinks these invocations should depend on generating
!/js/src/js (the file).

MozReview-Commit-ID: Ky6kq82vlO8
2018-07-31 16:19:59 -07:00
Dorel Luca 9598133e75 Merge mozilla-cental to mozilla-inbound 2018-08-01 12:54:59 +03:00
David Heiberg 9782ffb25d Bug 1476661 - Ensure H2 dependencies are packaged alongside wptserve where needed, r=jgraham 2018-08-01 10:52:11 +01:00
Alexis Deschamps 95639a98ad Bug 1476034 - about:crashes: switched to fluent. r=flod,Pike
Summary:
The about:crashes page is being updated (bug 1463515). To facilitate these changes,
this patch changes the about:crashes page to use Fluent for localization instead of the old systems.
This also includes a script to migrate strings from the old .DTD and .properties files
to the new .ftl one.

Test Plan:
1. build Firefox with the changes
2. run Firefox
3. go to the about:crashes page
4. expect nothing to be different

This extension: https://github.com/rhelmer/webext-experiment-crashme can be used to
add local crash reports for verifying the different states of the about:crashes page.

Reviewers: flod, Pike, jchen, snorp

Reviewed By: flod, Pike, jchen, snorp

Subscribers: nalexander, reviewbot

Bug #: 1476034

Differential Revision: https://phabricator.services.mozilla.com/D2225
2018-08-01 10:31:14 +03:00
Mike Shal f474a291b9 Bug 1475071 - Enable --no-sync and --debug-logging when running tup; r=chmanchester
The --no-sync flag turns off the SQLite synchronous pragma, so we don't
force the disk to sync on every 'mach build'. Since mach always touches
a few files (eg: warnings.json, .purgecaches, etc), there is always a
minor amount of updates to the database, and syncing them every time
just forces an unnecessary delay.

The --debug-logging flag saves logs under .tup/log to show what files
changes or were deleted, as well as the corresponding build DAG. This
can be helpful when trying to investigate why something was rebuilt.

MozReview-Commit-ID: L0m7IsYlFUI
2018-07-31 10:07:57 -04:00
Chris Manchester 09c13cec96 Bug 1478561 - Expose MOZ_AUTOMATION to rust running in the tup build. r=froydnj
MozReview-Commit-ID: 6ekOYJv7iz7
2018-07-30 16:46:10 -07:00
Chris AtLee 2873f87ade Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743
2018-08-01 16:00:03 +00:00
Coroiu Cristina 1a5477ffb1 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-07-31 01:03:29 +03:00
Ted Mielczarek 65b6f7c7e1 bug 1409276 - emit COMPUTED_{CFLAGS,CXXFLAGS} for Rust-only directories in the recursive make backend. r=chmanchester
Currently the recursive make backend skips emitting COMPUTED_CFLAGS etc for
Rust-only directories as an optimization. However, we need to pass CFLAGS down
to Rust build scripts that compile C/C++ code, so having the COMPUTED_
variables will make it easier to pass the right set of flags.

Additionally, ensure that Rust programs wind up in linkables/host_linkables so
that they get computed flags emitted.

MozReview-Commit-ID: Ld41080dOZN
2018-07-11 15:52:26 -04:00
Andi-Bogdan Postelnicu 482ea66613 Bug 1472975 - Add tests in tree to make mach static-analysis doesn't regress. r=janx
MozReview-Commit-ID: DQfZ9ayhSmE
2018-07-03 16:35:39 +03:00
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