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

10230 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner a24dca9645 Bug 1798212 - Replace defineModuleGetter in Integration.sys.mjs with a ES version. r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D161014
2022-11-07 17:56:10 +00:00
Ray Kraesig 54ac39289a Bug 1772908 - [1/6] Drive-by cleanup: simplify use of SyncRunnable r=xpcom-reviewers,necko-reviewers,nika,valentin
`SyncRunnable`'s helper functions take an `nsIRunnable *`; but the most
common way of building nsIRunnables, `NS_NewRunnableFunction`, returns
an `already_AddRefed<nsIRunnable>` instead. Add two new overloads of the
helper functions to eliminate the impedance mismatch.

(This does result in an uncomfortable amount of code duplication. While
we could eliminate that with appropriate use of SFINAE, it'll be simpler
if we wait for C++20 and its `requires` keyword.)

Additionally, add two explicitly-deleted overloads to catch and prevent
a previously-common antipattern that presumably resulted from this type
mismatch: accidentally wrapping the actual runnable in two layers of
`SyncRunnable`. Fix the former use-sites appropriately. (This was
probably harmless, but is also probably best avoided.)

No functional changes. This is in some sense a continuation of bug
1281626.

(This is no longer actually relevant to bug 1772908 due to a different
approach being taken. It remains in the patchset anyway, for
simplicity's sake.)

Differential Revision: https://phabricator.services.mozilla.com/D157131
2022-11-04 21:04:18 +00:00
Andrew Halberstadt 57a3ce8eb1 Bug 1759030 - [gecko_taskgraph] Use 'generator.py' from upstream Taskgraph, r=releng-reviewers,jlorenzo
Differential Revision: https://phabricator.services.mozilla.com/D161057
2022-11-04 14:14:57 +00:00
Stanca Serban 616c282bed Backed out 3 changesets (bug 1759030) for causing Bug 1799074. CLOSED TREE
Backed out changeset 9c52daf6117c (bug 1759030)
Backed out changeset 9940b1cf6881 (bug 1759030)
Backed out changeset 3f2b2e009c00 (bug 1759030)
2022-11-04 11:22:09 +02:00
Mark Striemer 6064b195e4 Bug 1798911 - Setup lit for development of toolkit widgets r=hjones
Differential Revision: https://phabricator.services.mozilla.com/D161141
2022-11-03 21:32:34 +00:00
Andrew Halberstadt 600e27df8e Bug 1759030 - [gecko_taskgraph] Use 'generator.py' from upstream Taskgraph, r=releng-reviewers,jlorenzo
Differential Revision: https://phabricator.services.mozilla.com/D161057
2022-11-03 20:51:15 +00:00
Greg Mierzwinski 49933a9b54 Bug 1754823 - Add tests for the perf selector. r=ahal
This patch adds two parametrized tests (totalling 18 tests) for the perf selector. The first set of 15 tests are for testing the category expansions under different configurations. The last 3 tests are for testing the run methods in the three configurations that we offer: standard, dry runs, and uncategorized test selection (or --show-all).

Depends on D160418

Differential Revision: https://phabricator.services.mozilla.com/D160419
2022-11-03 20:32:49 +00:00
Greg Mierzwinski 09e3c10025 Bug 1754823 - Add the run methods to the perf selector. r=ahal
This patch adds the run methods for the perf selector as well as the entry point for the mach command. It also produces the Perfherder URL at the end.

Depends on D160417

Differential Revision: https://phabricator.services.mozilla.com/D160418
2022-11-03 20:32:48 +00:00
Greg Mierzwinski 752452c92e Bug 1754823 - Add a push-to-try method to the perf selector. r=perftest-reviewers,AlexandruIonescu
This patch adds a method that allows us to push to try. It performs two pushes similar to the compare selector, except in this case we're also capturing the logs in all cases so that we can provide a Perfherder URL afterwards. At the same time, this patch adds a LogProcessor that can capture these logs and parse them for the revisions.

Depends on D160416

Differential Revision: https://phabricator.services.mozilla.com/D160417
2022-11-03 20:32:48 +00:00
Greg Mierzwinski 6033625a33 Bug 1754823 - Refactor the CompareParser for the perf selector. r=AlexandruIonescu
Depends on D160415

Differential Revision: https://phabricator.services.mozilla.com/D160416
2022-11-03 20:32:48 +00:00
Greg Mierzwinski 481f75f7ee Bug 1754823 - Add methods for getting tasks for the perf selector. r=perftest-reviewers,AlexandruIonescu
This patch adds two methods for getting/selecting tasks. The first one (get_tasks) is used to either query fzf directly, or to use interactively for user selections. The second (get_perf_tasks) makes use of the first to query for categories (through the user) and then query for the selected tasks. It also performs all the necesary intersections/unions for the queries.

These two are separated because we need a simple way to allow the user to look and select the raw tasks instead of categories if needed. This way the user can still get a comparison link at the end instead of going to `mcah try fuzzy`. See the next patches.

Depends on D160414

Differential Revision: https://phabricator.services.mozilla.com/D160415
2022-11-03 20:32:47 +00:00
Greg Mierzwinski 701d837573 Bug 1754823 - Add a method for expanding the perf categories. r=perftest-reviewers,AlexandruIonescu
This patch adds a method for expanding the categories. This method takes all the configuration details from the PerfParser (variants, apps, platforms, etc.) and combines them to create the categories that people will be seeing and selecting from. It creates the queries, and checks for any restrictions among them to provide selections that work. See the method for more details on all of this.

Depends on D160413

Differential Revision: https://phabricator.services.mozilla.com/D160414
2022-11-03 20:32:47 +00:00
Greg Mierzwinski f69b2746c8 Bug 1754823 - Add a new perf selector skeleton file. r=perftest-reviewers,AlexandruIonescu
This patch adds the basics for the perf selector: file, categorizations, selector configuration, and CLI arguments.

Depends on D155980

Differential Revision: https://phabricator.services.mozilla.com/D160413
2022-11-03 20:32:46 +00:00
Greg Mierzwinski 35261aea3a Bug 1754823 - Add a flag to allow capturing the push-to-try logs. r=ahal,AlexandruIonescu
This patch adds a `capture_log` flag that will allow a user to capture the logs produced when running the `push_to_try` methods. Currently, we use `subprocess.check_call` which causes hg to hang when we attempt to redirect and gather stdout. Using `subprocess.run` is better as it lets us capture the logs, but the log output is very slow and can easily lead people to believe that hg is hanging when it's not. This results in corrupted repos. Using Popen, the logs are output slower than `check_call`, but faster than `run` so you know something is happening. The speed at which these logs are printed is also why I have this log capturing behind a flag.

This functionality will be used in the `./mach try perf` selector to capture the child revisions produced for the try task config file changes and allow us to produce a PerfCompare link to provide the user.

Differential Revision: https://phabricator.services.mozilla.com/D155980
2022-11-03 20:32:46 +00:00
Alexandre Poirot 2a996e9bd8 Bug 1797274 - [devtools] Track source-map gecko API performance. r=perftest-reviewers,bomsy,jdescottes,sparky
We can't test source-map package performance yet as it isn't exposed
and only loaded within a webpack bundle.

But it would be nice to also cover the code on top of the source-map package,
the "source map loader".

Differential Revision: https://phabricator.services.mozilla.com/D160199
2022-11-03 14:05:44 +00:00
Marco Castelluccio 4653814bfe Bug 1492495 - Add flake8-isort plugin to sort Python includes, with support for autofixing through isort. r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D157320
2022-11-03 13:50:46 +00:00
Mark Banner 2e9d0e6771 Bug 1798727 - Extend the rejected-words linter to cover idl and webidl files as well. r=linter-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D161049
2022-11-03 13:46:09 +00:00
Makoto Kato 1b99d3294e Bug 1797472 - Convert Messaging.jsm to ESM. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D160349
2022-11-02 14:31:59 +00:00
Makoto Kato 1071dbbb59 Bug 1798604 - ThirdPartyPaths.txt has no correct exoplayer2 path. r=andi
Third-party's exoplayer2 path is changed to mobile/android/exoplayer2 by
bug 1745246. So we should update ThirdPartyPaths.txt too.

Differential Revision: https://phabricator.services.mozilla.com/D160999
2022-11-02 07:23:51 +00:00
Drew Willcoxon 2743a9059e Bug 1798595 - Refactor quick suggest [Part 5]: Move remote settings code into QuickSuggestRemoteSettingsClient and initialization into QuickSuggest. r=daisuke
This does the following:

* Moves quick suggest initialization from UrlbarQuickSuggest to QuickSuggest
* Renames UrlbarQuickSuggest.sys.mjs to QuickSuggestRemoteSettingsClient.sys.mjs, so now this file is focused only on remote settings
* Makes QuickSuggest create an instance of QuickSuggestRemoteSettingsClient and keep it as `QuickSuggest.remoteSettings`
* Moves latency telemetry from UrlbarProviderQuickSuggest into QuickSuggestRemoteSettingsClient
* Changes the ad hoc logger used in QuickSuggestRemoteSettingsClient to a proper urlbar-style logger
* Updates consumers to use `QuickSuggest.remoteSettings` instead of UrlbarQuickSuggest

Please see bug 1798595 for details.

Depends on D160985

Differential Revision: https://phabricator.services.mozilla.com/D160986
2022-11-02 06:50:15 +00:00
Cristian Tuns 4d37cf70f1 Backed out 19 changesets (bug 1541508) for causing xpcshell failures on test_notHeadlessByDefault.js CLOSED TREE
Backed out changeset 08476fa2bc27 (bug 1541508)
Backed out changeset 0bf7514845db (bug 1541508)
Backed out changeset aa612a5e9ef7 (bug 1541508)
Backed out changeset 6bb9360473f7 (bug 1541508)
Backed out changeset b3d8e92f50c2 (bug 1541508)
Backed out changeset fa40dded133e (bug 1541508)
Backed out changeset 2e7db4aa8d4f (bug 1541508)
Backed out changeset 6098e2eb62ea (bug 1541508)
Backed out changeset 2c599ee639c4 (bug 1541508)
Backed out changeset 7d44f6e2644c (bug 1541508)
Backed out changeset c1279c3d674c (bug 1541508)
Backed out changeset 8bd08a62a590 (bug 1541508)
Backed out changeset 740010cb005c (bug 1541508)
Backed out changeset 0bfc7dd85c62 (bug 1541508)
Backed out changeset c4374a351356 (bug 1541508)
Backed out changeset 44ccfeca7364 (bug 1541508)
Backed out changeset e944e706a523 (bug 1541508)
Backed out changeset 2c59d66f43e4 (bug 1541508)
Backed out changeset a1896eacb6f1 (bug 1541508)
2022-11-01 22:38:52 -04:00
Mike Hommey 39ca7d2cd7 Bug 1788183 - Convert parse_pbzx.py to python3. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D156056
2022-11-02 02:16:26 +00:00
Barret Rennie bff6b9dd65 Bug 1541508 - Use Services.env in tools/ r=marco
Differential Revision: https://phabricator.services.mozilla.com/D160150
2022-11-02 02:08:59 +00:00
Barret Rennie 97878864fa Bug 1541508 - Expose nsIEnvironment as Services.env r=xpcom-reviewers,kmag
Differential Revision: https://phabricator.services.mozilla.com/D160135
2022-11-02 02:08:52 +00:00
Mike Hommey bee90b0f95 Bug 1784202 - Update builders to clang 15. r=firefox-build-system-reviewers,andi
We keep clang 14 for webrender-wrench for now, because of bug 1789346.

Differential Revision: https://phabricator.services.mozilla.com/D155532
2022-11-01 23:46:33 +00:00
Andrew Halberstadt 6fcdd883c0 Bug 1458882 - [moztreedocs] Add flag to dump sphinx trees to a file, r=firefox-source-docs-reviewers,sylvestre
This will enable tools like searchfox to map source files in the
tree to their rendered URLs.

Differential Revision: https://phabricator.services.mozilla.com/D157929
2022-11-01 21:03:07 +00:00
Florian Quèze 4bba6dade3 Bug 1528859 - Replace %p with the process id in the MOZ_PROFILER_SHUTDOWN environment variable, r=canaltinova.
(Original patch by Gerald Squelart <gsquelart@mozilla.com>)

Differential Revision: https://phabricator.services.mozilla.com/D157193
2022-11-01 20:25:23 +00:00
Florian Quèze 6a265545a8 Bug 1797734 - Include the CPU name in the meta data of profiles, r=canaltinova.
Differential Revision: https://phabricator.services.mozilla.com/D160500
2022-11-01 20:22:24 +00:00
Eden Chuang 66c572f595 Bug 1793940 - Disconnect StreamFilters on HttpChannelChild before relink ServiceWorker fallback channel. r=necko-reviewers,valentin
Since in D159582, the original HttpChannelChild/HttpChannelParent is reused instead of creating a new one. We need to clean up the StreamFilters which are already attached.

In original logic, this would be handled when StreamFilterParent::OnStartRequest is called(). By comparing the stored StreamFilterParent::mChannel and nsIRequest passed into StreamFilterParent::OnStartRequest, StreamFilterParent can know if the redirection happens or not, such that StreamFilterParent can decide should disconnect or not in OnStartRequest(). However, after D159582, since HttpChannelChild is reused, the logic would not work for ServiceWorker fallback redirection.

Opening the new nsHttpChannel in the parent process makes StreamFilters be attached to the original HttpChannelChild again, and it would send duplicate messages (OnStartRequest, OnDataAvailable, OnStopRequest) to the extension. So we need to remove the previous attached StreamFilters before opening the new channel.

In this patch, we introduce a new IPC method PHttpBackgroundChannel::DetachStreamFilters to inform the corresponding HttpChannelChild to disconnect StreamFilters. Unfortunately this introduces that HttpChannelChild needs to keep weak references of StreamFilters since we have no way to traverse the HttpChannelChild's listener chain and do special handling in StreamFilterParent only.

Depends on D159582

Differential Revision: https://phabricator.services.mozilla.com/D160203
2022-10-28 00:33:47 +00:00
steven100695 a3f2b1c51f Bug 1788919 - Convert browser/components/migration JSM modules to ESMs. r=mconley,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D158655
2022-10-27 23:52:49 +00:00
Florian Queze b5546684d4 Bug 1797697 - Make names of power tracks for AMD CPUs on Windows 11 more user friendly, r=smaug.
Differential Revision: https://phabricator.services.mozilla.com/D160548
2022-10-27 22:08:11 +00:00
Noemi Erli 01a2d27871 Backed out 2 changesets (bug 1788919) for causing failures in browser_noLoginsView.js CLOSED TREE
Backed out changeset 2f03490ec72e (bug 1788919)
Backed out changeset 449aea6fc974 (bug 1788919)
2022-10-27 23:45:56 +03:00
steven100695 14e60b6839 Bug 1788919 - Convert browser/components/migration JSM modules to ESMs. r=mconley,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D158655
2022-10-27 18:15:55 +00:00
Mark Banner d6f514d75b Bug 1797687 - Add more files to esmify's excluded list. r=arai
Depends on D160489

Differential Revision: https://phabricator.services.mozilla.com/D160490
2022-10-27 13:16:22 +00:00
Mark Banner 70b9304dd5 Bug 1756912 - Add detailed error output for eslint-plugin-mozilla tests. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D160470
2022-10-27 11:07:56 +00:00
Sylvestre Ledru e8a133b9f6 no bug - lint/spell: update to version 2.2.2 r=linter-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D160276
2022-10-27 09:42:14 +00:00
Sandor Molnar 55c9f970f6 Backed out changeset 59151d6a9b0b (bug 1784202) for causing crashes @strlen + 0x30 2022-10-26 14:59:24 +03:00
Mark Banner 9613c19f16 Bug 1795880 - Add an ESLint rule to enforce using static imports where possible. r=arai,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D160131
2022-10-26 09:37:46 +00:00
Mike Hommey cfce5ea6fe Bug 1784202 - Update builders to clang 15. r=firefox-build-system-reviewers,andi
We keep clang 14 for webrender-wrench for now, because of bug 1789346.

Differential Revision: https://phabricator.services.mozilla.com/D155532
2022-10-25 07:28:24 +00:00
Mark Banner 719c95c126 Bug 1796143 - Add some new modules to esmify's map. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D159710
2022-10-25 07:10:56 +00:00
Mark Banner 997539e60c Bug 1796143 - Allow esmify to fix sjs files. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D159708
2022-10-25 07:10:55 +00:00
Tooru Fujisawa 2895212026 Bug 1796539 - Update allowlist of modules in ./mach esmify. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D159926
2022-10-25 07:02:38 +00:00
Simon Friedberger 53fb91b8d3 Bug 1791394 - Add DAP frontend which handles sending/receiving of data. r=chutten,mconley
Differential Revision: https://phabricator.services.mozilla.com/D157752
2022-10-24 17:56:13 +00:00
Marian-Vasile Laza bfba58d8e6 Backed out 3 changesets (bug 1795873, bug 1796539) as req by the dev (arai). CLOSED TREE
Backed out changeset de1917baf71d (bug 1796539)
Backed out changeset 8326cc71c2dd (bug 1795873)
Backed out changeset 292542f833fe (bug 1795873)
2022-10-24 16:05:20 +03:00
Tooru Fujisawa e6b8e3604b Bug 1796539 - Update allowlist of modules in ./mach esmify. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D159926
2022-10-24 12:22:31 +00:00
Mark Banner 7653256174 Bug 1795652 - Drop support for node 12.x series in eslint-plugin-mozilla, start using optional chaining. r=mossop
This upgrades the minimum node version to 14, as 12.x is out of support.
This also means we can start to use optional chaining in the plugin code - so I've taken a quick look through and used it in a few instances where it makes sense to.

Differential Revision: https://phabricator.services.mozilla.com/D159493
2022-10-24 10:33:15 +00:00
Kagami Sascha Rosylight dccb7ff29a Bug 1795968 - Part 2: Stop emitting the word "whitelist" to the console r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D159722
2022-10-20 21:16:12 +00:00
Kagami Sascha Rosylight f29c0cd51a Bug 1795968 - Part 1: Esmify dom/push/*.jsm r=smaug
Included IndexedDBHelper since it's only used and tested by PushDB.

Differential Revision: https://phabricator.services.mozilla.com/D159631
2022-10-20 21:16:11 +00:00
Iulian Moraru 7f78673181 Backed out 3 changesets (bug 1796143) for causing mochitest failures on test_double_submit.html. CLOSED TREE
Backed out changeset d02d2c2ad921 (bug 1796143)
Backed out changeset 680008b18ad1 (bug 1796143)
Backed out changeset 61a9ae6c1a8f (bug 1796143)
2022-10-20 22:59:56 +03:00
Greg Mierzwinski 50fc5bc9e0 Bug 1754823 - Move tryselect fzf utils to separate file. r=ahal
This patch moves the fzf utility methods to a separate file so that they can be used by other try choosers such as the perf chooser. At the same time, helper methods for two aspects of the `mach try fuzzy` run method (setting up the tasks, and building the base command) are added but the code in the run method is left untouched.

Differential Revision: https://phabricator.services.mozilla.com/D159585
2022-10-20 18:18:04 +00:00