Commit Graph
5079 Commits
Author SHA1 Message Date
Marco Castelluccio eb252e7b7f Bug 1379955 - Use longest prefix match when rewriting lcov entries. r=chmanchester 2017-07-11 16:22:43 +02:00
Carsten "Tomcat" Book 02761c38b4 merge mozilla-inbound to mozilla-central a=merge 2017-07-11 12:51:59 +02:00
Andi-Bogdan Postelnicu 062202bae7 Bug 1328454 - add footer for static analysis job. r=gps
MozReview-Commit-ID: GqGSPDccHDU
2017-07-11 10:37:49 +03:00
Gregory Szorc e9d4797b2a Bug 1379298 - Relax __eq__ for empty OptionValue; r=nalexander,rillian
The rigid type comparison added in 51a92a22d6d1 (bug 1375231) was
too rigid. This broke at least one consumer that was comparing an
empty PositiveOptionValue/NegativeOptionValue against a string.

Since comparisons against empty OptionValue are convenient and
don't violate the spirit of the type checking previously added,
this commit relaxes the type equivalence check in cases where the
OptionValue is empty.

MozReview-Commit-ID: UllTrzCjj
2017-07-10 11:21:37 -07:00
Gregory Szorc 5f157c1924 Bug 1375231 - Make OptionValue.__eq__ more type aware; r=glandium
OptionValue and its derived classes are exposed to moz.configure
files. As the previous bug fix showed, it is really easy to
accidentally assume the type is a simple string value and do a
string compare against it.

To prevent this class of bugs, this commit adds additional type
awareness to OptionValue.__eq__.

We first check that the argument is a tuple (including any OptionValue
types). If not, we raise a TypeError because the comparison is
invalid. This is arguably a violation of __eq__. But since OptionValue
is exposed to the moz.configure sandbox and typing '==' will invoke
__eq__, we have to do something to prevent this foot gun.

The change also changes the comparison logic.

If we compare against a non-derived tuple instance, we do a tuple
compare. Otherwise, we fall back to the previous logic of
requiring an identical type then doing a tuple compare.

MozReview-Commit-ID: 7IVSL2Asg9j
2017-07-06 17:53:45 -07:00
Wes Kocher 4f9edb4a89 Merge inbound to central, a=merge
MozReview-Commit-ID: 2nFzji7su8C
2017-07-06 16:10:49 -07:00
Nathan Froyd 51a8c2fa1f Bug 1378443 - add missing argument to forget_add_remove_files; r=rillian,f=jdm
Leaving off this argument makes `mach vendor rust` with large files fall
over with a Python error.  While the user still gets a semi-useful error
message prior to this failing, it would be better to not fail here at all.
2017-07-06 12:07:17 -04:00
Andrew Halberstadt 2f4b23a323 Bug 1361972 - [mozlint] Add ability to only lint staged changes to --workdir with git r=standard8
MozReview-Commit-ID: DUxCKN2fiag
2017-06-30 18:29:31 -07:00
Wes Kocher eb21014864 Merge inbound to m-c a=merge
MozReview-Commit-ID: LpxvieHR7VH
2017-07-05 17:10:43 -07:00
Nathan Froyd b37fb368ca Bug 1378440 - part 2 - add mach cargo check; r=rillian
Cargo recently introduced the `cargo check` command for shortening the
edit-compile cycle when working on large programs.  Since we don't
really support invoking `cargo` directly, let's wire up this command to
`mach`.  Gecko developers can then `mach cargo check` to ensure their
changes typecheck.
2017-07-05 14:19:31 -04:00
Nathan Froyd 951380fc5d Bug 1377971 - part 1 - make C++ linking for Linkable ignore shared libraries; r=glandium
We have a flag set on all Linkables, cxx_link, denoting whether there's
anything being linked into them that requires C++.  We do this even when
we link against shared libraries that required C++.  But if these
libraries don't export C++ interfaces, there's no reason that the things
linking against them should require C++.  Therefore, ignore shared
libraries when making the determination of whether an object requires
C++ or not.
2017-07-05 14:05:10 -04:00
Greg Mierzwinski fbe4e5d103 Bug 1378239 - Change mozinfo 'coverage' flag to 'ccov' to avoid ambiguity. r=ahal
This patch renames the mozinfo flag 'coverage' to 'ccov' to avoid ambiguity in whether a test is being skipped for linux64-ccov or for linux64-jsdcov. It also removes the 'runtests.py' mozinfo hack and renames all occurrences of 'coverage' that are used for skipping tests in linux64-ccov.

