Commit Graph
3861 Commits
Author SHA1 Message Date
Ciure Andrei 2eb7bebcce Backed out 1 changesets (bug 1445383) for Windows 2012 build bustages on a CLOSED TREE
Backed out changeset c4cf68b6b73f (bug 1445383)
2018-06-05 19:54:59 +03:00
Peter Simonyi d6a21347a4 Bug 1445383 - update ccache stats parser for ccache 3.4 and 3.5 r=froydnj
MozReview-Commit-ID: KTr9RhkJN5B
2018-06-05 00:09:13 -04:00
Nick Alexander 47cb6e2564 Bug 1465836 - Make MOZ_AUTOMATION artifact builds pull host binaries (mar,mbsdiff). r=chmanchester
This populates $OBJDIR/dist/host/bin as part of |mach artifact install|.

Conceptually, the mar and mbsdiff utilities should be grouped (in the
same way that the test-related binaries are grouped).  However, it's
difficult to achieve that with the current structure of the code, so
this fetches mar and mbsdiff and produces $HASH-mar.processed.jar and
$HASH-mbsdiff.processed.jar files.

MozReview-Commit-ID: 3ks5xsUEKp5
2018-05-31 11:12:26 -07:00
Andrew Halberstadt 4a20366fb3 Bug 1437526 - [docs] Upgrade doc dependencies to their latest versions, r=davehunt
This upgrades sphinx to version 1.7.5, which contained a couple backwards
incompatible changes that needed fixing.

This also leaves sphinx-js at version 2.1 as upgrading that to 2.5 seems to
introduce an intermittent in the Doc task.

MozReview-Commit-ID: FRUTcXs5yzb
2018-06-01 10:19:01 -04:00
Andreea Pavel 0ac39ad7bb Merge mozilla-central to autoland. a=merge 2018-06-03 07:27:01 +03:00
Csoregi Natalia 6e1ac76332 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-02 01:05:17 +03:00
Chris Manchester 8914565d18 Bug 1444597 - Stringify exception when logging harmless errors in post-build step to avoid confusing stacktrace. r=nalexander
MozReview-Commit-ID: 6B4WCUfjESE
2018-05-31 21:21:41 -07:00
Francesco Lodolo (:flod) 3a783fb2cd Bug 1464029 - Remove Fluent migration recipes for Firefox 60 and older r=Pike
MozReview-Commit-ID: ICRYkrW7nmy
2018-05-30 08:46:18 +02:00
Chris AtLee 841d546d18 Bug 1237182: Get rid of buildprops.json r=tomprince,sfraser
Differential Revision: https://phabricator.services.mozilla.com/D1443
2018-05-25 17:35:43 -04:00
Chris Manchester cfa5d8ac33 Bug 1462489 - Re-generate the build backend when a build backend output is missing. r=mshal
MozReview-Commit-ID: CDO3bTGB4tj
2018-05-30 15:25:22 -07:00
Chris Manchester 6ba400ebfc Bug 1462489 - Put packaged test addons in the test package with the test packager rather than Makefile.in r=mshal
MozReview-Commit-ID: 56Ah9HQc9TT
2018-05-30 15:24:09 -07:00
Chris Manchester 9030964963 Bug 1462489 - Process some chrome manifest entries from dist/xpi-stage from the tup backend. r=mshal
MozReview-Commit-ID: 7X5Mi60j4cw
2018-05-30 15:21:26 -07:00
Dave Hunt eef6bca168 Bug 1388013 - Support running |mach python-test| against Python 3 using pipenv; r=ahal
This patch allows executing |mach python-test| against Python 3 by specifying the optional |--three| command line option. When this option is present, pipenv will be used to manage a virtual environment using Python 3 and attempt to run the tests. When it is not present, pipenv will not be used, and everything will work as it did before this patch.

My original plan was to use pipenv regardless of the target version of Python, however I encountered several issues running some of the tests against our Python packages. Once all tests have been patched to run against Python 3, then we should be able to use pipenv when running them against Python 2.

