Commit Graph
4895 Commits
Author SHA1 Message Date
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
Justin Wood 8b1fdcf978 Bug 1547730 - Do six.itervalues instead of dict.itervalues r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28104
2019-04-15 13:47:38 -04:00
Justin Wood 896c5cc279 Bug 1547730 - Do dict.iteritems() via six to support py3. r=#build
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-04-15 11:48:03 -04:00
Justin Wood ab3ffc8b20 Bug 1542963 - Insert unicode_literals into python/mozbuild/mozpack and called mozbuild/* files. r=#build
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-04-08 15:20:45 -04:00
Justin Wood 11f1d0e30e Bug 1542963 - use print_function for mozbuild and mozpack. r=#build
Lint python/mozbuild/{mozbuild,mozpack}.

Differential Revision: https://phabricator.services.mozilla.com/D26644
2019-04-08 10:29:43 -04:00
Justin Wood 15c792c908 Bug 1542963 - Add absolute_imports to mozbuild and mozpack. r=#build
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-04-08 09:29:44 -04:00
Justin Wood aded80aaa0 Bug 1542963 - Fix undefined var 'defines' when use_defines_in_asflags is set. r=#build
Lint python/mozbuild/{mozbuild,mozpack}.

Differential Revision: https://phabricator.services.mozilla.com/D26642
2019-04-07 15:40:55 -04:00
Justin Wood 2865669e0e Bug 1542963 - Fix most flake8 issues in python/mozbuild/mozbuild/* r=#build
Leaving one fix for an explicit review.

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

Differential Revision: https://phabricator.services.mozilla.com/D26641
2019-04-07 15:39:24 -04:00
Justin Wood 474ce9bc86 Bug 1542963 - run './mach lint ... --fix' on mozbuild/mozbuild, undoes some black changes. r=#build
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-04-24 22:12:09 -04: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
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
shindli 2220426ada Merge inbound to mozilla-central. a=merge 2019-05-07 12:46:42 +03:00
Manish Goregaokar 925105dce0 Bug 1549636: use uuid4() in mach; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D30147
2019-05-07 02:34:53 +00:00
Alexis Beingessner c4247e2689 Bug 1525402 - Bump cargo-vendor to 0.1.23. r=kats
0.1.21 mishandles cargo package renames, which are a required
feature for Rust 2018 support. The latest version fixes this.

Differential Revision: https://phabricator.services.mozilla.com/D29946
2019-05-07 01:40:17 +00:00
Nick Alexander f3821eab2d Bug 1543247 - Part 2: Install visualmetrics.py prerequisites. r=ahal
Under the hood, browsertime invokes a certain `visualmetrics.py`
script.  That script depends on `ffmpeg` and ImageMagick's `convert`,
`compare`, and `mogrify` commands.  It also depends on certain Python
packages.

So this installs those dependencies, and then wires up the evaluation
environment such that `./mach browsertime` can find the dependencies.
It also adds a `./mach visualmetrics` command for processing a
captured MP4 file in the same way that browsertime processes such a
file.

In order to avoid downloading dependencies multiple time, the existing
artifact cache is extracted.  This is a small first step towards [Bug
1526021](https://bugzilla.mozilla.org/show_bug.cgi?id=1526021), which
might want to use this artifact cache as well.

At this time, hashes and filesizes are not verified.  During
development, the upstream files changed multiple times, and it's not
worth being completely locked down while experimenting with this
functionality.  If we start running this code in automation or in more
sensitive environments, we can build fetch tasks and TC indexes to
streamline the artifact gathering process.

It is expected that a future mach command will want to invoke
browsertime without suffering the overhead of invoking Python (and
mach, which is itself bulky) so a nod is given to exposing the
relevant environment pieces.

During testing, it was discovered that [MozillaBuild doesn't ship
git](https://bugzilla.mozilla.org/show_bug.cgi?id=1503028), so that
git repositories can't be used out-of-the-box on Windows.  So instead
we use a [tarball link from github.com/$USER/$REPO/tarball/$COMMIT-LIKE](https://github.blog/2008-03-03-tarball-downloads/).

Differential Revision: https://phabricator.services.mozilla.com/D29442
2019-05-06 23:56:59 +00:00
Chris Manchester e7ce91d840 Bug 1549538 - Fix win64 artifact builds based on inbound. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D30115
2019-05-06 21:05:52 +00:00
Geoff Lankow fc2dfa3b5e Bug 1444220 - Extend artifact builds to include Thunderbird. r=glandium 2019-05-02 15:14:25 +12:00
Jonathan Watt c39e80feea Bug 1549206. Fix Eclipse CDT project generation to automatically run the indexer on first run. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D29965
2019-04-21 15:59:31 +01:00
Geoff Brown d3f0981fd9 Bug 1548555 - For android gtest, push support files to device; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D29837
2019-05-03 17:45:21 +00:00
Dan Minor cf1f15c33c Bug 1540760 - Make it possible to use clang-cl as an assembler; r=firefox-build-system-reviewers,mshal
Some media libraries use gas syntax in their assembly files. Rather than
converting these arm assembly syntax files for aarch64, we can use clang-cl
to build them directly.

Differential Revision: https://phabricator.services.mozilla.com/D27785
2019-05-01 15:04:48 +00:00
Bastien Abadie fc5e9684ad Bug 1548502 - Export clang-format diff in source-test-clang-format, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D29662
2019-05-02 15:19:13 +00:00
Chris Manchester e1b4763346 Bug 1547380 - Reject attempts to run the rusttests command from artifact builds. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D29436
2019-04-30 23:03:14 +00:00
Mike Hommey 123cfa371f Bug 1536543 - Require rust 1.34. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D25896
2019-04-30 22:16:11 +00:00
Rok Garbas 1210d2ac62 Bug 1533330 - Update tooltool.py with optional support of taskcluster auth tokens r=rail
With this change tooltool.py also supports taskcluster credentials to be passed
(in json format) to --authentication-file option. RelengAPI tokens are still
working with this patch, just additional authentication is added.

Differential Revision: https://phabricator.services.mozilla.com/D27881
2019-04-24 13:41:46 +00:00
Panagiotis Astithas 41a0f48108 Bug 1545161 - Switch bootstrap for android to AdoptOpenJDK8. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D29286
2019-04-29 23:58:13 +00:00
Mike Shal 29c0fc0545 Bug 1541818 - Remove atime check on mac; r=froydnj
The noatime option doesn't appear to have a significant impact on no-op
build times, even though the build system does a significant number of
file reads. Since macs have atime enabled by default, we should just
disable this check rather than give developers unhelpful error messages.

Differential Revision: https://phabricator.services.mozilla.com/D28906
2019-04-26 13:47:33 +00:00
Mike Hommey 2bc9dbd979 Bug 1546870 - Make extracting .tar.xz work with mach artifact toolchain. r=froydnj
For some reason, using `tar -Jxf` with Windows paths fails, and that makes
`mach artifact toolchain` unable to pull .tar.xz archives on Windows.

However, executing `xz -d -c` works, and we can feed its output to
python's tarfile.

Differential Revision: https://phabricator.services.mozilla.com/D28779
2019-04-27 21:56:47 +00:00