Commit Graph
4948 Commits
Author SHA1 Message Date
Justin Wood 854812974f Bug 1547730 - do py3 for cStringIO r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28100
2019-05-28 14:24:47 +00:00
Justin Wood 62e67b5ace Bug 1547730 - Do s/StandardError/Exception/ to support py3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28099
2019-05-28 14:24:40 +00:00
Justin Wood 844f670d33 Bug 1547730 - Switch to six.string_types instead of types.StringTypes for py3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28098
2019-05-28 14:24:27 +00:00
Justin Wood ae19c7bbb7 Bug 1547730 - Allow testing of mozpack on py3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28097
2019-05-28 14:24:14 +00:00
Justin Wood c8a378cbb4 Bug 1547730 - use six.iterkeys() r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28119
2019-05-28 14:24:07 +00:00
Justin Wood dc56d4511f Bug 1547730 - Do six.itervalues instead of dict.itervalues r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28104
2019-05-28 14:23:54 +00:00
Justin Wood 519c0ab0ae Bug 1547730 - Do dict.iteritems() via six to support py3. r=glandium
shellutil.py needed special handling since it is invoked earlier than the
vendor directory adding we do, so it does not have six available.

Differential Revision: https://phabricator.services.mozilla.com/D28096
2019-05-28 14:23:47 +00:00
Justin Wood 1b781944c7 Bug 1542963 - Insert unicode_literals into python/mozbuild/mozpack and called mozbuild/* files. r=firefox-build-system-reviewers,chmanchester
Lint python/mozbuild/{mozbuild,mozpack}.

This makes sure we use byte strings (type(b'')) in many places.
This also has a few places where we know we want unicode, by enforcing it.

This code also has a few places where we call into windows API's which expect either all args to be unicode,
or all args to be bytestrings (not-unicode) so make sure those calls align.

This is the most risky of the stack, since there are some mach commands and codepaths that are neither excercised in automation
nor excercised in tests.

Differential Revision: https://phabricator.services.mozilla.com/D26645
2019-05-28 14:23:25 +00:00
Justin Wood dec88c40d5 Bug 1542963 - use print_function for mozbuild and mozpack. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}.

Differential Revision: https://phabricator.services.mozilla.com/D26644
2019-05-28 14:23:00 +00:00
Justin Wood f616f0c807 Bug 1542963 - Add absolute_imports to mozbuild and mozpack. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}. r=#build

Add 'from __future__ import absolute_import' to all missing files in python/mozbuild/{mozbuild,mozpack}/**/*.py

Differential Revision: https://phabricator.services.mozilla.com/D26643
2019-05-28 14:22:45 +00:00
Justin Wood 51cac68bf0 Bug 1542963 - Fix undefined var 'defines' when use_defines_in_asflags is set. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}.