Note that this patch allows tests to run against Python 3, but there are plenty of issues preventing them from passing. With this patch in place we can start to add Python 3 support to our packages and have the tests running in CI to ensure we don't regress back to just supporting Python 2.

MozReview-Commit-ID: BuU5gZK83hL


IHG: changed taskcluster/ci/source-test/python.yml
2018-05-03 10:34:22 +01:00
Andreea Pavel baf70c19f5 Backed out 3 changesets (bug 1388013) for build bustages e.g. ../python/mozbuild/mozpack/test/test_files.py on a CLOSED TREE
Backed out changeset eea857170a41 (bug 1388013)
Backed out changeset c55bfefbd4e1 (bug 1388013)
Backed out changeset 3a163da2b21b (bug 1388013)
2018-05-31 11:48:19 +03:00
Dave Hunt d847c54788 Bug 1388013 - Support running |mach python-test| against Python 3 using pipenv; r=ahal
This patch allows executing |mach python-test| against Python 3 by specifying the optional |--three| command line option. When this option is present, pipenv will be used to manage a virtual environment using Python 3 and attempt to run the tests. When it is not present, pipenv will not be used, and everything will work as it did before this patch.

My original plan was to use pipenv regardless of the target version of Python, however I encountered several issues running some of the tests against our Python packages. Once all tests have been patched to run against Python 3, then we should be able to use pipenv when running them against Python 2.

Note that this patch allows tests to run against Python 3, but there are plenty of issues preventing them from passing. With this patch in place we can start to add Python 3 support to our packages and have the tests running in CI to ensure we don't regress back to just supporting Python 2.

MozReview-Commit-ID: BuU5gZK83hL


IHG: changed taskcluster/ci/source-test/python.yml
2018-05-03 10:34:22 +01:00
Mike Hommey 81a5e2d2b8 Bug 1253064 - Prefer Clang to GCC in local developer builds. r=gps
For Android targets, we just ignore plain clang, it's unlikely to work.
2018-05-31 10:16:10 +09:00
Dorel Luca e38362f238 Backed out 4 changesets (bug 1462489) for breaking mochitest on testing/mochitest/tests/python/test_basic_mochitest_plain.py
Backed out changeset 41cf0d53a95c (bug 1462489)
Backed out changeset daa33716b140 (bug 1462489)
Backed out changeset 3cd6a8ee8f66 (bug 1462489)
Backed out changeset dfed23857cea (bug 1462489)
2018-05-31 02:51:41 +03:00
Chris Manchester cee8d4028e Bug 1462489 - Re-generate the build backend when a build backend output is missing. r=mshal
MozReview-Commit-ID: CDO3bTGB4tj
2018-05-30 15:25:22 -07:00
Chris Manchester 8412316b58 Bug 1462489 - Put packaged test addons in the test package with the test packager rather than Makefile.in r=mshal
MozReview-Commit-ID: 56Ah9HQc9TT
2018-05-30 15:24:09 -07:00
Chris Manchester 1521b63cf4 Bug 1462489 - Process some chrome manifest entries from dist/xpi-stage from the tup backend. r=mshal
MozReview-Commit-ID: 7X5Mi60j4cw
2018-05-30 15:21:26 -07:00
byron jones 288f763233 Bug 1454868: create mach vendor manifest --verify r=gps
Creates a standard library for working with moz.yaml files, and adds a `mach
vendor manifest --verify` command that loads and verifies manifest schema.

The list of permitted licenses is one I derived from about:license, pending an
authoritative list from legal.

Differential Revision: https://phabricator.services.mozilla.com/D1208
2018-05-26 00:00:27 +00:00
Mike Hommey e1bb044842 Bug 1464522 - Count static initializers from the crash reporter symbol files. r=froydnj
The crash reporter symbol files are the easiest cross-platform way to
find static initializers. While some types of static initializers (e.g.
__attribute__(constructor) functions) don't appear there in a notable
way, the static initializers we do care the most about for tracking do
(static initializers from C++ globals). As a matter of fact, there is
only a difference of 2 compared to the currently reported count of 125
on a linux64 build, so this is a good enough approximation. And allows
us to easily track the count on Android, OSX and Windows builds, which
we currently don't do.

