Граф коммитов

9498 Коммитов

Автор SHA1 Сообщение Дата
Andi-Bogdan Postelnicu b9bd386da7 Bug 1626555 - Add `dom/svg` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96569
2020-11-10 13:44:03 +00:00
Emilio Cobos Álvarez 440671e906 Bug 1676307 - Search for sccache in the toolchain search path. r=firefox-build-system-reviewers,mhentges
So that ac_add_options --with-ccache=sccache just works.

Differential Revision: https://phabricator.services.mozilla.com/D96501
2020-11-10 13:11:49 +00:00
Emilio Cobos Álvarez 1fe5a936f7 Bug 1676307 - Move compiler wrapper config after toolchain search path definition. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D96500
2020-11-10 12:54:10 +00:00
Bogdan Tara 1bda053029 Backed out 2 changesets (bug 1676307) for stackwalk related bustage CLOSED TREE
Backed out changeset 3b7922a9af19 (bug 1676307)
Backed out changeset 74e377213d81 (bug 1676307)
2020-11-10 14:42:43 +02:00
Emilio Cobos Álvarez c2b9d3eb7f Bug 1676307 - Search for sccache in the toolchain search path. r=firefox-build-system-reviewers,mhentges
So that ac_add_options --with-ccache=sccache just works.

Differential Revision: https://phabricator.services.mozilla.com/D96501
2020-11-10 12:10:47 +00:00
Emilio Cobos Álvarez 73c892ab3f Bug 1676307 - Move compiler wrapper config after toolchain search path definition. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D96500
2020-11-10 12:09:05 +00:00
Andi-Bogdan Postelnicu 06adde3adb Bug 1626555 - Add `dom/storage` to the list of non-unified-build-compatible directories. r=sg
Depends on D96442

Differential Revision: https://phabricator.services.mozilla.com/D96530
2020-11-10 12:00:30 +00:00
Andi-Bogdan Postelnicu e70abab259 Bug 1626555 - Add `dom/smil` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96442
2020-11-10 11:20:23 +00:00
Andi-Bogdan Postelnicu d81fefc9bc Bug 1626555 - Add `dom/serviceworkers` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96441
2020-11-10 11:55:00 +00:00
Mike Hommey af02c91f37 Bug 1665754 - Setup an Apple silicon macos build. r=firefox-build-system-reviewers,dmajor
Baby steps. This adds an unsigned non-universal Apple silicon-only macos
build.

Differential Revision: https://phabricator.services.mozilla.com/D96339
2020-11-10 08:46:22 +00:00
Mike Hommey cc86146345 Bug 1676290 - Don't use a toolchain prefix when cross-compiling from mac to mac. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D96477
2020-11-09 23:43:56 +00:00
Andi-Bogdan Postelnicu 5e91efd61f Bug 1626555 - Add `dom/security` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96427
2020-11-09 21:03:52 +00:00
Brindusan Cristian ca85f574a0 Backed out changeset 3a087ad91d30 (bug 1626555) for build bustages. CLOSED TREE 2020-11-09 21:09:33 +02:00
Andi-Bogdan Postelnicu 6ffdaf663d Bug 1626555 - Add `dom/security` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96427
2020-11-09 17:57:01 +00:00
Andi-Bogdan Postelnicu 6c639eb537 Bug 1626555 - Add `dom/script` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96401
2020-11-09 16:50:39 +00:00
Andi-Bogdan Postelnicu 04b093b6a4 Bug 1626555 - Add `dom/res` to the list of non-unified-build-compatible directories. r=sg
Depends on D96398

Differential Revision: https://phabricator.services.mozilla.com/D96399
2020-11-09 12:24:01 +00:00
Andi-Bogdan Postelnicu eddf5c3167 Bug 1626555 - Add `dom/reporting` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96398
2020-11-09 12:14:27 +00:00
Mike Hommey af94e85e8d Bug 1675675 - Only put mach_bootstrap paths in PYTHONPATH for mach python --no-virtualenv. r=firefox-build-system-reviewers,rstewart
With PYTHONPATH containing other directories, such as the python ones,
bad things can happen when the python script that is being run then
goes on to subprocess.Popen a python process for a different virtualenv,
or a different version, or whatever.

