Commit Graph

2402 Commits

Author SHA1 Message Date
Wei-Cheng Pan
87d92cf1de Bug 1298775 - Fix nullptr dereferencing. r=tbsaunde
This is a follow up to fix nullptr printing.

MozReview-Commit-ID: KDjBsHHiDxv
2016-08-31 18:35:01 +08:00
Henrik Skupin
e98ba9a07c Bug 1283919 - Improve test package archiver for collecting files from directories referenced by a root manifest r=gps
MozReview-Commit-ID: EuGK3OS8XLj
2016-09-07 23:39:45 +02:00
Mike Shal
239acef255 Bug 1293448 - Build XPIDL files in the tup backend; r=glandium,gps
MozReview-Commit-ID: zyojbOFLLn
2016-07-29 13:43:29 -04:00
Mike Shal
753234d81a Bug 1293448 - Allow build backends to specify custom build commands; r=glandium
MozReview-Commit-ID: G6fICkYUDxd
2016-08-17 23:20:51 -04:00
Wes Kocher
eda25c5728 Merge inbound to m-c a=merge 2016-09-02 13:17:30 -07:00
Andrew Halberstadt
c01c510dbf Bug 1299618 - [mozlint] Encode results to utf-8 before printing to stdout, r=smacleod
MozReview-Commit-ID: 93RAqIRKAHc
2016-08-31 17:18:52 -04:00
Andrew Halberstadt
776ae74e08 Bug 1292674 - Properly set up Firefox for Android dependencies on Fedora, r=gps
This patch solves 3 problems on Fedora when trying to bootstrap Firefox for Android:

1) Installs java
2) Adds a call to android.ensure_android_packages()
3) Uses build-tools-23.0.1 which seems to be the latest on Fedora

I'm not sure why the Android specific packages are only being installed on Fedora
and not CentOS, but as I don't have CentOS distribution to play around with figured
it was best to leave that for another bug.

MozReview-Commit-ID: 19sD6tYj4V
2016-08-26 16:04:08 -04:00
Mike Hommey
3e797e02a1 Bug 1299661 - Use hg --template flag instead of -T. r=gps
Versions of mercurial older than 3.0 don't support the -T shorthand for
the --template option. While most people should be using something
newer, it can still happen that some run an older version, and it's
still trivial to support them by using the long option.
2016-09-01 07:43:38 +09:00
Henrik Skupin
bd6591d1ff Bug 1283919 - Move packaging of Marionette from make to the test archiver r=gps
MozReview-Commit-ID: AOQHcA46bCh
2016-08-17 13:43:51 +02:00
Henrik Skupin
705016a2f4 Bug 1283919 - Improve test package archiver for collecting files from directories referenced by a root manifest r=gps
MozReview-Commit-ID: EuGK3OS8XLj
2016-08-17 13:41:59 +02:00
Wes Kocher
49b7e19e6a Merge m-c to autoland, a=merge 2016-08-30 18:15:33 -07:00
Andrew Halberstadt
97d245cfa0 Bug 1258341 - [mozlint] Add ability to forward miscellaneous command line arguments to the underlying linter, r=smacleod
This is mostly to maintain backwards compatibility with the |mach eslint| command. But it's also going to be used in
automation. The 'mozlint-eslint' task will need to pass in --quiet to eslint.

Maybe in the future we should remove this ability and only allow well-defined arguments in mozlint. But for now it's
convenient and allows us to land the eslint->mozlint patch series quicker.

MozReview-Commit-ID: KYhC6SEySC3
2016-08-25 09:52:50 -04:00
Ryan VanderMeulen
7ffccc8668 Merge inbound to m-c. a=merge 2016-08-30 09:52:55 -04:00
Axel Hecht
efd7d8616a bug 1291275, sys.stdout is utf-8 in mach, don't double-encode, r=glandium
MozReview-Commit-ID: ISozaWZZB1h
2016-08-29 15:07:19 +02:00
Wei-Cheng Pan
869caacce7 Bug 1298775 - Support mozilla::StyleSheetHandle::RefPtr in gdb pretty printer. r=tbsaunde
MozReview-Commit-ID: 77jCHNGbFZ4
2016-08-29 18:27:42 +08:00
Ryan VanderMeulen
d561dbe212 Merge m-c to inbound. a=merge 2016-08-30 09:59:38 -04:00
Xidorn Quan
c4dba558d8 Bug 1298210 - Move remove objdir code into clobber.py so that autoclobber and clobber command share the same code. r=gps
MozReview-Commit-ID: 5X1AQac8Fqi
2016-08-30 19:54:38 +10:00
Al Tsai
5e8ee2186b Bug 1297585 - Modify parameters for buildUrl to satisfy taskcluster changes. r=glandium 2016-09-01 15:02:09 +08:00
Ryan VanderMeulen
79935a96ec Merge inbound to m-c. a=merge 2016-08-25 08:10:52 -04:00
Andrew Halberstadt
6de31fa92d Bug 1297699 - Mozlint tests should run with test directory as the "project root", r=smacleod
MozReview-Commit-ID: 9sbhlc11YF5
2016-08-24 09:55:04 -04:00
Mike Hommey
d169ab15ab Bug 1276003 - Move --enable-necko-protocols to python configure. r=chmanchester 2016-08-18 09:57:06 +09:00
Andrew Halberstadt
f4b5bbd86c Bug 1288425 - Make sure we skip invalid extensions when linting with --rev or --workdir, r=smacleod
Some linters, such as flake8, will lint invalid file extensions if you explicitly pass them in. E.g,
|flake8 foobar.js| will result in flake8 attempting to lint a JS file. This is a problem because passing
in files explicitly is exactly what the --rev/--workdir options do. If a developer modifies a JS file
then runs |mach lint -l flake8 -w|, that JS file will get linted.

