Commit Graph

3045 Commits

Author SHA1 Message Date
Masatoshi Kimura
632e94cf4d Bug 1476000 - Support warnings format from clang-cl. r=dmajor
--HG--
extra : rebase_source : faf01d659a589c81718e58e2c73b1b46063ce989
2018-07-17 01:08:04 +09:00
Dan Minor
3f5a7a7356 Bug 1445683 - Don't update mimetype when updating aom; r=chmanchester
The bitstream is frozen and we're updating to v1.0.0. There is no longer any need
to indicate which revision we're using in the mimetype.

--HG--
extra : rebase_source : 5f5bf8649bd21610ebf04661e8f80bacbb69ca09
2018-07-09 13:29:55 -04:00
Dan Minor
0928a56595 Bug 1445683 - Handle JSONDecodeError in aom vendor command; r=chmanchester
MozReview-Commit-ID: 9MgxqkoHnfw

--HG--
extra : rebase_source : cc085ef0c0de570dfe25d412edb267c7a36c9389
2018-05-17 10:37:16 -04:00
Chris Manchester
d6b368dff1 Bug 1472490 - Make adding a source to SOURCES, UNIFIED_SOURCES, or HOST_SOURCES multiple times an error in moz.build. r=gps
MozReview-Commit-ID: FtPF3dxUxb5

--HG--
extra : rebase_source : ad380999c41830ea0f088bdacf5fc04c95783f04
2018-07-13 15:55:45 -07:00
Gurzau Raul
cf965b1f59 Merge inbound to mozilla-central. a=merge 2018-07-12 01:04:09 +03:00
Dan Minor
a8d7d7ecf2 Bug 1371485 - Use updated version of gyp; r=chmanchester
Tags: #secure-revision

Bug #: 1371485

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

--HG--
extra : rebase_source : 87cd91fdc0cc873c7f78e128f545524f66947035
2018-06-21 14:39:34 -04:00
Dave Hunt
2847cb1fcb Bug 1473727 - Avoid recreating virtual environment every time by using a unique environment for each Python version; r=ahal,dustin
This patch uses the PIPENV_PYTHON environment variable to append a suffix to the created virtual environment path according to the version specified. It also uses the PIPENV_DEFAULT_PYTHON_VERSION environment variable to avoid recreating the virtual environment every time. With these changes we are able to switch back and forth between Python versions without the expense of recreating environments, however there is a risk of these environments becoming stale. In this scenario it may be necessary to clobber the virtual environment root within the obj dir.

MozReview-Commit-ID: C4vuwNh04CP

--HG--
extra : rebase_source : 301c8418fe5b873ffadec37af11e98cfda8667b8
2018-07-09 14:57:38 +01:00
Andrew Halberstadt
812d9fb038 Bug 1413922 - [mozversioncontrol] Always use hglib.client if available and fall back to subprocesses if not, r=gps
Most HG commands use subprocesses, even if a context manager (and therefore an
hglib client) has been created. There are only two commands that make use of
the client, but they *only* work inside a context manager. I don't think
there are any technical reason these two commands *need* to use the context
manager.

This patch merges the HgRepository._run_in_client function with
HgRepository._run(). If a client exists, that will be used, otherwise a
subprocess will be used.

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

--HG--
extra : moz-landing-system : lando
2018-07-10 20:41:49 +00:00
Jacek Caban
041db4695b Bug 1443471 - Use correct rust target for mingw clang. r=glandium
MozReview-Commit-ID: G40IanxGWXv

--HG--
extra : rebase_source : 6d8ba3af796848320cc7e3db05e9c83ba4fecb45
2018-06-25 19:57:43 +02:00
assiya
cd6fa5ad82 Bug 1474531 - Replace iteritems with viewitems in lcov_rewriter.py. r=marco
MozReview-Commit-ID: FKEHK8dyQSC

--HG--
extra : rebase_source : faf77a17fd7888f9a685c3fd692c2e8eff205afb
2018-07-10 09:20:42 -07:00
Andreea Pavel
3a4de89781 Backed out changeset d75218b99a04 (bug 1473727) for build bustages on a CLOSED TREE 2018-07-10 18:17:47 +03:00
Dave Hunt
4c269c0a47 Bug 1473727 - Avoid recreating virtual environment every time by using a unique environment for each Python version; r=ahal,dustin
This patch uses the PIPENV_PYTHON environment variable to append a suffix to the created virtual environment path according to the version specified. It also uses the PIPENV_DEFAULT_PYTHON_VERSION environment variable to avoid recreating the virtual environment every time. With these changes we are able to switch back and forth between Python versions without the expense of recreating environments, however there is a risk of these environments becoming stale. In this scenario it may be necessary to clobber the virtual environment root within the obj dir.