Differential Revision: https://phabricator.services.mozilla.com/D96155
2020-11-06 17:30:58 +00:00
Andrew Halberstadt 331bc892dd Bug 1675319 - [manifestparser] Properly support multiline skip-if statements, r=jmaher,extension-reviewers,zombie
This supports one manifestparser expression per line in the 'skip-if',
'fail-if' and 'run-if' keys. As a side effect the:

    skip-if = foo ||
        bar

syntax is no longer supported. Instead it can be:

    skip-if =
        foo  # bug 123
        bar  # bug 456

Differential Revision: https://phabricator.services.mozilla.com/D95927
2020-11-05 19:55:08 +00:00
Mitchell Hentges 0bf01c3c96 Bug 1670264: Validate detected Java directory to ensure it's a JDK r=nalexander
Also consolidates bootstrap and configure Java-detection logic so
there's less surprises.

Differential Revision: https://phabricator.services.mozilla.com/D94664
2020-11-03 23:32:43 +00:00
Steve Fink cb4e64b5f5 Bug 1666108 - Eliminate -Wimplicit-function-declaration warnings r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D95092
2020-11-04 00:54:57 +00:00
Kartikaya Gupta 2fd4f2fc5c Bug 1418001 - Generate analysis for file inclusions. r=asuth,andi
This introduces a new mangled symbol of the form FILE_<hash>. It's defined
on line 1 of each visited source file, and it's referenced in places that
the preprocessor tells us there was an #include. Both angle-bracket includes
and quote includes are supported here.

Differential Revision: https://phabricator.services.mozilla.com/D95529
2020-11-03 15:57:32 +00:00
Kartikaya Gupta a979c5ff70 Bug 1418001 - Refactor to allow visitIdentifier callers to pass a full SourceRange. r=asuth,andi
In the next patch I'll want to be able to provide the entire source rather than
having visitIdentifier just use the token at `Loc`. The existing call sites
create a SourceRange from the SourceLocation and indicate (by not setting the
LocRangeEndValid flag) that the visitIdentifier function should retain it's
old behaviour of using the token to figure out the range.

Depends on D95527

Differential Revision: https://phabricator.services.mozilla.com/D95528
2020-11-02 20:38:37 +00:00
Kartikaya Gupta b28eaef8b0 Bug 1418001 - Refactor to make file type detection more explicit. r=asuth,andi
This extracts a relativizePath function that normalizes a file path to be
relative to the source/objdir, and returns the type of the file.

Differential Revision: https://phabricator.services.mozilla.com/D95527
2020-11-02 20:38:36 +00:00
David Major 5fde4e00e2 Bug 1674907 - Clean up C++17 ifdefs in TestNoRefcountedInsideLambdas.cpp r=static-analysis-reviewers,sg
I'll need to update this file for clang-12, and in order to prevent the need for adding more of these ifdefs, let's just assume they are true and remove the checks. Our codebase has been on C++17 for a while now.

Differential Revision: https://phabricator.services.mozilla.com/D95592
2020-11-03 09:25:50 +00:00
Ricky Stewart 119ff36277 Bug 1674498 - Remove references to `jarsigner` from `configure` and delete the `debug_sign_tool` r=geckoview-reviewers,nalexander,snorp
This is no longer used by Android devs.

Differential Revision: https://phabricator.services.mozilla.com/D95417
2020-11-02 16:50:56 +00:00
Andi-Bogdan Postelnicu e685a3df8c Bug 1626555 - Add `dom/power` to the list of non-unified-build-compatible directories. r=sg
Depends on D95169

Differential Revision: https://phabricator.services.mozilla.com/D95170
2020-10-29 16:22:53 +00:00
Andi-Bogdan Postelnicu 7411bbd17a Bug 1626555 - Add `dom/plugins` to the list of non-unified-build-compatible directories. r=sg
Depends on D95168