Differential Revision: https://phabricator.services.mozilla.com/D26642
2019-05-28 14:22:30 +00:00
Justin Wood 4d1f50905c Bug 1542963 - Fix most flake8 issues in python/mozbuild/mozbuild/* r=firefox-build-system-reviewers,chmanchester
Leaving one fix for an explicit review.

Lint python/mozbuild/{mozbuild,mozpack}. r=#build

Differential Revision: https://phabricator.services.mozilla.com/D26641
2019-05-28 14:22:20 +00:00
Justin Wood efc8345dc8 Bug 1542963 - run './mach lint ... --fix' on mozbuild/mozbuild, undoes some black changes. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}.

ran './mach lint -l py2 -l flake8 -l shellcheck -l codespell -l yaml python/mozbuild/{mozbuild,mozpack}/  --fix' in order
to undo some black changes and get closer to  making this folder able to be validated on every lint run

Differential Revision: https://phabricator.services.mozilla.com/D26640
2019-05-28 14:22:00 +00:00
Rok Garbas 1fcacdf1b7 Bug 1548204 - fixing test for raptor-tp6-8 r=rail
Differential Revision: https://phabricator.services.mozilla.com/D30479
2019-05-28 07:44:41 +00:00
Nathan Froyd bf85c45a36 Bug 1542746 - remove code for frontend-based PGO instrumentation; r=dmajor
We're moving to IR-level PGO instrumentation for clang-cl.  We've also
moved to using static linker ordering files, which was the primary
application of the previous style of PGO instrumentation.  We therefore
we no longer need this code.

Differential Revision: https://phabricator.services.mozilla.com/D31134
2019-05-24 20:00:38 +00:00
Myk Melez 628b8020ea Bug 1543829 - include LMDB license in about:license r=mossop,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D30122
2019-05-24 01:25:44 +00:00
Dzmitry Malyshau eb27513dcf Bug 1552549 - Update rand dependency to 0.6 r=kats,froydnj,nika,jkt,jcj
Update rand version in u2fhid and xpcom

Differential Revision: https://phabricator.services.mozilla.com/D31669
2019-05-23 19:54:25 +00:00
Nathan Froyd 4cc540ad5c Bug 1553810 - remove RSSRCS support from the build system; r=nalexander
We used to support specifying single Rust files for compilation,
emphasis on "used to".

Differential Revision: https://phabricator.services.mozilla.com/D32314
2019-05-23 15:20:26 +00:00
Sylvestre Ledru c2446b6046 Bug 1552897 - Ride along: format with black r=ahal
Depends on D31807

Differential Revision: https://phabricator.services.mozilla.com/D31808
2019-05-23 16:44:04 +00:00
Robert Bartlensky 890a001f8d Bug 1552897 - Add support of diff in stylish/mozlint results r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D31807
2019-05-23 16:42:46 +00:00
Nick Alexander 1578397a11 Bug 1533051 - Package greprefs.js and geckoview-prefs.js at architecture-specific paths for Android fat AAR/GeckoView multi-architecture builds. r=glandium
Bug 1533425 makes Gecko try to load from $ARCH/greprefs.js, etc on
Android.  This patch teaches the packager to put certain preferences
into those architecture-specific locations for that code to find.

Differential Revision: https://phabricator.services.mozilla.com/D24984
2019-05-22 18:27:11 +00:00
Nathan Froyd 4967d7395c Bug 1548563 - move symbol file logic into the moz.build frontend; r=firefox-build-system-reviewers,chmanchester
This way compilation backends don't all have to figure out the right way
to handle symbol files.

Differential Revision: https://phabricator.services.mozilla.com/D29673
2019-05-22 13:25:06 +00:00
Ian Neal 35342a478d Bug 1548584 - Bootstrap.py fails on CentOS due to GNOME Software Development not existing - Fix for CentOS 7 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D30828
2019-05-14 10:51:44 +00:00
Cosmin Sabou 931101175e Backed out changeset a10cdf32fb5a (bug 1552549) for causing a spike in xpcshell failures. CLOSED TREE 2019-05-22 02:05:22 +03:00
Dzmitry Malyshau 08f7f348e1 Bug 1552549 - Update rand dependency to 0.6 r=kats,froydnj,nika,jkt,jcj
Update rand version in u2fhid and xpcom

Differential Revision: https://phabricator.services.mozilla.com/D31669
2019-05-21 19:36:56 +00:00
Nathan Froyd 01e4f05295 Bug 1551690 - be more specific about the LLVM target on OS X; r=nalexander
Our current OS X builds use `--target=x86_64-darwin11` (which
corresponds to OS X 10.7).  This target is problematic for two reasons:

* We're actually targeting for OS X 10.9 (`MACOSX_DEPLOYMENT_TARGET`);
* It's slightly different from the default Rust target.

Let's address these problems in reverse order: differences from the Rust
target are bad, because the `--target` we provide to `clang` and the
Rust target find their way into LLVM bitcode files and the linker will
refuse to link together bitcode files that have incompatible targets.

Why are the two incompatible?  The current `--target` doesn't have a
"vendor" in triple-speak, whereas the Rust one has "apple" as the
vendor (`x86_64-apple-darwin`) We therefore need to change the
`--target` we pass to `clang` to have a vendor of "apple".

This need is behind the {init,toolchain}.configure changes,
but it has ramifications elsewhere, because `clang` looks for
`--target`-prefixed build tools.  So we have to change the `--target`
for cctools to get the right tool prefixes and we have to change the
`--target` for building clang ourselves so that *those* builds can find
the newly renamed cctools.

Once we've done, that's really enough; we don't *need to address the
first problem: While the `--target` might be `x86_64-apple-darwin11`,
both `clang` and `rustc` will dynamically choose the target triple that
eventually lands in LLVM bitcode files based on
`MACOSX_DEPLOYMENT_TARGET`, which we set in all builds.  But the current
target is slightly misleading, and the cctools don't need to be prefixed
with a particular Darwin version, since they work for all Darwin
targets.  Let's just drop the "11" from the `--target` and eliminate a
little bit of confusion.

Differential Revision: https://phabricator.services.mozilla.com/D31128
2019-05-21 17:53:44 +00:00
Andreea Pavel 0263bcca5b Backed out changeset ae7096d1add7 (bug 1551690) for toolchain bustages on a CLOSED TREE 2019-05-21 17:05:24 +03:00
Nathan Froyd 166d5472ce Bug 1551690 - be more specific about the LLVM target on OS X; r=nalexander
Our current OS X builds use `--target=x86_64-darwin11` (which
corresponds to OS X 10.7).  This target is problematic for two reasons:

* We're actually targeting for OS X 10.9 (`MACOSX_DEPLOYMENT_TARGET`);
* It's slightly different from the default Rust target.

Let's address these problems in reverse order: differences from the Rust
target are bad, because the `--target` we provide to `clang` and the
Rust target find their way into LLVM bitcode files and the linker will
refuse to link together bitcode files that have incompatible targets.

Why are the two incompatible?  The current `--target` doesn't have a
"vendor" in triple-speak, whereas the Rust one has "apple" as the
vendor (`x86_64-apple-darwin`) We therefore need to change the
`--target` we pass to `clang` to have a vendor of "apple".

This need is behind the {init,toolchain}.configure changes,
but it has ramifications elsewhere, because `clang` looks for
`--target`-prefixed build tools.  So we have to change the `--target`
for cctools to get the right tool prefixes and we have to change the
`--target` for building clang ourselves so that *those* builds can find
the newly renamed cctools.

Once we've done, that's really enough; we don't *need to address the
first problem: While the `--target` might be `x86_64-apple-darwin11`,
both `clang` and `rustc` will dynamically choose the target triple that
eventually lands in LLVM bitcode files based on
`MACOSX_DEPLOYMENT_TARGET`, which we set in all builds.  But the current
target is slightly misleading, and the cctools don't need to be prefixed
with a particular Darwin version, since they work for all Darwin
targets.  Let's just drop the "11" from the `--target` and eliminate a
little bit of confusion.

Differential Revision: https://phabricator.services.mozilla.com/D31128
2019-05-21 13:48:23 +00:00
Coroiu Cristina 01743811df Backed out changeset 2e560a9e4bcf (bug 1551690) for build bustages 2019-05-21 03:51:56 +03:00
Mike Shal 2441b3fda3 Bug 1552672 - Use is_tarfile() rather than is_zipfile() in mar repackaging; r=Callek
The zipfile.is_zipfile() function is overly lenient, in that non-zip
files that contain the four bytes "PK\005\006" near the end of the file
are reported as zip files even if the zip structure is not valid.
Occasionally, our target.tar.bz2 files randomly contain those 4 bytes at
the expected location, which causes the mar repackaging code to try to
process the package as a zip file instead of a tar file.

The tarfile.is_tarfile() logic looks a little more robust in that it
actually tries to open the file, so if we try tar first before falling
back to zip we should be a little more resilient.

Differential Revision: https://phabricator.services.mozilla.com/D31908
2019-05-21 00:19:47 +00:00
Nathan Froyd 5cb73c3181 Bug 1551690 - be more specific about the LLVM target on OS X; r=nalexander
Our current OS X builds use `--target=x86_64-darwin11` (which
corresponds to OS X 10.7).  This target is problematic for two reasons:

* We're actually targeting for OS X 10.9 (`MACOSX_DEPLOYMENT_TARGET`);
* It's slightly different from the default Rust target.

Let's address these problems in reverse order: differences from the Rust
target are bad, because the `--target` we provide to `clang` and the
Rust target find their way into LLVM bitcode files and the linker will
refuse to link together bitcode files that have incompatible targets.

Why are the two incompatible?  The current `--target` doesn't have a
"vendor" in triple-speak, whereas the Rust one has "apple" as the
vendor (`x86_64-apple-darwin`) We therefore need to change the
`--target` we pass to `clang` to have a vendor of "apple".

This need is behind the {init,toolchain}.configure changes,
but it has ramifications elsewhere, because `clang` looks for
`--target`-prefixed build tools.  So we have to change the `--target`
for cctools to get the right tool prefixes and we have to change the
`--target` for building clang ourselves so that *those* builds can find
the newly renamed cctools.

Once we've done, that's really enough; we don't *need to address the
first problem: While the `--target` might be `x86_64-apple-darwin11`,
both `clang` and `rustc` will dynamically choose the target triple that
eventually lands in LLVM bitcode files based on
`MACOSX_DEPLOYMENT_TARGET`, which we set in all builds.  But the current
target is slightly misleading, and the cctools don't need to be prefixed
with a particular Darwin version, since they work for all Darwin
targets.  Let's just drop the "11" from the `--target` and eliminate a
little bit of confusion.

Differential Revision: https://phabricator.services.mozilla.com/D31128
2019-05-15 21:13:17 +00:00
b4hand cec3d62873 Bug 1532607 - Add configuration to run telemetry tests directly; r=raphael,ahal
Differential Revision: https://phabricator.services.mozilla.com/D30663
2019-05-20 08:59:56 +00:00
Bastien Orivel 27c4223ed0 Bug 1550903 - Part 2: Revendor dependencies. r=emilio,kats,froydnj
It was unhappy about the new LICENSE (fuchsia-cprng) but it's the same
as the other fuschia crates. Since I don't think this is used at build
time but has the same license as the other fuschia crates, I put it in
the RUNTIME_LICENSE_PACKAGE_WHITELIST list. I also removed sha1 from
that list as it's not used anymore

Differential Revision: https://phabricator.services.mozilla.com/D30746
2019-05-18 13:39:31 +00:00
Nick Alexander 501ee77c18 Bug 1521996 - Part 2: Specialize mach {run,install} for Android. r=ahal,gbrown
This just separates out the Android definitions into
mobile/android/mach_commands.py.  There was vestigial support for
running on Android with debuggers, but it was for wiring up JimDB,
which is no longer supported and in fact hasn't worked on actual
devices for a very long time.  (The new flow for running on Android
under a debugger goes through the Android Studio hybrid debugger.)

Differential Revision: https://phabricator.services.mozilla.com/D18291
2019-05-17 21:40:15 +00:00
Nick Alexander 33d39b18d4 Bug 1521996 - Part 1: Add conditional_name to mach @Command definition. r=ahal
We want `mach run` for Android to be wildly different than `mach run`
for Desktop.  But right now, mach really doesn't support two different
implementations of the same underlying named command.  The avenues
that might support different implementations, mostly run through
`conditions`.

`conditions` were added to mach commands in Bug 901972, and never
really anticipated this use case: commands are keyed by name condition
evaluation is delayed until dispatch-time.  In order to have different
commands with the same name, and have full support for `--help`,
command matching, suggestions, etc, we really need conditions to
evaluate at parse-time.  Indeed, since Bug 901972 landed, we've moved
context creation earlier in the dispatch flow and hacked in things
that look like parse-time conditions (see Bug 1291335 and Bug
1305695).

This approach is not the prettiest, but it handles this narrow
use-case -- making `mach run` and `mach install` different on Android
-- without much code churn.

Differential Revision: https://phabricator.services.mozilla.com/D18290
2019-05-17 21:39:31 +00:00
Mihai Alexandru Michis 81986bdc55 Merge mozilla-central to autoland. CLOSED TREE 2019-05-17 12:36:07 +03:00
Narcis Beleuzu 991003d3a7 Backed out 6 changesets (bug 1542963) for causing Bug 1552400. a=backout
Backed out changeset 70fbe1a158ae (bug 1542963)
Backed out changeset a1a84e0feabb (bug 1542963)
Backed out changeset 14aa1bd254a4 (bug 1542963)
Backed out changeset 11a714f491d5 (bug 1542963)
Backed out changeset 2715bac40d2f (bug 1542963)
Backed out changeset 8f69c7eeb6fd (bug 1542963)
2019-05-17 11:30:27 +03:00
Narcis Beleuzu ed2ade8c00 Backed out changeset 0883716b330e (bug 1532607) for conflicting with the backout of Bug 1542963. a=backout 2019-05-17 11:27:16 +03:00
Narcis Beleuzu 92c0f3e8cd Backed out changeset 3d88030030a1 (bug 1542963) for conflicts on backing out Bug 1542963 . a=backout 2019-05-17 11:26:44 +03:00
Csoregi Natalia 8507a89cd4 Bug 1542963 - Fix linting f8 failure. r=tomprince a=fix
Reviewers: tomprince

Reviewed By: tomprince

Bug #: 1542963

Differential Revision: https://phabricator.services.mozilla.com/D31551
2019-05-17 02:06:57 +03:00
Csoregi Natalia 7194646fdb Merge inbound to mozilla-central. a=merge 2019-05-17 00:55:45 +03:00
Chris Manchester d77674a995 Bug 1552336 - Download the currently available toolchain build of sccache during |./mach bootstrap|. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D31544
2019-05-16 23:26:57 +00:00
arthur.iakab 0333946207 Backed out 2 changesets (bug 1550903) for causing multiple build bustages CLOSED TREE
Backed out changeset d62be51ffad3 (bug 1550903)
Backed out changeset f48939dc27b6 (bug 1550903)
2019-05-17 03:24:33 +03:00
Bastien Orivel 14fba62793 Bug 1550903 - Part 2: Revendor dependencies. r=emilio,kats,froydnj
It was unhappy about the new LICENSE (fuchsia-cprng) but it's the same
as the other fuschia crates. Since I don't think this is used at build
time but has the same license as the other fuschia crates, I put it in
the RUNTIME_LICENSE_PACKAGE_WHITELIST list. I also removed sha1 from
that list as it's not used anymore

Differential Revision: https://phabricator.services.mozilla.com/D30746
2019-05-15 17:40:17 +00:00
Csoregi Natalia 379ef95152 Backed out 27 changesets (bug 1542963, bug 1547730) on request from Callek for DWE fails. CLOSED TREE
Backed out changeset 9e9c2e06d0fb (bug 1547730)
Backed out changeset d282ddabcb3d (bug 1547730)
Backed out changeset 3df19a96f8ac (bug 1547730)
Backed out changeset 27ff9602d80a (bug 1547730)
Backed out changeset 48f2c4980ad0 (bug 1547730)
Backed out changeset cef492de6a7f (bug 1547730)
Backed out changeset 59a1393697e0 (bug 1547730)
Backed out changeset 61b8fcc639e0 (bug 1547730)
Backed out changeset 2d6ba80390c8 (bug 1547730)
Backed out changeset 75879e53727c (bug 1547730)
Backed out changeset 03bdcaab1623 (bug 1547730)
Backed out changeset 6c9f98dacbde (bug 1547730)
Backed out changeset 3037f5bf1019 (bug 1547730)
Backed out changeset 3df74540bde3 (bug 1547730)
Backed out changeset 1891cfbb55d1 (bug 1547730)
Backed out changeset 16b1c53aba9d (bug 1547730)
Backed out changeset b7b1062d0aad (bug 1547730)
Backed out changeset aa2acfd554fc (bug 1547730)
Backed out changeset fa39fb43fd12 (bug 1547730)
Backed out changeset 35e2dc6ad347 (bug 1547730)
Backed out changeset 1b766ee6bf23 (bug 1547730)
Backed out changeset c846bf431b5c (bug 1547730)
Backed out changeset 042cdcc4e103 (bug 1547730)
Backed out changeset 81bc9014907e (bug 1547730)
Backed out changeset afa5801534e4 (bug 1547730)
Backed out changeset b4e024474194 (bug 1547730)
Backed out changeset 5f3c10562df3 (bug 1542963)
2019-05-16 20:17:46 +03:00
b4hand 749a355a94 Bug 1532607 - Add configuration to run telemetry tests directly; r=raphael,ahal
Differential Revision: https://phabricator.services.mozilla.com/D30663
2019-05-16 14:40:13 +00:00
Francesco Lodolo (:flod) e9fd01e47c Bug 1552094 - Remove Fluent migration recipes for Firefox 67 r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D31391
2019-05-16 09:09:45 +00:00
Valentin Gosu 2edb174c9e Bug 1540656 - Use dns-packet node module in test_trr.js r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D25671
2019-05-16 06:22:06 +00:00
Mark Banner 3003cbb066 Bug 1551551 - Fix tooltool.py use of print in its dump function. r=ahal
Depends on D31075

Differential Revision: https://phabricator.services.mozilla.com/D31076
2019-05-15 14:34:53 +00:00
Emilio Cobos Álvarez 44dcfd2cf3 Bug 1549762 - Don't build mozglue linker tests if building with icecream. r=glandium
As icecream doesn't deal well with .incbin.

Differential Revision: https://phabricator.services.mozilla.com/D30951
2019-05-15 13:40:23 +00:00