Commit Graph
2707 Commits
Author SHA1 Message Date
Chris Manchester e2baaec963 Bug 1336231 - Install the gmp plugins to the correct directory during artifact builds. r=mshal
We had been installing them to dist/plugins with the rest of the test plugins,
but tests are actually expecting them to be in dist/bin.

MozReview-Commit-ID: 9qYFgZA4Fni
2017-02-03 10:59:06 -08:00
Michael Kaply 77f642c391 Bug 1328713 - Allow region specific overrides of search engines. r=florian 2017-02-03 16:48:44 -06:00
Ralph Giles 821879e565 Bug 1284816 - Remove --disable-rust. r=ted
Remove the option to build without rust code. We are not testing
this configuration and expect to land non-optional rust code in
the near future, so it doesn't make sense to maintain this option.

MozReview-Commit-ID: CwTlMXGvr5n
2017-02-01 15:38:49 -08:00
Chris Manchester 9ff38a6819 Bug 1330421 - Update artifact code to populate generated test support files from the tests archive. r=gps
This updates the client artifact code to locate test support files in the
common test archive and populate the objdir with these files appropriately.

MozReview-Commit-ID: GuXjwUtsl
2017-01-12 15:30:51 -08:00
Chris Manchester d86a938133 Bug 1330421 - Change the structure of test archives include generated test support files in common.tests.zip for the benefit of artifact builds. r=gps
Generated support files for specific tests generally end up in a harness specific
test archive, but artifact builds, which might not want to generate these files
themselves, get all of their test related files from the common.tests.zip. This
effectively moves a small number of these support files from harness specific
archives to the common test archive, making it possible to run tests that
depend on these files against artifact builds.


MozReview-Commit-ID: BvEj1ot1OTw
2017-01-12 15:29:48 -08:00
Chris Manchester 1c4477994d Bug 1333135 - Ensure test support binaries are tracked by install manifests in the build backend. r=mshal
Install manifests influence test packaging, allowing artifact builds to consume
generated test support files and run tests that depend on them. This commit
tracks binaries with an install target under "_tests" so they will be correctly
installed in artifact builds.

This could similarly be achieved by installing the binaries via TEST_HARNESS_FILES
rather than setting FINAL_TARGET, however, PGO builds will fail attempting to install
the files during the profile generation step, because SIMPLE_PROGRAMS are not built
for this step.

MozReview-Commit-ID: ES4bTxOoqMN
2017-01-27 14:21:29 -08:00
Mike Hommey ac9b21f74d Bug 1335309 - Change the default for find_executables to False. r=mshal
Back when the class was written, for the packaging code, it made sense
that the default was True. But now that it's used all over the place,
and that the vast majority of uses are with find_executables=False, it
makes more sense for that to be the default.
2017-01-31 14:06:15 +09:00
Mike Hommey ab4e2a0d39 Bug 1335309 - Add explicit find_executables arguments to every use of FileFinder. r=mshal
And make it an error not to give it. While the default is True, we do
pass a value of False wherever it makes sense, which happens to be, in
most places.

This is an intermediate step to flip the default from True to False,
ensuring that we don't unwantedly switch some calls to False.
2017-01-31 13:01:34 +09:00
Benjamin Smedberg 3a243797b4 Bug 1333826 - Remove SDK_FILES, SDK_LIBRARY, and related is_sdk support in the build goop, r=mshal
MozReview-Commit-ID: 52vPyDXdFte
2017-01-30 11:24:10 -05:00
Wes Kocher 3681d04852 Merge m-c to inbound, a=merge
MozReview-Commit-ID: EfMOcZbAiSe
2017-01-27 16:39:29 -08:00
Francesco Pischedda 2d56a8615d Bug 1313194 - Add --outgoing argument to mozlint. r=ahal
Was: Replace mozlint's --rev with a --outgoing argument