MozReview-Commit-ID: C4vuwNh04CP

--HG--
extra : rebase_source : ba34e415fa21683bc2a39231651587fa30ad0242
2018-07-09 14:57:38 +01:00
Tiberius Oros
92ba19b150 Merge inbound to mozilla-central. a=merge 2018-07-10 12:45:13 +03:00
Nathan Froyd
0daa8edfcc Bug 1444171 - Add pgo-generate-only source functionality; r=glandium
For clang-cl, we want to add code to libxul that only exists during the
PGO generation phase, so we can collect data.  The most expedient way to
do that is to enable certain files in SOURCES to be marked as to only be
compiled during the PGO generation step.
2018-07-09 18:35:49 -04:00
Nathan Froyd
9277d23dba Bug 1444171: Generate profiling instrumentation for clang-cl in PGO builds; r=glandium 2018-07-09 18:26:24 -04:00
Chris Manchester
dc4c4637b0 Bug 1468547 - Re-factor gtest mach command to not invoke make when not necessary. r=mshal
MozReview-Commit-ID: 6j7t0YIZc8n

--HG--
extra : rebase_source : e4478904d4f4e54ead473435df2c9e9a47a9294c
2018-07-09 14:28:59 -07:00
Chris Manchester
1d6bf9c8d4 Bug 1468547 - Build the gtest libxul in the tup backend. r=mshal
MozReview-Commit-ID: 8EISyDauwgD

--HG--
extra : rebase_source : 2c9b4848b6fd8126f4d15f75312ba4e3c999ba6d
2018-07-09 14:28:58 -07:00
Chris Manchester
ce084d3cf5 Bug 1468547 - Add a default output group to the Tup backend. r=mshal
This adds everything to a default output group so we can run `tup upd $objdir/<default>`
during `mach build` and `tup upd $objdir/<gtest>` for instance when running `mach gtest`
as a way to conditionally build parts of the tree.

MozReview-Commit-ID: 8jpkru1EgAC

--HG--
extra : rebase_source : 5a2c4fd0e0b1b62f8bd65dd1a23ba2086ba63eeb
2018-07-09 14:28:58 -07:00
Mike Hommey
b2837054ff Bug 1469091 - Build the clang plugin as a host shared library. r=ted
This adds just enough host shared library support for this one use case,
but also takes shortcuts, because fully supporting host shared library
is a deep rabbit hole I'm not ready to take just to fix --enable-lto
--enable-clang-plugin on mac builds.

One downside is that one my machine the plugin now takes > 80s to build,
instead of 15s before, thanks to the lack of unified sources.

--HG--
extra : rebase_source : bf52a72a01d4e3eb77cf52b646b19734b9273075
2018-07-05 14:58:09 +09:00
Dave Hunt
c20ffc6c6b Bug 1472199 - [mozbuild] Remove unittest dependency from test_pythonutil.py and narrow to tests module; r=ahal
The test checks the modules imported, which means it will fail if we import mozbuild.base to determine the topsrcdir. Rather than include the additional modules, which may change in the future, I have narrowed the scope of the test to the mozbuild/tests module.

MozReview-Commit-ID: GiaPzp19adE

--HG--
extra : rebase_source : 9d79ad79bef2b45e3f62190200bc46f21d57f90d
2018-07-05 14:27:29 +01:00
Mike Hommey
da38aeba7d Bug 1457168 - Make configure tests use LINKER_LDFLAGS. r=chmanchester
Because we have no linking configure test in python configure (yet), we
just make old-configure tests use LINKER_LDFLAGS, and make those flags
added to LDFLAGS by old-configure at the same time.

