Commit Graph
2707 Commits
Author SHA1 Message Date
Phil Ringnalda 221ae4b2e6 Merge m-i to m-c, a=merge
MozReview-Commit-ID: A3wgReQAalj
2016-11-17 19:21:20 -08:00
Andrew Halberstadt ab127bc249 Bug 1316925 - Keep track of failed linters in stylish formatter summary, r=jgraham
This replaces the "return_code" property on the LintRoller object with a list of "failed"
linters. This is a bit more useful as it lets us know exactly which linters had a problem
(whereas previously we just knew *something* went wrong). This patch pushes determining
the return code back into cli.py, which I think is fine.

In addition, we now pass the list of failed linters into the formatter. This allows us to
clarify exactly how many linters hit a failure which is a lot better than a seemingly
"successful" summary message.

Finally I also removed the "no files to lint" message because I've seen several people
confuse it for an error. I'll probably add it back as a debug log message when we switch
to using mozlog for output.

MozReview-Commit-ID: 4wyCeOZdOf8
2016-11-14 11:56:46 -05:00
Kris Maglione 8e9c4473a5 Bug 1317101 - Part 8a: Read defaults from ancestor manifests when processing test metadata. r=chmanchester
MozReview-Commit-ID: 90ldX6DuKBy
2016-11-12 18:30:47 -08:00
Ted Mielczarek 0f4538fc62 bug 1295937 - build NSS using gyp files. r=glandium
MozReview-Commit-ID: Gm1PLWSJwbD
2016-11-09 12:37:09 -05:00
Ted Mielczarek 92d003c922 bug 1295937 - Improvements to gyp_reader to handle NSS gyp files. r=glandium
This patch contains a number of changes to the gyp_reader code:
* Add three new flags to GYP_DIRS:
** no_chromium, to skip forcing the includes/etc needed for chromium gyp files
** no_unified, to force building all sources without unification
** action_overrides, to pass scripts used when mapping gyp actions to moz.build GENERATED_FILES
* Handle the flags mentioned above in read_from_gyp
* Handle actions in gyp targets by mapping them to GENERATED_FILES, using scripts specified in the action_overrides flag. We don't try to handle the generic action case, we require special-casing for each action.
* Handle a subset of copies in gyp targets by mapping them to EXPORTS, just enough to handle the use of them for NSS exports.
* Handle shared_library and executable gyp targets
* Handle gyp target dependencies/libraries as USE_LIBS/OS_LIBS
* Handle generated source files
* Handle .def files in sources by mapping them to SYMBOLS_FILE
* Special-case some include_dirs:
** Map `<(PRODUCT_DIR)/dist/` to $DIST/include (to handle include paths for NSS exports)
** Map include_dirs starting with topobjdir to objdir-relative paths, to handle passing the NSPR include path to NSS
* split /build/gyp.mozbuild into two parts, with gyp_base.mozbuild containing generic bits, and gyp.mozbuild containing chromium-specific bits


MozReview-Commit-ID: FbDmlqDjRp4
2016-11-15 12:37:09 -05:00
Mike Shal 8df0df34e3 Bug 1183613 - Cross compile universal OSX builds in Taskcluster; r=froydnj,ted
MozReview-Commit-ID: HNTqiVF9gov
2016-10-21 13:54:10 -04:00
aleth e13bd359a1 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
Wes Kocher 390c1f407f Merge inbound to m-c a=merge CLOSED TREE 2016-11-16 17:07:26 -08:00
Benjamin Smedberg ed1f6066be 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
2016-11-15 13:06:05 -05:00
Benjamin Smedberg 70489b6708 Bug 1314955 part B - Remove the tests for binary-component which is no longer supported. r=froydnj
MozReview-Commit-ID: G7MATc8AGt1
2016-10-26 11:34:32 -04:00
Benjamin Smedberg bdde0e1c8d 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
2016-11-16 12:28:57 -05:00
Benjamin Smedberg bf5cc1e428 Bug 1314378 part B - port TestStartupCache to gtest, r=froydnj
MozReview-Commit-ID: LTz4slzIkjH
2016-11-11 11:57:08 -05:00
Dan Minor 7aa1a41023 Bug 1317009 - Port jsep_session_unittest and jsep_track_unittest to xul gtest; r=bwc
MozReview-Commit-ID: spuZSAnSDC
2016-11-15 09:35:14 -05:00
Henrik Skupin e2aa46d646 Bug 1316707 - Remove Marionette B2G update tests. r=rstrong
MozReview-Commit-ID: Kh0i6hWTZTp
2016-11-10 22:55:29 +01:00
Andrew Halberstadt 2a88ad7d2b 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
2016-10-11 12:29:09 -04:00
Andrew Halberstadt 23c01fce8c 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
2016-10-24 16:04:45 -04:00
Iris Hsiao b54a6f8a58 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 273e10a404 Backed out changeset 5cd867e3258b (bug 1317674) for make check failures a=backout 2016-11-15 18:16:22 -08:00
aleth 48be5b61e6 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 56b6563964 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 2016-11-15 17:29:41 -05:00
Matthew Gregan a5db0b5af8 Bug 1314514 - Update libcubeb to 8bab182c. r=padenot 2016-11-11 15:01:56 +13:00
Sebastian Hengst 9b7448326a 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 d4eb9a1b3e 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 44b6b35f16 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 49cb983242 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 a4c56a67c1 Bug 1316450 - Enforce that nothing new depends on the XPCOM glue. r=gps 2016-11-10 08:41:48 +09:00
Mike Hommey ee1aee98c8 Bug 1316844 - Make the linter detect unused dependencies. r=chmanchester 2016-11-11 12:52:58 +09:00
Mike Hommey 829b77734e Bug 1316844 - Improve function unwrapping to properly cover templates. r=chmanchester 2016-11-11 11:32:43 +09:00
Andrew Halberstadt 66da0ddaff 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
2016-08-23 11:12:39 -04:00
Nicholas Nethercote 6d0bee9f8e Bug 1316792 - gtestify toolkit/components/places/tests/cpp/test_IHistory.cpp. r=mak.
This is a most minimal gtest conversion possible. It leaves in place
significant amounts of non-typical-for-gtest code.

