Commit Graph
4919 Commits
Author SHA1 Message Date
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
Nathan Froyd bf1639d188 Bug 1547196 - remove rustup wrapper from rustc as well as cargo; r=glandium
Having `rustc` be `rustup`'s wrapper for `rustc` means that we may
silently honor `rustup`'s override mechanisms.  We noticed this first on
OS X, where we use the "real" `cargo` but `rustup`'s `rustc` wrapper,
and problems ensued when `cargo` thought it was using one version of
`rustc`, but actually wound up using something different.

It seems better to avoid silently interposing `rustup`'s toolchain
override mechanisms everywhere, rather than having to special-case OS
X.  So let's factor out a general mechanism for removing the wrappers
`rustup` provides and use that for both `rustc` and `cargo`.  The tests
need adjusting because we weren't triggering the unwrapping cases
before; we don't yet test the case where we really do need to unwrap.
That test can be left for a future patch.

Differential Revision: https://phabricator.services.mozilla.com/D29531
2019-05-14 05:43:19 +00:00
Nathan Froyd 7c84e3904e Bug 1550868 - enforce a minimum version of clang-cl; r=glandium
We've not been checking the clang-cl version in use.  This lack of
checking is bad, for a couple of reasons:

* Released versions of clang-cl differ drastically in their robustness;
* Only the most recent version of clang-cl supports aarch64.

We should check for a minimum version of clang-cl, just like our other
supported compilers.  As a bonus, we can then start depending on
features that we know appear in the particular minimum clang-cl
version.  (The current patch is motivated by `/clang:` command-line
support, but one could pick other things.)

Differential Revision: https://phabricator.services.mozilla.com/D30723
2019-05-14 14:22:55 +00:00
Andi-Bogdan Postelnicu c0ed869922 Bug 1503453 - re-enable static-analysis autotest on win64 platform after migrating to clang-tidy 8. r=sylvestre
Also for checker `modernize-avoid-bind` export the respective reliability index from config.yaml

Differential Revision: https://phabricator.services.mozilla.com/D30904
2019-05-14 13:00:13 +00:00
Cosmin Sabou fc220fd8e8 Backed out 2 changesets (bug 1550903) for webrender bustages. a=backout
Backed out changeset fe8d48740511 (bug 1550903)
Backed out changeset cc187a665ccf (bug 1550903)
2019-05-14 08:16:26 +03:00
Bastien Orivel 0cc3873406 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-13 16:07:04 +00:00
Andi-Bogdan Postelnicu 2781613fe4 Bug 1551089 - prevent runnning static analysis on the entire repo when using --fix option. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D30829
2019-05-12 19:39:56 +00:00
Justin Wood d9ae67f5df Bug 1547730 - don't fail on an unsupported .seek() needed to support adding from compressed zipfile.ZipFile entries. r=#build
Differential Revision: https://phabricator.services.mozilla.com/D29216
2019-04-24 22:07:53 -04:00
Jonathan Watt 1ef79442b4 Bug 1549206. Fix the Eclipse CDT index deletion glob pattern to only match the project name. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D30281
2019-04-23 09:37:09 +01:00
Justin Wood 94bd945ca7 Bug 1547730 - Set python test annotations to correspond to currently-passing py3 tests r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28122
2019-04-18 15:52:34 -04:00
Justin Wood fa9b18da7f Bug 1547730 - Finish up some final py3-izing in getting mozjar.py to work in py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28120
2019-04-18 15:21:31 -04:00
Justin Wood 8a198da1f2 Bug 1547730 - Make more of configure/__init__ work in py3 r=#build
(adds __build_class__ to the builtin sandbox and allow CombinedDependsFunction to be hashed)

Differential Revision: https://phabricator.services.mozilla.com/D28114
2019-04-16 12:02:18 -04:00
Justin Wood 711d400cf4 Bug 1547730 - Use six.moves.builtins in the sandbox for configure r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28113
2019-04-15 22:53:41 -04:00
Justin Wood 22fdd01ac8 Bug 1547730 - Use new inspection methods introduced in py3 but work in py2.7 for functions r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28112
2019-04-15 22:53:10 -04:00
Justin Wood 579f8b2ccf Bug 1547730 - Define __hash__ for SandboxDependsFunction and CombinedDependsFunction so we can reference it as a dictionary key in py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28111
2019-04-15 22:09:07 -04:00
Justin Wood 13d023307e Bug 1547730 - Stop using some cases of types.NoneType. r=#build
Differential Revision: https://phabricator.services.mozilla.com/D30966
2019-05-13 15:29:30 -04:00
Justin Wood 0d92be2a1e Bug 1547730 - Recognize StreamWriter exceptions for fileno() in py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28110
2019-04-15 20:57:34 -04:00
Justin Wood 5ee3a9c8ed Bug 1547730 - Use six.moves.reduce for reduce() r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28109
2019-04-15 20:39:47 -04:00
Justin Wood 8486de9f03 Bug 1547730 - Use six.moves for urllib.urlparse r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28108
2019-04-15 16:57:21 -04:00
Justin Wood 1d97905e67 Bug 1547730 - Fix b''.join(rand.choice(bytestring)..) to use bytes() constructor instead r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28107
2019-04-15 15:26:30 -04:00
Justin Wood eb9a869468 Bug 1547730 - Use six.moves.xrange() instead of xrange() r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28106
2019-04-15 14:50:56 -04:00
Justin Wood a8dce015fa Bug 1547730 - Compensate for __builtin__ use in files accessed by py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28105
2019-04-15 14:11:33 -04:00
Justin Wood 68c9663548 Bug 1547730 - Don't try to py3-ize indented_repr yet. r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28103
2019-04-15 11:34:35 -04:00
Justin Wood c424e38c6e Bug 1547730 - don't use py2 builtin 'unicode' in mozpack and deps r=#build
Also adjust 'basestring' usage in some places.

Differential Revision: https://phabricator.services.mozilla.com/D28102
2019-04-16 17:07:08 -04:00
Justin Wood f7093c4149 Bug 1547730 - do s/StringIO.StringIO/six.StringIO/ to support py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28101
2019-04-14 22:18:34 -04:00
Justin Wood 0f762d25fe Bug 1547730 - do py3 for cStringIO r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28100
2019-04-14 21:54:36 -04:00
Justin Wood 33ac018ef1 Bug 1547730 - Do s/StandardError/Exception/ to support py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28099
2019-04-14 21:37:56 -04:00
Justin Wood 4ac5a5adb4 Bug 1547730 - Switch to six.string_types instead of types.StringTypes for py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28098
2019-04-14 21:27:36 -04:00
Justin Wood 35cf3cef93 Bug 1547730 - Allow testing of mozpack on py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28097
2019-04-14 21:19:18 -04:00
Justin Wood b4e9a33aa4 Bug 1547730 - use six.iterkeys() r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28119
2019-04-16 17:11:42 -04:00