--HG--
extra : rebase_source : 80ab7c5021c7ddd1b53d58ef76cd4372a524d3cb
2018-07-04 16:18:48 +09:00
Nathan Froyd
c1a8b8a10d Bug 1473291 - handle valueless dynamic section entries; r=glandium
Some dynamic entry types, like DT_BIND_NOW, are printed without a value
by readelf.  Handle such types gracefully.
2018-07-04 20:51:25 -04:00
Bogdan Tara
6eafe1c00b Backed out changeset 9c75cab2e322 (bug 733530) for breaking artifact builds 2018-07-04 14:50:22 +03:00
Chris AtLee
8745339529 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743

--HG--
extra : moz-landing-system : lando
2018-07-03 18:33:02 +00:00
Andi-Bogdan Postelnicu
88041b74a8 Bug 1472721 - mach static-analysis - use header_filter regex expression in order to better filter files. r=janx
MozReview-Commit-ID: JXzs46L23rM

--HG--
extra : rebase_source : 04d663479fbc5785ec99ec1a4bfdbd9f19b25cd2
2018-07-03 14:37:46 +03:00
Myk Melez
cb3429d30b Bug 1467148 - exclude .DS_Store file from list of subdirs to check for license info, r=ted
vendor_rust.py checks all dirs in third_party/rust/ for license information, but it wasn't distinguishing between subdirs and files when listing the contents of that directory, and the script earlier causes macOS to create a .DS_Store file in the directory, which the script then treats as a subdir, causing an IOError "not a directory". This change excludes the .DS_Store file (and other non-dirs) from the list of subdirs of third_party/rust/ to check for license info.

MozReview-Commit-ID: 4CrJH9tZLnG

--HG--
extra : rebase_source : 464ad17f4c9b76303f9024d8eaad475b1fc248f7
2018-07-02 14:27:22 -07:00
Andi-Bogdan Postelnicu
68fedeb80b Bug 1472502 - fix mach static-analysis clear-cache. r=sylvestre
MozReview-Commit-ID: AUlYNnEAtbS

--HG--
extra : rebase_source : 049909e12ee8ad187912ee18c3b810fd90f74b76
2018-07-02 12:05:07 +03:00
Kris Maglione
b2a784a8bf Bug 1459004: Generate built_in_addons.json from moz.build definitions. r=mshal
MozReview-Commit-ID: 1HRLG5tSlFr

--HG--
rename : python/mozbuild/mozbuild/action/generate_builtin_addons.py => toolkit/mozapps/extensions/gen_built_in_addons.py
extra : rebase_source : 7079d5f6a9355201497ea85a0d8ea8fdcee43a64
2018-06-06 16:43:00 -07:00
Andrew Halberstadt
9435736ade Bug 1471620 - Skip python-tests locally that don't run with python 3 in CI r=davehunt
This will make sure that when running |mach python-test --python 3| locally,
we only run the tests that also run in CI with python 3 (and therefore pass
presumably).

MozReview-Commit-ID: 3OBr9yLSlSq

--HG--
extra : rebase_source : 456340d0ecdddf1078f2b5b4ebb1eddf3813b26a
2018-06-27 11:10:02 -04:00
Mike Hommey
e44bfe7b57 Bug 1471685 - Work around MSVC linker adding padding during incremental builds. r=froydnj
--HG--
extra : rebase_source : 0e6f711d5f8517ca37d39c6f5a39cd0c0e3ec387
2018-06-28 15:53:25 +09:00
Cosmin Sabou
f4b3baf021 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-28 13:04:23 +03:00
Tiberius Oros
945c24abe5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-28 01:12:18 +03:00
Chris Manchester
fd325c1c6f Bug 1471425 - Print output of cargo if it fails when run as a part of the Tup backend. r=mshal
MozReview-Commit-ID: BRVSLE83WMH

--HG--
extra : rebase_source : ce2b5b785a6487db09136882452d509c842c758f
2018-06-26 18:17:45 -07:00
Joel Maher
e923cd7f53 Bug 1468198 - remove tests that only run on b2g. r=smaug,mcmanus,whimboo 2018-06-27 09:52:19 -04:00
Bhavesh
6fb877a7a8 Bug 928735 - Added ALLOW_COMPILER_WARNINGS and FAIL_ON_WARNINGS to DEPRECATED_VARIABLES list r=chmanchester
--HG--
extra : amend_source : 94b3e7b561507a27401c9a534e3d55eaa22622f3
2018-06-27 09:36:52 +05:30
Andreea Pavel
00c91fc905 Backed out 6 changesets (bug 1371485) for failing spidermonkey build on a CLOSED TREE
Backed out changeset 9578824cbdde (bug 1371485)
Backed out changeset 36bca079ba29 (bug 1371485)
Backed out changeset c205b5921de8 (bug 1371485)
Backed out changeset 17fc0da77821 (bug 1371485)
Backed out changeset da14dc867e22 (bug 1371485)
Backed out changeset 7b604564918d (bug 1371485)
2018-06-27 21:10:15 +03:00
Dan Minor
dbb123a006 Bug 1371485 - Use updated version of gyp; r=chmanchester
Tags: #secure-revision

