Commit Graph
5079 Commits
Author SHA1 Message Date
Yuan Cheng de92d8095d Bug 1523761 - Move the syncedTabs strings from browser.dtd to fluent, r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D22980
2019-03-15 18:46:46 +00:00
Coroiu Cristina ac8f53355e Merge mozilla-central to autoland a=merge 2019-03-16 23:56:14 +02:00
Alvaro Serero 46af528724 Bug 1529504 - Fix two flake8 warnings in static analysis (mach_commands.py) r=sylvestre 2019-03-16 11:53:50 +01:00
Mike Hommey 7dd5ffce6c Bug 1535501 - Allow to get full crashreporter symbols on artifact builds. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D23605
2019-03-15 21:56:14 +00:00
Dustin J. Mitchell aa3416d152 Bug 1535487 - determine rootUrl directly in buglist creator r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D23601
2019-03-15 15:09:45 +00:00
Andrew Halberstadt cb2ace2105 Bug 1533043 - [python-test] Add ability for individual tests to have pypi dependencies, r=davehunt
Sometimes tools install pypi at runtime via mach (e.g self.install_pip_package
/ self.install_pip_requirements). It's difficult to test these modules with
pytest because we usually won't be going through mach.

This gives tests the ability to depend on external pypi packages the same way
they might get installed when running via mach.

Note, I only added support for requirements.txt here because
python/mozbuild/mozbuild/virtualenv.py's 'install_pip_package' function is
completely busted with modern pip. And the pip used with |mach python-test| is
more modern than the one used with the regular build venv due to pipenv. We'll
need to fix this eventually, but that's another bug for another day.

Differential Revision: https://phabricator.services.mozilla.com/D22784
2019-03-13 14:51:37 +00:00
Gurzau Raul 3f297c10a6 Backed out changeset f73f629e8cca (bug 1517528) on request from jaws, CLOSED TREE. 2019-03-14 07:54:17 +02:00
Nicholas Cowles 57897e15c2 Bug 1517528 - Capstone: convert about:privatebrowsing using gandalf's conversion script, r=Gijs,jaws,zbraniecki,flod
Differential Revision: https://phabricator.services.mozilla.com/D19250
2019-03-11 17:56:36 +00:00
Dustin J. Mitchell d4b06522f0 Bug 1535171 - fix missed uses of no-argument get_root_url r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D23416
2019-03-13 23:10:16 +00:00
Mike Hommey 155747b2d8 Bug 1534522 - Allow to specify different task ids for artifacts. r=dmajor
Bug 1528123 added a way to specify a task id to influence mach
artifact. In the case of upcoming EME-enabled win64-aarch64 builds, we
need to be able to specify two different task ids, which a single
environment variable doesn't really allow.

So extend the scheme to check environment variables with the build
type included in the variable name.

Differential Revision: https://phabricator.services.mozilla.com/D23101
2019-03-13 23:08:06 +00:00
Dustin J. Mitchell 61330aa529 Bug 1508381 - update buglist_creator to use new version of tc client r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D18117
2019-03-12 20:40:10 +00:00
Benjamin Bouvier 5f281c7cdb Bug 1534630: Slightly optimize scheduling of clang-format jobs; r=andi
Instead of over-estimating the number of items in a batch, do the opposite:
slightly under-estimate the number of items, then dispatch outstanding items
(by just adding one item to each batch).

Differential Revision: https://phabricator.services.mozilla.com/D23141
2019-03-12 16:30:12 +00:00
Aki Sasaki f14e28fe5d Bug 1534506 - download chain-of-trust.json instead of chainOfTrust.json.asc r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D23081
2019-03-12 04:53:57 +00:00
Andi-Bogdan Postelnicu baa7890be5 Bug 1529691 - use futures in order to process in parallel clang-format. r=bbouvier
Parts of this patch were taken from the original work of :bbouvier in Bug 1521772.
We needed to revert Bug 1521772 since it broken Windows compatibility.

Differential Revision: https://phabricator.services.mozilla.com/D23100
2019-03-12 18:58:46 +00:00
Andrew Halberstadt 5a3c5794b5 Bug 1533152 - [flake8] Make sure glob patterns are honoured when passing files directly, r=andi
Flake8 ignores the 'exclude' section of the .flake8.yml if you pass in a direct
path to a file. To get around this we have some custom logic to handle these
exclusions for us, but this custom logic didn't account for globs.

