Commit Graph
5079 Commits
Author SHA1 Message Date
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
Mike Shal 3de8100fca Bug 1319226 - Process JARManifests in the tup backend; r=chmanchester
The JARManifests are relatively straightforward since they can be
converted into FinalTargetFiles by _consume_jar_manifest(). Since these
can contain RenamedSourcePaths, we no longer assert an error for those.
The main difference is that some JARManifests can result in
preprocessing .css files, which use a different marker than the default.

The two odd cases are bookmarks.html.in and buildconfig.html. The first
relies on an l10n define in a Makefile, while the latter needs CXXFLAGS.
The faster make backend works around these by defining
BOOKMARKS_INCLUDE_DIR to the en-US version, and skips the CXXFLAGS case
by defining BUILD_FASTER=1, so that is what the tup backend does for now
as well.

MozReview-Commit-ID: LlmNjQ2g40j
2017-05-26 10:43:31 -04:00
Mike Shal 8cb0d430ec Bug 1319226 - allow symlinks to point to files with a different basename; r=chmanchester
Some jar.mn files create symlinks with a different name than the file
they point to. The tup backend should support this by using the object's
target_basename as the destination filename.

MozReview-Commit-ID: IB4moXA7KWH
2017-05-24 15:41:40 -04:00
Chris Manchester 4e0be47681 Bug 1367852 - Defer file read to reduce peak memory use in mozjar when dumping symbols. r=ted
Passing a file object intead of a string of the file's contents defers reading
the file to a place Python can free the resulting string earlier, reducing
peak memory consumption when packaging symbols and avoiding a MemoryError on
Windows 32 builders in automation.


MozReview-Commit-ID: H0R6BbjwhOu
2017-05-30 12:11:21 -07:00
Nick Alexander 7720ace783 Bug 1365089 - Pre: Support setting default keyfile locations in moz.configure. r=nalexander
MozReview-Commit-ID: 207kgPU2TPM
2017-05-19 11:30:26 -07:00
Sebastian Hengst 79191790bd merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CEadD9RweN4
2017-05-27 10:00:59 +02:00
Nathan Froyd 4b4ff55324 Bug 1368099 - part 2- quote suggested Stylo paths on Windows; r=rillian
We install the tooltool packages to ${HOME}/.mozbuild by default, and
${HOME} may have spaces on Windows.  The arguments to the command-line
options need to be quoted appropriately.

DONTBUILD because NPOTB
2017-05-26 22:36:35 -04:00
Nathan Froyd b18154e6bb Bug 1368099 - part 1 - provide the correct --with-libclang-path suggestions; r=rillian
libclang.dll lives in the bin/ directory, not the lib/ directory.
2017-05-26 22:36:35 -04:00
Nathan Froyd 1a6402e9ae Bug 1364588 - part 5 - pass the checkout_root down to stylo package installation; r=rillian
This change ensures that when we're running bootstrap in standalone
mode, we find the correct mach to invoke.

DONTBUILD because NPOTB
2017-05-26 16:07:01 -04:00
Nathan Froyd 7cb6629539 Bug 1364588 - part 4 - compute the firefox checkout root; r=rillian
We'll need this information to be able to locate mach later, since we
can't assume that mach is just several directories above the script
we're currently running.
2017-05-26 16:07:01 -04:00
Nathan Froyd f3539ba4a4 Bug 1364588 - part 3 - check for a clone before installing Stylo packages; r=rillian
If we're running bootstrap from inside a mozilla-central checkout, we'll
have all the necessary files that we need to install tooltool packages
via `mach artifact toolchain`.  If we're running bootstrap from a
downloaded bootstrap.py, however, it's possible that we failed to clone
the repository.  We need to account for that situation and provide
instructions on how to deal with it.

