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

9469 Коммитов

Автор SHA1 Сообщение Дата
Gerald Squelart 927382bab0 Bug 1745318 - In the parent process, assert that profiles are only generated on the main thread - r=mstange
This is to avoid situations where a developer may call this from another thread, and get a confusingly incomplete profile.

Differential Revision: https://phabricator.services.mozilla.com/D133478
2021-12-11 06:53:42 +00:00
Nick Alexander dc28c12fdd Bug 1744325 - Remove outdated `update-packaging` cruft. r=bhearsum,firefox-build-system-reviewers,glandium
None of this is used now that `funsize` generates update MARs.  It
might have even been possible to remove this in Bug 1173459, years
ago.

Differential Revision: https://phabricator.services.mozilla.com/D132836
2021-12-10 17:31:08 +00:00
Kimberly Sereduck 52dc2b318b Bug 1744563: Add option to disable inject-deterministic script when recording page load r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D133100
2021-12-10 15:52:26 +00:00
Noemi Erli 88ea88a467 Backed out 2 changesets (bug 1724480) for causing Bug 1745152 and Bug 1745153 CLOSED TREE
Backed out changeset f988b79d58f4 (bug 1724480)
Backed out changeset 8a2fb9a2a3db (bug 1724480)
2021-12-09 18:58:02 +02:00
Mark Banner f57ee82009 Bug 1745030 - Improve structure and documentation around globals defined in eslint-plugin-mozilla and add structuredClone. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133357
2021-12-09 15:56:33 +00:00
Gerald Squelart 0aab2ce513 Bug 1745071 - Add IPCMessages to StartupExtraDefaultFeatures() - r=florian
Depends on D133301

Differential Revision: https://phabricator.services.mozilla.com/D133302
2021-12-09 11:48:22 +00:00
Gerald Squelart 9fef9b8f00 Bug 1745071 - Make DefaultFeatures() and StartupExtraDefaultFeatures() constexpr - r=florian
Small optimization.

Note that unfortunately AvailableFeatures() cannot be made constexpr because it uses getenv().

Differential Revision: https://phabricator.services.mozilla.com/D133301
2021-12-09 11:48:22 +00:00
Agi Sferro 49ed81f7e0 Bug 1724480 - Upgrade JDK to Java 17. r=glandium,ahal,calu
Differential Revision: https://phabricator.services.mozilla.com/D131972
2021-12-08 23:55:53 +00:00
Gerald Squelart 4a4d38591a Bug 1744582 - Rework GeckoProfiler.CPUUsage idle/busy expectations - r=canaltinova
First, add the "Busy test" thread to the filters, so it actually gets sampled!
Also check that each expected thread is present (this is how the above error was found).

And instead of expecting some zeroes/non-zeroes in idle/busy threads, which unfortunately can intermittently fail, just add up the CPU values for each thread, and we should at least expect that the busy thread will have done more work than the idle thread.

Differential Revision: https://phabricator.services.mozilla.com/D133170
2021-12-08 21:19:47 +00:00
Steve Fink d9d997e2ac Bug 1744806 - Fix gcc + --enable-fuzzing missing header r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D133121
2021-12-08 17:00:24 +00:00
Gregory Mierzwinski 6b298435c5 Bug 1730029 - Show perfdocs hierarchy in the sidebar. r=perftest-reviewers,kimberlythegeek
This patch fixes the issue that was preventing the perfdocs hierarchy from being shown. It adds the toctree to the index.rst template and also modifies the generator to insert the required frameworks into the toctree.