Differential Revision: https://phabricator.services.mozilla.com/D23145
2019-03-12 15:08:41 +00:00
Thomas Daede 5461d29613 Bug 1521186 - Download nasm toolchain on Windows and Linux. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D22798
2019-03-11 18:00:13 +00:00
Sylvestre Ledru d9f913fe36 Bug 1531176 - about:support: also support the split of the key r=florian,flod
Differential Revision: https://phabricator.services.mozilla.com/D22676
2019-03-10 15:29:42 +00:00
Nathan Froyd 14ab853f44 Bug 1533149 - add checking messages for libstdcxx_version; r=glandium
It's occasionally useful to know what versions are being discovered for
these variables.  It's also convenient for logs from automation to
contain all the relevant information, rather than setting up a loaner
and running all the commands yourself.

Differential Revision: https://phabricator.services.mozilla.com/D22385
2019-03-10 00:11:09 +00:00
Mike Hommey 0815728eeb Bug 1529894 - Change jar log content. r=aklotz,chmanchester
The jar log is used for optimization of the packaged jar files according
to their usage patterns during a profile run. The current content of the
file currently come with 2 caveats:
- it contains entries for jar archives that aren't relevant to
  packaging, which is not a problem in itself, but see below.
- it contains full paths for jar archives that may not correspond to the
  location of the packaged directory (on e.g. Android, where the build
  almost certainly doesn't happen in the same directory on the host as
  Fennec runs in the emulator/on the device).

The current JarLog code does somehow handle the various ways paths are
currently presented, but it's clearly missing code to map the paths in
the log to packaged paths. Instead of requiring manual work and extra
build options to handle this mapping, and considering the caveats above,
it's just simpler to log archive paths as if they were relative to the
packaged application directory in a build, and use that during
packaging.

Depends on D21655

Differential Revision: https://phabricator.services.mozilla.com/D21656
2019-03-07 20:46:52 +00:00
Mike Hommey 08f034b1c9 Bug 1530908 - Move list of supported artifact builds to an importable module. r=chmanchester
Depends on D22054

Differential Revision: https://phabricator.services.mozilla.com/D22055
2019-03-06 22:47:32 +00:00
Gurzau Raul acaab4ecf3 Backed out 4 changesets (bug 1529894) for xperf failures on a CLOSED TREE.
Backed out changeset d31f88692394 (bug 1529894)
Backed out changeset e2d7b59776a2 (bug 1529894)
Backed out changeset 3c37fd9d30d5 (bug 1529894)
Backed out changeset e93f4871731b (bug 1529894)
2019-03-06 13:06:13 +02:00
Gurzau Raul df490d36d2 Bug 1529894 - Fix more flake failures on a CLOSED TREE. 2019-03-06 09:35:59 +02:00
Gurzau Raul 3d1f86ea5e Bug 1529894 - fix flake failure on a CLOSED TREE. 2019-03-06 09:14:00 +02:00
Mike Hommey c948aaca5e Bug 1529894 - Change jar log content. r=aklotz,chmanchester
The jar log is used for optimization of the packaged jar files according
to their usage patterns during a profile run. The current content of the
file currently come with 2 caveats:
- it contains entries for jar archives that aren't relevant to
  packaging, which is not a problem in itself, but see below.
- it contains full paths for jar archives that may not correspond to the
  location of the packaged directory (on e.g. Android, where the build
  almost certainly doesn't happen in the same directory on the host as
  Fennec runs in the emulator/on the device).

The current JarLog code does somehow handle the various ways paths are
currently presented, but it's clearly missing code to map the paths in
the log to packaged paths. Instead of requiring manual work and extra
build options to handle this mapping, and considering the caveats above,
it's just simpler to log archive paths as if they were relative to the
packaged application directory in a build, and use that during
packaging.

Depends on D21655

Differential Revision: https://phabricator.services.mozilla.com/D21656
2019-03-06 01:18:10 +00:00
Jason Laster f9a50bdd2b Revert "Backed out changeset 7f51bc3757d9 (bug 1497839) for ESlint failure at build-debugger.js. CLOSED TREE"
This reverts commit 2b1fea9435191242f8aadc04da3ed1b0e0d99b02.

Bug 1497839 - fix eslint issues for babel build. r=jlast