To prevent this, mozlint needs to handle file extensions instead of relying on the underlying linter to
do it. This patch adds an "extensions" config option to the LINTER dict, and will filter these files out
as part of the 'filterpaths' steps.

MozReview-Commit-ID: KYhC6SEySC3
2016-08-09 16:24:04 -04:00
Andrew Halberstadt
4a59afb8e5 Bug 1294802 - Improve color handling in mozlint stylish formatter, r=jgraham
This will make specifying terminal colours cleaner and provide fallbacks for terminals
with only 8 colours. It also tweaks the 'grey' color to match an update to the eslint
stylish formatter.

MozReview-Commit-ID: KYhC6SEySC3
2016-07-19 11:54:04 -04:00
Mike Hommey
3231b6c0be Bug 1296503 - Switch config.status to unicode literals. r=ted
Ironically, the first thing we do with those unicode literals is convert
them to byte strings because the build backends don't like them yet.
2016-08-24 07:32:52 +09:00
Mike Hommey
34244cb95f Bug 1296503 - Add an indented_repr function to mozbuild.util. r=ted 2016-08-24 07:32:51 +09:00
Myk Melez
7c86d6abe3 Bug 1296798 - set depth to chrome_src for refs in common.gypi; r=ted
MozReview-Commit-ID: EJTQNk6dbJ1
2016-08-23 14:58:27 -07:00
Myk Melez
64f44b1f7b Bug 1296798 - specify root_targets; r=ted
MozReview-Commit-ID: 6Ip87xChI8o
2016-08-23 14:58:23 -07:00
Gregory Szorc
05f268f5c4 Bug 1290201 - Don't clobber .mozbuild directory by default; r=ted
.mozbuild/last_log.json is opened by the process doing the deleting.
On Windows, you can't delete an opened file.

So stop clobbering the .mozbuild directory.

This directory only holds non-essential artifacts from mach/build
invocations. I don't think keeping it around will break anything.

MozReview-Commit-ID: 9b0AC2ywAAZ
2016-08-19 11:11:48 -07:00
Mike Hommey
4d8244706b Bug 1296502 - Serialize lists when preparing a context for the preprocessor in build backends. r=gps
Some substs values are lists, and some CONFIGURE_SUBST_FILES use them,
and don't expect the substitution to use a pythonic expression of the
value. So serialize those lists.
2016-08-19 11:33:18 +09:00
Mike Hommey
6c0642b98a Bug 1257049 - Stop spawning a separate process for config.status from configure.py. r=gps 2016-08-19 11:11:57 +09:00
Ryan VanderMeulen
576edfd1fd Merge inbound to m-c. a=merge 2016-08-19 09:52:53 -04:00
Wes Kocher
c15c8be958 Merge m-c to inbound, a=merge 2016-08-18 16:32:58 -07:00
Andrew Halberstadt
6980519f2c Bug 1289805 - Properly normalize all paths so they are absolute, r=smacleod
It's important to use absolute paths so lint errors for the same files don't show up in two
different places. For example, eslint will absolutize a relative path, whereas flake8 will
not.

This patch also makes sure all include/exclude paths are joined to the mozlint 'root' that
was previously calculated from vcs.

MozReview-Commit-ID: KYhC6SEySC3
2016-07-19 13:09:38 -04:00
Andrew Halberstadt
b0ccc9546d Bug 1289805 - Resolve vcs arguments directly in LintRoller class, r=smacleod
Previously, vcs related stuff was resolved in the cli.py module. But it's possible
for consumers to bypass the cli and instantiate a LintRoller directly. In fact this
is what the mozlint tests do.