Differential Revision: https://phabricator.services.mozilla.com/D95169
2020-10-29 16:22:45 +00:00
Andi-Bogdan Postelnicu b710a4fe2a Bug 1626555 - Add `dom/permission` to the list of non-unified-build-compatible directories. r=sg
Depends on D95167

Differential Revision: https://phabricator.services.mozilla.com/D95168
2020-10-29 16:21:52 +00:00
Andi-Bogdan Postelnicu e10c399e77 Bug 1626555 - Add `dom/performance` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95167
2020-10-29 17:37:02 +00:00
Andi-Bogdan Postelnicu 9495897723 Bug 1626555 - Add `dom/payments` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95155
2020-10-29 16:15:45 +00:00
Andi-Bogdan Postelnicu 89f454c02b Bug 1626555 - Add `dom/{notification, offline}` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95154
2020-10-29 15:21:57 +00:00
Andi-Bogdan Postelnicu fea9419ddc Bug 1626555 - Add `dom/network` to the list of non-unified-build-compatible directories. r=sg
Depends on D95145

Differential Revision: https://phabricator.services.mozilla.com/D95153
2020-10-29 15:21:44 +00:00
Andi-Bogdan Postelnicu 53ece981b4 Bug 1626555 - Add `dom/midi` to the list of non-unified-build-compatible directories. r=sg
Depends on D95137

Differential Revision: https://phabricator.services.mozilla.com/D95145
2020-10-29 15:24:40 +00:00
Andi-Bogdan Postelnicu c952a3b5d0 Bug 1626555 - Add `dom/messagechannel` to the list of non-unified-build-compatible directories. r=sg
Depends on D95057

Differential Revision: https://phabricator.services.mozilla.com/D95137
2020-10-29 14:15:23 +00:00
Andi-Bogdan Postelnicu adc9f3324c Bug 1626555 - Add `dom/media/` to the list of non-unified-build-compatible directories. r=sg
Depends on D95056

Differential Revision: https://phabricator.services.mozilla.com/D95057
2020-10-29 08:56:37 +00:00
Andi-Bogdan Postelnicu 758cd35669 Bug 1626555 - Add `dom/media/webvtt` to the list of non-unified-build-compatible directories. r=sg
Depends on D95055

Differential Revision: https://phabricator.services.mozilla.com/D95056
2020-10-29 08:56:11 +00:00
Andi-Bogdan Postelnicu bbf4de2003 Bug 1671641 - Make `dom/media/webspeech` buildable outside of `unified-build` environment. r=sg
Depends on D95054

Differential Revision: https://phabricator.services.mozilla.com/D95055
2020-10-29 08:55:58 +00:00
Andi-Bogdan Postelnicu 2873f0158b Bug 1671641 - Make `dom/media/webrtc` buildable outside of `unified-build` environment. r=sg
Depends on D95041

Differential Revision: https://phabricator.services.mozilla.com/D95054
2020-10-29 08:55:41 +00:00
Andi-Bogdan Postelnicu ea26376de0 Bug 1671641 - Make `dom/media/webm` buildable outside of `unified-build` environment. r=sg
Depends on D95040

Differential Revision: https://phabricator.services.mozilla.com/D95041
2020-10-29 08:54:14 +00:00
Andi-Bogdan Postelnicu fbd830522f Bug 1671641 - Make `dom/media/webaudio` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95040
2020-10-29 11:05:41 +00:00
Andi-Bogdan Postelnicu 4a46c92817 Bug 1626555 - Add `dom/media/{test,tests,wave}` to the list of non-unified-build-compatible directories. r=sg
Depends on D95038

Differential Revision: https://phabricator.services.mozilla.com/D95039
2020-10-29 08:51:46 +00:00
Andi-Bogdan Postelnicu f159f49029 Bug 1671641 - Make `dom/media/systemservices` buildable outside of `unified-build` environment. r=sg
Depends on D95028