The tricky part is that the symbol files are in
dist/crashreporter-symbols/$lib/$fileid/$lib.sym, and $fileid is hard to
figure out. There is a `fileid` tool in testing/tools, but it is a
target binary, meaning it's not available on cross builds (OSX,
Android).

So the simplest is just to gather the data while creating the symbol
files, which unfortunately requires to go through some hoops to make it
happen for just the files we care about.
2018-05-29 08:48:47 +09:00
Chris Manchester d1d6043d38 Bug 1464954 - Print buildstatus messages when building in the top source directory. r=gps
MozReview-Commit-ID: F28u8k2Z24f
2018-05-29 15:23:39 -07:00
Kris Maglione fb529cebec Bug 1457321: Part 4 - Update built-in add-ons manifst during l10n repack. r=ted f=pike
This is slightly ugly, but is unfortunately necessary due to do the nature of
l10n repacks. Hopefully this can go away once we move to bundling lancpack
add-ons rather than repacking in the future.

MozReview-Commit-ID: JZUblVsEbZI
2018-05-08 01:04:01 -07:00
Kris Maglione 65c9a66be4 Bug 1457321: Part 2 - Add dictionaries to omnijar. r=ted
MozReview-Commit-ID: 4zqD8Di7Imb
2018-04-27 15:43:38 -07:00
Nick Alexander 4499f4ad06 Bug 1464128 - Migrate bookmarks.html.in to LOCALIZED_GENERATED_FILES. r=ted.mielczarek
This one looks to be pretty straight-forward.  It irritates me that
the jar.mn entry doesn't explicitly say that the result is coming from
the object directory, like

locale/browser/bookmarks.html (!bookmarks.html)

but that's for another day.

MozReview-Commit-ID: Cw8E0VJhSxv
2018-05-24 11:28:47 -07:00
Nick Alexander 4052d7d1c1 Bug 1440435 - Remove final remnant of Java JAR building from Makefiles. r=ted
MozReview-Commit-ID: 2IrNI8a15Jh
2018-05-18 11:23:00 -07:00
Dave Hunt 4334facccf Bug 1346026 - Unvendor pathlib2 as it is no longer a dependency for pipenv; r=ted
MozReview-Commit-ID: EYQqIDuu5p
2018-05-10 09:52:37 +01:00
Dave Hunt 3b347d4881 Bug 1346026 - Add ability to vendor Python modules using mach; r=ahal,erik,ted
To vendor a Python package, run ``mach vendor python [PACKAGE]``, where
``[PACKAGE]`` is one or more package names along with a version number in the
format ``pytest==3.5.1``. The package will be installed, transient dependencies
will be determined, and a ``requirements.txt`` file will be generated with the
full list of dependencies. The requirements file is then used with ``pip`` to
download and extract the source distributions of all packages into the
``third_party/python`` directory.

If you're familiar with ``Pipfile`` you can also directly modify this in the in
the top source directory and then run ``mach vendor python`` for your changes
to take effect. This allows advanced options such as specifying alternative
package indexed (see below), and
`PEP 508 specifiers <https://www.python.org/dev/peps/pep-0508/>`_.§

