Commit Graph
5106 Commits
Author SHA1 Message Date
Andrew Halberstadt 4dc545ec34 Bug 1568277 - [taskgraph] Split optimize strategies out into a separate file r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D40203
2019-08-16 14:25:47 +00:00
Andreas Tolfsen 386393b8bb bug 1540655: mozbuild: add puppeteer test flavor; r=firefox-build-system-reviewers,chmanchester
The Puppeteer test flavour are functional tests for the CDP-based
Puppeteer library from Google, that we want to run against our
implementation of CDP for Firefox.

They are distinct from the Firefox Puppeteer tests based on Marionette.

Differential Revision: https://phabricator.services.mozilla.com/D37012
2019-08-16 12:58:19 +00:00
Mike Hommey 9711e14288 Bug 1573435 - Use toolchain fetches for source-test builds. r=nalexander
While here, use GECKO_PATH instead of $HOME/checkouts/gecko.

Differential Revision: https://phabricator.services.mozilla.com/D41889
2019-08-15 11:21:51 +09:00
Ciure Andrei 46d4171cde Backed out 11 changesets (bug 1540655) for test_resolve.py perma failures CLOSED TREE
Backed out changeset 1a23d770d8a1 (bug 1540655)
Backed out changeset 641a7cb25298 (bug 1540655)
Backed out changeset 73236f81da44 (bug 1540655)
Backed out changeset 8d7bad30be46 (bug 1540655)
Backed out changeset bb012df3018b (bug 1540655)
Backed out changeset 8c67b494e207 (bug 1540655)
Backed out changeset c0a80d37576d (bug 1540655)
Backed out changeset 939ce2afcf0b (bug 1540655)
Backed out changeset 3b3a2a9fbc8b (bug 1540655)
Backed out changeset b96dede008ad (bug 1540655)
Backed out changeset 997d1568d944 (bug 1540655)
2019-08-14 18:53:36 +03:00
Andreas Tolfsen 6d0f72b089 bug 1540655: mozbuild: add puppeteer test flavor; r=firefox-build-system-reviewers,chmanchester
The Puppeteer test flavour are functional tests for the CDP-based
Puppeteer library from Google, that we want to run against our
implementation of CDP for Firefox.

They are distinct from the Firefox Puppeteer tests based on Marionette.

Differential Revision: https://phabricator.services.mozilla.com/D37012
2019-08-14 14:58:04 +00:00
Henrik Skupin dca7d95991 Bug 1573406 - Remove every trace of Firefox UI update tests. r=webdriver-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D41834
2019-08-14 11:08:45 +00:00
Nicholas Nethercote 2c80ddd069 Bug 1573080 - Supporting indenting of directives in preprocessor.py. r=glandium
Depends on D41494

Differential Revision: https://phabricator.services.mozilla.com/D41495
2019-08-13 22:18:55 +00:00
J.C. Jones 826e1599ce Bug 1573662 - Rename sanctions test routines to make it easier to add new ones r=keeler
1) Multipurpose-ing the TLSServer specialization to `SanctionsTestServer`
2) Renaming the `security/manager/ssl/tests/unit/test_symantec_apple_google` folder of certs to `test_sanctions`
3) Prepend a `symantec-` to the start of all relevant certs in the new `test_sanctions` folder
4) Renaming the existing xpcshell test to `test_sanctions_symantec_apple_google.js`

Differential Revision: https://phabricator.services.mozilla.com/D39942
2019-08-13 20:59:17 +00:00
Mike Hommey 3a02387025 Bug 1573314 - Add a dependency between 'target-shared' and 'target' targets in the same directory. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D41685
2019-08-13 03:00:43 +00:00
Axel Hecht 17ab09e582 Bug 1321281, add test framework for Fluent migration recipes, r=flod,ahal
Basic test infrastructure for Fluent migration recipes, automate creating
a reference from recipe data, and running the recipe dry and wet.

There are no hard failures for diffs, as it might just be OK.