MozReview-Commit-ID: IF2640bDQP7
2017-07-04 21:18:19 -04:00
Nathan Froyd 4fb64f256d Bug 1310852 - part 4 - always download packages for stylo during mach bootstrap; r=rillian
With configure now being able to auto-detect the presence of a `mach
bootstrap`-installed clang and libclang and the upcoming
build-by-defaultness of Stylo, we can start downloading these packages
all the time.
2017-06-21 16:36:03 -04:00
Nathan Froyd 65553b423f Bug 1310852 - part 3 - don't install clang packages through tooltool for OS X mach bootstrap; r=rillian
We decided to install the necessary packages through the appropriate Mac
package manager instead.
2017-06-22 15:36:55 -04:00
Nathan Froyd 67979f3c28 Bug 1310852 - part 1 - install llvm homebrew/macports packages; r=rillian
LLVM/clang is needed for Stylo's bindgen, and Apple's clang is unusable
for such purposes.  For other platforms, we have installed LLVM/clang
from our tooltool archive on the supposition that those packages are
definitely known to work, as we use said packages in automation.  For
Mac, however, we haven't been able to generate packages for tooltool
that successfully build Stylo, and even if we had, those packages would
solely be used for developer builds of Stylo and would not be used in
automation.  The case for downloading LLVM/clang for Mac from tooltool,
therefore, is not as strong as for other platforms.

As a result, we'll rely on the installed package manager for LLVM/clang,
which many people may have installed anyway.

In passing, also delete some old code for OS X versions < 10.7; such
platforms are no longer supported for running or building Firefox.
2017-06-30 15:05:52 -04:00
Phil Ringnalda a6eca69b20 Merge m-c to m-i
MozReview-Commit-ID: H6zGgEm7oOM
2017-07-04 20:32:07 -07:00
Carsten "Tomcat" Book f0524ee684 Merge mozilla-central to mozilla-inbound 2017-07-04 11:09:13 +02:00
Greg Mierzwinski 5051923f09 Bug 1377876 - Disable 'test_crash.py' when running on linux64-ccov. r=whimboo
This patch adds a flag to the 'mozinfo.json' that can be used to disable tests when they are running on linux64-ccov. Then, this flag is used to prevent the marionnette test 'test_crash.py' from running on linux64-ccov.

MozReview-Commit-ID: 9IHMiZHxcMK
2017-06-30 16:30:59 -04:00
Andi-Bogdan Postelnicu 1180f06555 Bug 1328454 - Add full file path to compilation database. r=glandium
MozReview-Commit-ID: 7H1HvYE9umf
2017-06-21 17:58:24 +03:00
Nathan Froyd fa00f93ee3 Bug 1376392 - do a more thorough check for git checkouts of mozilla-central in bootstrap; r=rillian
When determining the path of a possible mozilla-central checkout,
bootstrap currently considers the existence of a `.git` directory as
sufficient proof that the containing directory is a git checkout.
Unfortunately, if you happen to execute standalone bootstrap from a git
checkout of something else, you're gonna have a bad time.

To prevent this, check for the existence of a moz.configure file.  This
is not an ideal proof, but it is better than what we currently have.
2017-06-29 19:26:23 -04:00
Kartikaya Gupta 1a62cd9afa Bug 1336528 - Run cargo-vendor on all the lockfiles together. r=froydnj
MozReview-Commit-ID: BBuizrn3z5k
2017-07-04 11:16:40 -04:00
Sylvestre Ledru 2ec6c1a01f Bug 1375823 - Improve the error message when using the wrong type in ConfigEnvironment r=glandium
MozReview-Commit-ID: 1XF8jpS3i8Q
2017-06-23 13:58:53 +02:00
Christian Holler 6e55b72a52 Bug 1373256 - Changes to support -fsanitize=integer in the codebase. r=froydnj
The -fsanitize=integer analysis from UBSan can be helpful to detect signed and unsigned integer overflows in the codebase. Unfortunately, those occur very frequently, making it impossible to test anything with it without the use of a huge blacklist. This patch includes a blacklist that is broad enough to silence everything that would drain performance too much. But even with this blacklist, neither tests nor fuzzing is "clean". We can however in the future combine this with static analysis to limit ourselves to interesting places to look at, or improve the dynamic analysis to omit typical benign overflows.