Bug #: 1371485

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

--HG--
extra : rebase_source : 5c6bb163af9b03e70a8b128ef477c2a4922d6ca4
2018-06-21 14:39:34 -04:00
Mike Hommey
0ddc27774e Bug 1471132 - Change how static xpcom components are linked. r=froydnj
Overall, this makes the whole setup less fragile, and make it work with
LTO in more situations.

--HG--
extra : rebase_source : de968c61dc4ef337fdc28745c202334ac41763cd
2018-06-26 14:40:51 +09:00
Mike Hommey
b231504a1b Bug 1471132 - Avoid ASAN padding between NSModules. r=froydnj
--HG--
extra : rebase_source : 480ea315a847ffb63a8cb1e583669a61f1a7f3eb
2018-06-26 14:39:49 +09:00
Mike Hommey
354a9e27a0 Bug 1470127 - Move binary checks to a standalone script. r=froydnj
We perform, on the binaries we build, a series of check, that are
implemented as half-baked make commands, invoked after linking them.

- check libstdc++ symbol versions to ensure binary compatibility with
  a baseline.
- check glibc symbol versions to ensure binary compatibility with a
  baseline.
- check that target binaries don't contain text relocations.
- check that libmozglue is linked before libc on android.
- on libxul, check that NSModules are laid out correctly.
- on libxul, check that there is more than one PT_LOAD segment.

Those checks happen to work where they matter, but their setup is
unreliable. For example, the checks for symbol versions are supposed to
work for libclang-plugin on cross osx builds, but in fact, don't,
because the readelf path doesn't exist, and the command doesn't fail in
that case.

So move them all to a standalone script, performing the checks more
thoroughly (especially the NSModules one, where we now also check that
they are all adjacent), and more verbosely.

--HG--
extra : rebase_source : 7072e622e95f363d4a6c3a8e272d3445d998b592
2018-06-21 18:13:03 +09:00
Chris AtLee
0a72084572 Bug 733530: Support tar.gz test archives for artifact builds r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1841
2018-06-26 20:30:24 +00:00
Dan Mosedale
7514746d09 Bug 1466574 - make generate_builtin_addons handle races better, r=ted
MozReview-Commit-ID: D9irkni3gQv

--HG--
extra : rebase_source : 22ce8dd77b1d9f22c82fe58e6b8a515828cbb840
2018-05-31 09:56:20 -07:00
Gregory Szorc
871e349399 Bug 1469999 - Use yaml.safe_load() for loading clang-tidy config file; r=chmanchester
yaml.load() isn't secure.

--HG--
extra : rebase_source : 03eb1715acd62ab8c98bf4d850cc39a88140a998
extra : histedit_source : 8b3b4823c1f1c20be58494a5f98041e7c46ca3b4
2018-06-20 14:29:06 -07:00
Dave Hunt
cc768253df Bug 1466211 - Use --python for selecting target Python when using |mach python-test|; r=ahal
MozReview-Commit-ID: J8DSmX8mItb

--HG--
extra : rebase_source : 0e471ade56c7bb78fe090f05e7657ae1f35f7936
2018-06-13 14:18:21 -07:00
Dave Hunt
3a2583759b Bug 1466211 - Switch all |mach python-test| tests to run using pipenv; r=ahal
MozReview-Commit-ID: AzmdDgAgZgI

--HG--
extra : rebase_source : cd4603b707bd4ca3f7e0783cf5b9adb8c47a9e01
extra : source : e550be515be30148c0a89c33953dff4148a6a171
2018-06-08 13:24:27 +01:00
Botond Ballo
43d0c35753 Bug 1470494 - Configure 'mark occurrences' preferences in generated Eclipse CDT project. r=kats
MozReview-Commit-ID: HqiQyfYnPi7