Differential Revision: https://phabricator.services.mozilla.com/D40200
2019-08-08 11:54:30 +00:00
Mike Hommey 52e58be22d Bug 1572046 - Build shared libraries in a separate target. r=nalexander
When a directory, like toolkit/library, builds both a static and a
shared library, and another, like toolkit/library/gtest, depends on the
static part, it currently needs to wait for the shared library to be
finished building, preventing both libraries being built in parallel.

By separating shared libraries to a different target, we allow more
parallelism to the build.

Differential Revision: https://phabricator.services.mozilla.com/D41099
2019-08-07 22:50:14 +00:00
Justin Wood c2a2b86998 Bug 1473498 - More support for py3. r=firefox-build-system-reviewers,mshal
This patch makes BuildEnvironmentNotFoundException a subclass of AttributeError as well, because hasattr in
python3 no longer catches all tracebacks but only AttributeError, and we use both hasattr and
BuildEnvironmentNotFoundException to guard against a handful of buildconfig variables in a few places
where it is OK to not have a buildenvironment.

We also use universal_newlines in real_host in init.configure (since I found
that fix while working on the AttributeError one) so that we get the right string type back from the process call

Lastly this patch also uses BytesIO for calling into a ReducedConfigureSandbox as its stdout and stderr pipes,
This ensures that related code handling the sandbox doesn't complain about getbuffer() missing in StringIO in py3.

Differential Revision: https://phabricator.services.mozilla.com/D36605
2019-08-06 21:26:54 +00:00
rdalal e50448439e Bug 1569330 - Disable telemetry check in Normandy recipe runner r=mythmon,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D39576
2019-08-06 23:54:34 +00:00
Mike Hommey c650772476 Bug 1571636 - Expose build resources data from automation builds as artifacts. r=nalexander
The build docker images need python-dev installed to build psutil, used
by the build resources monitor.

Differential Revision: https://phabricator.services.mozilla.com/D40781
2019-08-06 21:26:47 +00:00
Mike Hommey 18d19fea55 Bug 1571636 - Rename the build resources list file and allow it not to be a list. r=nalexander
The longer version is that this changes how the HTML viewer looks up
files. Instead of looking at a list file that contains a list of
build resources data, it now looks at a build_resources.json file that
either contains data directly, or a list of files containing data.

Differential Revision: https://phabricator.services.mozilla.com/D40780
2019-08-06 18:34:21 +00:00
Mike Hommey d8ae7833f7 Bug 1571636 - Make the build resources list file contain the full relative path to all resource files. r=nalexander
Rather than imply they should all be in the resources subdirectory.

Differential Revision: https://phabricator.services.mozilla.com/D40779
2019-08-06 21:20:29 +00:00
Mike Hommey 33c9e30464 Bug 1571636 - Get d3.js from https. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D40778
2019-08-06 18:26:53 +00:00
Nick Alexander 290a525bab Bug 1512487 - Part 2: Add "global" lint type. r=ahal
This patch adds a global lint that only runs when a file or directory
that matches their configuration (via `extensions` and `exclude`) has
been modified or specified.

Global lints never shard into chunks; they are, by definition global
(i.e., across the entire source tree) and act on all inputs in a
single invocation.  It's up to the global lint to manage command line
sizes, etc.  Since batching is handled by the lint type but sharding
is handled by the lint roller, there's a little abstraction leak so
that the lint type can control how its invocation is sharded: the
existing `batch` member is generalized from the existing `True` and
`False` to add a new `"global"` value which disables sharding.

Differential Revision: https://phabricator.services.mozilla.com/D35275
2019-08-02 20:34:09 +00:00
Nick Alexander 35050783dd Bug 1512487 - Part 1: Allow lints to inspect part of the build environment. r=ahal
This allows lints to "condition" themselves on having a build
environment or a specific build application.  It also adds the "name"
parameter, so that setup functions can be shared across lints.