Differential Revision: https://phabricator.services.mozilla.com/D133109
2021-12-07 19:06:28 +00:00
Myeongjun Go 3552f17f4c Bug 1737613 - [perfdocs] Remove static Test definitions of Talos and include it to dynamic list r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132306
2021-12-07 17:14:17 +00:00
Gerald Squelart 77d2bf5cb0 Bug 1741690 - On Windows, use GetCycleTimeFrequencyMHz() to convert cycles to ns if possible - r=florian
Differential Revision: https://phabricator.services.mozilla.com/D132766
2021-12-06 23:36:33 +00:00
Gerald Squelart cfdfec65c6 Bug 1741690 - Allow each platform to convert its running times units when streaming to JSON - r=florian
Differential Revision: https://phabricator.services.mozilla.com/D132765
2021-12-06 23:36:33 +00:00
Dan Minor 522eefbe31 Bug 1719554 - Unify unicode::Script as intl::Script; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D132278
2021-12-06 18:15:50 +00:00
Butkovits Atila 56c46d06a1 Backed out 3 changesets (bug 1719554) for causing bustages complaining about gfxTextRun.cpp.
Backed out changeset 6181e40d4da1 (bug 1719554)
Backed out changeset c261ede6ae81 (bug 1719554)
Backed out changeset 221ec418475c (bug 1719554)
2021-12-04 00:58:15 +02:00
Dan Minor 30ad309163 Bug 1719554 - Unify unicode::Script as intl::Script; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D132278
2021-12-03 20:49:32 +00:00
Gerald Squelart 423dfaf386 Bug 1743915 - GeckoProfiler.CPUUsage gtest: Add a thread that's busy all the time, to ensure non-zero CPU values during profiling - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D132670
2021-12-03 10:04:56 +00:00
Andrew Halberstadt 70a9b5a848 Bug 1700774 - [taskgraph] Move almost all test transforms to an 'other.py' file, r=gbrown
Future commits will tease this apart a bit more, but for now this helps
crystallize the order in which transforms are applied. The flow of the overall
test transforms goes something like this:

1. Enter 'transforms/test/__init__.py'
2. Validate all tasks against the test_description_schema
3. Run sibling transforms (starting with 'variant.py' and ending with 'other.py' for now)
4. Make the job description

As we pull more transforms out of 'other.py' and into their own smaller
transform files, it will be clear that the order in which these smaller files
run is important. Adding new transforms will no longer involve picking some
random spot to insert it.

Differential Revision: https://phabricator.services.mozilla.com/D132409
2021-12-02 17:01:09 +00:00
Gerald Squelart a1bb77b57e Bug 1742522 - New profiler feature to discover unregistered threads and capture some data - r=florian
The profiler uses GetProcInfoSync to discover unregistered threads, and record their CPU utilization. This data is captured in markers on the main thread track.
On Windows, because this work takes much longer than the usual sampling interval, it is done on its own thread.

Differential Revision: https://phabricator.services.mozilla.com/D132213
2021-12-02 08:52:40 +00:00
Gerald Squelart 7d2479ce99 Bug 1742522 - Pass full feature set to SamplerThread instead of individual features bools - r=florian
When constructing the SamplerThread object, individual features were extracted from the feature set (a uint32_t), and passed as bools. This could be error-prone, wasteful, and a maintenance burden when more features are needed in some/all platform implementations (like the next patch adding a new feature with a Windows-specific impact).
So now the full feature set is given to the SamplerThread, which can then extract the features it requires on each platform.

Differential Revision: https://phabricator.services.mozilla.com/D132523
2021-12-02 08:52:40 +00:00
Julian Descottes 4dd9464dc3 Bug 1694136 - [remote] Move all documentation files for remote protocols under remote/doc r=webdriver-reviewers,whimboo
Depends on D132047

This patch only changes the folder organisation for remote protocol docs.
They should still be displayed in the exact same way on https://firefox-source-docs.mozilla.org

Differential Revision: https://phabricator.services.mozilla.com/D132049
2021-12-01 20:04:44 +00:00
Sylvestre Ledru 5a82675956 Bug 1743088 - Mozlint/trojan-source: enable it on the whole code base r=linter-reviewers,ahal DONTBUILD
Depends on D132235

Differential Revision: https://phabricator.services.mozilla.com/D132236
2021-12-01 15:34:58 +00:00
Sylvestre Ledru 3e84c05372 Bug 1743088 - Mozlint/trojan-source: When cannot parse a file, add this as an error r=linter-reviewers,ahal DONTBUILD
Depends on D132234

Differential Revision: https://phabricator.services.mozilla.com/D132235
2021-12-01 15:34:57 +00:00
Sylvestre Ledru 6ce7d233c4 Bug 1743088 - Mozlint: add an option to run the linter on third party code r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D132234
2021-12-01 15:12:31 +00:00
Chris Peterson f6fdbf028a Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium
-Wshadow warnings are not enabled globally, so these -Wno-shadow suppressions have no effect. I had intended to enable -Wshadow globally along with these suppressions in some directories (in bug 1272513), but that was blocked by other issues.