--HG--
extra : rebase_source : a79648b27f5be65d4cc7639031dda752745dc903
2018-06-22 13:08:03 -04:00
Botond Ballo
5123abd986 Bug 1470494 - Configure indexer in generated Eclipse CDT project to automatically update the index. r=kats
MozReview-Commit-ID: G0yX1ei7rII

--HG--
extra : rebase_source : 1403d8bead2dde220f7e7de61ea3f3a37efb5ad5
2018-06-22 13:07:41 -04:00
Margareta Eliza Balazs
7a2b0ea957 Backed out 7 changesets (bug 1466211) for bustage e.g. z/task_1529662815/src/js/src/configure --enable-ctypes --enable-optimize on a CLOSED TREE
Backed out changeset 6680ca0acc27 (bug 1466211)
Backed out changeset dfdf4ea83655 (bug 1466211)
Backed out changeset 23eb377e2e6d (bug 1466211)
Backed out changeset fe821d61ecbf (bug 1466211)
Backed out changeset e04950c7c496 (bug 1466211)
Backed out changeset 4b197754381a (bug 1466211)
Backed out changeset 1695d4464c54 (bug 1466211)
2018-06-22 14:33:21 +03:00
Dave Hunt
a9121c5eef Bug 1466211 - Use --python for selecting target Python when using |mach python-test|; r=ahal
MozReview-Commit-ID: J8DSmX8mItb

--HG--
extra : rebase_source : 1366a59d847cb8d9289161207b3b708280e70bae
2018-06-13 14:18:21 -07:00
Dave Hunt
026a332568 Bug 1466211 - Switch all |mach python-test| tests to run using pipenv; r=ahal
MozReview-Commit-ID: AzmdDgAgZgI

--HG--
extra : rebase_source : 8db60e196667ae97e0f994930c9adbb4d2030d34
extra : source : e550be515be30148c0a89c33953dff4148a6a171
2018-06-08 13:24:27 +01:00
Jan Keromnes
f6609edce0 Bug 1468811 - Fail static-analysis autotest when a clang-tidy check doesn't exist. r=sylvestre 2018-06-19 08:06:00 +03:00
Chris Manchester
146bb709e4 Bug 1469815 - Add new output files from style crate build script to cargo_build_defs.py for the Tup build. r=mshal 2018-06-20 10:16:58 -07:00
Andreea Pavel
3c701634e0 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-20 14:28:15 +03:00
Myk Melez
de32426cfe Bug 1467307 - whitelist BSD-2-Clause license for Rust crates, r=gps
MozReview-Commit-ID: HVOlQlfley1

--HG--
extra : rebase_source : 0df8293807f7aa321cf20c56d67d4217f9b535af
2018-06-06 07:46:57 -07:00
Dorel Luca
b595d82310 Merge mozilla-central to mozilla-inbound 2018-06-20 01:06:23 +03:00
Chris Manchester
86ddf36acf Bug 1469067 - Build host programs in their final locations rather than copying them to dist/host/bin. r=mshal
MozReview-Commit-ID: BrSou1ee2qV

--HG--
extra : rebase_source : 14ab70086b6b43b026c4ca269f27f0ae20a09aa6
2018-06-18 14:22:20 -07:00
Kris Maglione
0506a56751 Bug 1468362: Remove ADDON_SINGING buildconfig setting. r=aswan
MozReview-Commit-ID: MeD4VQPVf6

--HG--
extra : rebase_source : c40ed5b7d194290332f0aa77deaf91812de48c42
extra : histedit_source : 34a69d708597fcdbfb9bffccd7dbf28c9d1a42a7
2018-06-12 13:56:58 -04:00
Chris Manchester
764fa9ac29 Bug 1467319 - Generate fewer redundant conditions when generating moz.build files fron gn configs. r=mshal
MozReview-Commit-ID: Ef67haFgx3A

--HG--
extra : rebase_source : b71a870aa4d838cd0230ed07819cf3f3ced5d1d4
2018-06-06 17:36:45 -07:00
Chris Manchester
649b62ee55 Bug 1466254 - Don't assume flags/includes only appear once when factoring gn-generated moz.build conditions. r=mshal
Some recently introduced gn-configs contain duplicate flags/includes, which
aren't handled correctly and introduce non-determinism into the gn-moz.build
generation. This patch makes the moz.build generator faithfully reproduce
duplicated flags, usually to no effect, which is unfortunate in these cases,
but a reasonable approach for the moz.build generator in general.

