Commit Graph

4477 Commits

Author SHA1 Message Date
Dave Hunt
749eeb4b79 Bug 1490253 - Update documentation on vendoring Python packages based on switch to pip-tools; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D8205

--HG--
extra : moz-landing-system : lando
2018-10-15 13:36:30 +00:00
Nick Alexander
a1d5fbf47a Bug 1498715 - Use faster XZ compression preset for Android assets/ libraries for local developers. r=esawin
Before:

xz-compressing dist/fennec/assets/x86/libxul.so with "xz -zkf dist/fennec/assets/x86/libxul.so --threads=1 --x86 --lzma2=dict=8MiB,lc=3,lp=0,pb=2,mode=normal,nice=64,mf=bt4,depth=0"...
xz-compressing dist/fennec/assets/x86/libxul.so with "xz -zkf dist/fennec/assets/x86/libxul.so --threads=1 --x86 --lzma2=dict=8MiB,lc=3,lp=0,pb=2,mode=normal,nice=64,mf=bt4,depth=0"... DONE (69.13s)

$ ls -al dist/fennec/assets/x86/libxul.so
-rwxr-xr-x  1 nalexander  staff  31286204 12 Oct 14:06 dist/fennec/assets/x86/libxul.so

After:

xz-compressing dist/fennec/assets/x86/libxul.so with "xz -zkf dist/fennec/assets/x86/libxul.so --threads=1 --x86 --lzma2=dict=8MiB,lc=3,lp=0,pb=2,mode=fast,nice=273,mf=hc4,depth=24"...
xz-compressing dist/fennec/assets/x86/libxul.so with "xz -zkf dist/fennec/assets/x86/libxul.so --threads=1 --x86 --lzma2=dict=8MiB,lc=3,lp=0,pb=2,mode=fast,nice=273,mf=hc4,depth=24"... DONE (19.52s)

$ ls -al dist/fennec/assets/x86/libxul.so
-rwxr-xr-x  1 nalexander  staff  34877984 12 Oct 14:00 dist/fennec/assets/x86/libxul.so

All timings on a late 2013 MacBook Pro (i.e., a very slow device).

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

--HG--
extra : moz-landing-system : lando
2018-10-15 13:07:23 +00:00
Dorel Luca
2b0bec5ab3 Merge mozilla-central to mozilla-inbound. CLOSED TREE
--HG--
extra : amend_source : d757a37614ac9d59e154d34ede3ca871a643cdb7
2018-10-18 02:02:07 +03:00
Tom Ritter
15dd23bc5d Bug 1475562 Produce pdbs for the mingw-clang build job r=ted
This patch also changes how pdbs for the ASAN job are copied:
we relax restrictions so that pdbs if present) are always copied out
and add an environment variable MOZ_COPY_PDBS to indicate when we
want to produce pdbs for copying.
2018-10-17 09:38:52 -05:00
Cosmin Sabou
9b6a537ec7 Backed out changeset 91300d29898b (bug 1489443) for MinGW build bustages. CLOSED TREE 2018-10-13 02:17:15 +03:00
Nick Alexander
3c83541616 Bug 1489443 - Set GCC_USE_GNU_LD based on linker kind. r=froydnj
The desired outcome of this change is that we'll set
`-Wl,--version-script` based on linker kind and not on the output of
`$LINKER -v`.

This is a cheap way to address a simple problem that has a complicated
ideal solution.  The underlying issue is that in some situations, when
targeting Android, a macOS system `ld` is interrogated to determine if
a cross-compiling linker "is GNU ld" and a particular linker feature
is set in that situation.  The macOS system `ld` doesn't pass the "is
GNU ld" test, and the linker feature isn't set; that causes link
failures, even though the actual linker has nothing to do with the
system `ld`.

The ideal solution is to test for linker capabilities dynamically.  We
do a lot of that in old-configure.in, and we don't do any of that in
toolchain.configure.  Rather than start testing in
toolchain.configure, we hard-code: a cheap solution to the immediate
problem.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 22:38:44 +00:00
Mike Hommey
148c9de331 Bug 1498450 - Avoid the footgun from @depends-function comparison r=froydnj
While we do have some uses of @depends-function comparison in some
templaces, related to host/target, we ought to be using `is` comparisons
rather than `==` anyways, so we switch those, and prevent other kinds of
comparisons being used at all.

This unveils the one noted in
https://phabricator.services.mozilla.com/D7713?id=21357#inline-30414
(and surprisingly only that one), that we remove entirely since it was
doing nothing in practice. Bug 1492305 will have to add it back in a
proper form.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 13:44:08 +00:00
Andrew Halberstadt
f4c851912d Bug 1494069 - [mozlint] Collapse exclude paths into their smallest possible set, r=egao
Often we specify globs in our exclude patterns, e.g:

    exclude:
        - **/node_modules
        - obj*

However, these globs get expanded out to *every* file that matches them. This
can sometimes be thousands or even tens of thousands of files.

We then pass these paths on to the underlying linters and tell them to
exclude them all. This causes a lot of overhead and slows down performance.

This commit implements a "collapse" function. Given a set of paths, it'll
collapse them into the smallest set of parent directories that contain the
original set, and that don't contain any extra files.

For example, given a directory structure like this:

    a
    -- foo.txt
    -- b
       -- bar.txt
       -- baz.txt
    -- c
       -- ham.txt
       -- d
          -- spam.txt

Then the following will happen:

     >>> collapse(['a/foo.txt', 'a/b/bar.txt', 'a/c/ham.txt', 'a/c/d/spam.txt'])
     ['a/foo.txt', 'b/bar.txt', 'c']

Since all files under directory 'c' are specified by the original set (both
'c/ham.txt' and 'c/d/spam.txt'), we can collapse it down to just 'c'. However
not all files under 'b' are specified (we're missing 'a/b/baz.txt'), so we
can't collapse 'b' (and by extension also can't collapse 'a').

If we had included 'a/b/baz.txt':

     >>> collapse(['a/foo.txt', 'a/b/bar.txt', 'a/b/baz.txt', 'a/c/ham.txt', 'a/c/d/spam.txt'])
     ['a']

In both cases, the smallest set of paths that contains the original set (and
only the original set) is computed.

The collapse function has a little bit of overhead but it's not too bad.
For example collapsing all files matched by '**/node_modules' takes ~0.015s.
Collapsing two full objdirs, takes ~0.6s. But a follow up commit is planned to
make sure we stop using 'obj*' to reduce that overhead.

Depends on D7738

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

--HG--
extra : moz-landing-system : lando
2018-10-12 15:57:42 +00:00
Csoregi Natalia
28fe656de6 Merge inbound to mozilla-central. a=merge 2018-10-12 13:14:37 +03:00
Csoregi Natalia
f00a0ea9cc Backed out 3 changesets (bug 1494069) for blocking 1498215. a=backout
Backed out changeset 9752f179b9c3 (bug 1494069)
Backed out changeset fe0fb280dbfc (bug 1494069)
Backed out changeset a2956764213e (bug 1494069)
2018-10-12 13:11:04 +03:00
Chris Manchester
55dced2da0 Bug 1497359 - Detect and reject re-use of objdirs between Make and Tup in configure. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D8289

--HG--
extra : moz-landing-system : lando
2018-10-11 19:16:49 +00:00
Narcis Beleuzu
e8f62dbf84 Backed out changeset b01876f4f16e (bug 1498215) for bustages on test_pathutils.py. CLOSED TREE 2018-10-11 23:56:45 +03:00
James Graham
766c447843 Bug 1498215 - Fix problem importing scandir when system scandir exists, r=davehunt
If scandir is already present on the system the attempt to import the
c helper library will currently find the c helper from the system
install which may well be an outdated verion, so causing mach to
break. To solve this this patch does two things:

* Stops importing scandir in files that are run unconditionally when
  invoking mach. This is generally considered good for performance
  reasons.

* Installs the vendored scandir into the virtualenv for `mach lint`
  rather than trying to import it directly from the source tree and so
  not getting the c helper library.

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

--HG--
extra : moz-landing-system : lando
2018-10-11 15:05:16 +00:00
Narcis Beleuzu
e09f2e2622 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-12 06:53:11 +03:00
Andi-Bogdan Postelnicu
59a399a406 Bug 1497155 - Allow toolchain artifact downloading command to be run on Taskcluster. r=glandium.
Differential Revision: https://phabricator.services.mozilla.com/D8360

--HG--
extra : moz-landing-system : lando
2018-10-11 08:11:41 +00:00
Qinghao_Jack_Song
2d26d932b7 Bug 1486934 - Modify about:about to use fluent for localization r=Gijs,flod,jaws,Pike
Differential Revision: https://phabricator.services.mozilla.com/D5311

--HG--
extra : moz-landing-system : lando
2018-10-10 17:41:47 +00:00
Chris Manchester
8632e09b6b Bug 1497339 - Fix reftests in the Tup backend. r=ted,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D8284

--HG--
extra : moz-landing-system : lando
2018-10-10 23:12:32 +00:00
Ciure Andrei
f97ab0ad0a Backed out changeset 4530cf55b7b4 (bug 1497339) for reftest failures No such file or directory ../specialpowers CLOSED TREE 2018-10-11 01:07:22 +03:00
Chris Manchester
194fbbcd66 Bug 1497339 - Fix reftests in the Tup backend. r=ted,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D8284

--HG--
extra : moz-landing-system : lando
2018-10-10 20:28:04 +00:00
Ted Mielczarek
0383cf1f1b bug 1483651 - Dereference symlinks inside vendored Python packages. r=gps
At least one Python package that got vendored via `mach vendor python`
contains a symlink, which hg.mozilla.org rejects. This change makes it so
symlinks get replaced with the contents of the file they point to.

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

--HG--
extra : moz-landing-system : lando
2018-10-10 19:59:52 +00:00
Ted Mielczarek
1f36da7ff2 bug 1481612 - Add more actions to virtualenv_packages.txt and use them to include the unpacked Windows psutil wheel. r=gps
This patch adds two new actions to virtualenv_packages.txt processing:
windows and !windows. The former processes the rest of the action only on
Windows, and the latter processes it only on non-Windows.

These new features are used in virtualenv_packages.txt to use the
path to the unpacked Windows psutil wheel when on Windows, and build psutil
from source and use that path on other platforms.

