Commit Graph
5079 Commits
Author SHA1 Message Date
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
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
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
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
Kartikaya Gupta 5a16582d83 Bug 1542826 - Add BSD-3-Clause license to about:license and whitelist sha1 which uses it. r=froydnj,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D28355
2019-04-25 19:29:07 +00:00
Andi-Bogdan Postelnicu 1dc665c504 Bug 1545778 - Consume all translation units when doing coverity integration. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D28468
2019-04-24 15:51:32 +00:00
Christian Frey c9adc00030 Bug 1544501 - Convert the ToolbarContextMenu to use strings from Fluent r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D28281
2019-04-24 10:49:15 +00:00
Cosmin Sabou 3a00e7fc27 Backed out changeset d99a232c3dd4 (bug 1533330) for causing build bustages. CLOSED TREE 2019-04-24 13:20:12 +03:00
Rok Garbas 32758407f1 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 09:16:27 +00:00
Ciure Andrei fc6d68a974 Merge inbound to mozilla-central. a=merge 2019-04-24 01:15:47 +03:00
Andi-Bogdan Postelnicu 30cfd7fd12 Bug 1544208 - inform the user who tries to use mach static-analysis check ... of when there are no files eligible for analysis. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D28032
2019-04-23 10:01:12 +00:00
Geoff Brown 7902826ac1 Bug 1318091 - Support |mach gtest| for android; r=bc
Add basic support for 'mach gtest' on Android.
Handling of Android-only and desktop-only options is awkward; I hope to
re-visit this after bug 1519369.

Differential Revision: https://phabricator.services.mozilla.com/D28129
2019-04-22 15:55:23 +00:00
Andi-Bogdan Postelnicu ecdbb4016f Bug 1544764 - Add description at review phase about defects found - clang-tidy. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D27669
2019-04-18 08:49:52 +00:00
Andi-Bogdan Postelnicu 3f55266253 Bug 1544767 - Add description at review phase about defects found - coverity. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D27876
2019-04-18 08:52:31 +00:00
Rob Wu 002bced727 Bug 1544981 - Stop tapping caskroom/versions in bootstrap for macOS r=nalexander
`caskroom/versions` was replaced with `homebrew/cask-versions` in 2018.
Tap `caskroom/versions` instead of the old one.

If you have two taps, remove the old one using:

    brew untap caskroom/versions

Differential Revision: https://phabricator.services.mozilla.com/D27839
2019-04-18 18:39:31 +00:00
Csoregi Natalia d354711aa4 Backed out changeset 7cefdbb63711 (bug 1544764) for static-analysis bustage on clang-analyzer-deadcode.DeadStores.cpp. CLOSED TREE 2019-04-18 00:33:29 +03:00
Andi-Bogdan Postelnicu 1dfca50583 Bug 1544764 - Add description at review phase about defects found - clang-tidy. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D27669
2019-04-17 16:16:42 +00:00
Sylvestre Ledru 16d16e92f3 Bug 1544797 - clang-format: Use the topsrcdir to generate the paths instead of the pwd r=andi
If the user runs mach clang-format from the builddir, it was finding and using
unified files.

Differential Revision: https://phabricator.services.mozilla.com/D27750
2019-04-16 17:38:24 +00:00
Christian Frey 94c0fa6cd8 Bug 1523757 - Convert panelUI.inc.xul to Fluent r=flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D26447
2019-04-15 18:10:46 +00:00
Mike Shal c8022782a2 Bug 1543663 - Create an empty config.status for TestManifestBackend; r=chmanchester
The TestManifestBackend always has a dependency on config.status, even
if configure hasn't been run yet. If configure is run later, this is
intended to cause the TestManifestBackend to be regenerated so that it
can use the configured values instead of a potentially incomplete setup.

Mozbuild's backend_out_of_date() logic treats a missing file as always
being out of date, which means if configure hasn't run, the
TestManifestBackend will always be regenerated.

Instead we can create a stub config.status file that will fix the
out-of-date check, and can be treated as a
BuildEnvironmentNotFoundException as if the file didn't exist at all.

Differential Revision: https://phabricator.services.mozilla.com/D27195
2019-04-12 23:02:56 +00:00