Notable changes:

- All the mock Link and URLSearchParams method definitions are no longer
  needed.

- The changes adds a new constructor for Link that doesn't set mHistory.
  Without that, leaked URLs occur at shutdown.

- The output printed by the test is slightly streamlined, mostly by omitting
  the test filename.

- It disables TestMediaFormatReader.cpp, which was causing problems. That test
  is slated for removal in bug 1318225 anyway.
2016-11-12 06:22:01 +11:00
Axel Hecht 29602f4d17 bug 1315976, update compare-locales to 1.2.1, r=flod
MozReview-Commit-ID: 6sZtRiw0mQs
2016-11-24 14:30:31 +01:00
Ralph Giles 4ea926dab8 Bug 1321292 - mozboot: Don't suggest non-existent .cargo.env. r=gps
On Windows, the rustup installer doesn't create ~/.cargo/env
but instead pokes .cargo/bin into the path in the Windows
registry. This doesn't necessarily propagate to the msys
evironment however, so some PATH manipulation may still
be necessary.

Split our path advice to be clear in both the new install
and unconfigured path cases, and amend our path update
advice to not mention .cargo/env if it isn't present.

MozReview-Commit-ID: 9IHhS6UYCqq
2016-12-05 20:53:00 -08:00
Mike Hommey 31066a0bce Bug 1316250 - Allow functions using the fake os module to not depend on --help. r=chmanchester 2016-11-09 15:32:28 +09:00
Mike Hommey c2a6b41fef 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.
2016-11-09 15:22:17 +09:00
Carsten "Tomcat" Book a3d6de70fa merge mozilla-inbound to mozilla-central a=merge 2016-11-09 16:38:04 +01:00
Gregory Szorc 8e7699cbb8 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
2016-11-08 12:15:13 -08:00
Gregory Szorc fbadef0691 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
2016-11-08 12:15:07 -08:00
Andrew Halberstadt 06ed2c8f7d Bug 1315805 - [mozlint] Make sure multiprocess' stdout gets flushed in lint tasks, r=dustin
MozReview-Commit-ID: FhOI92JySXg
2016-11-08 13:33:13 -05:00
Phil Ringnalda 1376833f1c Merge m-i to m-c, a=merge
MozReview-Commit-ID: 48WAQwKUCpw
2016-11-02 19:28:38 -07:00
Kim Moir ed1f8c1eea 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 8cf0f441ce bug 1297723 - support mozilla::UniquePtr in the gdb pretty printers r=froydnj 2016-11-08 16:30:52 -05:00
Wes Kocher 5fe2107617 Merge central to inbound a=merge 2016-11-02 17:31:08 -07:00
Mike Hommey 587fcd1135 Bug 1293675 - Error out when GetShortPathName returns a long path name. r=gps 2016-11-01 08:06:40 +09:00
Mike Hommey 2532388327 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.
2016-10-26 16:42:06 +09:00
Mike Hommey 89aecf7161 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.
2016-10-27 13:40:42 +09:00
Mike Hommey 4b194cc789 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.
2016-10-26 11:49:58 +09:00
Mike Hommey ebdf0e6755 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.
2016-10-27 10:02:21 +09:00
Mike Hommey e3f4ca37ab Bug 1313306 - Add a placeholder python configure linter. r=chmanchester 2016-10-27 09:36:33 +09:00
Chris Manchester d9b5e391d8 Bug 1313379 - Fix mach bootstrap for Windows desktop artifact mode. r=gps
MozReview-Commit-ID: JqQ52K89q3H
2016-10-28 21:45:43 -07:00
Dustin J. Mitchell 2c96a45fcc Bug 1301785: update python/redo to 1.6; r=gps
MozReview-Commit-ID: BdSQshy2f0p
2016-10-31 15:41:28 +00:00