MozReview-Commit-ID: 5YcRWbc1dR4
2017-01-26 17:50:34 +01:00
Nathan Froyd cbfb241a58 Bug 1334556 - make GitRepository.get_modified_files slightly more idiomatic; r=gps
Having to munge the output of `git status --porcelain` is unseemly when
there are approaches that will give us what we want directly.
2017-01-27 13:51:58 -05:00
Mike Hommey 72f3e3f969 Bug 1322025 - Provide variants of host and target that depend on --help. r=chmanchester
We want to avoid giving --help dependencies to host and target, so that
they we don't spawn config.guess and config.sub when running configure
--help, and don't need to reach out to the which module to find a
suitable shell to execute them.

So, when --help is given, we return a fake host/target namespace, and
avoid the config.guess/config.sub-invoking code being executed.

Then, by giving the --help option to the linter, it can properly find
that the config.guess/config.sub-invoking code doesn't need the
dependency on --help.

This effectively unbreaks configure --help after bug 1313306.
2017-01-25 17:54:16 +09:00
Mike Hommey e48de62fa9 Bug 1322025 - Allow to combine two DependsFunctions with "|". r=chmanchester
Ideally, it would have been better if it were "or", but it's not
possible to override "or" in python ; __or__ is for "|".

This does feel magic, but it's also shorter than adding something like
@depends_any(), and while we're only adding "|" as of this change, we
can add other operations such as "&" in the future, or __getattr__ for
things like milestone.is_nightly.

An alternative form in moz.configure could require the @depends function
to be called, e.g. "a() | b()" instead of "a | b", but I'm not
particularly convinced that one is less magic than the other.

This feature is hooked up such that b is not resolved if a is true,
although in practice, it will still be resolved in Sandbox.run... but
not when --help is passed. In the long run, the forced resolution of
@depends functions will be removed from Sandbox.run.
2017-01-25 17:42:33 +09:00
Mike Hommey 90cd8a2e88 Bug 1322025 - Don't automatically add --help dependencies to CombinedDependsFunctions. r=chmanchester
Adding those dependencies, retrospectively, only worked around the poor
handling of --help requirements by the linter, that we fixed a few
commits ago. This is now not necessary anymore.
2017-01-25 17:10:03 +09:00
Mike Hommey 77d96bf284 Bug 1322025 - Don't wrap the combination function in CombinedDependsFunction. r=chmanchester
Several things were wrong with the wrapping:
- the equality test on functions was actually comparing the memoized
  functions, which have a type memoize, which inherits from dict. So
  they weren't comparing actual functions, but the dict used to store
  the cache of their invocation.
- each CombinedDependsFunction created for the same combination function
  used a different wrapped function, so even if the dict problem wasn't
  there, the equality test still wouldn't work, except if the function
  wrapping itself was memoized.
- the memoization was not particularly useful.

Also, for upcoming changes, we'd actually like the combination function to
take an iterable instead of a variable argument list, so that items of
the iterable can be skipped.
2017-01-25 16:50:29 +09:00
Mike Hommey 6d1ee706cc Bug 1322025 - Make DependsFunction.func less public. r=chmanchester
We're going to change the function signature for CombinedDependsFunction,
so make it visible in the API that the function member is not meant to
be used directly. The linter still does, though, because it needs to
look in their guts.

At the same time, avoid setting DependsFunction names via the function
name itself, because in upcoming changes, it will not be modifiable in
some cases.
2017-01-25 16:32:03 +09:00
Mike Hommey 15a3a4a8e1 Bug 1322025 - Enforce --help requirement on option's when argument. r=chmanchester
Options with a `when` argument (either directly, or inherited through
only_when() or an include) require --help per _value_for_option, but
that code path is not exercised during a lint pass.

