Commit Graph

2490 Commits

Author SHA1 Message Date
Wes Kocher
f9e9d69899 Merge inbound to m-c a=merge CLOSED TREE 2016-11-16 17:07:26 -08:00
Benjamin Smedberg
00f9f7a30c Bug 1314350 - Port TestTXMgr to gtest. This removes the framework for testing object destruction order because that was already non-deterministic due to the cycle collector, r=masayuki
MozReview-Commit-ID: vK4iYmytgt

--HG--
extra : rebase_source : fc4be47bf0e68777aaf45250b339cf0d3d332240
extra : source : bb1325166026fec5e13db34eca7588ce18c94505
2016-11-15 13:06:05 -05:00
Benjamin Smedberg
58606875d8 Bug 1314955 part B - Remove the tests for binary-component which is no longer supported. r=froydnj
MozReview-Commit-ID: G7MATc8AGt1

--HG--
extra : rebase_source : f5f0886aab2b6981a12d9c32b120e65a2d022bc8
extra : source : a99c6ce96b6f25a4935bc41fe32841c9b94f1546
2016-10-26 11:34:32 -04:00
Benjamin Smedberg
ef89ac1033 Bug 1314955 part A - Move the binary xpconnect testing components into libxul so that we can remove support for external binary components. Ideally we'd only compile these into the xul-gtest version, but currently we can't run xpcshell tests against that version, so I'm going to put them into the release xul, r=mrbkap
MozReview-Commit-ID: Lr6uKtzXdEb

--HG--
extra : rebase_source : d6c813e568ba62bcc7174a0fc990ccf4364717e6
extra : source : c78f97c0b77126fa37c857728192f2e2d0c2d99c
2016-11-16 12:28:57 -05:00
Benjamin Smedberg
067ef5e9f7 Bug 1314378 part B - port TestStartupCache to gtest, r=froydnj
MozReview-Commit-ID: LTz4slzIkjH

--HG--
extra : rebase_source : 852ca996bd042d9c363b79bf47a037f83f3cf804
extra : source : 4585a7b6f3ce8c8dc7b7e043e0fae86f8e5ee392
2016-11-11 11:57:08 -05:00
Andrew Halberstadt
22ef4b7035 Bug 1309060 - Give |mach python-test| the ability to run tests in parallel, r=gps
We recently switched make check to call into |mach python-test| rather than invoking python
itself for each test file. But this ended up slowing down the tests as they were no longer
being run in parallel. This patch adds a --jobs flag to python-tests and runs test files in
parallel.

Note: if more than one job is used, output per test will be buffered and printed at the end
to avoid interleaving. This has the unfortunate side effect of making |mach python-test| look
like it is hanging, especially if running a very long file like mozbase's test.py. For this
reason, we still use -j1 by default so output will continue to be streamed. In automation we
will use multiple processes though.

MozReview-Commit-ID: 3u0wOFmyQLI

--HG--
extra : rebase_source : d08ac412023731c46226c7adbf5f6e798b9a345a
2016-10-11 12:29:09 -04:00
Andrew Halberstadt
ba9d1f68ea Bug 1309060 - Update futures to version 3.0.5, r=gps
We need the fix from https://github.com/agronholm/pythonfutures/issues/25
to allow sending KeyboardInterrupts to thread pools.

MozReview-Commit-ID: 5VfBttLbKOr