Differential Revision: https://phabricator.services.mozilla.com/D95038
2020-10-29 08:51:44 +00:00
Andi-Bogdan Postelnicu 18c05bf4d3 Bug 1671641 - Make `dom/media/platforms` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95028
2020-10-29 08:51:41 +00:00
Andi-Bogdan Postelnicu 9ecafd735d Bug 1626555 - Add `dom/media/ogg` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95027
2020-10-28 17:26:13 +00:00
Andi-Bogdan Postelnicu d75ceb5f1d Bug 1671641 - Make `dom/media/mp4` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95026
2020-10-29 08:51:37 +00:00
Andi-Bogdan Postelnicu cde98ad5b6 Bug 1671641 - Make `dom/media/mp3` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95025
2020-10-28 17:26:09 +00:00
Andi-Bogdan Postelnicu 7f54f93c82 Bug 1626555 - Add `dom/media/mediasource` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95024
2020-10-29 08:50:28 +00:00
Ricky Stewart e6c9007806 Bug 1655845 - Collect OS version information in `mach` telemetry r=firefox-build-system-reviewers,dmajor
We add new metrics `distro` and `distro_version`. Their meaning varies based on the actual OS:

1. For Linux, the pair will be the name of the distribution and the distribution's version (e.g. `ubuntu`/`20.04`);

2. for macOS, the pair will be the string `macos` and the macOS version (e.g. `10.15.7`); and

3. for Windows, the pair will be the string (`windows`, `MAJOR.MINOR.BUILD`);

4. and for all other OS'es, the first will be the value of `sys.platform`, and the version string will be empty.

Differential Revision: https://phabricator.services.mozilla.com/D94781
2020-10-27 20:35:17 +00:00
Andi-Bogdan Postelnicu aedab9e740 Bug 1626555 - Add `dom/media/mediasession` to the list of non-unified-build-compatible directories. r=sg
Depends on D95001

Differential Revision: https://phabricator.services.mozilla.com/D95003
2020-10-28 16:31:41 +00:00
Andi-Bogdan Postelnicu 7918bde89f Bug 1671641 - Make `dom/media/mediacontroller` buildable outside of `unified-build` environment. r=sg
Depends on D95000

Differential Revision: https://phabricator.services.mozilla.com/D95001
2020-10-28 16:31:26 +00:00
Andi-Bogdan Postelnicu 70af4aaffd Bug 1626555 - Add `dom/media/{hls,imagecapture,ipc,mediacapabilities}` to the list of non-unified-build-compatible directories. r=sg
Depends on D94991

Differential Revision: https://phabricator.services.mozilla.com/D95000
2020-10-28 16:30:45 +00:00
Andi-Bogdan Postelnicu 7e612d6c92 Bug 1671641 - Make `dom/media/gtest` buildable outside of `unified-build` environment. r=sg
Depends on D94985

Differential Revision: https://phabricator.services.mozilla.com/D94991
2020-10-28 16:30:30 +00:00
Andi-Bogdan Postelnicu f9d22b5cd8 Bug 1626555 - Add `dom/media/gmp-plugin-openh264` to the list of non-unified-build-compatible directories. r=sg
Depends on D94984

Differential Revision: https://phabricator.services.mozilla.com/D94985
2020-10-28 16:30:05 +00:00
Andi-Bogdan Postelnicu 0dce6f6e0c Bug 1671641 - Make `dom/media/gmp` buildable outside of `unified-build` environment. r=sg
Depends on D94983

Differential Revision: https://phabricator.services.mozilla.com/D94984
2020-10-28 16:29:57 +00:00
Andi-Bogdan Postelnicu 560b6d3239 Bug 1626555 - Add `dom/media/fake-cdm`, `dom/media/flac` and `dom/media/fuzz` to the list of non-unified-build-compatible directories. r=sg
Depends on D94977

Differential Revision: https://phabricator.services.mozilla.com/D94983
2020-10-28 16:29:47 +00:00
Andi-Bogdan Postelnicu c2c4d8990b Bug 1671641 - Make `dom/media/encoder` buildable outside of `unified-build` environment. r=sg
Depends on D94975