MozReview-Commit-ID: 6PvobD9JRwN

--HG--
extra : rebase_source : 50c9e92bb03400e6b41908de1a1bfadaced1ad91
2018-06-06 17:12:19 -07:00
Chris Manchester
46d7807752 Bug 1466254 - Sort conditions when generating the moz.build file at the root of a gn project. r=mshal
MozReview-Commit-ID: FCv8VDho2OF

--HG--
extra : rebase_source : 9b6013615f8cfd5df461b40656f6c61a1dc802c8
2018-06-06 17:11:16 -07:00
Mike Shal
e9fda85331 Bug 1469712 - Don't update mtime for backend file during --dry-run; r=gps
When we do a './mach build-backend --dry-run', no files in the objdir
should be written or touched. Updating the mtime of the backend file
during dry-run causes a future './mach build' to think that the backend
is up-to-date when it is not, which causes an incorrect build.

MozReview-Commit-ID: 2NA0rcSGrvL

--HG--
extra : amend_source : f694503264dc6275568c453de59b7f13983091f7
2018-06-19 17:15:37 -04:00
assiya
10dd6c9781 Bug 1468328 - Make other codecoverage import statements Python3 compatible. r=marco
MozReview-Commit-ID: J3uaRsbE1sf

--HG--
extra : rebase_source : bbf3cad256ab9c46ab0dfd9e6923a1d0338feb52
2018-06-16 00:06:25 -07:00
Noemi Erli
629749b257 Backed out changeset 44827df784b2 (bug 1468328) for bustages on builds/worker/workspace/build/src/python/mozbuild/mozpack/chrome/manifest.py on a CLOSED TREE 2018-06-15 23:55:02 +03:00
assiya
51f05e6e16 Bug 1468328 - Make other codecoverage import statements Python3 compatible. r=marco
MozReview-Commit-ID: 9UmVk6onIQw

--HG--
extra : rebase_source : ff9932f0c3e8a36fa2a3cda612bb2010a1a19221
2018-06-15 10:30:54 -07:00
assiya
d61184c99d Bug 1468328 - Make import statement Python3 compatible. r=marco
MozReview-Commit-ID: 6NPlMjT6K8J

--HG--
extra : rebase_source : 77d195514c5bee921a7086037d3738e01096c631
2018-06-14 07:32:58 -07:00
Chris Manchester
30f730a545 Bug 1319228 - Build dependentlibs.list in the tup backend, create a group for shared libraries to be used as its input. r=mshal
MozReview-Commit-ID: 5nDZpTcqVfv

--HG--
extra : rebase_source : faa44a40404b24f753ba25962397a1ca484de3fe
2018-06-13 22:33:23 -07:00
Chris Manchester
c70aa1dec3 Bug 1319228 - Link libxul in the Tup backend. r=mshal
MozReview-Commit-ID: sqCdlqP9pj

--HG--
extra : rebase_source : beb539cd174d173b745287bd659d4659f976b2b1
2018-06-13 22:33:23 -07:00
Chris Manchester
76dfb7be41 Bug 1319228 - Generate rules for rust in the Tup backend via cargo --build-plan. r=ted
MozReview-Commit-ID: FoCBN9ywIuQ

--HG--
extra : rebase_source : b6b2fdda19492dec13840223ac650507f4648f18
2018-06-13 22:33:22 -07:00
Chris Manchester
82c138c9bf Bug 1319228 - Use pass_thru=True when running config.status to expose error messages from sub-commands. r=mshal
MozReview-Commit-ID: 3eWOM6bZOmA