It also adds another attribute that can be used on functions. It is not used right now because it was initially easier to add things to the compile-time blacklist to get started.

Finally, it includes a runtime suppression list and patches various parts in the test harnesses to support that. It is currently empty and it should not be used on frequent overflows because it is expensive. However, it has the advantage that it can be used to differentiate between signed and unsigned overflows while the compile-time blacklist cannot do that. So it can be used to e.g. silence unsigned integer overflows on a file or function while still reporting signed issues. We can also use this suppression list for any other UBSan related suppressions, should we ever want to use other features from that sanitizer.

MozReview-Commit-ID: C5ofhfJdpCS
2017-04-09 12:59:26 +02:00
Gabriele Svelto 02e99268f0 Bug 1376922 - Make mach's '--enable-crash-reporter' option work on debug builds; r=glandium
MozReview-Commit-ID: Et8452Rfh1F
2017-06-28 22:46:03 +02:00
Sebastian Hengst 60a6e50625 merge mozilla-central to autoland. r=merge a=merge 2017-06-29 03:21:05 +02:00
Justin Wood 91a6967b15 Bug 1376550 - Support tar.gz (mac) regeneration of complete.mar r=mshal
Support OSX Signed nightlies (in the complete.mar too)

MozReview-Commit-ID: HXiFGE14wYJ
2017-06-27 14:00:52 -07:00
Andrew Swan 26a6782d73 Bug 1369517 Make automation work with legacy extensions disabled r=rhelmer
- Set the extensions.legacy.enabled pref for mochitests etc
- Skip a plugin-inside-xpi test for now if legacy extensions
  are force-disabled.  That test can just be removed once we
  get to 57.

MozReview-Commit-ID: As9LtkQTcTS
2017-06-01 21:20:08 -07:00
Carsten "Tomcat" Book 911b7bbf48 merge mozilla-inbound to mozilla-central a=merge 2017-06-26 13:25:51 +02:00
Marco Castelluccio 868137af9e Bug 1374348 - Rewrite paths from JAR files. r=chmanchester 2017-06-23 17:02:07 +01:00
Carsten "Tomcat" Book e2b5c3ac6c Backed out changeset ececd1d2c875 (bug 1374348) for bustage 2017-06-23 15:00:28 +02:00
Marco Castelluccio effb82fe0e Bug 1374348 - Rewrite paths from JAR files. r=chmanchester 2017-06-23 12:01:42 +01:00
Mike Hommey f06a05b5cd Bug 1354581 - Add unit tests for DEVELOPER_OPTIONS. r=chmanchester
MozReview-Commit-ID: JXNICUdzWzD
2017-06-22 22:05:31 -07:00
Phil Ringnalda b21e74e1dd Backed out changeset f1288dc02384 (bug 1354581) for test_toolkit_moz_configure.py bustage 2017-06-22 19:30:32 -07:00
Mike Hommey 39fdff7aa0 Bug 1354581 - Make automation builds imply --enable-release at the configure level. r=cmanchester+432261 2017-06-21 11:33:30 +09:00
Mike Hommey d49b88b4b5 Bug 1354581 - Add unit tests for DEVELOPER_OPTIONS. r=cmanchester+432261 2017-06-21 10:55:37 +09:00
Bryce Van Dyk 08a42fa100 Bug 1372051 - Remove external media tests from /testing, /build, /python. r=maja_zf
MozReview-Commit-ID: 7X2kYf7HLZY
2017-06-12 10:27:42 +12:00
Mike Hommey cdbcfd9974 Bug 1374917 - Convert exception messages from the requests module before logging them. r=gps 2017-06-21 13:53:31 +09:00
Wes Kocher 350e28ef70 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1dQBCh5pBY6
2017-06-22 14:21:39 -07:00
Wes Kocher 8a9f26d02a Merge inbound to central, a=merge
MozReview-Commit-ID: Gk6AmaPVVbV
2017-06-22 14:01:59 -07:00
Wes Kocher a025b1fe96 Backed out 2 changesets (bug 1355625) for causing bustage a=backout
Backed out changeset 0b7af9b62aff (bug 1355625)
Backed out changeset b44a1a078e64 (bug 1355625)