Differential Revision: https://phabricator.services.mozilla.com/D94977
2020-10-28 16:29:37 +00:00
Andi-Bogdan Postelnicu bfb8c3235d Bug 1626555 - Add `dom/media/benchmark`, `dom/media/bridge`, `dom/media/doctor` and `dom/media/eme` to the list of non-unified-build-compatible directories. r=sg
Depends on D94971

Differential Revision: https://phabricator.services.mozilla.com/D94975
2020-10-28 16:29:34 +00:00
Andi-Bogdan Postelnicu 6da52b6965 Bug 1626555 - Add `dom/locales`, `dom/manifest` and `dom/mathml` to the list of non-unified-build-compatible directories. r=sg
Depends on D94968

Differential Revision: https://phabricator.services.mozilla.com/D94971
2020-10-28 12:59:22 +00:00
Andi-Bogdan Postelnicu 4aee2df8a5 Bug 1671641 - Make `dom/l10n` buildable outside of `unified-build` environment. r=sg
Depends on D94967

Differential Revision: https://phabricator.services.mozilla.com/D94968
2020-10-28 12:49:46 +00:00
Andi-Bogdan Postelnicu 21d7516f1b Bug 1626555 - Add `dom/jsurl` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94967
2020-10-28 12:34:05 +00:00
Andi-Bogdan Postelnicu f01b2a6215 Bug 1671641 - Make `dom/ipc` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94964
2020-10-28 12:31:35 +00:00
Andi-Bogdan Postelnicu ff39a7b9a1 Bug 1626555 - Add `dom/imptests` and `dom/interfaces` to the list of non-unified-build-compatible directories. r=sg
Depends on D94945

Differential Revision: https://phabricator.services.mozilla.com/D94965
2020-10-28 12:30:09 +00:00
Andi-Bogdan Postelnicu 6381129ef6 Bug 1671641 - Make `dom/html` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94945
2020-10-28 12:24:01 +00:00
Andi-Bogdan Postelnicu f43e94f663 Bug 1626555 - Add `dom/geolocation` and `dom/grid` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94942
2020-10-28 12:13:22 +00:00
Andi-Bogdan Postelnicu 67038c0182 Bug 1671641 - Make `dom/gamepad` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94939
2020-10-28 12:29:56 +00:00
Andi-Bogdan Postelnicu 30d32f4fc7 Bug 1671641 - Make `dom/flex` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94933
2020-10-28 09:28:50 +00:00
Andi-Bogdan Postelnicu 7eb0f25292 Bug 1671641 - Make `dom/filesystem` buildable outside of `unified-build` environment. r=sg
Depends on D94559

Differential Revision: https://phabricator.services.mozilla.com/D94569
2020-10-27 10:01:12 +00:00
Ricky Stewart 210585edd2 Bug 1672023 - Remove excluded files from `black.yml`
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052

Depends on D94045
2020-10-26 18:21:44 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
sanketh 14a4c90302 Bug 1668304 - Bump mingw-clang builds to clang 11 r=tjr,dmajor
Differential Revision: https://phabricator.services.mozilla.com/D94676
2020-10-24 05:07:23 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart fe80718d67 Bug 1672023 - Remove excluded files from `black.yml` r=sylvestre,perftest-reviewers,geckoview-reviewers,agi
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052
2020-10-23 20:40:44 +00:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Emilio Cobos Álvarez c6950091db Bug 1672940 - Remove biplist. r=firefox-build-system-reviewers,glandium
biplist broke with python 3.9, but we don't need this anymore because
Python3's plistlib allows reading binary plists since python 3.4.

I've tested this with all sdks that I have and we support (10.11-10.15).