--HG--
extra : rebase_source : 1989de96cb0af9ae1716f31c68a0c96f446f4565
2018-06-13 22:33:22 -07:00
shindli
11cbcef059 Backed out 6 changesets (bug 1319228) for Btup bustages on Linux x64 on a CLOSED TREE
Backed out changeset 2eedbab9137b (bug 1319228)
Backed out changeset 6ba05238789f (bug 1319228)
Backed out changeset badf116dde30 (bug 1319228)
Backed out changeset a218f97e1b48 (bug 1319228)
Backed out changeset d3c835477d11 (bug 1319228)
Backed out changeset 3f3fa38b1a5f (bug 1319228)
2018-06-14 00:46:46 +03:00
Chris Manchester
25a7f13729 Bug 1319228 - Build dependentlibs.list in the tup backend, create a group for shared libraries to be used as its input. r=mshal
MozReview-Commit-ID: 3nvHaS5ZcIg

--HG--
extra : rebase_source : 4d9d4379a07eee5b7ee6ffde0e60d156c8c88333
2018-06-13 13:00:24 -07:00
Chris Manchester
bef973d8b9 Bug 1319228 - Link libxul in the Tup backend. r=mshal
MozReview-Commit-ID: AyhoaPIZJ6I

--HG--
extra : rebase_source : 494683bd65779e791e81f42b379946ea72ec902b
2018-06-13 13:00:24 -07:00
Chris Manchester
20ec9d69d8 Bug 1319228 - Generate rules for rust in the Tup backend via cargo --build-plan. r=ted
MozReview-Commit-ID: 9m0Prz3AvmC

--HG--
extra : rebase_source : f8b810036f39c056c5e312388d8238eaa1ee5d0a
2018-06-13 13:00:13 -07:00
Chris Manchester
0080bc4f66 Bug 1319228 - Use pass_thru=True when running config.status to expose error messages from sub-commands. r=mshal
MozReview-Commit-ID: DLlMAgrwHgc

--HG--
extra : rebase_source : a064a2bad9c9c2101dc2e2b64cd55535ddcd7f6d
2018-06-12 13:48:38 -07:00
Peter Simonyi
542cefeac8 Bug 1445383 - update ccache stats parser for ccache 3.4 and 3.5 r=froydnj
MozReview-Commit-ID: KTr9RhkJN5B

--HG--
extra : rebase_source : b384a7e79f2e349a29942cf85f52aa306ddaa3c8
2018-06-09 14:55:46 -04:00
Sofia Carillo
61c1056c0e Bug 1464235 - option to upload tup db r=mshal
MozReview-Commit-ID: JkzWTu0g41X

--HG--
extra : rebase_source : 1bd8c2dc9f99879ca05dade9c9471cec167f319a
2018-06-06 14:04:47 -07:00
Mike Hommey
5a727099da Bug 1467462 - Adjust test_developer_options after bug 1467041. r=froydnj
Bug 1467041 changed the default for --enable-release such that it is
affected by the milestone. Test both possible cases for milestones.

--HG--
extra : rebase_source : 5bfeadf4cd1e8c672cf78e4922ebb91bdafecad8
2018-06-08 07:11:42 +09:00
Gregory Szorc
6026d2721c Bug 1467605 - Disable processing of fetch dependencies; r=glandium
90dca0906337 accidentally broke `mach artifact toolchain --from-build`
because that code is attempting to load toolchain tasks in isolation.
The new "use_fetches" transform added to toolchain tasks requires
that "fetch" tasks are already processed and their references are
available to toolchain tasks.

This commit adds a mechanism to effectively disable the "use_fetches"
transform when called by `mach artifact toolchain`. It is a hack. I
suspect future planned work around artifacts/fetches will necessitate
additional changes to the `mach artifact toolchain` code. But this
can be deferred to a later day: this commit unbusts `mach artifact
toolchain` and isn't super hacky, so it seems more reasonable than
backing out fetch tasks completely.

Differential Revision: https://phabricator.services.mozilla.com/D1588
2018-06-07 23:05:58 +00:00
Ciure Andrei
ac7b2634a4 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
2d8ec89bb9 Bug 1445383 - update ccache stats parser for ccache 3.4 and 3.5 r=froydnj
MozReview-Commit-ID: KTr9RhkJN5B

--HG--
extra : rebase_source : 118c23aea9fd640cac6b850d5ae795a2582dd8b1
2018-06-05 00:09:13 -04:00
Nick Alexander
8bf87f6f0e 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

--HG--
extra : rebase_source : 5fcf186decc95537cbaa90ffedb86774eab050d2
2018-05-31 11:12:26 -07:00
Andrew Halberstadt
bf87aca534 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