MozReview-Commit-ID: CRWoFamUy7V
2018-05-09 16:11:40 +01:00
Dorel Luca 189a3a4db1 Backed out 3 changesets (bug 1346026) for Bugzilla linting
Backed out changeset 95410b5cdecc (bug 1346026)
Backed out changeset 705e8cb185d4 (bug 1346026)
Backed out changeset f293475f462d (bug 1346026)
2018-05-23 19:42:13 +03:00
Dave Hunt 155bca6841 Bug 1346026 - Unvendor pathlib2 as it is no longer a dependency for pipenv; r=ted
MozReview-Commit-ID: EYQqIDuu5p
2018-05-10 09:52:37 +01:00
Dave Hunt fff42a379d Bug 1346026 - Add ability to vendor Python modules using mach; r=ahal,erik,ted
To vendor a Python package, run ``mach vendor python [PACKAGE]``, where
``[PACKAGE]`` is one or more package names along with a version number in the
format ``pytest==3.5.1``. The package will be installed, transient dependencies
will be determined, and a ``requirements.txt`` file will be generated with the
full list of dependencies. The requirements file is then used with ``pip`` to
download and extract the source distributions of all packages into the
``third_party/python`` directory.

If you're familiar with ``Pipfile`` you can also directly modify this in the in
the top source directory and then run ``mach vendor python`` for your changes
to take effect. This allows advanced options such as specifying alternative
package indexed (see below), and
`PEP 508 specifiers <https://www.python.org/dev/peps/pep-0508/>`_.§

MozReview-Commit-ID: CRWoFamUy7V
2018-05-09 16:11:40 +01:00
Mike Hommey d651d42913 Bug 1464084 - Don't export std::thread::_M_start_thread symbols with --enable-stdcxx-compat. r=froydnj
This relies on the fact that providing multiple --version-script
combines them all, so we effectively create a new symbol version
that has no global symbol, but hides the std::thread::_M_start_thread
symbols.

This version script trick happens to work with BFD ld, gold, and lld.

The downside is that when providing multiple --version-script's, ld
doesn't want any of them to have no version at all. So for the libraries
that do already have a version script (through SYMBOLS_FILE), we use a
version where there used to be none, using the library name as the
version. Practically speaking, this binds the libraries a little closer
than they used to be, kind of non-flat namespace on OSX (which is the
default there), meaning the dynamic linker will actively want to use
symbols from those libraries instead of a system library that might
happen to have the same symbol name.
2018-06-01 08:10:25 +09:00
Gurzau Raul 6a7d84c0f7 Backed out changeset 838c0ab9cbdb (bug 1464084) for Linux static bustage on a CLOSED TREE 2018-06-02 02:42:52 +03:00
Mike Hommey f8a40bb134 Bug 1466054 - Enable STL wrapping in gn and gyp processed code. r=froydnj
We wrap STL headers so as to ensure our inline infallible operator new
definitions are used, but for some reason, STL wrappers were disabled
in whatever code we used gyp for first, and that ended up spreading as
more things used gyp, and now with gn, whose handling cargo culted
STL disabling from the gyp code.

We remove all this disabling, because it turns out it causes no build
problem anymore.
2018-06-01 17:20:51 +09:00
Mike Hommey 3efa4e0706 Bug 1464084 - Don't export libstdc++ symbols with --enable-stdcxx-compat. r=froydnj
This relies on the fact that providing multiple --version-script
combines them all, so we effectively create a new symbol version
that has no global symbol, but hides as much std::* stuff as possible.

The added symbol script could use `extern "C++"` syntax and demangled
symbols but there is no guarantee the demangled symbols won't change.
Plus, it's not possible to match demangled symbols that have a return
type: they contain a space, and the only way to match that is to use
double quotes, which doesn't allow globs at the same time.

This version script trick happens to work with BFD ld, gold, and lld.

