Commit Graph
2914 Commits
Author SHA1 Message Date
Rok Garbas d878956f19 Bug 1364695 - Make mach artifact toolchain also retry on ConnectionError. r=gps 2017-06-21 13:15:38 +09:00
Wes Kocher aff551aa1b Merge autoland to m-c a=merge
MozReview-Commit-ID: LFtpTAueYrF
2017-06-20 18:24:29 -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
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
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
Andrew Halberstadt 44dc5b30c3 Bug 1048446 - [python-test] Set up a temporary directory for tests to use, r=gbrown
We set up the temporary directory here so that it persists across multiple test invocations, as each
test is run in its own subprocess.

MozReview-Commit-ID: 7SNip54AqEI
2017-02-28 10:27:19 -05:00
Chris Manchester cfaa3be216 Bug 1319223 - Generate interfaces.manifest files in the tup backend. r=mshal
MozReview-Commit-ID: 92N8ZqtqjUr
2017-06-07 16:27:58 -07:00
Chris Manchester 306aef43f9 Bug 1319223 - Handle ChromeManifestEntry objects in the tup backend. r=mshal
The approach here is similar to the FasterMake backend, but rather than writing
out manifest entries to a backend file to be written out during the build
we write the manifests to their final location within the build backend.

MozReview-Commit-ID: L7EPwxyFtWX
2017-06-07 14:35:38 -07:00
Ralph Giles 8422d2bbb5 Bug 1371366 - mozboot: Install rust 1.18.0. r=froydnj
This version offers a 15-20% improvement to compilation
speed, so we will likely require it for developers soon.

Begin installing it now to reduce the frequence of double
migrations.

MozReview-Commit-ID: JZRssgOjkF7
2017-06-07 14:57:55 -07:00
Andrew Halberstadt 7bb38413f2 Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted
This commit is a simple 'hg mv' and does not contain any file modifications.

***
Bug 1346025 - Split vendored modules in python/moz.build to third_party/python/moz.build, r=ted

***
Bug 1346025 - Update references to moved python modules, r=ted

MozReview-Commit-ID: A12RnIFtXju
2017-05-25 11:48:03 -04:00
Andrew Halberstadt f58b1651f0 Bug 1288432 - [mozlint] Use yaml for lint definitions and separate implementation of external linters, r=bc
Rather than using .lint.py files that contain a LINTER object, linter definitions are now in
standalone .yml files. In the case of external linters that need to run python code, the payload
is now of the form:
<module path>:<object path>

The <module path> is the import path to the module, and <object path> is the callable object to
use within that module. It is up to the consumer of mozlint to ensure the <module path> lives on
sys.path. For example, if an external lint's function lives in package 'foo', file 'bar.py' and
function 'lint', the payload would read:
foo.bar:lint

This mechanism was borrowed from taskcluster.

MozReview-Commit-ID: AIsfbVmozy4
2017-06-02 09:49:26 -04:00
Carsten "Tomcat" Book 813ef1118e Backed out changeset 34b11112f0e3 (bug 1346025) for bustage 2017-06-07 14:38:39 +02:00
Andrew Halberstadt 5edd1cf160 Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted
This commit is a simple 'hg mv' and does not contain any file modifications.

***
Bug 1346025 - Split vendored modules in python/moz.build to third_party/python/moz.build, r=ted

***
Bug 1346025 - Update references to moved python modules, r=ted

MozReview-Commit-ID: A12RnIFtXju
2017-05-25 11:48:03 -04:00
Andrew Halberstadt 0ac670aa01 Bug 1346025 - Move 'python/compare-locales' documentation and mach command to 'tools/compare-locales', r=Pike
MozReview-Commit-ID: bkrH4YAD7S
2017-06-06 10:00:51 -04:00
Andreas Tolfsen 851e57847e Bug 1368264 - Include geckodriver in test archive r=jgraham
When the geckodriver binary exists, include it in the common test package
alongside the other binaries under dist/bin.

This approach works even if the geckodriver binary is not available, as
it indeed is not on selected platforms.

MozReview-Commit-ID: 4aUSpdHJtYG
2017-06-05 11:31:28 +01:00
Ralph Giles ba23dee20e Bug 1369950 - Update av1 mimetype when vendoring. r=froydnj,gerald
We record the commit id of the aom library we vendor in the
gecko source so we can check it as part of the mimetype
to verify compatibility with the encoder while the stream
format is under development.

Make the vendor script update the hash in the code, just
like we do with README_MOZILLA. This can be removed when
the bitstream becomes stable.

MozReview-Commit-ID: 9zBiFhcEy2N
2017-06-02 20:32:17 -07:00
Chris Manchester 574d8730d0 Bug 1369433 - Fix gyp_reader to take mozilla_cflags in to account when CFLAGS et al are set via sandbox_vars. r=ted
Prior to this patch setting sandbox_vars['CFLAGS'] would cause those to
override any variables set by gyp via cflags_mozilla. In general
sanbox_vars are used to override values, and there's room for
a clearer interaction between moz.build and gyp, but discarding cflags
set in cflags_mozilla is almost certainly not the intended behavior here,
and this solves the immediate issue.

MozReview-Commit-ID: 1uCgXr5lagA
2017-06-02 13:14:47 -07:00
Henrik Skupin a8f41e473c Bug 1369665 - "mach vendor rust" has to export the OpenSSL lib folder. r=rillian
It's not enough to only export the include folder for openssl, but for
linking the lib folder is also necessary. Also DEP_OPENSSL_INCLUDE
shouldn't be set directly, because it's set by Cargo itself based
on the output of openssl-sys's build script.