Differential Revision: https://phabricator.services.mozilla.com/D22252
2019-03-06 05:10:25 +00:00
Brindusan Cristian ef7026c933 Backed out changeset 7f51bc3757d9 (bug 1497839) for ESlint failure at build-debugger.js. CLOSED TREE 2019-03-06 06:46:38 +02:00
David Walsh a64306b878 Bug 1497839 - Provide method for NetMonitor to use JSX r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D20888
2019-03-06 03:12:49 +00:00
Axel Hecht 6bcbcea016 Bug 1530352, add lintargs to lint setup, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D21010
2019-03-05 16:15:03 +00:00
kerlyn 54aa6d6ccb Bug 1523835 - Added python/mozbuild/mozpack to the flake8 linter and solved the errors, r=ahal
Before this change linting python/mozbuild brought about many errors. Some of this errors could be fixed using |mach lint --fix|. The remaining errors where fixed in this bug.

Differential Revision: https://phabricator.services.mozilla.com/D20138
2019-03-01 15:36:45 -05:00
Mike Hommey fc1fd0c8c4 Bug 1531634 - Change how OMNIJAR_NAME is handled for fennec builds. r=nalexander
Fennec has a value of OMNIJAR_NAME that contains a directory, contrary
to other platforms, and relies in post-packaging, pre-unpacking steps to
accommodate with the difference.

With this change, we just make the packaging and unpacking steps aware
of this setup, and make allow them to pack/unpack resources in foo/
under foo/$OMNIJAR_NAME, whether $OMNIJAR_NAME is a file name or a path.

This will, further down the road, allow the packager code to handle jar
logs from PGO instrumentation without munging them.

Differential Revision: https://phabricator.services.mozilla.com/D21654
2019-03-01 21:49:47 +00:00
Andrew Halberstadt f5f56bfd05 Bug 1513951 - [mach] Fix error handling bug in config.py r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D21430
2019-02-28 18:03:47 +00:00
Mike Shal d434491de8 Bug 1525474 - Disallow filenames in LOCAL_INCLUDES; r=nalexander
The underlying backends only support directories in LOCAL_INCLUDES
(since these ultimately translate to -I arguments to the compiler). We
should disallow filenames here, in case a developer accidentally
specifies a header file instead of a directory.

Differential Revision: https://phabricator.services.mozilla.com/D21698
2019-03-01 17:51:42 +00:00
Sebastian Hengst 9f08b58bcc Backed out changeset 40ddf7d53eaa (bug 1517528) for flake8 failures 2019-03-01 11:42:02 +01:00
Nicholas Cowles 0bb840cf56 Bug 1517528 - Capstone: convert about:privatebrowsing using gandalf's conversion script, r=Gijs,jaws,zbraniecki,flod
Differential Revision: https://phabricator.services.mozilla.com/D19250
2019-03-01 09:41:07 +00:00
Thomas Daede 79e95745e1 Bug 1529305 - Emit cv8 debug info with nasm even on mingw. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D21437
2019-02-28 00:42:34 +00:00
Cosmin Sabou aa60b18d41 Merge autoland to mozilla-central. a=merge 2019-02-28 12:54:11 +02:00
Daniel Varga 2924eec355 Merge autoland to mozilla-central. a=merge 2019-02-27 18:29:22 +02:00
Daniel Varga b60d4c7e14 Backed out changeset b59977d42a4d (bug 1521772) requested by Andi. a=backout 2019-02-27 18:27:08 +02:00
Makoto Kato 0abaa92f41 Bug 1529431 - Remove --with-android-sdk from mozconfig example by ./mach bootstrap. r=nalexander
After landing bug 1515004, it is unnecessary to use `--with-android-sdk` when
developer uses default path of Android SDK by `./mach bootstrap`.

So let's remove `--with-android-sdk` from mozconfig example using
`./mach bootstrap`.

Differential Revision: https://phabricator.services.mozilla.com/D20601
2019-02-26 17:41:38 +00:00
Mike Hommey 5680d217dd Bug 1529799 - Prevent recursive resolution of options during imply_option. r=chmanchester
In cases like those in the added unit test, explicit options on the
command line could end up being silently ignored. So instead of that happening,
error out. Unfortunately, the error message is not entirely accurate,
but it's better than nothing. It's rare anyways (I only stumbled upon it
because I was trying to do something fishy), and correlation between the
error message and the corresponding changes should make it clear what's
going on.

Depends on D20822