Now that we always try to find the vcs root, calling into vcs is no longer optional.
This patch moves the VCSFiles class to a new vcs.py module and makes LintRoller
responsible for instantiating it instead of cli.py.

MozReview-Commit-ID: 5yA3gDZ1UGM
2016-08-10 10:21:43 -04:00
Andrew Halberstadt
091ffabdca Bug 1289805 - Ensure the VCSFiles class returns paths that have been absolutized to the repository root, r=smacleod
This makes sure we return absolute paths from the VCSFiles class. This is done so we don't accidentally normalize
the relative paths onto $CWD in the event the relative path is valid in both places.

MozReview-Commit-ID: 2QIuR2YqFos
2016-08-09 14:49:41 -04:00
Andrew Halberstadt
1b6a41c609 Bug 1289805 - Refactor filterpaths to accept all lintargs, r=smacleod
This makes it easier to pass configuration to the filterpaths method. In
the future, 'root' and 'extensions' will both be used here.

MozReview-Commit-ID: KYhC6SEySC3
2016-08-09 15:29:49 -04:00
Wes Kocher
821d0c747f Merge m-c to autoland, a=merge
a=release for the webidl hook for a comment-only change
2016-08-16 22:07:30 -07:00
Wes Kocher
bb9e0744e6 Merge inbound to central, a=merge
a=release to get around the webidl hook for a comment-only change
2016-08-16 17:05:30 -07:00
Gregory Szorc
922411c3be Bug 1291944 - Verify makensis binary is 32-bits; r=glandium
This required implementing a utility function to resolve the binary
type. I used GetBinaryTypeW via ctypes because this seems the fastest.
I arbitrarily limited the function to testing 32-bit and 64-bit Windows
executables because hopefully those are the only executables we'll
ever encounter. We can expand the binary detection later, if needed.
This includes support for running on non-Windows platforms.

MozReview-Commit-ID: CYwyDWQrePc
2016-08-15 18:11:48 -07:00
Towkir Ahmed
e82c9583ae Bug 1284887 - Replaced references to mxr.mozilla.org in the codebase with dxr.mozilla.org r=dolske
a=release to get around a hook that's catching these comment-only idl changes
2016-08-15 17:28:05 -07:00
Mike Hommey
f2259153af Bug 1294585 - Move --with-*-keyfile options to python configure. r=chmanchester 2016-08-16 08:32:51 +09:00
Wes Kocher
924bec4dbe Merge inbound to central, a=merge 2016-08-15 14:20:38 -07:00
Gregory Szorc
5e58fd054f Bug 1293868 - Write mozinfo.json deterministically; r=glandium
And with indentation so it is easier for humans to read.

MozReview-Commit-ID: Kkd6vmfLNUf
2016-08-09 19:11:54 -07:00
Nathan Hakkakzadeh
bf30813142 Bug 1292715 - Added installer source code for MSYS2 and ConEmu. r=gps
Also, is a ConEmu preferences file which automatically points a newly installed ConEmu to the newly installed MSYS2.

MozReview-Commit-ID: FBeMat4SYjK
2016-08-10 15:30:07 -07:00
Wes Kocher
740463f70e Merge m-c to autoland, a=merge 2016-08-15 14:54:25 -07:00
Mike Shal
cfe7742673 Bug 1294510 - cleanup CompileDB backend; r=glandium
MozReview-Commit-ID: Lj4ahLzZJh9
2016-08-11 15:50:31 -04:00
Gregory Szorc
80e9ca86f9 Bug 974281 - Do not clobber msvc directory by default; r=ted
The "remove_objdir" method has been rewritten to support partial
clobber. It still defaults to full clobber. But the "full" argument
can be passed as False to limit to a partial clobber where currently
the "msvc" directory (contains Visual Studio files) is not clobbered.

On Windows, there might be a regression with this change because
we'll be invoking N winrm.exe processes and new processes have
a non-trivial overhead on Windows. However, it is hopefully unlikely
that new processes are more overhead than deleting hundreds of thousands
of files.

MozReview-Commit-ID: 7yeMttztwic
2016-03-11 15:11:33 -08:00
Gregory Szorc
02403be5f0 Bug 974281 - Use mozfile.remove since rmtree is deprecated; r=ted
My Python editor told me rmtree has been marked as deprecated. Use
mozfile.remove instead.

MozReview-Commit-ID: FYkXk1fnxvC
2016-03-11 15:08:54 -08:00
Wes Kocher
de62d9c40d Merge m-c to inbound, a=merge 2016-08-12 16:29:24 -07:00
Andrew Sutherland
63442b37b0 Bug 1294633 - Implement gdb pretty-printer for mozilla::LinkedList, recognize StaticAutoPtr/StaticRefPtr in smartptr.py. r=tromey 2016-08-12 14:39:02 -04:00