With this change, along the previous one, we now correctly detect that
bug 1316957 was not supposed to work as is.
2017-01-25 14:37:34 +09:00
Mike Hommey e3edee3674 Bug 1322025 - Enforce --help requirement on indirect dependencies. r=chmanchester
Bug 1313306 relaxed the --help dependency requirement in some cases, but
while doing so, the requirement was also removed in other, unexpected
cases. Specifically, the --help dependency ended up not being required
on indirect dependencies that should have had it, had the --help
dependency been explicit on the direct dependency.
2017-01-25 14:25:58 +09:00
Chris Manchester 388e4f9b98 Bug 1332517 - Add an 'artifact' key to mozinfo. r=mshal
MozReview-Commit-ID: GPq52LMg23Q
2017-01-19 17:05:02 -08:00
Andrew Halberstadt 3f9cbf87a1 Bug 1333564 - [manifestparser] Stop supporting ';' as a valid comment character, r=jmaher
It turns out there are shockingly few cases of manifestparser manifests that actually use the ';'
character as a comment. Because we will soon allow inline comments, deprecating the use of ';' will
ensure that values are allowed to have semicolons in them.

Even without inline comments, might as well enforce consistency across manifests.

MozReview-Commit-ID: AEPPQFdNXG0
2017-01-25 14:38:37 -05:00
Andrew Halberstadt a8ee226320 Bug 1318597 - Explicitly call manager.shutdown() after running mozlint, r=mshal
This is an educated guess in an attempt to solve a hard to reproduce intermittent. This
also makes sure the original SIGINT handler is restored after running the linters.

MozReview-Commit-ID: HRo0GRlSN5L
2017-01-23 17:35:03 -05:00
Phil Ringnalda b7feffb8ee Merge m-c to autoland 2017-01-24 18:56:54 -08:00
Phil Ringnalda 70771ea7b7 Merge m-i to m-c, a=merge 2017-01-24 18:53:29 -08:00
Boris Zbarsky d4ca65da21 Bug 1333478. preprocessor.py should preserve line numbers in webidl files. r=gps 2017-01-24 16:11:39 -05:00
Andrzej Hunt 806becce0f Bug 1332911 - Update android-opt artifact test archive filename r=nalexander
MozReview-Commit-ID: 3xeXGcfsqKn
2017-01-22 15:42:37 +01:00
Chris Manchester a1c7ad90f7 Bug 1312916 - Add support for host rust libraries in moz.build. r=froydnj
MozReview-Commit-ID: It8VH5Obnx5
2017-01-19 14:58:10 -08:00
Ralph Giles 829c6de196 Bug 1324435 - mozboot: ensure win32 rust support. r=ted
If we have rustup installed, use it to check the available
target platforms and install 32-bit windows support if we're
on the (default 64-bit) windows platform.

This catches systems where the mozillabuild bootstrapper was
run before it installed this, so rustup is available, but the
i686 target library isn't.

MozReview-Commit-ID: 9bE2OQnmvxs
2017-01-11 11:30:47 -08:00
Ralph Giles bb916445e6 Bug 1324435 - mozboot: Install rust i686-msvc target. r=ted
Windows devs often want to target 32-bit windows. Make this
easier by installing the target for them at mozboot time.

MozReview-Commit-ID: 6gFbFBOqMz8
2017-01-11 10:19:28 -08:00
Mike Hommey f5653279b6 Bug 1256730 - Fail configure when API key files do not exist or are empty. r=chmanchester,mikedeboer 2016-08-09 18:17:35 +09:00
Ralph Giles cc6621a134 Bug 1332722 - mozboot: Use msys path for cargo_bin. r=gps
We need to mangle the path for both parts of the text printed
but rust_path_advice on windows. Otherwise the report of where
the rust binary was found ends up a mixed pathname even when
the suggested shell command is correct.

MozReview-Commit-ID: FDtP5HY8tJ1
2017-01-20 11:55:05 -08:00
Ralph Giles 63508c0314 Bug 1332722 - mozboot: Improve prompt formatting. r=gps
Adjust newlines so prompt and result information is easier to read.