--HG--
extra : rebase_source : 8e3aa7a1d6fbbaa7b94cea35b196b35e103a1e33
2016-10-24 16:04:45 -04:00
Iris Hsiao
325956f7b5 Backed out changeset 52cfc93236f0 (bug 1314378) to fix the bustage after backed out bug 1314955 2016-11-16 15:30:47 +08:00
Wes Kocher
5f39e9c1f2 Backed out changeset 5cd867e3258b (bug 1317674) for make check failures a=backout 2016-11-15 18:16:22 -08:00
aleth
fb59562f25 Bug 1317674 - Use the correct path to the binary for comm builds in the XPCOM glue check + exceptions for Calendar and Instantbird. r=glandium 2016-11-16 02:01:04 +01:00
Benjamin Smedberg
80690f1ce8 Build bustage fixup from bug 1314378 and bug 1314955 - remove things from the whitelist which are no longer built, r=lumpy on a CLOSED TREE
--HG--
extra : amend_source : c9244c8f26aa1255391f3db07fb2f4d8caa15ecd
2016-11-15 17:29:41 -05:00
Matthew Gregan
81105ff0ba Bug 1314514 - Update libcubeb to 8bab182c. r=padenot
--HG--
rename : media/libcubeb/tests/common.h => media/libcubeb/gtest/common.h
rename : media/libcubeb/tests/moz.build => media/libcubeb/gtest/moz.build
rename : media/libcubeb/tests/test_audio.cpp => media/libcubeb/gtest/test_audio.cpp
rename : media/libcubeb/tests/test_devices.cpp => media/libcubeb/gtest/test_devices.cpp
rename : media/libcubeb/tests/test_duplex.cpp => media/libcubeb/gtest/test_duplex.cpp
rename : media/libcubeb/tests/test_record.cpp => media/libcubeb/gtest/test_record.cpp
rename : media/libcubeb/tests/test_resampler.cpp => media/libcubeb/gtest/test_resampler.cpp
rename : media/libcubeb/tests/test_sanity.cpp => media/libcubeb/gtest/test_sanity.cpp
rename : media/libcubeb/tests/test_tone.cpp => media/libcubeb/gtest/test_tone.cpp
2016-11-11 15:01:56 +13:00
Sebastian Hengst
e1115d457e Backed out changeset fb3473c1770d (bug 1316450) for landing on wrong integration tree. r=backout on a CLOSED TREE 2016-11-15 14:11:00 +01:00
Sebastian Hengst
511303c11e Bug 1316450 - Enforce that nothing new depends on the XPCOM glue: Re-add sdp_unittests because its removal hasn't been merged around yet. r=bustage-fix a=bustage-fix on a CLOSED TREE
MozReview-Commit-ID: KxrK2dKjhia
2016-11-15 14:04:05 +01:00
Sebastian Hengst
d980649453 Bug 1316450 - Enforce that nothing new depends on the XPCOM glue: Remove sdp_unittests, not sdp_file_parser. r=bustage a=bustage on a CLOSED TREE
MozReview-Commit-ID: Kg0822lNuc7
2016-11-15 13:54:00 +01:00
Sebastian Hengst
fc95af0673 Bug 1316450 - Enforce that nothing new depends on the XPCOM glue: Remove sdp_unittests (removed in bug 1316886) and TestMinStringAPI (removed in bug 1316732). r=bustage-fix a=bustage-fix on a CLOSED TREE
MozReview-Commit-ID: FEsOFc6Jvp1
2016-11-15 13:44:31 +01:00
Mike Hommey
ce8408bddc Bug 1316450 - Enforce that nothing new depends on the XPCOM glue. r=gps
--HG--
extra : rebase_source : 9b276d9f8eccd058001a87acc473d3065d7595c2
2016-11-10 08:41:48 +09:00
Mike Hommey
3e149877ae Bug 1316844 - Make the linter detect unused dependencies. r=chmanchester
--HG--
extra : rebase_source : 44fea4820c95b5e0d274fa1b3bf6ce563af2c30a
2016-11-11 12:52:58 +09:00
Mike Hommey
1844bdb554 Bug 1316844 - Improve function unwrapping to properly cover templates. r=chmanchester
--HG--
extra : rebase_source : 35b56b6a2507bf18ef8182c3d8852bad5d13075f
2016-11-11 11:32:43 +09:00
Andrew Halberstadt
0f0d287852 Bug 1290765 - Add ability to install requirements.txt files in mozbuild/virtualenv.py, r=gps
Some mach commands may want to re-use a requirements.txt file rather than installing packages
individually. This enables --require-hashes which means all packages and dependencies must be
listed with their hashes. For more details, see:
https://pip.pypa.io/en/stable/reference/pip_install/#hash-checking-mode

MozReview-Commit-ID: 3lOutbcSzIY

--HG--
extra : rebase_source : d07ac21bd1f2f0009465f9e004208464b22de01b
2016-08-23 11:12:39 -04:00
Mike Hommey
e7e497234b Bug 1316250 - Allow functions using the fake os module to not depend on --help. r=chmanchester
--HG--
extra : rebase_source : 3a39f6deb657a30713f4864d54530d6b0b454ae1
2016-11-09 15:32:28 +09:00
Mike Hommey
566d70bc03 Bug 1316250 - Don't pretend imported modules in templates are inherited by functions they contain. r=chmanchester
The current state of python configure sandbox execution is that if a
template imports a module, and a function defined in the template tries
to use the module, it doesn't work. Ideally, it would, but rather than
try to fix this corner case, we remove the unit tests that assume it
works (and consequently pass for half bad reasons), and add a unit test
so that the behavior doesn't change unwillingly.

