Gregory Szorc
2a98f9435a
Bug 808336 - Part 2: Discover mach settings providers via decorators; r=jhammel
...
With this patch, mach is now decoupled from the build system and is
truly a generic command dispatching framework.
2012-11-06 16:58:13 -08:00
Gregory Szorc
bd2380c69d
Bug 808336 - Part 1: Refactor mach command handler management; r=jhammel
...
Previously we were tighly coupled with MozbuildObject. This was not in
the spirit of mach being a generic tool. Now, instead of passing multiple
arguments to __init__ of the class providing the mach command we either
pass 0 or 1. The number of arguments is detected when processing the
@CommandProvider decorator. The optional argument is a named tuple
containing mach run-time state.
Capturing of mach command provider information is now captured in a
class (as opposed to an anoymous tuple). We also capture these in a rich
data structure which is passed as part of the run-time data to the
command provider class. This allows mach commands to inspect the mach
environment.
Mach decorators have been moved to mach.decorators. mach.base is
reserved for generic mach data/container classes.
Existing mach command classes derived from MozbuildObject have been
replaced with either object or mozbuild.base.MachCommandBase. This
latter class translates the mach context instance passed to __init__
into the constructor arguments for MozbuildObject.__init__.
Support for registering function handlers with mach has been removed.
All handlers must be inside classes.
2012-11-06 16:57:41 -08:00
Ehsan Akhgari
4f638274fb
Merge mozilla-central into mozilla-inbound
2012-11-07 17:24:27 -05:00
Ted Mielczarek
31b55cd53f
bug 803654 - Import mock into virtualenv. r=jhammel
2012-10-29 11:12:30 -04:00
Ryan VanderMeulen
a4f5bb2eaa
Merge m-c to inbound.
2012-11-02 16:11:46 -04:00
Freddie F. Haddad
24086c0cc7
Bug 803990 - Add Gentoo to mozboot; r=gps
...
DONTBUILD (NPOTB)
2012-11-01 17:06:00 -07:00
Gregory Szorc
95ba36a723
Bug 805835 - Update virtualenv to fix lib64 path issues; r=glandium
...
The following commits were cherry-picked from virtualenv's Git
repository from the develop branch:
0da2c50eafbf6841afad078e04aa873780905b99
e1ec5f3b9f5c3cfa533f5ce440d7ac251c14ad7d
da95f04065328a98d16bcad1e9ad0e89f3a41ebe
These should hopefully be part of virtualenv 1.8.3, whenever it is
released.
2012-11-02 10:33:56 -07:00
Gregory Szorc
8abc8899ba
Bug 795769 - Add "bootstrap" command to mach; r=ted
...
The command is currently just a proxy into mozboot.
DONTBUILD (NPOTB)
2012-10-10 17:17:00 -07:00
Gregory Szorc
1ee3fab3a9
Bug 805127 - Upgrade virtualenv to 1.8.2; r=ted
...
Upstream tarball uncompressed in python/virtualenv. egg-info directory
was deleted. All other files are unchanged.
2012-10-24 14:25:40 -07:00
Gregory Szorc
aaa2f38201
Bug 800633 - Clean up references to code moved out of mozbuild; r=jhammel
...
DONTBUILD (NPOTB)
2012-10-11 17:13:18 -07:00
Ms2ger
c80132867e
Bug 799648 - Followup followup: Add the line back where it was meant to be; r=gps (NPOTB, DONTBUILD)
2012-10-11 22:00:37 +02:00
Ms2ger
c704e29d3a
Bug 799648 - Followup: Remove a line accidentally left in; r=gps (NPOTB, DONTBUILD)
2012-10-11 21:47:11 +02:00
Gregory Szorc
e467e93a88
Bug 799648 - Part 4: Temporarily disable settings file integration; r=jhammel
...
DONTBUILD (NPOTB)
2012-10-10 11:09:21 -07:00
Gregory Szorc
44d9223b6b
Bug 799648 - Part 3: Move config module from mozbuild to mach; r=jhammel
2012-10-10 11:08:10 -07:00
Gregory Szorc
8f12c07ca6
Bug 799648 - Part 2: Move mozbuild's log manager into mach; r=jhammel
2012-10-10 11:08:09 -07:00
Gregory Szorc
72aeaf9af2
Bug 799648 - Part 1: Move process execution and logging methods into Mach mixin classes; r=jhammel
2012-10-10 11:08:09 -07:00
Gregory Szorc
863c52dc14
Bug 799312 - Implement |mach help <command>|; r=jhammel
...
Previously you had to |mach <command> --help|. Both forms now work.
2012-10-10 11:08:09 -07:00
Gregory Szorc
47f6631e13
Bug 795427 - Part 3: Print more user friendly error messages; r=jhammel
2012-10-10 11:08:09 -07:00
Gregory Szorc
2b27cf1cf0
Bug 799291 - Part 3: Move mozbuild.testing into testing/; r=jhammel
2012-10-10 11:08:09 -07:00
Gregory Szorc
23804a0c6d
Bug 799291 - Part 2: Remove "test" command from mach; r=jhammel
...
The command was practically worthless and will likely be reborn as a
generic "run a test by specific a path or special name" command. But,
that requires a more intelligent build system first.
2012-10-10 11:08:09 -07:00
Gregory Szorc
432281727e
Bug 799291 - Part 1: Move mach commands for test running into test runners; r=jhammel
...
The code interacting with the test runners now resides in closer
proximity to the code it is invoking. We also purge testing
functionality from mozbuild, which is where it never really belonged.
2012-10-10 11:08:09 -07:00
Gregory Szorc
931cd84218
Bug 799262 - Formal API for loading mach command modules; r=jhammel
2012-10-10 11:08:09 -07:00
Gregory Szorc
4d3f8b5642
Bug 822103 - Support 'LinuxMint' distro in mozboot; r=edmorley
...
DONTBUILD (NPOTB)
2012-12-31 10:12:15 -08:00
Masatoshi Kimura
90ba347f4a
Bug 795670 - Don't raise exception on convertion failure. r=gps DONTBUILD (NPOTB)
2012-10-07 16:30:13 -07:00
Gregory Szorc
05c10715d0
Bug 794509 - Part 3: Automatically discover mach commands in sys.path; r=jhammel
...
DONTBUILD (NPOTB)
2012-10-05 12:19:19 -07:00
Gregory Szorc
7a5821f242
Bug 794509 - Part 2: Move mach command modules into a mach.commands sub-module; r=jhammel
...
This patch on its own will break mach. Part 3 will refactor mach's
loader to discover and load modules using a modified module finding
method.
2012-10-05 12:13:18 -07:00
Gregory Szorc
26265bf67b
Bug 794509 - Part 1: mach subcommands are now defined through Python decorators; r=jhammel
2012-10-05 12:12:51 -07:00
Gregory Szorc
5a91b2a653
Bug 795427 - Part 2: Terminate mach silently when KeyboardInterrupt is raised; r=jhammel
...
DONTBUILD (NPOTB)
2012-10-04 17:43:56 -07:00
Gregory Szorc
f692b1e308
Bug 795427 - Part 1: Proper exit codes from mach; r=jhammel
2012-10-04 17:43:54 -07:00
Gregory Szorc
98883bac72
Bug 796840 - Don't have mozprocess worry about process children when running make; r=jhammel
...
DONTBUILD (NPOTB)
2012-10-04 17:23:06 -07:00
Ehsan Akhgari
3110d214f1
Bug 797093 - Fix running mochitests through mach; r=gps
...
DONTBUILD
2012-10-02 17:03:31 -04:00
Ms2ger
e0b3f50b0d
Bug 780698 - Part c: Support mochitest-a11y, reftest, crashtest in mach; r=gps
2012-10-02 10:24:12 +02:00
Ms2ger
c69a6b7ed7
Bug 780698 - Part b: Fix mochitest runners; r=gps
2012-10-02 10:24:11 +02:00
Ms2ger
9d5928b3f5
Bug 780698 - Part a: Give _run_make append_env and explicit_env arguments; r=gps
2012-10-02 10:24:11 +02:00
Ms2ger
329d7ab41a
Bug 795034 - Fix append_env argument to mozbuild's _run_command; r=gps
2012-10-02 10:24:11 +02:00
Gregory Szorc
680ef3affd
Bug 795394 - Default to utf-8 encoding when no encoding is specified; r=jhammel
...
DONTBUILD (NPOTB)
2012-10-01 11:12:33 -07:00
Gregory Szorc
6c1106776f
Bug 795477 - Install NullHandler on root logger; r=jhammel
2012-10-01 11:08:53 -07:00
Gregory Szorc
1085c8a9d6
Bug 795491 - Improve mach's help text; r=jhammel
2012-10-01 11:06:40 -07:00
Gregory Szorc
ceacec585d
Bug 794713 - Convert process output to Unicode; handle Unicode in logger properly; r=glandium
...
DONTBUILD (NPOTB)
2012-09-28 10:29:32 -07:00
Gregory Szorc
c48efd9731
Bug 794729 - Run config.guess and mozconfig through shell; r=glandium
...
DONTBUILD (NPOTB)
2012-09-27 10:12:48 -07:00
Gregory Szorc
ca68b33f7e
Bug 751795 - Part 5: mach can now build the tree, record compiler warnings; r=jhammel
...
This is meant to be a stop-gap until more robust tree building lands in
mozbuild. It simply proxies building through client.mk and captures
compiler warnings using the existing mechanism in mozbuild.
There are some DRY violations for how the compiler database is managed.
The more robust tree building code contains consolidated compiler
database logic. The DRY violations should disappear when that lands.
DONTBUILD (NPOTB)
2012-09-26 16:42:38 -07:00
Gregory Szorc
6f7e1c132f
Bug 751795 - Part 4: Add flags to _run_make to control behavior; r=jhammel
2012-09-26 16:40:14 -07:00
Gregory Szorc
0247fd54e9
Bug 751795 - Part 3: Testing module; r=jhammel DONTBUILD (NPOTB)
...
mach can now run some tests.
2012-09-26 09:46:27 -07:00
Gregory Szorc
1ba3540793
Bug 751795 - Part 2: Add settings module; r=jhammel
2012-09-26 09:44:38 -07:00
Gregory Szorc
d1e9335ebf
Bug 751795 - Part 1: mach, the new frontend to mozilla-central; r=jhammel
2012-09-26 09:43:54 -07:00
Gregory Szorc
794937378b
Bug 780329 - Part 6: Add testing modules to mozbuild; r=jhammel
2012-09-26 09:43:53 -07:00
Gregory Szorc
1c5b260d35
Bug 780329 - Part 5: Add base modules to mozbuild; r=glandium, jhammel
2012-09-26 09:43:53 -07:00
Ryan VanderMeulen
01e7943bcf
Merge the last PGO-green inbound changeset to m-c.
2012-09-21 22:38:53 -04:00
Gregory Szorc
eec3df1c56
Bug 780329 - Part 4: Define CompilerWarning.__cmp__; r=jhammel DONTBUILD (NPOTB)
2012-09-21 12:05:37 -07:00
Gregory Szorc
adffaf2bf3
Bug 780329 - Part 3: Ability to register structured loggers; r=jhammel
2012-09-21 12:05:12 -07:00