MozReview-Commit-ID: JRmf8nbLFPP
2017-06-22 12:05:56 -07:00
Wes Kocher 3e79d2c18a Merge m-c to autoland a=merge
MozReview-Commit-ID: 5D2HzsGopzc
2017-06-21 18:13:41 -07:00
Carsten "Tomcat" Book 92caa4ac51 Merge mozilla-central to mozilla-inbound 2017-06-21 14:55:27 +02:00
Andi-Bogdan Postelnicu 4d33e731dc Bug 1374561 - Allow to set log level in mach for every class derived from MozbuildObject. r=glandium
MozReview-Commit-ID: KpNRZuHkpFe
2017-06-20 11:31:26 +03:00
Wes Kocher 62ad71b00a Merge m-c to autoland, a=merge
MozReview-Commit-ID: 22m0q698kw2
2017-06-20 18:33:41 -07:00
Wes Kocher aff551aa1b Merge autoland to m-c a=merge
MozReview-Commit-ID: LFtpTAueYrF
2017-06-20 18:24:29 -07:00
Nick Alexander d2bdeabf51 Bug 1355625 - Part 1: Invoke aapt using py_action. r=mshal
This adds a py_action invocation wrapping aapt and implements a hacky
implementation of the Gradle build system's resource merging
algorithm; once we have the moz.build and Gradle resources identical,
we'll be one big step closer to producing bit-identical builds and
flipping the switch in favour of Gradle.  With this, the R.txt
produced by the aapt invocation is the same as the R.txt produced by
the py_action invocation.

Originally I wrote this to use GENERATED_FILES, but it produced a
world of pain.  Since Android's aapt tool is fundamentally directory
oriented, not file oriented, it required adding support for FORCE to
GENERATED_FILES and required directory crawling and FileAvoidWrite in
the wrapper.  After getting that working I was eventually stymied by
the arcane requirements of the Android re-packaging system, which
interacts with the l10n system.  I would have required support for
building GENERATED_FILES in the libs tier rather than the misc tier.
After that realization I gave up and turned to py_action: the
dependencies on branding are just too entangled with l10n to use
GENERATED_FILES.

And, in the not-so-distant future, all of this moz.build and
Makefile.in chicanery will be deleted in favour of invoking Gradle at
the appropriate points!

MozReview-Commit-ID: 4ueVNa7gzgs
2017-06-20 15:35:48 -07:00
Kartikaya Gupta 8bf9340e55 Bug 1369156 - Bump the minimum allowed version of cargo-vendor. r=froydnj
MozReview-Commit-ID: 2W7og1U8LBv
2017-06-20 16:04:07 -04:00
Andrew Halberstadt ed2e19604f Bug 1369787 - [mozlint] Add a test for vcs operations, r=bc
Create a test for version control related functionality.

MozReview-Commit-ID: GXd27O69GNg
2017-06-08 14:28:37 -04:00
Andrew Halberstadt cb0e1eeb1b Bug 1369787 - [mozlint] Fix up version control commands, r=standard8
The underlying commands to mozlint's vcs.py had a few problems. This:

    1. Ensures deleted files aren't considered in both hg and git
    2. Automatically determines the default remote repo and branch when using --outgoing with git
    3. Excludes metadata from output of the git command used with --outgoing
    4. Adds --cached to the git command for --workdir, which lints all staged files

MozReview-Commit-ID: EBtM3MCiCDs
2017-06-08 23:31:16 -04:00
Andrew Halberstadt 4bd03383a1 Bug 1369787 - [mozlint] Refactor vcs.py into separate classes for hg and git, r=bc
The old method had a bunch of 'if vcs == git' statements and the like. This
made it hard to follow code paths for a given vcs system. I think this refactor
makes things cleaner to read. It shouldn't be changing any functionality.

MozReview-Commit-ID: EBtM3MCiCDs
2017-06-08 23:31:02 -04:00