A consequence of these two mechanisms for bootstrap is that we'll have
to make sure we're invoking `mach artifact toolchain` correctly in both
cases, which we'll handle in subsequent commits.
2017-05-26 16:07:01 -04:00
Nathan Froyd 8838371cc9 Bug 1364588 - part 2 - move Stylo package installation; r=rillian
Now that we're installing Stylo packages through `mach`, we need to have
`mach` available, which is only true after we've checked for a clone of
the tree.  We move the block performing the installation in this commit
and then fixup resulting problems in future commits.
2017-05-26 16:07:01 -04:00
Nathan Froyd 9741180197 Bug 1364588 - part 1 - use `mach artifact toolchain' to download clang Stylo packages; r=rillian
Using this command is more robust than our current method, and brings
several benefits, such as smart caching of the downloaded toolchain.  We
change the clang package downloaded for Windows with this change, but
bindgen has been updated to work well with LLVM 5.0, so there should be
no problems.
2017-05-26 16:07:01 -04:00
Gregory Szorc a4f21d466a Bug 1367834 - Suppress compiler warnings for 3rd party projects; r=froydnj
Most complaints about compiler warnings being printed at the end of the
build (4abe611696ab - bug 1360764) center around the volume. And most
of the volume is due to 3rd party projects. Since work to suppress the
warnings in 3rd party projects has been slow, let's temporarily filter
out those warnings.

This commit adds a list of suppressed directories corresponding to
3rd party projects responsible for most compiler warnings. For
non-automation builds, we don't print the warnings. Instead, we
print a summary of how many warnings were suppressed.

Not all 3rd party projects were listed. The intent is to only list the
high volume ones so the warnings list is reasonable by default. I
believe the current implementation achieves that. But I wouldn't
be surprised if it requires refinement. Perfect is the enemy of good.

MozReview-Commit-ID: ExDRidsHROC
2017-05-25 11:51:46 -07:00
Ryan VanderMeulen 4caa0ac712 Merge autoland to m-c. a=merge 2017-05-25 16:31:52 -04:00
Justin Wood eab364b0ca Backed out changeset d10f5ccd882b, for Nightly bustage from Bug 1359965 c#29
MozReview-Commit-ID: 6ddN0Y55Bsk
2017-05-25 09:08:54 -04:00
Justin Wood cc3e9d6063 Backed out changeset a872303fd084, for Nightly bustage from Bug 1359965 c#29
MozReview-Commit-ID: K06A4HcRM6K
2017-05-25 09:02:54 -04:00
Ryan VanderMeulen b5f889df59 Merge inbound to m-c. a=merge 2017-05-24 20:45:23 -04:00
Andreas Tolfsen ab3952be62 Bug 1340637 - Provide build rules for geckodriver; r=jgraham,ted
geckodriver is the Mozilla implementation of the WebDriver remote
control interface for Gecko, and provides an HTTPD proxy that
translates the WebDriver protocol to Marionette.

Building this as part of the Firefox build will allow us to run
WPT WebDriver tests to verify our implementation of Marionette and
geckodriver.  It also makes it less painful to make changes across
projects.

This change will cause the geckodriver program to be built as part
of regular Firefox builds, except on macOS and Android, and when artifact
builds are enabled.

RUST_PROGRAMS in cross-compile environments cause the wrong linker to
be used.  When this bug is fixed, we should be able to enable building
of geckodriver on macOS.  This work is tracked in:

	https://bugzilla.mozilla.org/show_bug.cgi?id=1329737

On Android, we may one to build a binary for the host system to use
(x86_64), instead of an ARM binary for the emulator.

MozReview-Commit-ID: FG5tmPv4iut
2017-05-23 14:55:54 +01:00
Nathan Froyd 3f2c34aca0 Bug 1367405 - only print warning summary for successful builds; r=gps
If we had an unsuccessful build, then duplicating the warnings at the
end of the compilation job would just be burying the actual error in a
blizzard of noise.
2017-05-24 16:49:11 -04:00
Gregory Szorc dfd140f6d6 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 39326e6e3a 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
Ryan VanderMeulen ae45e65dc0 Merge autoland to m-c. a=merge 2017-05-23 18:01:59 -04:00
Wes Kocher 42c6d673e4 Backed out 2 changesets (bug 1359965) for likely breaking tc nightlies a=backout
Backed out changeset a0e257e346cc (bug 1359965)
Backed out changeset ae8bce278626 (bug 1359965)

MozReview-Commit-ID: 9rGpv7CFofi
2017-05-23 12:55:35 -07:00
Mike Hommey f6915484f2 Bug 1366729 - Skip manifest entries that are packaged twice. r=gps 2017-05-23 08:00:15 +09:00
Mike Hommey 655623f982 Bug 1366729 - Properly handle "multi-content" manifest entries after bug 1366169. r=gps
Some manifest entries (e.g. skin or locale) have an attached identifier,
and there can be different entries with different identifiers for the
same chrome name. The change from bug 1366169 would consider those as
errors, while they are the expected configuration.
2017-05-23 07:51:22 +09:00
Gregory Szorc 864fb67f64 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 68b108955f 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
Gregory Szorc e6e688b35f Bug 1361172 - Rewrite code for finding files in VCS checkout; r=glandium
We're getting an intermittent failure running `hg manifest` in CI. I
have no clue why.

What I do know is that we now have the mozversioncontrol Python package
for containing utility code for interacting with version control. It is
slightly more robust and I'm willing to support it more than I am
check_utils.py.

This commit adds a new API to our abstract repository class to obtain the
files in the working directory by querying version control.

Since I suspect cwd was coming into play in automation, I've also
added a utility function to mozversioncontrol to attempt to find
a version control checkout from the current working directory. It
simply traces ancestor paths looking for a .hg or .git directory.

Finally, I've ported all callers of the now-deleted API to the new
one. The old code had some "../.." paths in it, meaning it only
worked when cwd was just right. Since we resolve the absolute path
to the checkout and store it on the repo object, I've updated the
code so it should work no matter what cwd is as long as a repo can
be found. I'm not 100% confident I found all consumers assuming cwd.
But it's a start.

I'm not 100% confident this will fix the intermittent issues in CI. But
at least we should get a better error message and at least we'll be
running less hacky code.

MozReview-Commit-ID: AmCraHXcTEX
2017-05-18 16:06:49 -07:00
Xidorn Quan 5ec2864d6f Bug 1366542 - Bump required version of Rust to 1.17.0. r=mshal
MozReview-Commit-ID: Bgz6etF2vR2
2017-05-21 11:48:33 +10:00
Mike Shal e35b5b30d5 Bug 1365722 - Move application.ini processing out to a separate file; r=cmanchester+432261
Windows repackaging for complete mar files will also need to pull a
different value out of the application.ini file, so this code should be
shareable.

MozReview-Commit-ID: CzCoNRYcBPX
2017-05-04 16:13:55 -04:00
Mike Shal f0767ecd9d Bug 1365722 - Use correct permission bits in chmod; r=cmanchester+432261
The chmod permissions need to be in octal format to get the expected
permissions settings. This only seems to affect the output if we run the
repackaging command on Linux, but it should still be fixed.

MozReview-Commit-ID: to4v7dkSBl
2017-05-03 12:37:49 -04:00
Mike Shal 5be0597f35 Bug 1365722 - Rename 7z_exe_* to exe_7z_*; r=cmanchester+432261
Python can run these files with 'python -m 7z_exe_foo', but using
'import 7z_exe_foo' is not allowed because the module begins with a
number.

See also: https://stackoverflow.com/a/17487228

MozReview-Commit-ID: 97iDdXlZJ1a
2017-05-22 14:26:44 -04:00
Mike Shal 5517eb4688 Bug 1365722 - Move repackage_dmg into a repackaging/ directory; r=cmanchester+432261
It makes more sense to have the repackage commands in a separate
directory, since Windows repackaging will add several new types.

MozReview-Commit-ID: 1wA7F7k4NXf
2017-05-02 15:18:51 -04:00
Shing Lyu 168621aef7 Bug 1361645 - Change reftest condition stylo to styloVsGecko r=dbaron
MozReview-Commit-ID: 3ekoU1zg8xA
2017-05-25 11:26:12 +08:00
Chris Manchester 19c3abf9a4 Bug 1367735 - Do not attempt to generate or install headers or other compile related files during artifact builds. r=mshal
This patch stops GENERATED_FILES from being run during export for artifact
builds and prevents EXPORTS from being processed because some of these will
depend on generated headers.

MozReview-Commit-ID: BHZBFbVHwPT
2017-05-25 15:17:23 -07:00