The downside is that when providing multiple --version-script's, ld
doesn't want any of them to have no version at all. So for the libraries
that do already have a version script (through SYMBOLS_FILE), we use a
version where there used to be none, using the library name as the
version. Practically speaking, this binds the libraries a little closer
than they used to be, kind of non-flat namespace on OSX (which is the
default there), meaning the dynamic linker will actively want to use
symbols from those libraries instead of a system library that might
happen to have the same symbol name.
2018-06-01 08:10:25 +09:00
James Graham 963ae39299 Bug 1345875 - Reduce the amount of text about artifact mode, r=nalexander
Reduce the amount of text so that the options are more likely to be
visible and people are more likely to read it.
2017-03-09 14:38:06 +00:00
Michael Kaply 8eaab274da Bug 1461345 - Move browser.search.order to list.json. r=adw
MozReview-Commit-ID: 1ulgkNgkAP9
2018-05-21 14:27:06 -05:00
Chris Manchester 3b988faf69 Bug 1461836 - Check configure dependencies and re-run configure if needed when invoking the Tup backend. r=mshal
MozReview-Commit-ID: LHYT3r4u2CY
2018-05-21 14:01:56 -07:00
Noemi Erli 51bd3e349a Backed out changeset 80cc5997d8cc (bug 1461345) for xpcshall failures on test_TelemetryEnvironment.js on a CLOSED TREE 2018-05-21 20:16:47 +03:00
Michael Kaply 7e3e553609 Bug 1461345 - Move browser.search.order to list.json. r=adw
MozReview-Commit-ID: 4eaWb8mzIm6
2018-05-18 16:12:32 -05:00
Kris Maglione c464e90c05 Bug 1462223: Remove unnecessary/unused bootstrap scope setup code. r=aswan
This also removes the workerbootstrap test extension, which is no longer used,
and contains the last references to the Worker and ChromeWorker bootstrap
globals.

MozReview-Commit-ID: 8YWReXMqX5W
2018-05-19 14:03:50 -07:00
Margareta Eliza Balazs 7913a70c57 Merge inbound to mozilla-central. a=merge 2018-05-19 12:39:28 +03:00
Justin Wood e89d3e1b3c Bug 1455337 - Set min version appropriately for language packs. r=gps
AMO needs to enter the application version for every Firefox release at this time, and in doing so they don't usually enter .sec versions, as these versions are exposed to addon devs in UX where they can specify outside of the xpi what versions of Firefox they are compatible with.

Language packs however set min version to things like 59.0.2 which AMO doesn't know about.

AMO will also fail to validate an .xpi with an unknown min version.

This code logic is slightly compounded by the fact that SeaMonkey uses these codepaths as well, so we need to account for it here.

Differential Revision: https://phabricator.services.mozilla.com/D1112
2018-05-02 22:33:19 -04:00
Andreea Pavel 64da3ce535 Backed out changeset 5afad9b7fd21 (bug 1408051) for slowing down setup of test environments on OS X on a CLOSED TREE 2018-05-18 21:17:33 +03:00
Gabriele Svelto 5665dce250 Bug 1462444 - Make |mach bootstrap| use the latest version of Oracle's JDK when bootstrapping Fennec on Gentoo; r=nalexander
The previous version was removed from Gentoo's portage repository making it
impossible to bootstrap correctly.

MozReview-Commit-ID: HTao6D3g61L
2018-05-17 21:44:26 +02:00
Chris AtLee 3956fd7b40 Bug 1408051: Remove mozharness' copy of virtualenv r=tomprince
MozReview-Commit-ID: 6LsrEcgz0L0
2018-05-17 09:52:59 -04:00
Michael Kaply ec95f16602 Bug 1461432 - Use list.json instead of browsersearch.json. r=nalexander
MozReview-Commit-ID: ISmBoFe45Co
2018-05-17 12:51:16 -05:00
Nathan Froyd 236ad9b068 Bug 1461926 - delete unneeded managing of dist/idl from the tup backend; r=mshal
We don't need to install anything in dist/idl anymore.
2018-05-17 10:16:46 -04:00
Mike Shal f4db667457 Bug 1461795 - Use FileAvoidWrite when writing mozinfo.json; r=chmanchester
Since MozbuildObject.from_environment() reads from mozinfo.json, tup
picks up that file as a dependency for anything that imports buildconfig
(eg: all generated files). Using FileAvoidWrite when creating
mozinfo.json will help avoid unnecessary work after re-running configure
in the tup backend.

MozReview-Commit-ID: EEOPQYJA1MV
2018-05-14 17:30:21 -04:00