Commit Graph
2939 Commits
Author SHA1 Message Date
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
Andrew Halberstadt 375bfca9ea Bug 1369787 - [mozlint] Remove 'rev' option from |mach lint|, r=bc
The rev option is inherently broken. It does let you lint files touched by any
revision, but it doesn't update those files to that revision first.  Instead,
they get linted at whatever the working directory is and their results are
bogus. Even if we did some magic to update the files to the proper revision
with in-memory version control magic, the config files would still be out of
date.

Plus, the new --outgoing option does pretty much the only thing --rev was good
for. Rather than cause confusion, I think it's better to just remove the
option.

MozReview-Commit-ID: 2y2UnfIkvsR
2017-06-08 22:54:00 -04:00
Chris Manchester 983f1a98f1 Bug 1371871 - Do not install unnecessary files in an artifact build. r=mshal
This prevents us from redundantly installing httpd.js and httpd.manifest
from the test package during an artifact build, which interferes with
the Tup backend's handling of these files as symlinks.

MozReview-Commit-ID: LuMurUc1P36
2017-06-21 16:20:18 -07:00
Chris Manchester 556063ad0d Bug 1371871 - Do not process XPIDL in the tup backend during an artifact build. r=mshal
MozReview-Commit-ID: AtnXcv6iPRD
2017-06-21 16:20:18 -07:00
Chris Manchester 44527cff7d Bug 1371871 - Do not generate or attempt to install unnecessary files in artifact builds in the Tup backend. r=mshal
MozReview-Commit-ID: B2zyhKD4gVt
2017-06-21 16:20:18 -07:00
Chris Manchester aa8431a823 Bug 1319225 - Install generated FinalTargetFiles in the Tup backend. r=mshal
MozReview-Commit-ID: 8NLF11upDCn
2017-06-21 16:19:16 -07:00
Chris Manchester c8c4223a3f Bug 1371817 - Handle FinalTargetFiles with wildcards in the Tup backend. r=mshal
MozReview-Commit-ID: KMJJ8vg7g7s
2017-06-21 15:35:19 -07:00
byron jones 7c45712b95 Bug 1361003 - Use check_call when calling "mach vendor rust". r=ted
As mozprocess doesn't have any special handling of stderr, should cargo
operations fail their output is dropped.  Switch to subprocess.check_call to
ensure cargo errors are displayed to the caller.
2017-06-22 13:52:38 +08:00
Andrew Halberstadt 93504334ec Bug 1375166 - [mozlint] Don't require leading '.' in extensions, r=standard8
This was a regression from bug 1288432. The 'extensions' config in mozlint required a
leading period, but eslint requires them without the period (and this got copied over
to the linter definition). The result was mozlint filtering out any files (not dirs)
that were passed in.

This just modifies mozlint to strip out the period so both are acceptable.

MozReview-Commit-ID: CbNynYzrbGz
2017-06-21 13:22:34 -04:00
Jan Beich b6decc8f15 Bug 1375198 - FreeBSD bootstrap: drop explicit dependency on libGL. r=rillian
libGL package was consolidated into mesa-libs but quarterly set still
uses the old name. Since gtk3 (via libepoxy) and gtk2 (via cairo)
already indirectly depend on mesa-libs take advantage of it to avoid
churn on updates.

MozReview-Commit-ID: F5LBOOthAMc
2017-06-21 18:45:14 +00:00
Nathan Froyd e1c2e31be5 Bug 1374432 - enable stylo attribute for tests only if stylo is enabled; r=jgraham
If we don't do this, various bits of test infrastructure will turn on
when stylo is merely built, not enabled, which will cause no end of
orange and unhappiness.
2017-06-20 11:34:37 -04:00
Carsten "Tomcat" Book 324442b615 merge mozilla-inbound to mozilla-central a=merge 2017-06-20 11:26:40 +02:00
Sylvestre Ledru 247b946408 Bug 1373951 - Use the existing list of thirdparty code instead an hardcoded list r=gps
MozReview-Commit-ID: LaBH5Ye019Y
2017-06-20 00:17:58 +02:00
Marco Castelluccio 6aeaa46954 Bug 1373794 - Test parsing LCOV containing a function name with commas. r=chmanchester 2017-06-17 01:27:32 +01:00
Marco Castelluccio d892eac485 Bug 1373794 - Don't fail when FN or FNDA records contain function names with commas. r=chmanchester 2017-06-16 23:50:58 +01:00
Chris Manchester 32b1cd2010 Bug 1370535 - Install the geckodriver binary in artifact builds when available. r=froydnj
MozReview-Commit-ID: 6NnbomedmRy
2017-06-19 08:57:42 -07:00
Marco Castelluccio 6fecb97331 Bug 1373789 - Handle some kinds of malformed lcov lines better. r=chmanchester 2017-06-16 20:16:33 +01:00
Gregory Szorc 66b3e5f9fe Bug 1371465 - Move MSVS_VERSION to moz.configure and properly define for vs2017; r=glandium
Before, MSVS was set in old-configure and could only be unset or
"2015." We move the definition of the variable to moz.configure
and support defining its value as "2017" when VS2017 is being used.

As part of this, I discovered that GYP barfs with a "2017" value.
This is likely a limitation of the legacy version of GYP we have
vendored. Rather than go down the rabbit hole of upgrading GYP,
I added code to convert the value to "2015." This preserves existing
behavior and unblocks us from setting MSVS_VERSION properly. A
warning is emitted to remind us to remove this hack once GYP is
upgraded.