--HG--
extra : rebase_source : e874a2e9c637b7cec710203f75f4dd989a5681a1
2018-06-01 10:19:01 -04:00
Andreea Pavel
4ced6e8b2d Merge mozilla-central to autoland. a=merge 2018-06-03 07:27:01 +03:00
Csoregi Natalia
e2f48890e1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-02 01:05:17 +03:00
Chris Manchester
17335b2c5a Bug 1444597 - Stringify exception when logging harmless errors in post-build step to avoid confusing stacktrace. r=nalexander
MozReview-Commit-ID: 6B4WCUfjESE

--HG--
extra : rebase_source : b9d753e401688375f809bcf8326582a5f39a87f2
2018-05-31 21:21:41 -07:00
Chris AtLee
8e5587759f Bug 1237182: Get rid of buildprops.json r=tomprince,sfraser
Differential Revision: https://phabricator.services.mozilla.com/D1443

--HG--
extra : rebase_source : 1683b76377e27fdaa5292e1781573ddc4e61afa8
2018-05-25 17:35:43 -04:00
Chris Manchester
dbbf582ded Bug 1462489 - Re-generate the build backend when a build backend output is missing. r=mshal
MozReview-Commit-ID: CDO3bTGB4tj

--HG--
extra : rebase_source : 9bf580435d78a5048d05f7a37d8eff76b16f6ac9
2018-05-30 15:25:22 -07:00
Chris Manchester
508b393aa6 Bug 1462489 - Put packaged test addons in the test package with the test packager rather than Makefile.in r=mshal
MozReview-Commit-ID: 56Ah9HQc9TT

--HG--
extra : rebase_source : d1af6d7c92aece08932e93e7a1f1b43a78292410
2018-05-30 15:24:09 -07:00
Chris Manchester
a5459b456c Bug 1462489 - Process some chrome manifest entries from dist/xpi-stage from the tup backend. r=mshal
MozReview-Commit-ID: 7X5Mi60j4cw

--HG--
extra : rebase_source : 8fb5220b4ac71618cde34d1b5dba504c46a4915b
2018-05-30 15:21:26 -07:00
Dave Hunt
c65268bd7a 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

--HG--
extra : rebase_source : ca2b15d905f7a5c895a2fd8916144841f5d205de
2018-05-03 10:34:22 +01:00
Andreea Pavel
dd5cd1d832 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
18568a8c94 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

--HG--
extra : rebase_source : e1a64c0ffa8fe5cce71a041579601d4a72e37779
2018-05-03 10:34:22 +01:00
Mike Hommey
81cf850f82 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.

--HG--
extra : rebase_source : 2ba19ea608921acc2739055115082291bb8996f4
2018-05-31 10:16:10 +09:00
Dorel Luca
308f075972 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
1b8f9ac1a6 Bug 1462489 - Re-generate the build backend when a build backend output is missing. r=mshal
MozReview-Commit-ID: CDO3bTGB4tj

--HG--
extra : rebase_source : dfbd0e6bc3fa9bcdbd96de38e85e38dc945275bc
2018-05-30 15:25:22 -07:00
Chris Manchester
adac97a0fe Bug 1462489 - Put packaged test addons in the test package with the test packager rather than Makefile.in r=mshal
MozReview-Commit-ID: 56Ah9HQc9TT

--HG--
extra : rebase_source : cc74b4e385cc98036d24e120732cf4c30e73f962
2018-05-30 15:24:09 -07:00
Chris Manchester
37d56be9a8 Bug 1462489 - Process some chrome manifest entries from dist/xpi-stage from the tup backend. r=mshal
MozReview-Commit-ID: 7X5Mi60j4cw

--HG--
extra : rebase_source : 8fb5220b4ac71618cde34d1b5dba504c46a4915b
2018-05-30 15:21:26 -07:00
byron jones
af12ec3053 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
8b091c97fd 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.

--HG--
extra : rebase_source : 458fed1ffd6f9294eefef61f10ff7a284af0d986
2018-05-29 08:48:47 +09:00
Chris Manchester
82729d6f6e Bug 1464954 - Print buildstatus messages when building in the top source directory. r=gps
MozReview-Commit-ID: F28u8k2Z24f

--HG--
extra : rebase_source : bcf77bdcfb37c5a43261e773d9b444c5844ae4d8
2018-05-29 15:23:39 -07:00