Differential Revision: https://phabricator.services.mozilla.com/D94577
2020-10-23 11:37:16 +00:00
Andi-Bogdan Postelnicu fbef8c10ed Bug 1626555 - Add `dom/filehandle` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94559
2020-10-23 08:53:19 +00:00
Jed Davis cc6e7ab133 Bug 1440203 - Support memfd_create in IPC shared memory. r=glandium
This commit also allows `memfd_create` in the seccomp-bpf policy for all
process types.

`memfd_create` is an API added in Linux 3.17 (and adopted by FreeBSD
for the upcoming version 13) for creating anonymous shared memory
not connected to any filesystem.  Supporting it means that sandboxed
child processes on Linux can create shared memory directly instead of
messaging a broker, which is unavoidably slower, and it should avoid
the problems we'd been seeing with overly small `/dev/shm` in container
environments (which were causing serious problems for using Firefox for
automated testing of frontend projects).

`memfd_create` also introduces the related operation of file seals:
irrevocably preventing types of modifications to a file.  Unfortunately,
the most useful one, `F_SEAL_WRITE`, can't be relied on; see the large
comment in `SharedMemory:ReadOnlyCopy` for details.  So we still use
the applicable seals as defense in depth, but read-only copies are
implemented on Linux by using procfs (and see the comments on the
`ReadOnlyCopy` function in `shared_memory_posix.cc` for the subtleties
there).

There's also a FreeBSD implementation, using `cap_rights_limit` for
read-only copies, if the build host is new enough to have the
`memfd_create` function.

The support code for Android, which doesn't support shm_open and can't
use the memfd backend because of issues with its SELinux policy (see bug
1670277), has been reorganized to reflect that we'll always use its own
API, ashmem, in that case.

Differential Revision: https://phabricator.services.mozilla.com/D90605
2020-10-22 21:23:32 +00:00
Jan-Erik Rediger 4b11c48d2a Bug 1646165 - Make the test metrics file known to sphinx. r=janerik CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D94445
2020-10-22 14:02:00 +00:00
Andi-Bogdan Postelnicu d001328cc5 Bug 1671641 - Make `dom/file` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94082
2020-10-22 06:32:40 +00:00
Dorel Luca bdc3f86e85 Backed out changeset 1de121cdb483 (bug 1671641) for build bustage in dom/file/ipc/RemoteLazyInputStreamThread.cpp. CLOSED TREE 2020-10-22 07:46:54 +03:00
Andi-Bogdan Postelnicu 83bf4bc5a3 Bug 1671641 - Make `dom/file` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94082
2020-10-21 20:58:07 +00:00
Mike Hommey 91d99a2d66 Bug 1671376 - Disable -Wmissing-braces on clang < 6. r=firefox-build-system-reviewers,dmajor
The warning is broken in older versions of clang. It also turns out we
were disabling it locally for some directories because of this very
problem.

A few local disable rules stay under accessible/ because they do hide
actual warnings from code generated by MIDL.

Differential Revision: https://phabricator.services.mozilla.com/D94262
2020-10-22 01:31:19 +00:00
Mike Hommey 198ea0303d Bug 1671569 - Normalize Xcode clang version to the underlying plain clang version. r=firefox-build-system-reviewers,rstewart
We used to have a complicated scheme to figure out the minimum supported
version of clang on OSX, based on some compiler feature, which wouldn't
allow to do other version checks further down the line.

The main blocker for better tests was to be able to distinguish between
Xcode clang and plain clang, which turns out to be possible with the
__apple_build_version__ define.

We still need to map versions manually, but it's better than the current
status quo.

Differential Revision: https://phabricator.services.mozilla.com/D94261
2020-10-22 01:31:17 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Dorel Luca 5d3bd01bca Backed out 2 changesets (bug 1440203) for Backout conflicts with Bug 1654103. CLOSED TREE
Backed out changeset 6e44c037b2dc (bug 1440203)
Backed out changeset ab11665d8607 (bug 1440203)
2020-10-22 03:47:17 +03:00
Dorel Luca 26941cf2f5 Backed out changeset 94ec15429e21 (bug 1672023) for Backout conflicts with Bug 1654103. CLOSED TREE 2020-10-22 03:43:01 +03:00
Jed Davis 61a83c3467 Bug 1440203 - Support memfd_create in IPC shared memory. r=glandium
This commit also allows `memfd_create` in the seccomp-bpf policy for all
process types.