This fixes the long-standing problem of not having psutil available on most
Windows systems (since they don't have the right set of Visual C++ build tools).

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

--HG--
extra : moz-landing-system : lando
2018-10-10 19:53:47 +00:00
Ted Mielczarek
71e6a3af6b bug 1481612 - Add a --with-windows-wheel option to mach vendor python. r=gps
This option is very single-purpose: it's intended to let us vendor an unpacked
wheel for psutil on Windows. To that end the mach command will error if you
try to use it for anything but vendoring a single package. The mach command
will vendor source packages as it currently does, and then run `pip download`
again with some hardcoded parameters to fetch the right wheel for Python 2.7
on win64 and unpack it to a `package-platform` directory under
`third_party/python`.

I don't expect this to be used for anything but psutil, but it should make life
simpler for anyone that wants to update our vendored copy of psutil in the
future.

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

--HG--
extra : moz-landing-system : lando
2018-10-10 19:54:36 +00:00
Andrew Halberstadt
83df36524d Bug 1494069 - [mozlint] Collapse exclude paths into their smallest possible set, r=egao
Often we specify globs in our exclude patterns, e.g:

    exclude:
        - **/node_modules
        - obj*

However, these globs get expanded out to *every* file that matches them. This
can sometimes be thousands or even tens of thousands of files.

We then pass these paths on to the underlying linters and tell them to
exclude them all. This causes a lot of overhead and slows down performance.

This commit implements a "collapse" function. Given a set of paths, it'll
collapse them into the smallest set of parent directories that contain the
original set, and that don't contain any extra files.

For example, given a directory structure like this:

    a
    -- foo.txt
    -- b
       -- bar.txt
       -- baz.txt
    -- c
       -- ham.txt
       -- d
          -- spam.txt

Then the following will happen:

     >>> collapse(['a/foo.txt', 'a/b/bar.txt', 'a/c/ham.txt', 'a/c/d/spam.txt'])
     ['a/foo.txt', 'b/bar.txt', 'c']

Since all files under directory 'c' are specified by the original set (both
'c/ham.txt' and 'c/d/spam.txt'), we can collapse it down to just 'c'. However
not all files under 'b' are specified (we're missing 'a/b/baz.txt'), so we
can't collapse 'b' (and by extension also can't collapse 'a').

If we had included 'a/b/baz.txt':

     >>> collapse(['a/foo.txt', 'a/b/bar.txt', 'a/b/baz.txt', 'a/c/ham.txt', 'a/c/d/spam.txt'])
     ['a']

In both cases, the smallest set of paths that contains the original set (and
only the original set) is computed.

The collapse function has a little bit of overhead but it's not too bad.
For example collapsing all files matched by '**/node_modules' takes ~0.015s.
Collapsing two full objdirs, takes ~0.6s. But a follow up commit is planned to
make sure we stop using 'obj*' to reduce that overhead.

Depends on D7738

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

--HG--
extra : moz-landing-system : lando
2018-10-09 19:26:23 +00:00
Andi-Bogdan Postelnicu
2139aad55e Bug 1479298 - [Static-Analysis][Clang-Based] Implement the passing of configuration flags to checkers in the configuration file. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D7997

--HG--
extra : moz-landing-system : lando
2018-10-10 08:01:24 +00:00
Dave Hunt
046359060c Bug 1490253 - Replace pipenv with pip-tools for vendoring packages and dependencies; r=ahal
Depends on D7869

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

--HG--
extra : moz-landing-system : lando
2018-10-10 08:58:41 +00:00
Csoregi Natalia
fbee84608f Backed out changeset f92dcf5319ae (bug 1490253) for bustage on test_mozbuild_reading.py. CLOSED TREE 2018-10-10 00:51:30 +03:00
Dave Hunt
4141a28060 Bug 1490253 - Replace pipenv with pip-tools for vendoring packages and dependencies; r=ahal
Depends on D7869

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

--HG--
extra : moz-landing-system : lando
2018-10-09 21:32:35 +00:00
Chris Manchester
0b687a9b65 Bug 1497350 - Fix |./mach xpcshell-test| in the tup backend. r=ted,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D8040

--HG--
extra : moz-landing-system : lando
2018-10-09 19:25:36 +00:00
Nick Alexander
5d4e0021b0 Bug 1418464 - Part 1: XZ compress in the packager rather than package_fennec_apk.py. r=mshal
By doing this in the packager, it makes it easier to incorporate the
strip and XZ compress logic into the local Gradle build process.

To that end, this patch makes XZ compression a little more explicit in
package-manifest.in and lifts the logic next to the existing logic for
stripping.  Since we only want to XZ compress assets/ (and not libs/),
we need a new flag.

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

--HG--
extra : moz-landing-system : lando
2018-10-09 18:35:22 +00:00
Chris Manchester
9712d79b53 Bug 1497373 - Guard against relying on an empty source directory referred to by an jar.mn wildcard in the Tup backend. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D8047

--HG--
extra : moz-landing-system : lando
2018-10-09 13:05:32 +00:00
Noemi Erli
a9748223c6 Merge inbound to mozilla-central. a=merge 2018-10-09 07:03:30 +03:00
Chris Manchester
67d0cf78d1 Bug 1496853 - Enable link time optimization for rust in tup for --enable-release builds. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D7951

--HG--
extra : moz-landing-system : lando
2018-10-08 17:51:34 +00:00
Ciure Andrei
148577fc45 Backed out 2 changesets (bug 1418464) for test_packager.py build bustages CLOSED TREE
Backed out changeset d6794cb231e1 (bug 1418464)
Backed out changeset cc793c2d8cee (bug 1418464)
2018-10-05 22:11:05 +03:00
Nick Alexander
2f10ff4106 Bug 1418464 - Part 1: XZ compress in the packager rather than package_fennec_apk.py. r=mshal
By doing this in the packager, it makes it easier to incorporate the
strip and XZ compress logic into the local Gradle build process.

To that end, this patch makes XZ compression a little more explicit in
package-manifest.in and lifts the logic next to the existing logic for
stripping.  Since we only want to XZ compress assets/ (and not libs/),
we need a new flag.

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

--HG--
extra : moz-landing-system : lando
2018-10-05 18:29:12 +00:00
Mike Shal
5c85018da7 Bug 1461714 - Run node in export; r=ochameau,nalexander
In bug 1461714 we run node.py to generate main.js in the objdir, and use
FINAL_TARGET_FILES to install it into dist. However, when both rules are
run in parallel in the misc tier, the install target may pick up the
main.js file from the srcdir via VPATH, so we end up with the wrong file
in dist. This causes some mochitests to fail with "uncaught exception -
SyntaxError: import declarations may only appear at top level of a
module at
@resource://devtools/client/debugger/new/src/main.js:7:undefined"

The workaround here is to run these node.py invocations (which always
write to node.stub) in the export tier, so that when the install target
in misc is processed, the objdir version of the file is always present
and takes precedence.

A better fix would probably be to remove our reliance on VPATH, and just
pass in the path to files in the srcdir when they are required. That
could potentially be a major overhaul, however.

MozReview-Commit-ID: JZ04C7zJPbX

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

--HG--
extra : moz-landing-system : lando
2018-10-05 08:17:39 +00:00
Adam Gashlin
d47ba7158e Bug 1496610: Don't treat ~ (tilde) in paths as special. r=glandium
This fixes treatment of Windows paths, where tilde is not special,
particularly in short file names.

--HG--
extra : rebase_source : be1873a44cb2d3fa455e7bd4a31bb7c221f19213
2018-10-04 18:55:07 -07:00
Mike Hommey
d19d35bd2e Bug 1495641 - Make clang-tidy toolchains use a clang-tidy/ directory instead of clang/. r=ted
Differential Revision: https://phabricator.services.mozilla.com/D7582
2018-10-05 09:51:07 +09:00
Mike Hommey
d605a2bfd3 Backout changeset 3ff4a396300c (bug 1495641) to give time to toolchains to build without blocking other landings. 2018-10-05 07:46:52 +09:00
Mike Hommey
460d9b3318 Bug 1495641 - Make clang-tidy toolchains use a clang-tidy/ directory instead of clang/. r=ted
Differential Revision: https://phabricator.services.mozilla.com/D7582
2018-10-05 07:41:27 +09:00
James Graham
8df230bb58 Bug 1495372 - Unify wpt manifest download and update, r=ato
The previous code split a lot of logic between the update and download
parts, and exposed two different mach commands. In order to simplify
things it's better to have a single entry point for manifest download
and update, and ensure that's called consistently.

Differential Revision: https://phabricator.services.mozilla.com/D7497
2018-10-04 14:19:38 +01:00
Tooru Fujisawa
0c58650a99 Bug 1494287 - followup: Fix undefined variable in fallback path. r=me 2018-10-12 08:24:04 +09:00
Tooru Fujisawa
c5cbf8d38f Bug 1494287 - Check existing cbindgen version and update if necessary. r=ted 2018-10-12 07:59:22 +09:00
Nathan Froyd
e2773ad4fd Bug 1397263 - move ASOUTOPTION to moz.configure; r=mshal 2018-10-03 20:29:29 -04:00
Nathan Froyd
9a1e9149b8 Bug 1397263 - move AS checks to toolchain.configure; r=glandium
This is a fairly straightforward port of the AS tool checks from old-configure
to toolchain.configure. AS is a little quirky in that we currently do a
normal-looking check for it, but then override that value to be the C compiler
for non-Windows builds, and ml[64]/armasm64 for Windows builds.

After migrating those checks, the only things left in the MOZ_DEFAULT_COMPILER
macro in compiler-opts.m4 were some unused bits, so I removed them:
* Setting of CPP/CXXCPP, which are set in toolchain.configure now
* Setting HOST_LDFLAGS to empty, which doesn't seem particularly useful.

There was also a quirky old test that the assembler was ml[64] when js-ctypes
is enabled that I removed, I don't think it provides any value since this
patch will ensure that we're using the right assembler for Windows builds.
2018-10-03 20:29:29 -04:00
Cosmin Sabou
f34bdc7e4b Backed out changeset 8660ad891a23 (bug 1495372) for causing win2012 bustages. a=backout 2018-10-04 02:25:45 +03:00
Cosmin Sabou
7244d89e06 Backed out changeset dcba2a476ccf (bug 1305743) on request from jgraham for causing issues with mozinfo.json. a=backout 2018-10-04 01:05:44 +03:00
Ciure Andrei
9023b4cc72 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-03 19:45:50 +03:00
Edwin Gao
4c107f8236 Bug 1291335 - Check mozconfig for --disable-tests when running mach test commands r=gbrown
Behavior changes:

- instead of reading the mozconfig file, it now instantiates an instance of the build object.
- safe checking methods are used to access attributes to prevent errors on automation environment.
- better mach command parsing is performed with handler category instead of error-prone argv parsing.


Other changes:

- docstring for testing/xpcshell/runxpcshelltests.py::buildTestList() added and modernized.
- added clause that if length of tests gathered is 0, mach exits with an error code of 1.

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

--HG--
extra : moz-landing-system : lando
2018-10-03 15:40:48 +00:00
James Graham
57c945674a Bug 1495372 - Unify wpt manifest download and update r=ato
The previous code split a lot of logic between the update and download
parts, and exposed two different mach commands. In order to simplify
things it's better to have a single entry point for manifest download
and update, and ensure that's called consistently.

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

--HG--
extra : moz-landing-system : lando
2018-10-03 15:43:44 +00:00
Raza Haider
ad72d8df61 Bug 1488788 - Migrate about:restartrequired from DTD to Fluent. r=gijs,jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D5495

--HG--
extra : rebase_source : 0b96b28e314fabac2ce2eb2d0beb82854bd4aab0
2018-09-24 18:59:55 +01:00
Jay Kamat
245ac54f65 Bug 1493345 Fix improper usage of blessings.tigetstr r=ted,firefox-build-system-reviewers
blessings.tigetstr is not part of its API. It happens to work because
blessings imports curses using 'from curses import tigetstr'.

Instead, we can just use terminal.normal, which contains the string we were
going to get anyway.

See https://github.com/erikrose/blessings/pull/138 for more information.

Let me know if there's a better way of resolving this. Hopefully with this +
the patch I submitted to blessings (https://github.com/erikrose/blessings/pull/137)
firefox will build fine with TERM improperly set.

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

--HG--
extra : moz-landing-system : lando
2018-10-02 18:36:30 +00:00
Brindusan Cristian
fc5031a446 Merge inbound to mozilla-central. a=merge 2018-10-02 07:01:43 +03:00
Edwin Gao
d7986ad99a Bug 1305695 - ./mach test --debugger=<debugger> doesn't fail if <debugger> isn't available r=gbrown
- added checkers in python/mach/mach/main.py prior to calling registrar.py.
- added internal function to check if specified debugger is installed.
- support both ./mach test <test_name> and ./mach <test_category> styles.

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

--HG--
extra : moz-landing-system : lando
2018-10-01 22:06:54 +00:00
Chris Manchester
153d3ceb4a Bug 1495108 - Skip symlinking $objdir/dist/bin/js to $objdir/js/src/js in the tup backend in browser builds. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D7348

--HG--
extra : moz-landing-system : lando
2018-10-01 22:43:30 +00:00
Brindusan Cristian
9b5034705f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-02 01:04:29 +03:00
Brindusan Cristian
f8087305eb Merge inbound to mozilla-central. a=merge 2018-10-02 00:55:00 +03:00
shindli
6ba91671cb Backed out changeset 05df95ba3a98 (bug 1305695) for ES lint failures CLOSED TREE 2018-10-02 00:00:23 +03:00
Aaron Klotz
624a2f533e Bug 1495481: Add launcher process -wait-for-browser support to Visual Studio backend; r=froydnj
--HG--
extra : amend_source : fd60284645e3dda2f17935da906ac361c8d05e0c
2018-10-01 11:03:27 -06:00
Edwin Gao
63180f5b60 Bug 1305695 - ./mach test --debugger=<debugger> doesn't fail if <debugger> isn't available r=gbrown
- added checkers in python/mach/mach/main.py prior to calling registrar.py.
- added internal function to check if specified debugger is installed.
- support both ./mach test <test_name> and ./mach <test_category> styles.

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

--HG--
extra : moz-landing-system : lando
2018-10-01 18:03:06 +00:00
Chris Manchester
86497c51a6 Bug 1493272 - Run a top level build in the tup backend when "faster" or "binaries" is passed to |./mach build| r=ted,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D7319

--HG--
extra : moz-landing-system : lando
2018-10-01 19:11:59 +00:00
Chris Manchester
553a814a35 Bug 1495314 - Use the value of MOZ_DEBUG_RUST from individual objects in the Tup backend. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D7261

--HG--
extra : moz-landing-system : lando
2018-10-01 16:13:46 +00:00
Haik Aftandilian
128b20bd14 Bug 1494326 - Provide a mach run option to launch the browser using the macOS open(1) command r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D6909

--HG--
extra : moz-landing-system : lando
2018-10-01 17:02:34 +00:00
Paul Adenot
086c0861a3 Bug 1472496 - Don't call out to readelf in check_binary.py. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D6892

--HG--
extra : moz-landing-system : lando
2018-10-01 13:26:35 +00:00
Chris Manchester
de039f476a Bug 1494791 - Build rust programs in the tup backend. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D7147

--HG--
extra : moz-landing-system : lando
2018-09-28 21:49:06 +00:00
Dan Mosedale
424eb90de9 Bug 1485081 - Add node.py action for use by moz.build files, r=gps
MozReview-Commit-ID: F5iPctcvn9h
2018-10-01 15:12:40 -07:00
Ciure Andrei
a8953550a3 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-09-28 11:58:15 +03:00
Chris Manchester
68771b058d Bug 1494139 - Link rust libraries into programs in the tup backend. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D7136

--HG--
extra : moz-landing-system : lando
2018-09-28 00:38:47 +00:00
Chris Manchester
66aa31a499 Bug 1494139 - Add rust build script outputs to the tup backend for upcoming cranelift crates. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D7137

--HG--
extra : moz-landing-system : lando
2018-09-28 00:39:44 +00:00
Chris Manchester
07ba5749ea Bug 1494139 - Place build script outputs in each package's output directory in the tup backend. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D7135

--HG--
extra : moz-landing-system : lando
2018-09-28 00:31:56 +00:00
Edwin Gao
b8a91d1cf9 Bug 1305743 - Make failure to find mozinfo.json a fatal error r=gbrown,ahal
- moved placement of the raise_exception computation to be after the initial objdir path computation.
- original implementation was missing detection for cases where user may pass in a False flag to explicitly suppress errors.
- added unit tests to check for scenarios where raise_exception flag is passed in as part of positional argument.
- changed argument to include a **kwargs argument for caller to modify default exception behavior.
- default behavior is to raise exceptions if mozinfo.json cannot be found.
- disabled TreeMetadataEmitter from calling mozinfo.find_and_update_from_json and setting the self.info variable since it was not referenced anywhere else after the initial setup.

Depends on D6859

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

--HG--
extra : moz-landing-system : lando
2018-09-26 20:07:25 +00:00
Jim
a917f4d962 Bug 1486936. Migrated about:config to Fluent for localization. r=Gijs,flod,jaws
Bug 1486936 - Migrated about:config to Fluent for localization.

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

--HG--
extra : moz-landing-system : lando
2018-09-26 04:33:22 +00:00
Andrew Halberstadt
9d5e499a90 Bug 1448417 - [mozlint] Remove ability to specify globs in an 'include' directive, r=egao
There is only a single linter (test-disable.yml) that uses a glob in any
include path, and that usage is easily replaced by using the 'extensions' key
instead.

Since globs in include directives aren't very useful, let's disallow them. This
will allow us to simplify the 'filterpaths' logic quite substantially and make
future refactorings in this area easier.

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

--HG--
extra : moz-landing-system : lando
2018-09-25 18:30:23 +00:00
Mark Banner
3043f2a053 Bug 1482435 - Separate out nodejs finding logic from configure and use it for ESLint. r=firefox-build-system-reviewers,gps
This extracts the current logic for finding nodejs into its own module in mozbuild. Configure and ESLint then use it.

For ESLint, this will change the first location it looks for nodejs to be the .mozbuild directory.

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

--HG--
extra : moz-landing-system : lando
2018-09-25 18:15:51 +00:00
Andi-Bogdan Postelnicu
8648acbeb0 Bug 1493922 - [Static-Analysis][Clang-Tidy] Add more return codes to mach static-analysis autotest. r=janx
Differential Revision: https://phabricator.services.mozilla.com/D6759

--HG--
extra : moz-landing-system : lando
2018-09-25 12:37:45 +00:00
Aaron Klotz
5dc8e2a672 Bug 1493000: Ensure that mach gtest passes --wait-for-browser to firefox when launcher process is enabled; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D6440

--HG--
extra : moz-landing-system : lando
2018-09-24 21:29:37 +00:00
Ted Mielczarek
9a113c8914 bug 1493623 - don't try to collect compiler type for build telemetry in artifact builds. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D6669

--HG--
extra : moz-landing-system : lando
2018-09-24 16:13:34 +00:00
Bob Clary
60b6e1c8f0 Bug 1492599 - [mozbuild] Add MachCommandCondition.is_firefox_or_android method, r=ahal,froydnj. 2018-09-23 15:08:56 -07:00
Collin Wing
1e54660e25 Bug 1486935 - Migrated aboutProfiles to fluent for localization r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D5283

--HG--
extra : moz-landing-system : lando
2018-09-23 17:26:44 +00:00
Chris Manchester
461bf6e5f4 Bug 1492291 - Wrap rustc invocations in the tup backend to forward relevant info from cargo build script outputs. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D6422

--HG--
extra : moz-landing-system : lando
2018-09-22 00:38:12 +00:00
Chris Manchester
2ca27f0e2a Bug 1491967 - Translate arguments to |./mach build| to objdir paths when possible in the tup backend. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D6084

--HG--
extra : moz-landing-system : lando
2018-09-21 20:20:49 +00:00
Brindusan Cristian
e48cea756e Merge inbound to mozilla-central. a=merge
--HG--
rename : toolkit/themes/shared/in-content/check-partial.svg => toolkit/themes/shared/icons/check-partial.svg
rename : browser/themes/shared/icons/check.svg => toolkit/themes/shared/icons/check.svg
2018-09-21 20:29:29 +03:00
Andrew Halberstadt
2aba2689ec Bug 1448417 - [mozlint] Be explicit about which linters are used for functions in test_roller.py, r=rwood
This makes things more explicit. Previously we were relying on those magic
global "linters" variables, and it turned out that one of the tests was
actually linting a completely different set of linters than I was expecting.

This changes things so each test needs to explicitly define which linters it
wants to use.

Depends on D6410

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

--HG--
extra : moz-landing-system : lando
2018-09-20 20:45:04 +00:00
Andrew Halberstadt
a7af481576 Bug 1448417 - [mozlint] Rename test_filterpaths.py to test_pathutils.py, r=rwood
This makes this test match all the other tests (which are named after the module
they are testing).

Also rename the test function to 'test_filterpaths'.

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

--HG--
rename : python/mozlint/test/test_filterpaths.py => python/mozlint/test/test_pathutils.py
extra : moz-landing-system : lando
2018-09-20 20:27:45 +00:00
Ben Hearsum
648d8a8775 bug 1490119: Build separate updater that always embeds dep certificates. r=ted,firefox-build-system-reviewers
This patch gets us building an updater binary that always embeds the dep certificates (instead of release or nightly), and builds a new tests package that includes it.

This was originally D5900, but that was backed out due to busting artifact builds. I've fixed that by removing the Makefile that Ted pointed out is unnecessary.

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

--HG--
extra : moz-landing-system : lando
2018-09-21 10:07:27 +00:00
Coroiu Cristina
b51e5a983e Backed out changeset 494efc7d8c29 (bug 1486934) for build bustage at chrome/global/aboutAbout.dtd on a CLOSED TREE 2018-09-20 18:45:28 +03:00
Jack Smith
3670974038 Bug 1486937 - Migrates about:url-classifier to use fluent for localization r=Gijs,flod,zbraniecki,jaws
Migrates strings from aboutUrlClassifier.dtd and aboutUrlClassifier.properties files to aboutUrlClassifier.ftl

Modifies aboutUrlClassifier.xhtml and aboutUrlClassifier.js to use fluent.

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

--HG--
extra : moz-landing-system : lando
2018-09-16 13:52:25 +00:00
Qinghao_Jack_Song
4c06855cb5 Bug 1486934 - Modify about:about to use fluent for localization r=Gijs,flod,jaws
Differential Revision: https://phabricator.services.mozilla.com/D5311

--HG--
extra : moz-landing-system : lando
2018-09-19 19:02:37 +00:00
Ahilya Sinha
8f5e322404 Bug 1473915 - Set up infra so we can move the wpt-manifest out of tree r=gps
Changes the wpt manifest path to the topobjdir instead so it can be moved out of tree.
Other changes so that the manifest download and update, and |mach wpt| and |mach test <wpt-test>| work with the new path.
The manifest is also downloaded and updated when creating the tests-archive to ensure that it exists when we run tests on TC.

MozReview-Commit-ID: Fp6UsKJjhTU

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

--HG--
extra : moz-landing-system : lando
2018-09-20 12:07:58 +00:00
Andi-Bogdan Postelnicu
fb4dc15757 Bug 1480089 - pass all of the test files to to our static-analysis pipeline. r=janx
Differential Revision: https://phabricator.services.mozilla.com/D4659

--HG--
extra : moz-landing-system : lando
2018-09-20 07:38:27 +00:00
Andi-Bogdan Postelnicu
06c6a4c550 Bug 1488778 - Disregard exit code when calling static-analysis from mach. r=janx
Differential Revision: https://phabricator.services.mozilla.com/D5036

--HG--
extra : moz-landing-system : lando
2018-09-07 10:07:39 +00:00
Ted Campbell
388abb1424 Bug 1138579 - Support multiple Files patterns in moz.build r=gps
Add support for |with Files('a/**', 'b/**')| in mozbuild config files.

MozReview-Commit-ID: IoM4qfEhXXc

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

--HG--
extra : moz-landing-system : lando
2018-09-20 01:58:21 +00:00
Mike Shal
95ce5d48f7 Bug 1491169 - Fix LMDB symbol errors in the tup backend; r=chmanchester
This is a quick fix to workaround linking in rkv and lmdb-sys in the tup
backend. Bug 1492291 is a followup to actually fix the problem more
generally.

MozReview-Commit-ID: 523it7WEUad

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

--HG--
extra : moz-landing-system : lando
2018-09-19 22:43:54 +00:00
Bogdan Tara
e956072fa9 Backed out changeset 96059b4f6d8a (bug 1490119) for breaking OSX builds r=bhearsum a=backout 2018-09-20 02:52:19 +03:00
Ben Hearsum
11188446df bug 1490119: Add build system bits for building dep updater. r=firefox-build-system-reviewers,mshal,rstrong
This patch gets us building an updater binary that always embeds the dep certificates (instead of release or nightly), and builds a new tests package that includes it.

I had a lot of trouble getting the test package generated correctly due to the fact that things in "_tests" won't be included for test packages that aren't "common". My fix for that isn't ideal - I'm open to something better.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 19:55:23 +00:00
shindli
d8f561f92f Backed out changeset dd80de19f142 (bug 1473915) for mb failures in testing/mozbase/moztest/tests/test_resolve.py CLOSED TREE 2018-09-19 18:13:48 +03:00
Ahilya Sinha
67be437f68 Bug 1473915 - Set up infra so we can move the wpt-manifest out of tree r=gps
Changes the wpt manifest path to the topobjdir instead so it can be moved out of tree.
Other changes so that the manifest download and update, and |mach wpt| and |mach test <wpt-test>| work with the new path.
The manifest is also downloaded and updated when creating the tests-archive to ensure that it exists when we run tests on TC.

MozReview-Commit-ID: Fp6UsKJjhTU

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

--HG--
extra : moz-landing-system : lando
2018-09-19 06:57:50 +00:00
arthur.iakab
e38cbc2831 Merge mozilla-central to autoland 2018-09-19 05:20:02 +03:00
arthur.iakab
1ee75a928a Merge inbound to mozilla-central a=merge 2018-09-19 05:18:50 +03:00
Adam Gashlin
fc13e0055e Bug 1492268: Allow a Rust library to link to a program r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D6200

--HG--
extra : moz-landing-system : lando
2018-09-18 22:23:41 +00:00
Nathan Froyd
e268670d4f Bug 1490463 - part 1 - emit a srcdir_rel variable in every directory; r=mshal
Many Windows tools don't deal well with absolute paths for filenames,
oddly enough, so we want to pass relative paths into the source
directory where possible.  These relative paths also mean that they look
like "normal" unix paths to WSL and therefore don't require any special
handling.
2018-09-18 16:02:23 -04:00
Ted Mielczarek
de99592416 Bug 1399870 - make DEFFILE a Path instead of a string; r=gps
All but one of the current uses of DEFFILE use `SRCDIR + '/file.def'` to
get a srcdir-relative path anyway, and the other one wants an
objdir-relative path, so using Path makes everything clearer.

This makes it more straightforward to translate the paths for the WSL
build.
2018-09-18 15:50:19 -04:00
Matt Brubeck
8ca4e7a8dd Bug 1492001 - Update cargo_build_defs for num-traits. r=mbrubeck
--HG--
extra : rebase_source : d2f6833c4cd20ec8def8ebce60dc571d89023cec
2018-09-18 12:24:27 -07:00
Matt Brubeck
089f3a6e6b Bug 1492001 - Revendor Rust dependencies. r=jgraham
Depends on D6168

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

--HG--
rename : third_party/rust/num/bors.toml => third_party/rust/num-integer/bors.toml
extra : moz-landing-system : lando
2018-09-18 17:51:22 +00:00
Chris Manchester
8c3ce02582 Bug 1490763 - Export ICECC environment variables to compilation commands in the tup backend. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D5708

--HG--
extra : moz-landing-system : lando
2018-09-18 15:32:12 +00:00
Noemi Erli
c24ed5f87b Backed out changeset 08f0bf17514d (bug 1138579) for build bustages in /config/tests/test_mozbuild_reading.py 2018-09-18 20:40:06 +03:00
Ted Campbell
924a6f290b Bug 1138579 - Support multiple Files patterns in moz.build r=gps
Add support for |with Files('a/**', 'b/**')| in mozbuild config files.

MozReview-Commit-ID: IoM4qfEhXXc

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

--HG--
extra : moz-landing-system : lando
2018-09-18 17:18:30 +00:00
Chris Manchester
de165d4dba Bug 1490145 - Download rustc 1.29 in mach bootstrap. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D5825

--HG--
extra : moz-landing-system : lando
2018-09-14 02:21:26 +00:00
Masatoshi Kimura
480bad1d12 Bug 1490654 - Drop support for MSVC 2017 Update 6. r=froydnj 2018-09-16 22:22:31 +09:00
Andrew Halberstadt
3d4150df71 Bug 1486866 - [mozlint] Refactor test_include_exclude into parametrized test cases, r=egao
This will make it easier to add new test cases in the future. It'll
also make it easier to print debug, as only the output for each
specific test case will be printed on failure.

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

--HG--
extra : moz-landing-system : lando
2018-09-17 15:36:35 +00:00
Benjamin Bouvier
be8a563409 Bug 1490948: Add build system support for a Rust library in Spidermonkey; r=chmanchester
This introduces two new crates:
- jsrust, for standalone builds. This crate is compiled into a static library
  libjsrust.a, which gets linked into the shared Spidermonkey library when it's
  built, or into the static Spidermonkey library otherwise. This is just a
  static library wrapping jsrust_shared below.
- jsrust_shared, for Gecko embedding. It just references other Rust
  crates actively used in Spidermonkey. It is used to be embedded as part of
  a new Rust dependency in Gecko (in gkrust).

--HG--
rename : js/src/wasm/cranelift/Cargo.toml => js/src/rust/Cargo.toml
extra : rebase_source : 84e440e3f669b73776653182cb7b006cc7febb10
extra : histedit_source : 3a67575ff6871b7dc3558c10a0251b73cedb090c
2018-09-25 15:56:56 +02:00
Benjamin Bouvier
8d07c821a6 Bug 1469027: License changes; r=mhoye
--HG--
extra : rebase_source : 8b0bdd8b5bd53358650a2d09113f0db0d1523aa3
2018-08-29 16:09:55 +02:00
Mike Hommey
c0ae0d9213 Fixup for broken tests when combining bug 1485224 from inbound and bug 1490549 from autoland. r=me,a=build-bustage-fix 2018-09-15 20:04:29 +09:00
Dorel Luca
7a91966c10 Merge mozilla-inbound to mozilla-central. a=merge 2018-09-15 12:46:59 +03:00
Mike Hommey
410b4939d9 Bug 1490549 - Make configure choose clang by default on all platforms r=froydnj
Now that we ship builds using clang on all platforms, pick it during
configure. It is still possible to opt-in to building other compilers by
setting CC/CXX (or even only CC) to the desired compiler.

Depends on D5829

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

--HG--
extra : moz-landing-system : lando
2018-09-14 18:01:23 +00:00
Mike Hommey
8e6dbef1d4 Bug 1490549 - Add some Windows-cross toolchain configure tests r=froydnj
While those builds are not fully supported yet, it's better to ensure
the coming changes to toolchain.configure won't break them.

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

--HG--
extra : moz-landing-system : lando
2018-09-14 13:15:58 +00:00
Brian Grinstead
fbadd312b2 Bug 1411707 - Convert findbar.dtd to findbar.ftl;r=flod
This will be used when we migrate away from XBL and to a Custom Element
in the following changesets.

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

--HG--
extra : moz-landing-system : lando
2018-09-14 18:29:51 +00:00
shindli
0c0c6fddd8 Backed out changeset aae4f349fa58 (bug 1479503) per developer's request on IRC a=backout
--HG--
rename : taskcluster/docker/static-analysis-build/Dockerfile => taskcluster/docker/infer-build/Dockerfile
2018-09-14 16:35:23 +03:00
Brindusan Cristian
99cbc0aec3 Merge inbound to mozilla-central. a=merge 2018-09-14 12:53:25 +03:00
Robert Bartlensky
af9de513f7 Bug 1479503: Check infer in ./mach static-analysis autotest. r=nalexander
Adds infer to ./mach static-analysis autotest.

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

--HG--
rename : taskcluster/docker/infer-build/Dockerfile => taskcluster/docker/static-analysis-build/Dockerfile
extra : moz-landing-system : lando
2018-09-13 20:58:03 +00:00
Noemi Erli
a548d10a8c Merge inbound to mozilla-central. a=merge 2018-09-14 01:01:37 +03:00
Jim Chen
343650bb80 Bug 1480834 - 7. Add Android x86-64 tasks; r=nalexander r=dustin r=jlorenzo
Add tasks for building Android for x86-64.

Differential Revision: https://phabricator.services.mozilla.com/D5604
2018-09-13 12:09:26 -04:00
Jim Chen
6ce80dbdc4 Bug 1480834 - 5. Keep target flag when building for Android on Linux; r=glandium
Currently, when building for Android x86-64 on Linux x86-64, we drop the
'--target' flag, which causes the build to fail. This patch adds a check
for OS mismatch, so we keep the '--target' flag in this situation.

Differential Revision: https://phabricator.services.mozilla.com/D4483
2018-09-13 12:09:26 -04:00
Jim Chen
d968bd5148 Bug 1480834 - 2. Add x86-64 build support; r=nalexander
Add x86-64 as an option for Android builds in the build system.

Differential Revision: https://phabricator.services.mozilla.com/D4480
2018-09-13 12:09:25 -04:00
Jim Chen
054f1436df Bug 1480834 - 0. Drop mips and update NDK platform to 16; r=jchen
Differential Revision: https://phabricator.services.mozilla.com/D5602
2018-09-13 12:09:24 -04:00
Benjamin Bouvier
52e9161365 Bug 1490921: Fix error message when trying to link several Rust libs at once: r=froydnj
--HG--
extra : rebase_source : 684d8b77a5c0b801825386b46a101bbc57eeaf32
extra : amend_source : 5a21dd028ac69e5adf062f91350bae84ba183560
2018-09-13 09:33:26 +02:00
Chris Peterson
da01f965e0 Bug 1490575 - Remove MOZ_MULET checks from build files. r=froydnj
Mulet was a Firefox OS simulator that is no longer supported: https://wiki.mozilla.org/Mulet

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

--HG--
extra : rebase_source : 5d6c8563fe7f5b3bafa9a17d1057eb3a3db6e241
extra : source : f7c8de6bc4a978421f49e43b951188597086874b
2018-09-11 23:16:36 -07:00
Gian-Carlo Pascutto
ae55a2bd7a Bug 1490413 - Update Rust license checks for new cargo formats. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D5679

--HG--
extra : moz-landing-system : lando
2018-09-13 13:28:07 +00:00
Ben Hearsum
715bd48218 Bug 1490119 - Set override_certs in update verify config creator. r=nthomas
Imports the changes to the UpdateVerifyConfig class, and sets --override-certs for staging releases.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 12:31:08 +00:00
Masatoshi Kimura
762361579f Bug 1485224 - Update Windows builders to VS 2017 15.8.4 and Windows SDK 17134. r=glandium
--HG--
extra : rebase_source : 15906168b0e2e2d545ea841cb3e11e7102bc9b39
2018-09-07 07:15:19 +09:00
Steve Armand
1812539078 Bug 1490167 - MacPorts in bootstrap.py is out of date r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D5494

--HG--
extra : moz-landing-system : lando
2018-09-11 19:36:09 +00:00
Gabriele Svelto
d5ab0ca667 Bug 1490355 - Teach |mach bootstrap| to automatically install the latest version of the Oracle JDK r=nalexander
This patch makes the bootstrap code "ask" Gentoo's package manager for
human-readable information on how to get the latest JDK, then parses it and
locates the tarball URL on its own. The whole procedure is now fully automatic
(until the package output or Oracle web pages change).

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

--HG--
extra : moz-landing-system : lando
2018-09-12 12:08:51 +00:00
Csoregi Natalia
7ed619163e Backed out changeset 081d8311be59 (bug 1479503) for build bustage - java not found. CLOSED TREE
--HG--
rename : taskcluster/docker/static-analysis-build/Dockerfile => taskcluster/docker/infer-build/Dockerfile
2018-09-12 13:16:06 +03:00
Robert Bartlensky
b4ebd25931 Bug 1479503: Check infer in ./mach static-analysis autotest. r=nalexander
Adds infer to ./mach static-analysis autotest.

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

--HG--
rename : taskcluster/docker/infer-build/Dockerfile => taskcluster/docker/static-analysis-build/Dockerfile
extra : moz-landing-system : lando
2018-09-12 09:34:30 +00:00
Bogdan Tara
11a51e4c3d Merge inbound to mozilla-central. a=merge 2018-09-12 01:12:32 +03:00
Nathan Froyd
9a33a0eb00 Bug 1490054 - ensure that the {src,obj}dir share the same drive path in Windows; r=chmanchester
This change is necessary for constructing relative paths between the
objdir and srcdir to succeed, and has been (I believe) the implicit
requirement of builds since time immemorial.
2018-09-11 09:46:37 -04:00
Cosmin Sabou
de7676288a Merge mozilla-inbound to mozilla-central. a=merge 2018-09-11 13:06:37 +03:00
Tom Ritter
26dbd4d795 Bug 1481633 Resolve kPStaticModules undefined symbols in MinGW Clang r=glandium
clang can handle MSVC-like codepaths generally, so we want to use those
when building with clang for Windows. So we switch _MSC_VER over to _WIN32
to pick up those codepaths when compiling for Windows with clang.

Additionally, we relax the ordering of sections for the same scenario.

Note that we do need to tell clang to use -fms-extensions with the MSVC code,
we do that in the mingw clang build job patch.

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

--HG--
extra : moz-landing-system : lando
2018-09-11 03:20:06 +00:00
Andreea Pavel
2b539c7b7e Merge autoland to mozilla-central. a=merge 2018-09-11 00:58:48 +03:00
Chris Manchester
e7c71ddca8 Bug 1487505 - Prompt user to run tup init in an appropriate location when building an objdir outside of the srcdir in tup. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D4808

--HG--
extra : moz-landing-system : lando
2018-09-10 18:40:42 +00:00
Robert Longson
63cb9a2572 Bug 1482196 - Increase minimum clang version to 3.9 r=froydnj 2018-09-10 18:59:07 +01:00
Mike Hommey
7fa84b1acd Bug 1489340 - Handle XPT files as blobs of data in packager. r=froydnj
We don't actually ship XPT files anymore, but it's still useful for the
packager code to handle old Firefox versions. But for that, we don't
really need the complexity of "linking" XPT files in a single unit per
directory. We can just as well keep the XPT files intact, as long as we
retain individual `interfaces` manifest entries for each.

And since those entries used to be all merged into one, we now instead
group them all together in manifests (which also happens to make it
easier on unit test changes).

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

--HG--
extra : moz-landing-system : lando
2018-09-07 22:21:07 +00:00
Dorel Luca
37663bb870 Merge mozilla-inbound to mozilla-central. a=merge 2018-09-07 19:35:34 +03:00
Kartikaya Gupta
22d325deab Bug 1440879 - Ensure all the stl_wrappers end up in the generated-files tarball. r=froydnj 2018-09-07 09:34:40 -04:00
Kartikaya Gupta
840a45b700 Bug 1440879 - Emit source-like generated files into generated-sources.json. r=froydnj 2018-09-07 09:34:39 -04:00
Francesco Lodolo (:flod)
875666b584 Bug 1489480 - Remove migration recipes for Firefox 62 r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D5253

--HG--
extra : moz-landing-system : lando
2018-09-07 12:52:14 +00:00
Connor Sheehan
ef46abf75d Bug 1461992: only indent 2 spaces in export_telemetry_schema.py output r=ted
:mreid sent a review of my pull request and informed me that the
JSON schemas used in the data pipeline are all 2-space indented.
If we want to use this script to generate any future changes to
the build system schema, we should make sure it outputs data
correctly.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 18:15:34 +00:00
Ted Mielczarek
32541d122a bug 1237610 - Collect telemetry data matching the new schema. r=gps
This patch rewrites `gather_telemetry` to collect data matching the new schema.
This includes all required fields and most of the optional fields. Some fields
are not currently recorded and followup bugs have been filed to track their
implementation.

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

--HG--
extra : rebase_source : 0819e8519cfcf75ba0f554c110d1815b6f71af63
2018-08-07 16:47:38 -04:00
Steve Armand
60283bec51 Bug 1490167 - MacPorts in bootstrap.py is out of date r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D5494

--HG--
extra : rebase_source : 3bf454e3e11a18581033718bcb917d77900caf0b
2018-09-11 19:36:09 +00:00
Ted Mielczarek
4da2469474 bug 1237610 - use a mach setting to control telemetry submission. r=gps
Differential Revision: https://phabricator.services.mozilla.com/D4597

--HG--
extra : rebase_source : 4ff227ab9792f84c0a839c43f6ef91f5786cef69
2018-08-07 12:26:31 -04:00
Masatoshi Kimura
30ed2d528b Bug 1414060 - give json.dump the correct encoding; r=mshal 2018-09-10 18:57:40 -04:00
Ted Mielczarek
a17cd1805a Bug 1489211 - invoke dumpbin.exe to check NSModule ordering in libxul; r=froydnj 2018-09-06 12:52:48 -04:00
Ted Mielczarek
702294b58e Bug 1446066 - handle HOST_OS_LIBS properly when the host and target compilers are different types; r=chmanchester 2018-09-06 12:21:54 -04:00
Narcis Beleuzu
b0827c4040 Backed out 2 changesets (bug 1440879) for build bustages on mozbuild\test\backend. CLOSED TREE
Backed out changeset 93892cfed015 (bug 1440879)
Backed out changeset 71d569322700 (bug 1440879)
2018-09-04 18:38:19 +03:00
Kartikaya Gupta
1a1ca59f9a Bug 1440879 - Ensure all the stl_wrappers end up in the generated-files tarball. r=froydnj 2018-09-04 10:40:45 -04:00
Kartikaya Gupta
b5f0a96fff Bug 1440879 - Emit source-like generated files into generated-sources.json. r=froydnj 2018-09-04 10:40:42 -04:00
Mike Shal
58e7879466 Bug 1487840 - Trim tup's display of rust build scripts; r=chmanchester
We already trim the display of output lists for GENERATED_FILES scripts
that produce many outputs, so we should do the same for rust build
scripts. This makes the terminal output of the build and the nodes from
'tup graph' more readable.

MozReview-Commit-ID: AftmrA4qJlr

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

--HG--
extra : moz-landing-system : lando
2018-08-31 20:48:22 +00:00
Chris Manchester
1f2797495b Bug 1487180 - Upload the build graph report as a part of the tup build. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D4626

--HG--
extra : moz-landing-system : lando
2018-08-31 19:18:47 +00:00
Chris Manchester
89393b1268 Bug 1487180 - Default to mm:ss time format when generating human-readable formats from the build graph report. r=gps,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D4625

--HG--
extra : moz-landing-system : lando
2018-08-30 00:52:43 +00:00
Jim Chen
79c02971f8 Bug 1477259 - Use separate version codes for 64-bit builds; r=nalexander
Use the unused 'p' bit in the version code to denote 64-bit builds, so
we have different version codes for 64-bit builds on aarch64 and x86-64.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 21:51:18 +00:00
Andrew Halberstadt
921c895df2 Bug 1487425 - [mozlint] Fix regression where 'roll' returns dict instead of ResultSummary when no files linted, r=Gijs
This is a regression from bug 1460856.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 16:05:12 +00:00
Gurzau Raul
3107aff601 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-31 00:53:00 +03:00
Myk Melez
7978cd2fe4 Bug 1482810 - set COMPILE_FLAGS var to hide warnings for Rust crates r=chmanchester
In conjunction with the cc crate changes in https://github.com/alexcrichton/cc-rs/pull/342 (which I'll land in https://phabricator.services.mozilla.com/D4699), this hides warnings generated by C code in Rust crates (by removing warnings flags from CFLAGS when compiling Rust libraries).

MozReview-Commit-ID: 9CZgLGbWjbA

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

--HG--
extra : moz-landing-system : lando
2018-08-30 17:29:54 +00:00
Nathan Froyd
992139e95b Bug 1487449 - stop macro redefinition warning spam for Windows macros; r=ted.mielczarek
This warning spam happens particularly with WebRTC, but I can see it
happening for any third-party software whose use of WINVER and friends
conflicts with our own.  Let's just change mozilla-config.h to avoid
defining these macros if they're already defined via the command line.
2018-08-30 16:09:23 -04:00
Preeti Mukherjee
bfa8d74f55 Bug 1471920 - [mozbuild] Use shutil.which in Python 3 instead of vendored third-party package r=davehunt
Use shutil.which in mozbuild for Python 3 instead of vendored third-party package, and enable mozversion tests that are fixed under Python 3 by this change.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 16:39:55 +00:00
arthur.iakab
32fbca3814 Merge inbound to mozilla-central a=merge 2018-08-30 00:56:06 +03:00
Andi-Bogdan Postelnicu
1811c9a2df Bug 1486452 - mach static analysis autotest - display the error if we encounter clang-diagnostic-error. r=janx
Differential Revision: https://phabricator.services.mozilla.com/D4425

--HG--
extra : moz-landing-system : lando
2018-08-29 12:11:07 +00:00
Jan Henning
7344cfce10 Bug 1486296 - Use the same temp profile as mach run for launching Firefox from Visual Studio. r=firefox-build-system-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D4299

--HG--
extra : moz-landing-system : lando
2018-08-29 14:26:23 +00:00
Andrew Halberstadt
244690e1b9 Bug 1485454 - [mozlint] Fix stylish formatter, issues without a column aren't indented enough, r=sylvestre
After fixing the absolute path issue in codespell, I noticed that the stylish
formatter doesn't indent lint issues that don't have a column properly. This
was never noticed before since most other linters have a column attribute.

Depends on D4012

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

--HG--
extra : moz-landing-system : lando
2018-08-27 13:40:34 +00:00
Andi-Bogdan Postelnicu
64682f8e84 Bug 1486729 - [Static-Analysis][Clang-Tidy] As default, a checker should be publish by default. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D4436

--HG--
extra : moz-landing-system : lando
2018-08-29 10:10:54 +00:00
Ciure Andrei
c7bd3f7ba5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-29 01:06:58 +03:00
Ciure Andrei
d716a04e20 Merge inbound to mozilla-central. a=merge 2018-08-29 00:58:21 +03:00
Andrew Halberstadt
bbd3ba0a18 Bug 1460856 - [mozlint] Encapsulate all result state in a ResultSummary class r=sylvestre
Currently there are 3 things that can impact the result of a lint run:

1. The list of lint issues found
2. The set of failures that happened during the setup phase
3. The set of failures that happened during the execution phase

All three of these things are stored as instance variables on the LintRoller
object, and then passed into a formatter when it comes time to print the
results. I'd like to add even more things that can impact the result, and it
became clear that the current scenario does not scale well.

This patch moves all data that could impact the end result of a lint run off of
the LintRoller object and onto a new 'result.ResultSummary' class. To avoid
confusion, this patch also renames the 'result.ResultContainer' class to
'result.Issue'.

With this new nomenclature:

result  -> overall state of an entire lint run (can comprise multiple linters)
issue   -> one specific lint infraction (at either 'warning' or 'error' level)
failure -> a non-recoverable error in the linter implementation itself

A "result" is comprised of 0 or more "issues" and 0 or more "failures".

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

--HG--
extra : moz-landing-system : lando
2018-08-28 13:51:04 +00:00
Andrew Halberstadt
c9cfb100eb Bug 1460856 - [mozlint] Display suppressed warnings count in the summary and stylish formatters r=Standard8
Depends on D3821

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

--HG--
extra : moz-landing-system : lando
2018-08-27 13:37:28 +00:00
Andrew Halberstadt
787fff6a51 Bug 1460856 - [mozlint] Suppress warnings by default r=Standard8,sylvestre
As of this patch, any lint issue at the "warning" level will *only* be displayed
if --warnings is passed in. This gives us some flexibility to track issues that
are "recommended to fix" but that aren't required (aka don't cause a backout).
I think it would be ideal if the reviewbot ran with warnings enabled, and CI
ran without warnings. This way these issues will be surfaced to developers
(and hopefully get fixed prior to landing), but developers will always be able
to ignore them if the situation warrants it.

Since the last change converted everything to use errors, this patch should
be a no-op for now. However as we move forward (and potentially decide that
certain types of lint issues should result in a backout), this feature will
start seeing more and more use.

Depends on D3820

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

--HG--
extra : moz-landing-system : lando
2018-08-27 13:39:46 +00:00
arthur.iakab
83d1441dfa Merge mozilla-central to autoland 2018-08-25 01:09:11 +03:00
arthur.iakab
5527acb8d8 Merge inbound to mozilla-central a=merge 2018-08-25 01:08:22 +03:00
Chris Manchester
986a8ae47f Bug 1485174 - Prevent using an objdir to build with tup that was previously used to build with make. r=firefox-build-system-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D4154

--HG--
extra : moz-landing-system : lando
2018-08-24 18:13:20 +00:00
Chris Manchester
df7ed3aa22 Bug 1485168 - Provide a tier for the "tup" portion of the build to prevent confusion. r=gps,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D3927

--HG--
extra : moz-landing-system : lando
2018-08-24 16:12:31 +00:00
Tom Prince
695b12f9f2 No bug: Add a default retry setting for mach artifact toolchain; r=gps
Differential Revision: https://phabricator.services.mozilla.com/D4039

--HG--
extra : moz-landing-system : lando
2018-08-24 16:04:22 +00:00
Benjamin Bouvier
1948bdb6bc Bug 1485396: Handle non-unified builds for CompileDB too; r=froydnj
--HG--
extra : rebase_source : 98c4d0c6a4f6137ba05c7e13b7a69ba07bd30bf6
extra : amend_source : 863740c6e5e7e24d6ba77c1a107ac1281549ef47
2018-08-23 11:55:50 +02:00
Tom Prince
e60f19d241 Bug 1481121: [release] Build bz2 mar's on mozilla-esr60; r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D3811

--HG--
extra : rebase_source : 549ac804da6fbd01359bd15aaf928fd06ff22cab
extra : histedit_source : 3b3ef722261d4a7bce33d9215b288ba366f38dee
2018-08-17 12:23:42 -06:00
Lifan Zeng
5eecd79002 Bug 1446923 - Remove Some Old References to Chrome-Metro r=jlund
Differential Revision: https://phabricator.services.mozilla.com/D3223

--HG--
extra : moz-landing-system : lando
2018-08-23 23:24:44 +00:00
Bas Schouten
efa3734e21 Bug 1485485 - Followup: Fix which function definition in derrived classes. r=froydnj 2018-08-28 18:24:50 +02:00
Nathan Froyd
5ba4a13346 Bug 1485485 - make bootstrap accept rustc/cargo in known-good locations; r=chmanchester
moz.configure looks for rustc/cargo on PATH and in ~/.cargo/bin.
Bootstrap only looks on PATH and not in ~/.cargo/bin, though it is smart
enough to complain if rustc/cargo can't be found on PATH and you have
them in ~/.cargo/bin.  Bootstrap should look in both places by default,
and be content if it finds them wherever they are, so long as
moz.configure can find them.
2018-08-28 09:31:48 -04:00
Panos Astithas
312fdae0eb Bug 1484243 - Detect vcs automatically in |mach vcs-setup|. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D3942

--HG--
extra : moz-landing-system : lando
2018-08-22 17:26:58 +00:00
Emilio Cobos Álvarez
fd187833dd Bug 1484485: Create state dir and install node / stylo stuff in bootstrap's non-interactive mode. r=ted
The state directory is in $HOME by default, so should be fine to just create it
if we get --no-interactive I think.

Differential Revision: https://phabricator.services.mozilla.com/D3838
2018-08-22 11:17:51 +02:00
Aaron Klotz
3267ae6d9f Bug 1458386: Modify mach's RunProgram command provider to be aware of launcher process; r=gps
By default, when the launcher process is enabled, it does not wait for the
browser process to complete before terminating. mach run expects its child
process to keep running until the browser is terminated.

If we pass -wait-for-browser to the launcher process, the launcher will not
terminate until the browser process has finished, thus preserving the existing
semantics.

--HG--
extra : amend_source : cc848f955e14d7a97c1c506247fa2788261912f2
2018-08-14 12:09:32 -06:00
Ted Mielczarek
3028fb8bdb bug 1237610 - don't call post_dispatch_handler when using debug-command. r=gps
MozReview-Commit-ID: 4UG6RH4b6tZ

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

--HG--
extra : rebase_source : a06ef350840b059b2ef9eaea8010085e41d5dd50
2018-05-16 12:56:39 -04:00
Ted Mielczarek
bedd69ce23 bug 1237610 - move build system telemetry collection code to a common place. r=gps
The telemetry gathering code is currently split in two places, so move it
all to a common place. Followup patches will rewrite most of this code.

--HG--
extra : rebase_source : afd14940f7175f7ca730a3b90ad770f143bcb6c7
2018-08-07 11:27:26 -04:00
Dan Minor
5c9b4fc3e4 Bug 1376873 - Allow gn to have a non-default target; r=chmanchester
MozReview-Commit-ID: GBQSi6z059y

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

--HG--
extra : rebase_source : 3904596f927ec549395b9e3ba2a320677ff60a64
2018-01-11 16:29:05 -05:00
Jan Beich
9bfc52ba08 Bug 1496708 - Install node as system package. f=gaston r=Build r=froydnj
Mozilla binaries (including toolchain artifacts) aren't available on BSDs.
2018-10-05 05:37:00 +03:00
Jan Beich
4737c23ba2 Bug 1496708 - Install cbindgen as system package. f=gaston r=Build r=froydnj
cargo build is no longer called, so bootstrap will be faster.
All dependencies (including cbindgen) are usually up-to-date on BSDs
because there's no fallback to Mozilla binaries.
2018-10-05 05:37:00 +03:00
Jan Beich
c6dd37c2bc Bug 1496733 - Explicitly install libXt on FreeBSD. r=Build r=froydnj 2018-10-05 07:02:00 +03:00
David Major
21d5693bdb Bug 1482272 - Don't set -DEBUG twice on Windows links. r=ted
We already append MOZ_DEBUG_LDFLAGS when MOZ_DEBUG_SYMBOLS is set.

--HG--
extra : rebase_source : ce9471ab366d88e929f2602e49f27d50cce65d8a
2018-08-21 11:35:52 -04:00
David Major
842bd5aed8 Bug 1413728: Windows DMD builds don't need special LDFLAGS behavior. r=ted
--HG--
extra : rebase_source : 338596d5c0e716e990ab669151fac2a9b43953eb
2018-08-21 11:34:48 -04:00
David Major
e57877cd63 Bug 1483835: Default to clang-cl and lld-link in local Windows builds. r=glandium 2018-08-21 11:30:16 -04:00
Nathan Froyd
f5fc3571db Bug 1480558 - part 2 - don't add MOZ_DEBUG_FLAGS to ASFLAGS on aarch64 windows; r=mshal
armasm64 doesn't accept the same options as its x86-ish counterparts,
and passing options it doesn't understand causes assembly to fail.  So
let's just not pass any flags to the assembler for the moment.
2018-08-21 11:00:35 -04:00
Mike Hommey
25e0f32c43 Bug 1341222 - Allow !- and %-prefixed paths in include paths processed by gyp. r=froydnj 2018-08-21 07:24:53 +09:00
Masatoshi Kimura
20bf6de031 Bug 1484190 - Unblock MSVC 2017 15.8. r=dmajor
--HG--
extra : rebase_source : 9d43a9cec951deabcb224efcc6bea2be0e772394
extra : source : 36e41ebefc3512f840f646be3fc14f0f3b5b538d
2018-08-17 20:41:49 +09:00
James Graham
f57f21b51d Bug 1484659 - Handle wpt version number changes, r=ato
If the wpt manifest format changes we bump the version number, causing
loading the old manifest to throw an error. We weren't correctly
handling this error when trying to update the manifest (by creating a
new empty manifest) so updates after the version number changed broke.

MozReview-Commit-ID: 4H1nMtRI9PZ

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

--HG--
extra : moz-landing-system : lando
2018-08-20 12:05:22 +00:00
Chris Manchester
df1c9fe032 Bug 1481590 - generating report with |mach analyze all| and modifying |mach summarize| to become |mach analyze files| r=gps,mshal,chmanchester 2018-08-17 14:20:07 -07:00
Tom Prince
f5f9b5f0ac Bug 1481178: Retry downloading chainOfTrust.json.asc in mach artifact toolchain; r=gps a=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D3661

--HG--
extra : rebase_source : 1476805171a838a80d4220dafcadcc175344efa1
2018-08-17 15:20:37 -06:00
Andrew Halberstadt
32103f1e70 Bug 1483539 - [mozlint] Log a success message from the treeherder formatter when all lints succeed, r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D3415

--HG--
extra : moz-landing-system : lando
2018-08-15 14:17:06 +00:00
Margareta Eliza Balazs
a42d1c158f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-16 12:33:23 +03:00
Ted Mielczarek
f5bd95d64f bug 1461992 - Add a script to output build system telemetry schema in json-schema format. r=gps
External systems such as the generic ingestion service will want to work with
the more standard json-schema format. This commit adds a script to convert the
voluptuous schema to json-schema format using the `luscious` Python module.
Since that module has not been updated recently, we install and use a fork with
some changes.

Since this is a single-purpose command that's unlikely to be used by many
people it's not implemented as a mach command, but simply a standalone script
that can be invoked via `mach python`.

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

--HG--
extra : rebase_source : d35ed221d05d1d56b96604b931c22b700c10e476
2018-08-06 13:54:58 -04:00
Ted Mielczarek
233bc083f6 bug 1461992 - add a voluptuous schema for build system telemetry. r=gps
This change adds a voluptuous schema for build system telemetry, replacing
the existing json schema file. Using voluptuous will make it easier to work
with the schema from Python code in the build system. A future commit will
use a Python module to provide a mach command to convert the voluptuous
schema to json schema format for consumption by other systems.

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

--HG--
extra : rebase_source : 067995385334d1dbc123f2db4245ef4e69d076c3
2018-08-03 15:41:20 -04:00
Ting-Yu Lin
1199851701 Bug 1476147 - Use path.isfile() instead of patch.exists() in which(). r=glandium
This excludes directories, and returns true only if it's an executable file.

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

--HG--
extra : moz-landing-system : lando
2018-08-15 06:15:57 +00:00
Noemi Erli
3516dcf033 Backed out changeset ac5d5dec618e (bug 1481590) for Gecko decision task failure 2018-08-15 06:13:37 +03:00
Sofia Carrillo
80dafc6927 Bug 1481590 - generating report with |mach analyze all| and modifying |mach summarize| to become |mach analyze files| r=gps,mshal,chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D2981

--HG--
extra : moz-landing-system : lando
2018-08-15 01:12:03 +00:00
Cosmin Sabou
ba5b2095eb Merge mozilla-central to autoland. a=merge 2018-08-15 04:56:53 +03:00
Panos Astithas
6a01b19a19 Bug 1257478 - Turn mercurial-setup into vcs-setup and add git support. r=gps
MozReview-Commit-ID: AD6gLqFm8Nn

--HG--
extra : rebase_source : 0214cdc6f6acaaf0621e25f30cb0a2c81849063e
2018-07-04 21:48:42 +03:00
Kris Maglione
30986431c7 Bug 1472491: Part 5a - Add BrowserTabChild actor. r=felipe
MozReview-Commit-ID: 38Y1xwkgxCx

--HG--
extra : rebase_source : 61a85af58f9f16b8e39b716e3df2d09b788fcb1a
2018-07-29 19:42:46 -07:00
Mike Shal
b8cdd8565b Bug 1481441 - Honor MOZ_PARALLEL_BUILD in non-make backends; r=chmanchester
If you specify 'mk_add_options MOZ_PARALLEL_BUILD=X' in your mozconfig,
this variable ends up being passed into client.mk, which tells the make
backend to use that as the number of parallel jobs. However, there is no
equivalent in alternate backends aside from specifying '-jX' at the
commandline on each build invocation.

Rather than making a new mechanism to do this, we can check the
mozconfig for the MOZ_PARALLEL_BUILD flag and use that number for the
jobs parameter if no override was specified on the commandline.

MozReview-Commit-ID: 4YHG30N6tmi

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

--HG--
extra : moz-landing-system : lando
2018-08-14 21:42:16 +00:00
Chris Manchester
8c2d7750a1 Bug 1474028 - Use output categories to exclude the gtest libxul from the default tup build. r=mshal
MozReview-Commit-ID: 2C9PmFziFqr

--HG--
extra : rebase_source : 68ed008c50dc2cb6c84ad30fe4b5d168373e535b
2018-08-10 12:07:36 -07:00
Chris Manchester
c346a68ae0 Bug 1474028 - Add a way to exclude libraries from the default build. r=ted
MozReview-Commit-ID: MVfplx9lN2

--HG--
extra : rebase_source : 10b4bd3dcc1386d782531206c84b66207297d00a
2018-08-10 12:07:29 -07:00
Chris Manchester
2a6ade919e Bug 1478798 - Handle the CLOBBER file optimistically in the Tup backend. r=mshal
MozReview-Commit-ID: DDIqlDwjKil

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

--HG--
extra : moz-landing-system : lando
2018-08-13 17:07:41 +00:00
Emilio Cobos Álvarez
818db7603f Bug 1478813 - Add cbindgen toolchain job and install via bootstrap. r=ted
And require it for taskcluster build already, because it doesn't harm and lets
me put all the yml changes in the same commit.

I gave up cross-compiling for OSX after a few tries and after realizing it
wasn't enough with cctools and such, but that I also needed the Mac SDK, for
which I don't have permission...

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

--HG--
extra : moz-landing-system : lando
2018-08-13 10:58:22 +00:00
Narcis Beleuzu
f4e5fb2d0f Backed out 2 changesets (bug 1474028) per chmanchester`s request. a=backout
Backed out changeset 52bd814d3589 (bug 1474028)
Backed out changeset 39a528147c34 (bug 1474028)
2018-08-12 21:22:45 +03:00
Andreea Pavel
308525ebcd Merge mozilla-inbound to mozilla-central. a=merge 2018-08-11 13:25:30 +03:00
Dan Mosedale
b7242c9e28 Bug 1481693 - Implement no_system_changes for moz_bootstrap, r=gps
MozReview-Commit-ID: CnS94verabV
2018-08-10 19:58:03 -07:00
Dan Mosedale
ee200cd836 Bug 1481693 - Factor out install_private_packages from moz_bootstrap, r=gps
MozReview-Commit-ID: It9IumV141L
2018-08-10 19:58:03 -07:00
Dan Mosedale
98be0c2bfe Bug 1481693 - Factor out try_to_create_state_dir from mach_bootstrap, r=gps
MozReview-Commit-ID: H6DhV56n3Cc
2018-08-10 19:58:02 -07:00
Dan Mosedale
58963c546b Bug 1481693 - Add --no-system-changes argument to 'mach bootstrap', r=gps
MozReview-Commit-ID: AMYM3rAPVcl
2018-08-10 19:58:01 -07:00
Dan Mosedale
e2e43a5c7a Bug 1481693 - Teach mach bootstrap to install NodeJS from toolchain artifact, r=gps
MozReview-Commit-ID: DBUCcGXxM0a
2018-08-10 19:58:00 -07:00
Mike Hommey
f4f54e5aeb Bug 1482330 - Upgrade to Android NDK r17b and API level 16 (JB). r=snorp
We're currently using NDK r15c, which is rather old, and happens to come
with a buggy gold linker. Let's use a more recent NDK, with a fixed
linker.

Unfortunately, we're currently at NDK API level 9, which the newer NDK
doesn't provide for x86 anymore. But that corresponds to Gingerbread
(2.3), which we've long stopped supporting. On the SDK side, we already
dropped support of versions before Jelly Bean, so we can do the same on
the NDK side. That corresponds to API level 16. So let's just use that
as a baseline.

Another change in the newer NDK is that the target-name changed from
i386-linux-android to i686-linux-android, so adjust for that in the
android x86 mozconfigs.
2018-08-11 09:47:41 +09:00
Bogdan Tara
347da2ba78 Backed out changeset 003838e8d110 (bug 1482330) for Adnroid build bustages on mozalloc_abort.cpp CLOSED TREE 2018-08-11 03:22:58 +03:00
Bogdan Tara
2f2b719960 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-11 01:01:18 +03:00
Mike Hommey
ee95699e6b Bug 1482330 - Upgrade to Android NDK r17b and API level 16 (JB). r=snorp
We're currently using NDK r15c, which is rather old, and happens to come
with a buggy gold linker. Let's use a more recent NDK, with a fixed
linker.

Unfortunately, we're currently at NDK API level 9, which the newer NDK
doesn't provide for x86 anymore. But that corresponds to Gingerbread
(2.3), which we've long stopped supporting. On the SDK side, we already
dropped support of versions before Jelly Bean, so we can do the same on
the NDK side. That corresponds to API level 16. So let's just use that
as a baseline.

Another change in the newer NDK is that the target-name changed from
i386-linux-android to i686-linux-android, so adjust for that in the
android x86 mozconfigs.
2018-08-11 06:50:21 +09:00
Chris Manchester
787bda4bb3 Bug 1482516 - Use set comparison to determine whether the list of build backend outputs has changed. r=gps,firefox-build-system-reviewers
If a backend output file is deleted outside of the build system the non-zero
"created" count can make the current check erroneously think the list of
outputs has changed.

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

--HG--
extra : moz-landing-system : lando
2018-08-10 22:29:35 +00:00
Chris Manchester
44448be727 Bug 1474028 - Use output categories to exclude the gtest libxul from the default tup build. r=mshal
MozReview-Commit-ID: 2C9PmFziFqr

--HG--
extra : rebase_source : 2e6fac2dd7d2d9fbe7209df342cf9cc21308bdbd
2018-08-10 12:07:36 -07:00
Chris Manchester
2476269229 Bug 1474028 - Add a way to exclude libraries from the default build. r=ted
MozReview-Commit-ID: MVfplx9lN2

--HG--
extra : rebase_source : 3eb5352b5bc0d1b9be857c16efa5af0313afb6e7
2018-08-10 12:07:29 -07:00
Margareta Eliza Balazs
f617807241 Merge inbound to mozilla-central. a=merge 2018-08-10 12:17:09 +03:00
Mike Hommey
438a6f244a Bug 1482270 - Check libgcc version compatibility. r=froydnj
Similar to what we do for libstdc++ and glibc, we need to ensure that
we don't somehow end up with a dependency on a too new libgcc, which
can happen if it comes from gcc 7.0.
2018-08-10 08:28:41 +09:00
Noemi Erli
125e35c2c4 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-10 00:35:08 +03:00
Noemi Erli
de9e45a850 Merge inbound to mozilla-central. a=merge 2018-08-10 00:31:09 +03:00
David Heiberg
c9661e61a3 Bug 1476661 - Ensure H2 dependencies are packaged alongside wptserve where needed, r=jgraham
MozReview-Commit-ID: 5tbXeHsvNI5
2018-08-09 11:38:37 +01:00
Myk Melez
2c2b6eebf9 Bug 1445451 - vendor rkv; r=froydnj
MozReview-Commit-ID: KbcADpNltYq

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

--HG--
rename : third_party/rust/synstructure/.cargo-checksum.json => third_party/rust/synstructure-0.8.1/.cargo-checksum.json
rename : third_party/rust/synstructure/Cargo.toml => third_party/rust/synstructure-0.8.1/Cargo.toml
rename : third_party/rust/synstructure/README.md => third_party/rust/synstructure-0.8.1/README.md
rename : third_party/rust/synstructure/src/lib.rs => third_party/rust/synstructure-0.8.1/src/lib.rs
rename : third_party/rust/synstructure/src/macros.rs => third_party/rust/synstructure-0.8.1/src/macros.rs
extra : moz-landing-system : lando
2018-08-09 19:42:17 +00:00
Andrew Swan
09e5e4ef55 Bug 1479599 Recognize webextensions in packager r=glandium
MozReview-Commit-ID: KethvfCTf6G

--HG--
extra : rebase_source : 48a513cf4a195fe68d729234ac487682a71ff22a
extra : source : 443493f2db03743656866d49912d26c75ae18434
2018-07-31 21:51:02 -07:00
Robert Bartlensky
24a33b307e Bug 1473278: Add infer to java-check, install, clear-cache, and print-checks subcommands. r=gps
MozReview-Commit-ID: 5ngZu6lh1wU

--HG--
extra : amend_source : b89243dd57777746febd180db7acadb77d3d3a49
2018-07-26 14:45:44 +01:00
Chris Manchester
1f0dff8087 Bug 1450077 - Download rust 1.28 in mach bootstrap. r=froydnj,mshal
MozReview-Commit-ID: IBdFRyWlQTW

--HG--
extra : rebase_source : 25a75a65c70004e8849c108ba6163f421f36945c
2018-08-07 13:21:29 -07:00
Chris Manchester
21e6277fe3 Bug 1480313 - Set check_unchanged for cargo build script rules in the Tup build. r=mshal
MozReview-Commit-ID: Cx3sP5m16Yl

--HG--
extra : rebase_source : aabd3eb315ee4509531663ef1ca507f59f2d1b88
2018-08-01 21:24:51 -07:00
Chris Manchester
d55fec160e Bug 1481328 - Explicitly disable CARGO_INCREMENTAL when building with tup. r=firefox-build-system-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D2810

--HG--
extra : moz-landing-system : lando
2018-08-07 00:21:47 +00:00
Dão Gottwald
5b4e355993 Bug 1369456 - Replace nsSessionStartup.js with SessionStartup.jsm. r=florian
MozReview-Commit-ID: 53Mu4zb9X1C

--HG--
rename : browser/components/sessionstore/nsSessionStartup.js => browser/components/sessionstore/SessionStartup.jsm
extra : rebase_source : 5b4f5c2e45841a5ee9123386e8657d8c262ba416
2018-08-04 13:27:40 +02:00
Bogdan Tara
f2cb75b28c Merge inbound to mozilla-central. a=merge 2018-08-03 13:16:27 +03:00
Nathan Froyd
868f4fb506 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ă
ae279dbf60 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

--HG--
extra : rebase_source : 9edc37913a3929ad045270c601c77791d122e363
2018-07-24 11:44:24 +01:00
Nathan Froyd
5dcd952f20 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
e52cd92858 Bug 1480370 - pass checks to _get_clang_tidy_command. r=babadie+588857
MozReview-Commit-ID: JO9nr59WYk5

--HG--
extra : rebase_source : b949ada159959d37deb55c08b02db9269a99e94b
2018-08-02 13:48:29 +03:00
dvarga
09eac64963 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-02 01:19:44 +03:00
dvarga
e487e6e564 Merge inbound to mozilla-central. a=merge 2018-08-02 01:09:38 +03:00