After this commit, we now generate native VS2017 solutions and
projects when building with VS2017.

MozReview-Commit-ID: BvNJX3F8qCn
2017-06-14 16:52:55 -07:00
Chris Manchester c4e34f38cd Bug 1224691 - Parse lcov files and rewrite them based on preprocessor info. r=marco,mshal
MozReview-Commit-ID: LeBPclcFz7l
2017-06-14 15:36:13 -07:00
Chris Manchester d5447ee79b Bug 1224691 - Add a script to re-write lcov files, replacing chrome urls with sourcefile locations. r=marco,mshal
This script uses the info generated by the UrlMap backend to replace chrome urls
found in lcov files with source-paths. There are several other cases a script
might not correspond to a source url, such as "data:" uris, which are handled
by omitting those sections in the produced lcov files. The set of files included by a JS source (if it is preprocessed) is also calculated, but not consumed
at this time. A more extensive lcov rewriting mechanism will be added in the
future to re-construct source information in produced coverage reports.

MozReview-Commit-ID: DDcreOdEbam
2017-06-14 14:19:56 -07:00
Mike Hommey a435ab61e0 Syntax fixup for bug 1364695 for bustage. r=me 2017-06-21 13:25:56 +09:00
Rok Garbas d878956f19 Bug 1364695 - Make mach artifact toolchain also retry on ConnectionError. r=gps 2017-06-21 13:15:38 +09:00
Chris Manchester 83a3cda018 Bug 1370695 - Remove build system code handling binary components. r=glandium
MozReview-Commit-ID: BKHWR34vWsu
2017-06-13 16:01:45 -07:00
Mike Shal be43a1fd46 Bug 1360525 - Add 'mach repackage mar'; r=chmanchester
This adds a mach repackage command to create a complete mar file from an
input package and mar host executable. The standard make_full_update.sh
script actually does the work of creating the complete mar.
2017-05-04 15:09:27 -04:00
Mike Shal 6547f1a890 Bug 1360525 - 'mach repackage' for installer & stub installer; r=chmanchester
These commands are similar to 'mach repackage dmg', except the installer
and stub installer require multiple inputs. The regular installer needs
a package, tag file, and setup.exe file; the stub installer needs just a
tag file and setup.exe file. The output is a self-extracting .exe file.

The archive_exe() function originally just supported the regular
installer, but by supporting an optional package, the function can
support the stub installer as well.
2017-05-04 14:48:12 -04:00
Mike Shal c7a069920a Bug 1360525 - Separate repackage out into subcommands; r=chmanchester
With multiple types of repackaging, it will be simpler to manage the
various commands if they are organized as sub-commands. This way the
different repackage types can take varying arguments, and we don't have
to guess on the repackage type based on the output filename.

MozReview-Commit-ID: BknRPAwFG5H
2017-05-03 15:06:44 -04:00
Mike Hommey a0a51a1ba2 Bug 1370296 - Add compile graphs nodes without dependencies as direct dependencies of the top recursion target. r=gps
Incidentally, this prioritizes js/src even more than it was after bug 1262241.
2017-06-14 15:11:30 +09:00
Mike Hommey 03461198ad Bug 1370296 - Ensure rust libraries are fully in the compile graph. r=gps
This was not strictly necessary because they would appear as
dependencies of other things in the compile graph, but it makes it
easier to iterate the compile graph for all the node.

Incidentally, this makes the rust libraries on par with rust programs.
2017-06-14 15:02:18 +09:00
Sebastian Hengst 38a2a8a41b Backed out changeset 30424746d0f7 (bug 1370296) for build bustage, failing test_recursivemake.py. r=backout 2017-06-14 09:48:58 +02:00
Sebastian Hengst 12e4fc9165 Backed out changeset b27d3da9e60e (bug 1370296) 2017-06-14 09:48:19 +02:00
Mike Hommey 9dc1bb79d7 Bug 1370296 - Add compile graphs nodes without dependencies as direct dependencies of the top recursion target. r=gps
Incidentally, this prioritizes js/src even more than it was after bug 1262241.
2017-06-14 15:11:30 +09:00
Mike Hommey f01eff34c4 Bug 1370296 - Ensure rust libraries are fully in the compile graph. r=gps
This was not strictly necessary because they would appear as
dependencies of other things in the compile graph, but it makes it
easier to iterate the compile graph for all the node.

Incidentally, this makes the rust libraries on par with rust programs.
2017-06-14 15:02:18 +09:00
Chris Manchester 1f49a601cd Bug 1371245 - Install minidump-analyzer to its final location in artifact builds. r=nalexander
The MacOS client artifact code relies on its own bookkeeping to install
binaries to their final locations and assumes that files installed to
'Contents/MacOS' will generally be installed to dist/bin by the build system.
This commit extends this logic to account for minidump-analyzer, which is
installed to directly to crashreporter.app/Contents/MacOS by setting DIST_SUBDIR
in moz.build.

Ideally we would rely on build system metadata to install binaries in artifact
builds, however this is non-trivial as the relevant moz.build data isn't
read in non-compile-environment builds and originating builds do not expose it
directly.

MozReview-Commit-ID: BMmhtx1HKn7
2017-06-08 10:03:03 -07:00
Andrew Halberstadt 1386807b19 Bug 1048446 - [python-test] Add 'sequential' key to python.ini manifests so tests can opt out of running in parallel, r=jmaher
MozReview-Commit-ID: DQWJDdU9QHO
2017-06-01 09:50:15 -04:00