`memfd_create` is an API added in Linux 3.17 (and adopted by FreeBSD
for the upcoming version 13) for creating anonymous shared memory
not connected to any filesystem.  Supporting it means that sandboxed
child processes on Linux can create shared memory directly instead of
messaging a broker, which is unavoidably slower, and it should avoid
the problems we'd been seeing with overly small `/dev/shm` in container
environments (which were causing serious problems for using Firefox for
automated testing of frontend projects).

`memfd_create` also introduces the related operation of file seals:
irrevocably preventing types of modifications to a file.  Unfortunately,
the most useful one, `F_SEAL_WRITE`, can't be relied on; see the large
comment in `SharedMemory:ReadOnlyCopy` for details.  So we still use
the applicable seals as defense in depth, but read-only copies are
implemented on Linux by using procfs (and see the comments on the
`ReadOnlyCopy` function in `shared_memory_posix.cc` for the subtleties
there).

There's also a FreeBSD implementation, using `cap_rights_limit` for
read-only copies, if the build host is new enough to have the
`memfd_create` function.

The support code for Android, which doesn't support shm_open and can't
use the memfd backend because of issues with its SELinux policy (see bug
1670277), has been reorganized to reflect that we'll always use its own
API, ashmem, in that case.

Differential Revision: https://phabricator.services.mozilla.com/D90605
2020-10-21 23:34:46 +00:00
Ricky Stewart 8b352f1843 Bug 1672023 - Remove excluded files from `black.yml` r=sylvestre,perftest-reviewers,geckoview-reviewers,agi
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052
2020-10-21 21:29:30 +00:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Jim Blandy 1c990385da Bug 1671251: Don't forget to 'import os' in build/.gdbinit.py.in. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D93582
2020-10-14 23:32:56 +00:00
Simon Giesecke d1ed75b2b4 Bug 1626555 - Make `dom/simpledb` buildable outside of `unified-build` environment. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D94079
2020-10-21 13:18:15 +00:00
Simon Giesecke 7c4e805a15 Bug 1626555 - Add `dom/indexedDB` to the list of non-unified-build-compatible directories. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D94040
2020-10-21 13:17:31 +00:00
Simon Giesecke f70bfd33ed Bug 1626555 - Make `dom/localstorage` buildable outside of `unified-build` environment. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D94034
2020-10-21 13:17:18 +00:00
Simon Giesecke 2282fb5a6a Bug 1626555 - Make `dom/quota` buildable outside of `unified-build` environment. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D94011
2020-10-21 13:16:19 +00:00
Andi-Bogdan Postelnicu 85c179d8f3 Bug 1671641 - Make `dom/fetch` buildable outside of `unified-build` environment. r=sg
Depends on D93998

Differential Revision: https://phabricator.services.mozilla.com/D94015
2020-10-21 08:00:18 +00:00
Andi-Bogdan Postelnicu c954c55398 Bug 1671641 - Make `dom/events` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93998
2020-10-21 08:00:18 +00:00
Andi-Bogdan Postelnicu bb35771d56 Bug 1671641 - Add `dom/docs` and `dom/encoding` to whitelist for non-unified build. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93992
2020-10-21 08:00:17 +00:00
Andi-Bogdan Postelnicu 1ce4fd33cb Bug 1671641 - Add `dom/debugger` to whitelist for non-unified build. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93921
2020-10-21 08:00:17 +00:00
Andi-Bogdan Postelnicu 868134e958 Bug 1671641 - Add `dom/crypto` to whitelist for non-unified build. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93804
2020-10-21 08:00:17 +00:00
Andi-Bogdan Postelnicu 8dee6add0c Bug 1671641 - Add componets from `dom` that are non-unified build compatible to the whitelist. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93801
2020-10-21 08:00:16 +00:00