Commit Graph
2523 Commits
Author SHA1 Message Date
Ralph Giles 8b787cd4fe Bug 1286799 - mozboot: Add a script to fetch rust installer hashes. r=gps
Make the mozboot.rust module invokable as a utility. E.g.

  python rust.py --update

When called with the --update option it downloads and generates
checksums for the latest version of the installer on supported
platforms, suitable for updating the values coded in the script.

When invoked without the --update option, it verifies the
current version and checksums against the server.

MozReview-Commit-ID: 2NVFf0ptvbM
2016-11-17 14:23:41 -08:00
Ralph Giles 253626c499 Bug 1286799 - mozboot: Install or upgrade rust. r=gps
Download and run a known-good rustup-init installer for the host
system. Once installed, use it to upgrade the latest toolchain.

NB: I expect the MozillaBuildBootstrapper to run its installer
first, but this will take care of Mac, Linux, and FreeBSD.

MozReview-Commit-ID: BKDm1UcLxQS
2016-11-17 12:06:29 -08:00
Ralph Giles 247946d0eb Bug 1286799 - mozboot: Ensure an up-to-date rust toolchain. r=gps
Add a check to `mach bootstrap` that a compatible version of
the rust toolchain is installed and in path. Note that we use
a separate minimum version from the one checked at configure
time, defined in build/moz.configure/rust.configure, because
this script may be running stand-alone.

If we don't find `rustc` in PATH, we check for it in CARGO_HOME
and suggest adding that to PATH.

If we don't find `rustc` but find a `rustup`, we call it with
the --version switch and report if that fails. This will detect
the older `rustup.rs` script.

MozReview-Commit-ID: EPfQhLz4Dvo
2016-11-16 09:27:32 -08:00
Ralph Giles 9e3640995c Bug 1286799 - mozboot: Use a helper for mercurial version detection. r=gps
Also use the abstracted helper method for reading the current
mercurial version too. This changes the regex from what was in
use before, but should work for normal version numbers.

MozReview-Commit-ID: IZfC65Jg6T8
2016-11-15 17:18:21 -08:00
Ralph Giles b6be52ee2d Bug 1286799 - mozboot: Abstract version checking. r=gps
Move version parsing to a helper method so it can be used
for more than one executable.

MozReview-Commit-ID: 4gOgdgYFbFx
2016-11-15 14:31:59 -08:00
Gregory Szorc 873c540231 Bug 1319484 - Add "stylo" to mozinfo; r=mshal
This will allow tests, etc to conditionally run depending on Stylo's
presence.

MozReview-Commit-ID: 3WHxNawP1qC
2016-11-22 10:25:52 -08:00
Carsten "Tomcat" Book 98e701bcdb merge mozilla-inbound to mozilla-central a=merge 2016-11-22 15:53:05 +01:00
Chris Peterson effa971695 Bug 1318833 - Part 1: Remove Silverlight plugin tests and test plugin. r=qdot 2016-11-21 21:10:27 -08:00
Andrew Halberstadt fd725caf73 Bug 1317970 - Filter python unittests through manifestparser.active_tests, r=chmanchester
The build system's TestResolver does a pretty good job of getting the right manifestparser
based tests to run, but it isn't perfect. Notably, it ignores the 'disabled' key. We filter
the tests through manifestparser here to make sure the build system didn't miss anything.
For context, this is also what the other test harnesses (e.g mochitest) do as well.

MozReview-Commit-ID: FaHb4nvuoK9
2016-11-17 16:30:27 -05:00
Andrew Halberstadt 7663ee0695 Bug 1317970 - Use manifestparser manifests for python unit tests, r=chmanchester
This deprecates PYTHON_UNIT_TESTS and replaces it with PYTHON_UNITTEST_MANIFESTS.
In the build system, this means python unittests will be treated the same as all
other test suites that use manifestparser. New manifests called 'python.ini' have
been created for all test directories containing python unittests.

MozReview-Commit-ID: IBHG7Thif2D
2016-11-16 09:59:22 -05:00
Andrew Halberstadt 780ef3ecab Bug 1318488 - [mozlint] Use sys.stdout.encoding when printing formatter's output, r=smacleod
This fixes a UnicodeDecodeError when sys.stdout's encoding can't handle unicode.

MozReview-Commit-ID: 3INna8MRje5
2016-11-17 17:36:34 -05:00
Carsten "Tomcat" Book 19ba40fb78 merge mozilla-inbound to mozilla-central a=merge 2016-11-21 15:44:20 +01:00
Ted Mielczarek fce6e4e4a2 bug 1286934 - Switch to using sccache2. r=gps
This patch does a few things:
1) Change all the in-tree tooltool manifests to contain sccache2 instead of the existing Python sccache
2) Change mozconfig.cache to point at sccache.
3) Lightly tweak the --with-cccache configure option to support sccache, and detect whether we're using ccache or sccache and set an option appropriately.
4) Add a MOZ_SCCACHE_VERBOSE_STATS option, and add a target in the top-level Makefile to make sccache spit out its stats at the end of the build. This is useful to see the cache hits/errors until we get something better.
5) Add MOZ_USING_SCCACHE to the build telemetry. Not that I think it will be immediately useful, but for future use.

MozReview-Commit-ID: 9lrdLwNj5Bm
2016-08-25 18:39:57 -04:00
Carsten "Tomcat" Book 4d9db32e11 Merge mozilla-central to mozilla-inbound 2016-11-21 15:46:10 +01:00
Gabriele Svelto 272956b411 Bug 1317968 - Package the minidump-analyzer tool r=ted 2016-11-16 15:24:05 +01:00
Mike Shal 26663a9adf Bug 1315810 - Support some FinalTargetFiles in the tup backend; r=chmanchester
MozReview-Commit-ID: 68b596wAp8g
2016-10-08 11:49:20 -04:00
Mike Shal 20f87a59b5 Bug 1315810 - Use tup's internal symlinking instead of build manifests; r=chmanchester
MozReview-Commit-ID: LNsbghIGJvH
2016-09-30 11:16:41 -04:00
Ryan VanderMeulen 87042261ca Merge m-c to autoland. a=merge 2016-11-18 15:47:52 -05:00
Ryan VanderMeulen 5dbdfc0384 Merge inbound to m-c. a=merge 2016-11-18 15:47:05 -05:00
Carsten "Tomcat" Book 143122a9ea Merge mozilla-central to autoland 2016-11-18 16:57:20 +01:00
Mike Shal 52f4cad2e5 Bug 1318574 - Support buildbot and TC jobs for opt android artifact builds; r=chmanchester
MozReview-Commit-ID: YkgUJEZiUU
2016-11-18 13:54:12 -05:00
Gregory Szorc 9a361ca18e Bug 1318182 - Support writing Visual Studio 2017 project files; r=glandium
In order for VS2017 to recognize solution and project files as
belonging to VS2017 and not some earlier version, we need to bump
a few versions strings.

The added code path can't be hit yet because MSVS_VERSION cannot
be "2017" until configure detects VS2017. I hacked up MSVS_VERSION
locally and verified that solutions produced with the new code load
in VS2017.

FWIW, the solution loads significantly faster in VS2017 compared to
VS2015!

MozReview-Commit-ID: 2vYAgd6wOsG
2016-11-16 16:24:34 -08:00
Phil Ringnalda a174c917cb Merge m-c to m-i
MozReview-Commit-ID: GwBaSZdoAZK
2016-11-17 20:33:59 -08:00
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