Differential Revision: https://phabricator.services.mozilla.com/D20823
2019-02-26 22:05:24 +00:00
Mike Hommey 6980e483f7 Bug 1529799 - Handle dependency loops involving imply_option more gracefully. r=chmanchester
Currently, when a dependency loop involve imply_option, it is possible
to end up with an error message saying the implied option is unknown,
when it fact it is. So instead of bailing out with a weird error
message, try to make things work (if the implied value is not different
from what's known), or bail with a more accurate message.

Differential Revision: https://phabricator.services.mozilla.com/D20822
2019-02-26 22:05:40 +00:00
Mike Hommey 44e40bc23a Bug 1530587 - Don't optimize jars without preloading/reordering data. r=chmanchester
Optimizing jars without preloading/reordering data only moves the
jar central directory to the beginning of the file, which, without
preloading information, is not very useful. Let's just stop doing it if
there's not going to be preloading/reordering information at all.

Differential Revision: https://phabricator.services.mozilla.com/D21170
2019-02-27 01:26:46 +00:00
Kartikaya Gupta dcf2329003 Bug 1530016 - Drop bogus entries from the generated-sources tarball. r=froydnj
On Android we apparently try to include the cpufeatures.c file from the
NDK as part of the generated-sources tarball. While this works, it makes
tar drop the bogus entry for safety reasons when unpacking the archive.
It also makes tar return an error, which is undesirable for searchfox.
It's better to just skip the entry when building the tarball.

Differential Revision: https://phabricator.services.mozilla.com/D20942
2019-02-27 17:45:27 +00:00
Panos Astithas 840967fb4f Bug 1485117 - Make standalone bootstrap work without a git checkout. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D20426
2019-02-26 06:39:55 +00:00
Andrew Halberstadt c020ca72c1 Bug 1518572 - [mach] Stuff the 'handler' instance into the context when applicable r=firefox-build-system-reviewers,mshal
For mach commands that have 'pass_context=True', we should implicitly add the
handler instance to the context. This will give mach command implementations an
easy way to access things like the command/subcommand names, the parser, argv
list, etc.

Differential Revision: https://phabricator.services.mozilla.com/D20521
2019-02-25 16:19:05 +00:00
Ted Mielczarek a91a34c6c4 bug 1481614 - detect icecream usage in build telemetry. r=chmanchester,glandium
This patch adds detection for when icecream is in use to build telemetry.
icecream is commonly enabled in two ways: by either setting CC/CXX to point
to icecream's cc/c++ symlinks, or by setting adding
mk_add_options 'export CCACHE_PREFIX=icecc' to a mozconfig when also using
ccache. For the former, this patch adds a simple configure check to see
if CXX is a symlink to a file named 'icecc'. For the latter this patch adds
CCACHE_PREFIX as a configure subst to capture the value.

We don't currently have a facility for writing telemetry tests that depend on
configure values. Local manual testing shows that it does work as expected.

Differential Revision: https://phabricator.services.mozilla.com/D18138
2019-02-25 19:06:27 +00:00
Andrew Halberstadt fa998d8603 Bug 1367092 - [flake8] Take exclusion handling away from flake8, r=egao
The motivations for this are:

1) Apply global excludes. This merges the exclusion rules defined in
tools/lint/mach_commands.py with the ones in .flake8.

2) Improve performance. Switching to a blacklist will result in a much longer
runtime for linting the entire tree and flake8 handles exclusions incredibly
slowly. Without this patch (and the blacklist change applied), I gave up
waiting after 30 minutes. With this patch, it takes 30 seconds.

Depends on D20495

Differential Revision: https://phabricator.services.mozilla.com/D20496
2019-02-22 22:16:57 +00:00
Andrew Halberstadt 063801f24b Bug 1367092 - [lint] Move py2/py3 linter's exludes logic into mozlint, r=egao
This will be re-used by the flake8 linter, so moving it into mozlint for
re-useability.

Depends on D20493

Differential Revision: https://phabricator.services.mozilla.com/D20494
2019-02-22 21:18:22 +00:00
Christian Frey ffa7624a55 Bug 1517493 - migrated pageInfo.dtd and pageInfo.properties to pageInfo.ftl r=jaws,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D16931
2019-02-22 15:26:15 +00:00
Mike Hommey 0b0c2e89da Bug 1529195 - Allow to pass a different directory than $DIST to install artifacts to. r=chmanchester
Depends on D20446

Differential Revision: https://phabricator.services.mozilla.com/D20447
2019-02-21 22:53:31 +00:00