--HG--
extra : rebase_source : 579ba2bc7c19d4fe7df11bbdb1ceb6171a1ee857
2016-11-09 15:22:17 +09:00
Carsten "Tomcat" Book
846adaea6c merge mozilla-inbound to mozilla-central a=merge 2016-11-09 16:38:04 +01:00
Gregory Szorc
cc764ee794 Bug 1315785 - Set an environment variable when mach is attached to a TTY; r=glandium
The way it works now, `mach` commands often invoke subprocesses where
the subprocesses' stdio file descriptors are pipes so the mach command
can e.g. parse output.

Processes like clang, gcc, and cargo determine if they can send color
codes to {stderr, stdout} by seeing if those file descriptors are TTYs.
When e.g. `make` is executed via `mach`, this test fails because those
descriptors are pipes (even though they eventually end up on a TTY).

We can't wire the file descriptors to the TTY because `mach` needs
to analyze output. We don't want users defining process flags to force
color in their mozconfigs because color codes would still be sent
if stdout was not a TTY.

This patch sets the MACH_STDOUT_ISATTY environment variable in all mach
commands when stdout is a TTY. Subsequent processes can then look for
this variable to determine whether to override color settings, print
terminal control codes, etc.

MozReview-Commit-ID: GxXP2mQssjC

--HG--
extra : rebase_source : 4b99547b453cb7dd5cb590a71ed554ce2bc4759d
2016-11-08 12:15:13 -08:00
Gregory Szorc
0f12e2d300 Bug 1315785 - Restore environment variables after running command; r=glandium
Currently, environment variables set when running mach commands will
propagate after the command is finished. This can allow unwanted state
to bleed through.

This likely isn't an issue today, but isolating state during code
execution is generally a good practice. So do that.

MozReview-Commit-ID: AdaomGub5EF

--HG--
extra : rebase_source : ce81987a1f6de3a16bce6a9e45b9dc8e8eb29b4b
2016-11-08 12:15:07 -08:00
Andrew Halberstadt
5b45c5a120 Bug 1315805 - [mozlint] Make sure multiprocess' stdout gets flushed in lint tasks, r=dustin
MozReview-Commit-ID: FhOI92JySXg

--HG--
extra : rebase_source : f3de6198a2616315358e3e3be1441df0713b442f
2016-11-08 13:33:13 -05:00
Phil Ringnalda
393b414467 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 48WAQwKUCpw
2016-11-02 19:28:38 -07:00
Kim Moir
c488cc0a40 Bug 1296396 - remove configs that reference fx-team in tc and buildbot u=aselagea r=kmoir 2016-11-02 10:53:19 -04:00
Trevor Saunders
517fb75798 bug 1297723 - support mozilla::UniquePtr in the gdb pretty printers r=froydnj 2016-11-08 16:30:52 -05:00
Wes Kocher
df5dbf81cc Merge central to inbound a=merge 2016-11-02 17:31:08 -07:00
Mike Hommey
900e53b021 Bug 1293675 - Error out when GetShortPathName returns a long path name. r=gps
--HG--
extra : rebase_source : fa95f8a1356009c44b33701b76d878e75fba7324
2016-11-01 08:06:40 +09:00
Mike Hommey
c35a6888f9 Bug 1313306 - Allow @depends(when=something) without additional dependencies. r=chmanchester
Also allow when=True/False to avoid the chicken-egg problem of using
a generic `when` to use in replacement of @depends('--help') for things
like @dependable.

--HG--
extra : rebase_source : f1571a5b904efb66a361b90f3b7e1edbaa75772e
2016-10-26 16:42:06 +09:00
Mike Hommey
18c9034b4a Bug 1313306 - Relax the rules for --help dependencies. r=chmanchester
--help dependencies currently help identify functions that will run when
running configure --help, which we don't want to have spreading too
much. OTOH, when such functions have no side effect, it's not really
that important to have them explicitly marked.

So, allow missing --help dependencies for functions that:
- don't use @imports
- don't have a closure
- don't use global variables

This is a first step towards entirely removing the --help markings (the
end goal being that --help dependencies will indicate actual --help
dependencies). As such, we don't really care about updating the lint
error message.

--HG--
extra : rebase_source : e81ec9b51ff01c2ee75722904e551286aa0b2bec
2016-10-27 13:40:42 +09:00
Mike Hommey
b89b671cc8 Bug 1313306 - Don't expose os.path.{exists,isdir,isfile} to python configure without an @imports. r=chmanchester
We want functions without an @imports to not have any side effects, and
to not use external resources. So remove the few functions we expose from
os.path without @imports('os') that do.

--HG--
extra : rebase_source : a9485ec269d4de5785d66d7772eda4fae5a84b4a
2016-10-26 11:49:58 +09:00
Mike Hommey
016afea56c Bug 1313306 - Move --help dependency checks to the linter. r=chmanchester
Missing such dependencies shouldn't impair running configure itself
after local modifications, but they are currently required for
(mostly) documentation purpose. Which means they are better done in
the linter.