MozReview-Commit-ID: Ijbx7STgCXq
2017-06-02 12:04:54 +02:00
Gregory Szorc b72a814541 Bug 1368057 - Clear terminal footer to end of line, not screen; r=glandium
bz reported that mach output was slow under xterm on Mac. He tracked
this down to the terminal footer clearing until end of screen. It's
likely this is triggering a vsync or repaint or something, as he measured
each line to take 16ms to display.

Changing the clearing operation from "end of screen" to "end of line"
should be a cheaper operation and should speed up terminal writing.

This code has been historically sensitive to change. There's a
non-insignificant risk this will break a terminal configuration. I've
tested this with PuTTY, terminal.app on OS X (including under screen),
and iTerm2.app and it seems to "just work."

MozReview-Commit-ID: C2sYYboksj1
2017-06-01 12:40:56 -07:00
Mike Hommey 53af785446 Bug 1369630 - Fix mach artifact toolchain --from-build after bug 1345863 and bug 1351010. r=gps
The former removed the /opt from the toolchain job names, and the latter
made optimize_task() return a single value.
2017-06-02 15:48:33 +09:00
Carsten "Tomcat" Book 77340b6737 merge mozilla-inbound to mozilla-central a=merge 2017-06-02 14:22:17 +02:00
Wes Kocher d7b6d7562a Merge m-c to inbound, a=merge
MozReview-Commit-ID: 1JFyQ1v7Ldm
2017-06-01 18:41:34 -07:00
Wes Kocher 262e7d84fc Backed out 4 changesets (bug 1365419) for android mochitest failures in test_bug583533.html a=backout
Backed out changeset d82aa6aec2c1 (bug 1365419)
Backed out changeset 9aafdd1ca0bd (bug 1365419)
Backed out changeset 261eecf8497f (bug 1365419)
Backed out changeset 1d9b50fadc05 (bug 1365419)

MozReview-Commit-ID: HkhXf1Dkkbk
2017-06-01 18:39:21 -07:00
Wes Kocher fa2ee75b9f Merge m-c to inbound, a=merge
MozReview-Commit-ID: 5RAH1yS3Ebt
2017-06-01 17:31:41 -07:00
Mike Hommey a52cad3ca1 Bug 1365419 - Fixup l10n packager after bug 780562. r=gps
The change to l10n packager from bug 780562 worked in practice because
no chrome category had exclusively manifest entries with flags, which
we're changing in this bug.

It turns out this was only due to a missing change in the patch for bug
780562.
2017-05-26 11:24:40 +09:00
Mike Hommey 425197c380 Bug 1365419 - Fixup l10n packager after bug 780562. r=gps
The change to l10n packager from bug 780562 worked in practice because
no chrome category had exclusively manifest entries with flags, which
we're changing in this bug.

It turns out this was only due to a missing change in the patch for bug
780562.
2017-05-26 11:24:40 +09:00
Wes Kocher 4cb9c0aa9a Merge m-c to autoland, a=merge
MozReview-Commit-ID: GZPNfYTsjn1
2017-06-01 18:43:48 -07:00
Nathan Froyd 427841417d Bug 1368655 - only download Stylo packages if the user wanted Stylo; r=rillian
DONTBUILD because NPOTB
2017-06-01 19:15:03 -04:00
Gregory Szorc 1dc4d7f5c0 Bug 1359965 - Support and generate tar.gz WPT archive; r=glandium
Several years ago there was a single zip file for all test files. Clients
would only extract the files they needed. Thus, zip was a reasonable
archive format because it allowed direct access to members without
having to decompress the entirety of the stream.

We have since split up that monolithic archive into separate,
domain-specific archives. e.g. 1 archive for mochitests and one
for xpcshell tests. This drastically cut down on network I/O
required on testers because they only fetched archives/data that
was relevant. It also enabled parallel generation of test archives,
we shaved dozens of seconds off builds due to compression being
a long pole.

Despite the architectural changes to test archive management, we
still used zip files. This is not ideal because we no longer access
specific files in test archives and thus don't care about single/partial
member access performance.

This commit implements support for generating tar.gz test archives.
And it switches the web-platform archive to a tar.gz file.

The performance implications for archive generation are significant:

before: 48,321,250 bytes; 6.05s
after:  31,844,267 bytes; 4.57s

The size is reduced because we have a single compression context
so data from 1 file can benefit compression in a subsequent file.
CPU usage is reduced because the compressor has to work less with
1 context than it does with N. While I didn't measure it, decompression
performance should also be improved for the same reasons. And of course
network I/O will be reduced.

mozharness consumers use a generic method for handling unarchiving.
This method automagically handles multiple file extensions. So as long
as downstream consumers aren't hard coding ".zip" this change should
"just work."

MozReview-Commit-ID: LQa5MIHLsms
2017-05-08 17:19:05 -07:00
Gregory Szorc b1b9ec2217 Bug 1359965 - Support mozpack.file.BaseFile in create_tar_from_files; r=glandium
This allows us to write files coming from a finder or other source
that isn't directly the filesystem.

MozReview-Commit-ID: KhPSD0JYzsQ
2017-05-08 17:00:20 -07:00