There are too many -Wshadow warnings (now over 2000) to realistically fix them all. We should remove all these unnecessary -Wno-shadow flags cluttering many moz.build files.

Differential Revision: https://phabricator.services.mozilla.com/D132289
2021-12-01 06:40:04 +00:00
Gerald Squelart 70e9daefeb Bug 1741355 - GeckoProfiler.CPUUsage: Force some busy work in otherwise idle thread, to ensure there are non-zero CPU values - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D132433
2021-11-30 19:52:31 +00:00
Mitchell Hentges 6571032077 Bug 1739067: Scope Mach virtualenv to be checkout-specific r=perftest-reviewers,ahal,sparky
Build and run the Mach virtualenv from a `state_dir` that is
"specific-to-topsrcdir".

As part of this, move `get_state_dir()` to `mach` so that it's usable
before `sys.path` entries are fully set up.

Differential Revision: https://phabricator.services.mozilla.com/D130383
2021-11-29 22:33:54 +00:00
Andrew Halberstadt 89cabb3dc5 Bug 1700774 - [taskgraph] Move test transforms to a 'transforms/test' directory, r=gbrown
This includes:

    transforms/tests.py -> transforms/test/__init__.py
    transforms/raptor.py -> transforms/test/raptor.py

This is a pre-cursor to splitting the file up into multiple smaller files under
the new 'test' transform directory.

Differential Revision: https://phabricator.services.mozilla.com/D132068
2021-11-29 15:52:19 +00:00
Emilio Cobos Álvarez 2757f4da60 Bug 1743271 - Fix mach install-moz-phab. r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D132301
2021-11-29 12:29:48 +00:00
Sylvestre Ledru 5f7ee8020d Bug 1737307 - 'mach doc': Add a new option --linkcheck r=mhentges DONTBUILD
Depends on D129283

Differential Revision: https://phabricator.services.mozilla.com/D129284
2021-11-29 09:28:35 +00:00
Renovate Bot 70881ec0dc no bug - Update dependency Sphinx to v4.3.1 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D132303
2021-11-28 16:16:30 +00:00
Christian Holler 6110156f18 Bug 1738278 - Add fuzzing snapshot API. r=truber,firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D129823
2021-11-25 11:20:43 +00:00
Mitchell Hentges abeedf3bbd Bug 1717051: Automatically create and activate Mach virtualenv r=ahal
Consolidate Mach virtualenv management to the front of the
Mach process. This obsoletes `./mach create-mach-environment`
and simplifies the `sh` portion of the top-level `./mach` script.

This helps ensure that the Mach virtualenv doesn't become
out-of-sync and simplifies the mental model of the Mach
virtualenv situation.

Differential Revision: https://phabricator.services.mozilla.com/D120401
2021-11-24 20:06:33 +00:00
Mitchell Hentges 2f04d64a12 Bug 1717051: Remove "install-moz-phab" from nativecmds r=ahal
It was in `nativecmds` to make finding `pip3` easier.
However, since we're removing the distinction between "regular" and
"native" cmds (Mach will create and activate its venv naturally during
initialization), we need to start pruning the `nativecmds` list.
Fortunately, we can use the stored "external_python" value to decide
where to install "moz-phab" to.

The new behaviour continues to support the following use cases:
* Using Mach with system Python in the `$PATH`.
* Using Mach from within a human-managed virtualenv.
* Either of the above^ in combination with `MACH_USE_SYSTEM_PYTHON`.

Differential Revision: https://phabricator.services.mozilla.com/D120397
2021-11-24 20:06:33 +00:00
Nika Layzell acedd82927 Bug 1734739 - Part 3: Stop providing pids in places where it's not needed/used, r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D128220
2021-11-24 17:56:01 +00:00
Nika Layzell 26555d958a Bug 1734739 - Part 1: Stop requiring otherpid for ShareTo, r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D128218
2021-11-24 17:56:00 +00:00
afinder bb49296ca2 Bug 1735324 [perfdocs] Enumerate AWSY tests using PerfDocs r=perftest-reviewers,sparky,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D128198
2021-11-24 14:57:28 +00:00
Sylvestre Ledru d6ba1a7419 Bug 1707591 - ride along: update of the flake8 dep to match black's r=linter-reviewers,ahal
Depends on D131717