--HG--
extra : rebase_source : 6bfff2342cda2ed1351f561c9eb9623f1fb4e4c4
2016-10-27 10:02:21 +09:00
Mike Hommey
e9aa83949b Bug 1313306 - Add a placeholder python configure linter. r=chmanchester
--HG--
extra : rebase_source : d7b17160bbf61e9aca2edfb2874a87182140c144
2016-10-27 09:36:33 +09:00
Chris Manchester
0723aadf51 Bug 1313379 - Fix mach bootstrap for Windows desktop artifact mode. r=gps
MozReview-Commit-ID: JqQ52K89q3H

--HG--
extra : rebase_source : b0580f19d8d53d4cf14f0016f7ecda8adeca2a66
2016-10-28 21:45:43 -07:00
Dustin J. Mitchell
ceadc4b4c8 Bug 1301785: update python/redo to 1.6; r=gps
MozReview-Commit-ID: BdSQshy2f0p

--HG--
extra : rebase_source : 2dc5a1a95cbf3a01e4b62251638cdf98a88bf193
2016-10-31 15:41:28 +00:00
Eugen Sawin
e28632312d Bug 1307886 - [2.3] Compress libraries with XZ during packaging. r=glandium 2016-10-28 12:59:23 +02:00
Eugen Sawin
5999591289 Bug 1307886 - [1.2] Remove szip support. r=glandium 2016-10-28 12:59:23 +02:00
Phil Ringnalda
445097654c Merge m-i to m-c, a=merge
MozReview-Commit-ID: 56Hspl8LZMY
2016-10-27 19:21:47 -07:00
aleth
bb41ac3b46 Bug 1311122 - Ensure missing file errors get reported despite missing base path in l10n.py. r=glandium
--HG--
extra : rebase_source : 1171410b3a6df675c3551c694748202176e42cbf
2016-10-18 21:06:36 +02:00
Leo Schwarz
33768e74f6 Bug 1312290 - Force package extension when building AUR packages on Arch Linux. r=gps
Previously if an Arch Linux user had a different package extension configured
in `/etc/makepkg.conf` building AUR packages during bootstrap would fail.
Forcing the extension by providing it as an environment variable makes sure
building doesn't fail regarding of a user's configuration.

MozReview-Commit-ID: 4aryYS0XVr7

--HG--
extra : rebase_source : 4c466e49f729de625e814a92325c6d38e6d1e0b4
2016-10-25 10:28:59 +02:00
Mike Hommey
158b715543 Bug 1313259 - Fix some preprocessor unit tests to actually do the tests they're supposed to do. r=gps
--HG--
extra : rebase_source : 70e9a8ed265d1bb7f74dd1d37cd8e561e649bd5a
2016-10-27 10:24:27 +09:00
Chris Manchester
29650e6f7d Bug 1312574 - Use cPickle instead of json to serialize the build system's tests database. r=gps
MozReview-Commit-ID: 9xmUtVV6SRN

--HG--
extra : rebase_source : 957bfacfa5c13fa88b298e33dcaf475c08be8776
2016-10-25 12:31:59 -07:00
Chris Manchester
b09b78a7c5 Bug 1298740 - Populate Python environment with variables from mozconfig. r=glandium
MozReview-Commit-ID: KDCoxxh37Um
2016-10-14 11:06:30 -07:00
Chris Manchester
0d0d70f0f2 Bug 1312520 - Store and process manifest-level defaults in the build system separately from individual tests. r=gps
MozReview-Commit-ID: 1dSMAaOqToJ
2016-10-25 12:23:39 -07:00
aleth
b8af6b7271 Bug 1311136 - Improve 'multiple locales' error message in l10n.py. r=glandium
--HG--
extra : rebase_source : f46d5120f962380f989ebd115cc44c08ef858eb8
2016-10-18 21:52:19 +02:00
Francesco Lodolo (:flod)
cce240d070 Bug 1312333 - Include bug1309191 in devtools l10n migration script for NetMonitor. r=pike
--HG--
rename : python/devtools/migrate-l10n/migrate/conf/bug1308500 => python/devtools/migrate-l10n/migrate/conf/bug1308500_1309191
2016-10-23 23:19:00 +02:00
Grisha Kruglov
c2e769ff54 Bug 1312476 - Update paths for x86 android artifact builds r=sebastian
MozReview-Commit-ID: 3NLluk5mU9g

--HG--
extra : rebase_source : 86b30c5e2899e2d15e26199323f3aee0b9211391
2016-10-24 09:46:21 -07:00