Commit Graph
5079 Commits
Author SHA1 Message Date
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
Eugen Sawin 4a26a3bacb Bug 1307886 - [2.3] Compress libraries with XZ during packaging. r=glandium 2016-10-28 12:59:23 +02:00
Eugen Sawin f561409ffe Bug 1307886 - [1.2] Remove szip support. r=glandium 2016-10-28 12:59:23 +02:00
Phil Ringnalda df73321400 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 56Hspl8LZMY
2016-10-27 19:21:47 -07:00
aleth 6725699ef2 Bug 1311122 - Ensure missing file errors get reported despite missing base path in l10n.py. r=glandium 2016-10-18 21:06:36 +02:00
Leo Schwarz e00c88aecb 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
2016-10-25 10:28:59 +02:00
Mike Hommey 28565d2ecc Bug 1313259 - Fix some preprocessor unit tests to actually do the tests they're supposed to do. r=gps 2016-10-27 10:24:27 +09:00
Chris Manchester 27c6632a32 Bug 1312574 - Use cPickle instead of json to serialize the build system's tests database. r=gps
MozReview-Commit-ID: 9xmUtVV6SRN
2016-10-25 12:31:59 -07:00
Chris Manchester 6b69539bd6 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 56e2253898 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 34b2a74578 Bug 1311136 - Improve 'multiple locales' error message in l10n.py. r=glandium 2016-10-18 21:52:19 +02:00
Francesco Lodolo (:flod) a8714a39b8 Bug 1312333 - Include bug1309191 in devtools l10n migration script for NetMonitor. r=pike 2016-10-23 23:19:00 +02:00
Grisha Kruglov 162f2564cf Bug 1312476 - Update paths for x86 android artifact builds r=sebastian
MozReview-Commit-ID: 3NLluk5mU9g
2016-10-24 09:46:21 -07:00
Gregory Szorc e07d6a6e82 Bug 1310868 - Tie resource collection to lifetime of context manager; r=glandium
Both BuildMonitor and BuildOutputManager are doing similar things and
wrapping the build with forms of monitoring. These classes are only
used in the `mach build` command.

Since the BuildOutputManager takes an instance of BuildMonitor as an
argument and since BuildOutputManager behaves as a context manager,
it makes sense for BuildOutputManager to control the lifetime of
BuildMonitor's collection.

So, we teach BuildOutputManager's context manager to start the
BuildMonitor and ensure its resource collection is stopped when it
exits.

MozReview-Commit-ID: 3l9Hwz0Xe7o
2016-10-17 17:03:38 -07:00
Kris Maglione 928093e0b8 Bug 1309350: Part 2 - Speed up synchronous resolution of module paths. r=gps,ochameau
r?gps for the build changes and ochameau for the rest.

This results in about a 28% speed-up for Jetpack mochitest runs, for me.

MozReview-Commit-ID: K30q7BfvTLs
2016-10-14 05:27:15 +01:00
Mike Hommey 5b4858bdce Bug 1311871 - Fix NSIS version check for NSIS version 3.0. r=chmanchester 2016-10-21 09:15:34 +09:00
Chris Manchester e8054c6123 Bug 1311632 - Update route and package names for android artifact builds to reflect gecko.v2 index locations. r=mshal
MozReview-Commit-ID: 3QtL0bj18x2
2016-10-20 12:33:44 -07:00
Julian Descottes 8b2149e3f5 Bug 1295157 - create devtools l10n migration script for dtd to properties migration;r=Pike
For devtools-html, devtools will progressively stop using DTD files and will use only properties
files. To avoid retranslating already localized strings in every locale, this script can be used
by localization teams to automatically migrate strings moved in the scope of the devtools-html
project.

MozReview-Commit-ID: KNDfCoPXOM9
2016-09-08 23:45:42 +02:00
Mike Hommey 944e4ae612 Bug 1311069 - Don't throw InvalidOptionError exceptions when a non-available option was set from an environment variable. r=chmanchester 2016-10-19 09:06:41 +09:00
Mike Shal 356f3f048a Bug 1250700 - Use the gecko.v2 instead of buildbot for artifact builds; r=chmanchester
MozReview-Commit-ID: Hn55McoK1sY
2016-09-30 15:22:28 -04:00
Mike Hommey c42f8ad7b6 Bug 1296530 - Add an only_when context manager, and a when argument to include(). r=chmanchester 2016-10-12 16:56:11 +09:00
Mike Hommey 33037589a7 Bug 1296530 - Add a when argument to imply_option(). r=chmanchester 2016-10-12 14:48:47 +09:00
Mike Hommey 48455da589 Bug 1296530 - Add a when argument to set_config() and set_define(). r=chmanchester 2016-10-12 14:24:28 +09:00
Mike Hommey 837ee0a071 Bug 1296530 - Add a when argument to option(). r=chmanchester 2016-10-12 17:45:53 +09:00
Mike Hommey df9ae55b6f Bug 1296530 - Add a when argument to @depends(). r=chmanchester 2016-10-12 13:52:08 +09:00
Mike Hommey 324b5d3daf Bug 1296530 - Add a test for unexpected keyword argument to @depends. r=chmanchester 2016-10-12 13:48:23 +09:00
Mike Hommey 55dba8d669 Bug 1296530 - Get help text out of TestConfigure.get_config when given --help. r=chmanchester 2016-10-12 11:11:56 +09:00
Mike Hommey fcd3736b2e Bug 1296530 - Move the somehow redundant check for --help dependency from _resolve to _value_for_depends. r=chmanchester 2016-10-11 14:20:18 +09:00
Mike Hommey 0056d6f5a4 Bug 1296530 - Move @depends dependency resolution to a separate function. r=chmanchester 2016-10-11 08:42:17 +09:00