Differential Revision: https://phabricator.services.mozilla.com/D131718
2021-11-22 22:10:04 +00:00
Sylvestre Ledru c9ed427926 Bug 1707591 - ride along: update of the pylint dep to match black's r=linter-reviewers,ahal
Depends on D130965

Differential Revision: https://phabricator.services.mozilla.com/D131717
2021-11-22 22:10:03 +00:00
Sylvestre Ledru 0bd2d56002 Bug 1707591 - Update to black 21.11b1 r=gerard-majax
Depends on D131716

Differential Revision: https://phabricator.services.mozilla.com/D130964
2021-11-22 22:10:03 +00:00
Sylvestre Ledru 0369d71fc0 Bug 1707591 - Parse the new output of black --version r=linter-reviewers,ahal
Depends on D126202

Differential Revision: https://phabricator.services.mozilla.com/D131716
2021-11-22 22:10:02 +00:00
Renovate Bot d7e0dac10a Bug 1731749 - Update dependency pylint to v2.11.1 r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D126202
2021-11-22 22:10:02 +00:00
Alexis Beingessner 285ecd4b8f Bug 1741205 - remove tools/crashreporter/minidump_stackwalk r=gsvelto
This version of minidump-stackwalk is now replaced with rust-minidump's
minidump-stackwalk, which we build from a FETCH. Not touching the other
stuff in this directory because I have no idea what it is.

Differential Revision: https://phabricator.services.mozilla.com/D131316
2021-11-22 20:33:34 +00:00
Sylvestre Ledru 1e47dd5d4f Bug 1738988 - Add support for trojan source detection in mozlint r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D131086
2021-11-19 08:37:28 +00:00
Miko Mynttinen 5775d7535a Bug 1741654 - Bump try chooser dependencies r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D131389
2021-11-17 17:22:07 +00:00
Gregory Mierzwinski ca271d11d6 Bug 1732956 - Add facebook/reddit responsiveness tests. r=perftest-reviewers,kimberlythegeek
This patch adds 4 new interactive tests for facebook and reddit. The patch updates the recordings as well as needed. Furthermore, an update to the visualmetrics.py script is needed to handle a permafailure in the reddit-post tests. Note that the reddit-post test was split in 2 since they are quite large.

Differential Revision: https://phabricator.services.mozilla.com/D130665
2021-11-17 15:12:34 +00:00
Gerald Squelart 3330214613 Bug 1740247 - Add labels in gtest so that stacks are not empty even when native stack-walking is not available - r=canaltinova
On some platforms (e.g., Mac beta or release), native stack-walking is currently unavailable. In this case, simple tests with with no labels (or other non-native frames) would be totally empty, and would fail when expecting any data in the "samples" sections of profiles.
This is fixed by adding one label, which guarantees that stacks won't be empty.

Differential Revision: https://phabricator.services.mozilla.com/D131100
2021-11-16 21:23:29 +00:00
Mitchell Hentges b7b1442242 Bug 1730712: Remove external use of `_run_pip()` r=perftest-reviewers,ahal,sparky
As `_run_pip()` is being removed from `VirtualenvManager` in an upcoming
patch, its usages need to be removed. Besides, they're using an
"internal" function, which is a bit of a smell.

Note that this _could_ have been solved by exposing a public `run_pip()`
function. However, I felt like that was worse because:
* Friction here is good as we try to migrate the codebase to embrace the
  "requirements definition file" technique to install dependencies.
* There could be confusion about the relationship between
  `install_pip_package()` (only works if venv already activated)
  and `_run_pip()`, which works "in general".

Differential Revision: https://phabricator.services.mozilla.com/D130120
2021-11-16 21:14:41 +00:00
Will Kahn-Greene e6d2fa42bb Bug 1594515 - Pass INTERNET_FLAG_SECURE when using https symbol supplier. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D130927
2021-11-16 13:13:23 +00:00