MozReview-Commit-ID: BbJldqZ6G4
2017-01-18 09:24:52 -08:00
Phil Ringnalda 544a6303d7 Merge m-i to m-c, a=merge 2017-01-19 22:04:52 -08:00
John Paul Adrian Glaubitz d9033b2b1d Bug 1329194 - mozbuild: Add SH4 as target architecture. r=glandium 2017-01-20 09:11:54 +09:00
Luke Wagner 79d58ceeb4 Bug 1332312 - remove JS_DISABLE_SLOW_SCRIPT_SIGNALS (r=bbouvier)
MozReview-Commit-ID: 6uyBGnbAimG
2017-01-19 14:06:24 -06:00
Wes Kocher 7a976db967 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 3pEpsd3DljH
2017-01-19 16:47:25 -08:00
Chris Manchester 559f802043 Bug 1332498 - Fix desktop artifact builds to recognize Taskcluster origin artifacts. r=nalexander
MozReview-Commit-ID: 24kBL6Dqe48
2017-01-19 16:25:03 -08:00
Mark Banner 55868dde7c Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ
2017-01-18 10:30:39 +00:00
Mark Banner ee78c2e613 Bug 503613 - Remove the tail file functionality from xpcshell; r=gps
MozReview-Commit-ID: JcglhFl89DX
2017-01-17 15:27:55 +00:00
James Graham 104a8639a4 Bug 1331899 - Fix mozbuild for wpt manifest v4 changes, r=gps
MozReview-Commit-ID: Hipksgmk5Nr
2017-01-19 14:24:02 +00:00
Mike Hommey cf269c6281 Bug 1306329 - Backout 621aa115c3df (bug 1316450). r=glandium
We're going to remove the xpcom glue, so there is no need to check that
nothing depends on it anymore.

MozReview-Commit-ID: IoTo2b9DtiL
2017-01-14 07:47:43 +09:00
Wes Kocher 842ef93a40 Backed out 4 changesets (bug 1306329) for 3000+ hazards a=backout
Backed out changeset 1c2f51ce3faf (bug 1306329)
Backed out changeset 6bb17b9a62d8 (bug 1306329)
Backed out changeset 377ca1419f1a (bug 1306329)
Backed out changeset ad4e531c7070 (bug 1306329)

MozReview-Commit-ID: KJAxdyJeJ6J
2017-01-17 17:55:24 -08:00
Mike Hommey dc700c420f Bug 1306329 - Backout 621aa115c3df (bug 1316450). r=glandium
We're going to remove the xpcom glue, so there is no need to check that
nothing depends on it anymore.
2017-01-14 07:47:43 +09:00
Mike Hommey 345dc19c04 Bug 1306327 - Use the new XRE Bootstrap API in Firefox for Android. r=bsmedberg
Here, we also modify APKOpen to use the XPCOM glue loading process
instead of custom symbol resolution, so that the Bootstrap API can be
used in a more straightforward manner.
2016-12-17 06:48:01 +09:00
John Paul Adrian Glaubitz 95c519029d Bug 1326496 - mozbuild: Fix bitness from 32 to 64 bits on alpha. r=glandium 2016-12-29 00:01:43 +01:00
Wes Kocher 704a2ad591 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6wWFiDQ0QJ8
2017-01-10 18:35:54 -08:00
Nathan Froyd b343bb1de1 Bug 1329726 - part 2 - ensure {,HOST_}RUST_PROGRAMS are hooked into root-deps.mk; r=chmanchester
If we don't do this, a directory with only
RUST_PROGRAMS (resp. HOST_RUST_PROGRAMS) won't get traversed properly.
2017-01-10 11:33:58 -05:00
Nathan Froyd 8f27e70506 Bug 1329726 - part 1 - ensure _compile_graph is deterministically ordered; r=chmanchester
Future tests will depend on the ordering for this, and it seems like a
good change to make in any event.
2017-01-10 11:33:58 -05:00
Carsten "Tomcat" Book ef8fa78a99 merge mozilla-inbound to mozilla-central a=merge 2017-01-10 12:11:31 +01:00
Shing Lyu ea0c6d953f Bug 1328825 - Update reftest-stylo.list and expectations. r=heycam
MozReview-Commit-ID: AMwdk5wvM0F
2017-01-10 15:50:59 +08:00