`MozbuildObject` cannot be used as parameters to functions distributed
via multiprocessing, since they cannot be pickled (due, currently, to
internal terminal handles).  Therefore we extract just a few key
parts of the environment to expose.

Differential Revision: https://phabricator.services.mozilla.com/D35274
2019-08-02 20:30:02 +00:00
Zibi Braniecki 400445daef Bug 1501886 - Migrate menubar to Fluent. r=fluent-reviewers,Pike,flod
Differential Revision: https://phabricator.services.mozilla.com/D34379
2019-08-02 16:07:44 +00:00
Andreea Pavel 921dcaad5c Backed out changeset 7a06c08bf267 (bug 1501886) for bc failures e.g. browser_window_menu_list.js on a CLOSED TREE 2019-08-02 05:44:47 +03:00
Zibi Braniecki b831bb432e Bug 1501886 - Migrate menubar to Fluent. r=fluent-reviewers,Pike,flod
Differential Revision: https://phabricator.services.mozilla.com/D34379
2019-08-01 14:21:13 +00:00
Moritz Birghan 2614d35cb4 Bug 1004308 - rename BadCertServer to BadCertAndPinningServer r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D39748
2019-07-31 17:06:07 +00:00
Bryce Seager van Dyk 4312411e94 Bug 1570352 - Make sure ensure_java correctly passes extra search dirs to which. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D40065
2019-07-31 17:12:21 +00:00
Joel Maher c24ebace3d Bug 1569916 - run reftest/crashtest on android-hw when gfx/* files change. r=ahal
run reftest/crashtest on android-hw when gfx/* files change.

Differential Revision: https://phabricator.services.mozilla.com/D39900
2019-07-31 13:43:59 +00:00
Andrew Halberstadt 65ab261fa7 Bug 1473498 - Fix Python 3 environment variables with subprocess r=glandium
On Windows in Python 2, the subprocess module requires the use of bytes with
the 'env' argument. For that reason, we would sometimes use byte strings with
'os.environ' like so:

    os.environ[b"FOO"] = b"bar"

However, this is a failure with Python 3 as 'os.environ' must only be used with
the text type. This patch creates a new 'setenv' helper that ensures we create
new environment with 'bytes' on Python 2, and 'text' on Python 3.

Differential Revision: https://phabricator.services.mozilla.com/D38237
2019-07-30 21:35:53 +00:00
Johan Lorenzo 7eec6ea622 Bug 1563711 - Remove target.maven.zip r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D38175
2019-07-30 15:35:12 +00:00
Bastien Abadie f847c5455b Bug 1569882 - Fix mozlint unit tests for relative path outputs, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D39877
2019-07-30 23:30:15 +00:00
Mike Hommey 67b22690b1 Bug 1569075 - Rename FileAvoidWrite mode argument. r=chmanchester
It causes confusion because it's the mode used to _read_ the overwritten
file. Make that more obvious by renaming to `readmode`.

Differential Revision: https://phabricator.services.mozilla.com/D39445
2019-07-30 21:03:12 +00:00
Andi-Bogdan Postelnicu 6ff7769094 Bug 1569880 - Report build errors during review-phase for C/C++ code. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D39843
2019-07-30 07:42:18 +00:00
Bastien Abadie c4ceabe37d Bug 1568771 - Output paths relative to repository in ./mach static-analysis check-coverity, r=andi
Differential Revision: https://phabricator.services.mozilla.com/D39306
2019-07-30 06:44:52 +00:00
Bastien Abadie d792534745 Bug 1568484 - Output issues relative paths in mozlint, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D39162
2019-07-26 15:39:17 +00:00
James Willcox 435ee6e177 Bug 1561323 - Fix spurious reconfigure problem with debug builds r=nalexander,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D39701
2019-07-29 16:49:17 +00:00
Edwin Gao 815e09bc23 Bug 1519369 - support 'debugger' parser argument for mach test command r=ahal,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D39229
2019-07-26 15:18:18 +00:00
Mike Hommey 9268e0104a Bug 1568713 - Do some sanity checks on FileAvoidWrite inputs. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D39271
2019-07-25 22:49:21 +00:00
Makoto Kato f4886a1c9f Bug 774115 - Support mach bootstrap on Windows for Android. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D33584
2019-07-25 09:29:10 +00:00
Bastien Abadie 31ad3d3752 Bug 1568535 - Output relative paths in mach static-analysis check, r=andi
Differential Revision: https://phabricator.services.mozilla.com/D39197
2019-07-25 08:50:50 +00:00
Bastien Abadie 8a1cfc8b0f Bug 1568558 - Output paths relative to repository in ./mach clang-format, r=andi
Differential Revision: https://phabricator.services.mozilla.com/D39211
2019-07-25 08:50:33 +00:00
Mike Shal 1def64128d Bug 1567619 - Avoid double stat in preprocessed file installs; r=glandium
Followup to bug 1566044.

Differential Revision: https://phabricator.services.mozilla.com/D38763
2019-07-23 03:03:36 +00:00
Mike Hommey 5c11694bb2 Bug 1564216 - Require clang 5 for OSX builds. r=froydnj
There is less incentive to keep things building with older versions of
clang for OSX builds, and we're going to require an objective-C feature
that was added in clang 5.

Differential Revision: https://phabricator.services.mozilla.com/D38581
2019-07-22 21:31:39 +00:00
Simon Sapin bfd1c8e250 Bug 1565193 - Require Rust 1.36 r=glandium
MozReview-Commit-ID: GjcKBjZvTPr

Differential Revision: https://phabricator.services.mozilla.com/D37709
2019-07-19 04:50:22 +00:00
Agi Sferro f34c0312f6 Bug 1515248 - Upgrade to Android-Gradle plugin 3.2.1 and build-tools 28.0.3. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D15159
2019-07-20 17:27:53 +00:00
Edwin Gao b7d4a88f35 Bug 1559975 - fix python2 linter errors for python/devtools r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37640
2019-07-16 17:46:08 +00:00
Mike Shal 22b503fc69 Bug 1566044 - Missing inputs in install manifests should trigger updates; r=nalexander
The preprocessed install manifest code uses a Makefile dependency file
to list inputs. If one of the inputs was missing (due to a file removal
or rename), an incremental build would fail until clobbered. We should
treat a missing input as simply being out-of-date and continue
processing.

Differential Revision: https://phabricator.services.mozilla.com/D38576
2019-07-18 22:40:57 +00:00
Andrew Halberstadt 42eaab1aca Bug 1473498 - [mach] Fix Py3 compatibility issues in telemetry.py r=firefox-build-system-reviewers,chmanchester
Depends on D36104

Differential Revision: https://phabricator.services.mozilla.com/D38193
2019-07-16 20:53:18 +00:00
Andrew Halberstadt 505b8ee471 Bug 1473498 - [mach] Fix Python 3 decorator compatibility r=firefox-build-system-reviewers,chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D36104
2019-07-16 20:42:34 +00:00
Chris Manchester 4c0184c65f Bug 1566219 - Provide dist-toolchains for use with sccache in bootstrap on macOS. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D38151
2019-07-16 18:50:59 +00:00
Andrew Halberstadt 3136a6824c Bug 1473498 - Fix Py3 compatibility issue in python/mozbuild/mozbuild/testing.py r=nalexander
Depends on D37763

Differential Revision: https://phabricator.services.mozilla.com/D37764
2019-07-16 15:14:49 +00:00
Mike Hommey f8fa9dbb70 Bug 1564314 - Make linters happy with the gdbpp code. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D37676
2019-07-11 18:19:44 +00:00
Mike Hommey 373f6c4471 Bug 1564314 - Move gdbpp back to python/. r=nalexander
Somehow bug 1346025 moved it to third_party/python but... it's not third
party code.

Differential Revision: https://phabricator.services.mozilla.com/D37364
2019-07-11 02:39:31 +00:00