Commit Graph

9531 Commits

Author SHA1 Message Date
Andrew Halberstadt
1e1b1683bc Bug 1749772 - [tryselect] Normalize 'manifest_relpath' in filter_tasks_by_paths, r=Gijs
Ideally 'manifest' and 'manifest_relpath' should be normalized to forward
slashes upstream in the TestResolver class. But normalizing them there could
potentially break other uses in-tree, and I don't have bandwidth to do a proper
audit to be confident I'm not breaking something elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D136183
2022-01-18 14:43:50 +00:00
Andrew Halberstadt
c3b4f0fb57 Bug 1749772 - [tryselect] Convert test_resolve_tests_by_suite to use parameterization, r=releng-reviewers,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D136182
2022-01-18 14:43:49 +00:00
Gerald Squelart
8b4d852418 Bug 1744670 - Collect process CPU utilization - r=canaltinova
Process running times are stored in a new counter that only exists while the profiler is running.

Differential Revision: https://phabricator.services.mozilla.com/D133173
2022-01-17 23:01:30 +00:00
Gerald Squelart
18d4946ed0 Bug 1744670 - New feature: "Process CPU Utilization" aka "processcpu" - r=florian,canaltinova
The actual implementation is in the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D133599
2022-01-17 23:01:29 +00:00
Gerald Squelart
ebfafdcf18 Bug 1744670 - ProfiledThreadData can take a ThreadRegistrationInfo by rvalue reference - r=canaltinova
This helps when dealing with threads that are not registered, e.g.: the Java thread, and the upcoming whole-process thread. And it removes some object copies.

Differential Revision: https://phabricator.services.mozilla.com/D133172
2022-01-17 23:01:29 +00:00
Gerald Squelart
374831dc94 Bug 1744670 - ProfiledThreadData doesn't need nsIEventTarget - r=canaltinova
The nsIEventTarget* parameter was not actually used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D133171
2022-01-17 23:01:29 +00:00
Jesse Schwartzentruber
69a30b6cc7 Bug 1742857 - Add Grizzly fuzzing framework smoke test. r=tsmith,ahal
Differential Revision: https://phabricator.services.mozilla.com/D132279
2022-01-13 14:23:11 +00:00
Gerald Squelart
67edebb322 Bug 1749498 - PrintUsage doesn't exit anymore, exits are done explicitly - r=canaltinova
`PrintUsageThenExit(code)` was supposed to exit when `code` was not zero, but:
- The name didn't reflect that, so it was confusing that `PrintUsageThenExit(0)` would *not* exit.
- The implementation in the Base Profiler exited anyway! This caused issues with some legacy code that still used the now-removed "threads" feature.

This patch renames the function to just `PrintUsage()` and never exits, leaving the caller to invoke `exit(code)` as needed -- with the added benefit that it's possible to exit with a zero code, useful in cases where an exit is not actually an error.

Differential Revision: https://phabricator.services.mozilla.com/D135666
2022-01-12 12:16:59 +00:00
Neil Deakin
5f1ff58926 Bug 371900, remove more now-unneeded empty oncommand attributes, r=bgrins,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135243
2022-01-11 20:02:30 +00:00
Agi Sferro
024994e801 Bug 1724480 - Upgrade JDK to Java 17. r=glandium,ahal,calu
Differential Revision: https://phabricator.services.mozilla.com/D131972
2022-01-11 19:16:01 +00:00
James Graham
eacdb834af Bug 1749463 - Add a mach docs show-targets command, r=firefox-source-docs-reviewers,ahal
This generates a list of all known targets in an existing build of the
docs. That makes it easier/possible to figure out what references
exist and can be used.

Differential Revision: https://phabricator.services.mozilla.com/D135596
2022-01-11 16:32:56 +00:00
James Graham
f76ad255a6 Bug 1748845 - Add a custom mechanism to make some docs warnings fatal, r=ahal,firefox-source-docs-reviewers,sylvestre
The idea is to capture the warnings in a temporary file, and then
apply a set of regex to find any that should be treated as fatal.

This allows us to fix warnings one type at a time, and prevents us
regressing the warnings that are already fixed.

The "reference target not count" warning is added to the initial
forbidden list, so we can ensure we don't end up with internal links
pointing to nowhere.

Differential Revision: https://phabricator.services.mozilla.com/D135389
2022-01-11 10:48:23 +00:00
Kershaw Chang
f159addb13 Bug 1741425 - Enable more xpcshell tests with socket process, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D134484
2022-01-11 09:50:14 +00:00
Rob Lemley
87150cdcab Bug 1748288 - Update typed-ast dependency in pylint and black linters. r=linter-reviewers,ahal
Black and PyLint linters fail to install with Python 3.10 because of typed-ast.
typed-ast 1.4.3 added support for Python 3.10.

Differential Revision: https://phabricator.services.mozilla.com/D135538
2022-01-10 22:32:27 +00:00
Evgenia Kotovich
a37f1a86b6 Bug 1747684 - Clone instantEditBookmark.js to editBookmark.js and connect both. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D134774
2022-01-10 18:40:39 +00:00
Evgenia Kotovich
b913d2cf14 Bug 1747684 - Rename editBookmark.js to instantEditBookmark.js. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D134723
2022-01-10 18:40:39 +00:00
Joel Maher
114ba628fb Bug 1749043 - perfdocs to upload artifact in .diff format. r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D135417
2022-01-10 14:49:30 +00:00
criss
e2948093fb Backed out 2 changesets (bug 371900) for causing bug 1749182 . CLOSED TREE
Backed out changeset e59035c65af3 (bug 371900)
Backed out changeset 6434bce9c7d4 (bug 371900)
2022-01-09 16:26:02 +02:00
Neil Deakin
64a4726936 Bug 371900, remove more now-unneeded empty oncommand attributes, r=bgrins,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135243
2022-01-08 18:07:21 +00:00
Kimberly Sereduck
1b4f227bcc Bug 1724219: make browsertime command warning less scary r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D135356
2022-01-07 20:26:58 +00:00
Alexandru Michis
e0e0fe9d03 Backed out changeset 34f8cfa0813b (bug 1746414) for breaking local builds.
CLOSED TREE
2022-01-06 00:01:54 +02:00
Andrew Halberstadt
d3f1ddd6d3 Bug 1746414 - Use standalone taskgraph's parameters module in Gecko, r=taskgraph-reviewers,jmaher
Rather than defining a distinct `Parameter` class for Gecko, this now uses the
`extend_parameters_schema` utility function (which mobile repos are already
using).

As a consequence, shared parameters are now defined in standalone taskgraph.
And only Gecko-specific parameters are listed in
`gecko_taskgraph/parameters.py`

The only exception is `project` which gets redefined so we can override the
standalone taskgraph default (since it derives `project` from the repo name,
which doesn't work for Gecko).

Differential Revision: https://phabricator.services.mozilla.com/D134515
2022-01-05 16:37:43 +00:00
Andreas Pehrson
dda53ce32f Bug 1748280 - Add TraceMarker and friends to support GeckoTraceEvent with args in the profiler. r=gerald,padenot
Many revisions later... this is my best shoehorning attempt of webrtc's trace
events into the profiler.

It is not an optimal fit as the profiler wants a static schema, and the trace
event framework provides labels and values for the args dynamically.

But it allows displaying all args in the profiler which is a big step for
low-maintenance webrtc trace event integration into the profiler.

Differential Revision: https://phabricator.services.mozilla.com/D135031
2022-01-05 15:26:26 +00:00
Andreas Pehrson
0ea25dd011 Bug 1748280 - Update GeckoTraceEvent to plumb through trace args. r=padenot
This patch changes where we hook into GeckoTraceEvent.h and lets us capture
args.

Differential Revision: https://phabricator.services.mozilla.com/D135030
2022-01-05 15:26:25 +00:00
Andreas Pehrson
8fd80792ea Bug 1748280 - Add trace_event_internal section verbatim to GeckoTraceEvent. r=padenot
This patch adds a part of TraceEvent.h that we had previously skipped. It
handles the conversion from the arg-ful TRACE_EVENTn forms to the internal
representation which carries around a dynamic number of args (num_args and
friends).

This allows us to hook into GeckoTraceEvent.h at a higher level, where all trace
events end up, with or without args.

Differential Revision: https://phabricator.services.mozilla.com/D135029
2022-01-05 15:26:25 +00:00
Butkovits Atila
64c8533f75 Backed out 7 changesets (bug 1746361, bug 1748280, bug 1746347) for causing failures at browser_interaction-between-interfaces.js. CLOSED TREE
Backed out changeset eccba94506f0 (bug 1748280)
Backed out changeset baf39ae53772 (bug 1748280)
Backed out changeset 775843562f7e (bug 1748280)
Backed out changeset 0987c68e9683 (bug 1748280)
Backed out changeset 58dd008520da (bug 1746361)
Backed out changeset 6f9e800877a6 (bug 1746347)
Backed out changeset f78e794a9c2f (bug 1746347)
2022-01-05 13:53:57 +02:00
Andreas Pehrson
85d7b8b995 Bug 1748280 - Add TraceMarker and friends to support GeckoTraceEvent with args in the profiler. r=gerald,padenot
Many revisions later... this is my best shoehorning attempt of webrtc's trace
events into the profiler.

It is not an optimal fit as the profiler wants a static schema, and the trace
event framework provides labels and values for the args dynamically.

But it allows displaying all args in the profiler which is a big step for
low-maintenance webrtc trace event integration into the profiler.

Differential Revision: https://phabricator.services.mozilla.com/D135031
2022-01-05 10:54:22 +00:00
Andreas Pehrson
2b53926682 Bug 1748280 - Update GeckoTraceEvent to plumb through trace args. r=padenot
This patch changes where we hook into GeckoTraceEvent.h and lets us capture
args.

Differential Revision: https://phabricator.services.mozilla.com/D135030
2022-01-05 10:54:21 +00:00
Andreas Pehrson
098f6a41dd Bug 1748280 - Add trace_event_internal section verbatim to GeckoTraceEvent. r=padenot
This patch adds a part of TraceEvent.h that we had previously skipped. It
handles the conversion from the arg-ful TRACE_EVENTn forms to the internal
representation which carries around a dynamic number of args (num_args and
friends).

This allows us to hook into GeckoTraceEvent.h at a higher level, where all trace
events end up, with or without args.

Differential Revision: https://phabricator.services.mozilla.com/D135029
2022-01-05 10:54:21 +00:00
Andrew Halberstadt
19bac8e7bf Bug 1746414 - [tryselect] Fix cramtest error if PATH env contains a binary with spaces, r=releng-reviewers,aki
Differential Revision: https://phabricator.services.mozilla.com/D134511
2022-01-04 21:51:26 +00:00
Gerald Squelart
990e9d9558 Bug 1742606 - Don't set the name of the main thread from the profiler - r=florian
The name of the main thread outside the profiler should not be set by the profiler (to "GeckoMain"), as this may affect the name of the application itself on some systems like Linux.

Added tests to ensure that the profiler doesn't set that main thread public name to "GeckoMain", and also that other threads are publicly named when first registered with the profiler.

Differential Revision: https://phabricator.services.mozilla.com/D134847
2022-01-03 13:19:04 +00:00
Bas Schouten
36a9249dc8 Bug 1747079: Add the ability to record counters with perfstats. r=acreskey
Differential Revision: https://phabricator.services.mozilla.com/D134418
2022-01-01 20:36:27 +00:00
Mitchell Hentges
37a1a70a52 Bug 1730712: Maintain sys.path consistency in nested Mach calls r=ahal
This patch resolves cases like the following:
1. The system Python has `zstandard`.
2. `MOZ_AUTOMATION=1 ./mach python --virtualenv psutil <script>`
   is run, adding `psutil` to the import scope.
3. `<script>` runs Mach a _second_ time, and this time Mach needs to
   be able to import `zstandard` (in this case, it should be able
   to fetch it from the system Python's site-packages).

The previous behaviour would add the "site-packages" of the //invoking//
Python interpreter, but ancestor packages would get dropped.

To rectify this issue, this patch changes "import inheritance" to keep
more of the `sys.path`, rather than just
`<external-python>.all_site_packages_dirs()`.

Note: the original implementation of this patch passed forward *all*
of the `sys.path` when creating virtualenvs. However, this caused issues
when Mach ran `pip`, because `pip` was no longer able to discover the
"standard library" (it was failing because it assumed all paths defined
in a virtualenv's site were non-standard-library paths, and the original
implementation broke that assumption).

As part of this, a distinction was defined between the "current" Python
interpreter (external_python) and the top-level Python interpreter
(original_python). This was needed to enable discovering which paths
are "standard library paths".

Differential Revision: https://phabricator.services.mozilla.com/D134201
2021-12-29 21:10:22 +00:00
Mitchell Hentges
fe354152f6 Bug 1730712: Bump pluggy and py versions for pytest compat r=ahal
`pytest` requires `pluggy<0.7,>=0.5` and `py>=1.5.0`.
Since `python-test` jobs use a Docker image that installs
`tox_requirements`, and the system packages are used (due to `zstandard`
existing), we need to ensure compatibility.

Depends on D132082

Differential Revision: https://phabricator.services.mozilla.com/D134451
2021-12-29 20:54:42 +00:00
Martin Thomson
222f4654e3 Bug 1745678 - Remove TLS 1.0/1.1 override UX, r=Gijs,mkaply,fluent-reviewers
I've erred on the side of removing code here.  I think that I got most of it,
but there was quite a bit of accrued code.

Thanks to Gijs for fluent fixups (and code cleanup).  This retains some notice
of the failed version.

Bug 1586846, Bug 1579285, Bug 1586846, and Bug 1617275 all added code here.

Differential Revision: https://phabricator.services.mozilla.com/D133591
2021-12-28 23:39:43 +00:00
Aki Sasaki
b480a06e9a Bug 1747280 - nuke comm/ after cross-channel. r=mhentges,releng-reviewers,jmaher DONTBUILD
We clean up our Gecko clone between tasks via `hg robustcheckout --purge`, which runs `hg purge`. This is very effective, *but* it doesn't detect or clean up any nested clones.

Because we run cross-channel on Gecko workers, and because we clone `comm/` in cross-channel and haven't cleaned it up, and because `hg purge` doesn't detect or clean up nested clones, and because our current virtualenv setup code traverses the tree and can error out on `comm/` clones, let's clean up `comm/` after running cross-channel.

We'll be moving TB cross-channel to different tasks/workers in bug 1742711, and ideally we can update robustcheckout and/or `hg purge` to be able to detect and/or clean up nested clones.

Differential Revision: https://phabricator.services.mozilla.com/D134582
2021-12-28 18:56:47 +00:00
Iulian Moraru
ddbe8b52ac Backed out changeset 68098f573c46 (bug 1747280) for causing Bug 1747545. CLOSED TREE 2021-12-24 20:28:14 +02:00
Aki Sasaki
a6f09dd1ef Bug 1747280 - nuke comm/ after cross-channel. r=releng-reviewers,jmaher DONTBUILD
We clean up our Gecko clone between tasks via `hg robustcheckout --purge`, which runs `hg purge`. This is very effective, *but* it doesn't detect or clean up any nested clones.

Because we run cross-channel on Gecko workers, and because we clone `comm/` in cross-channel and haven't cleaned it up, and because `hg purge` doesn't detect or clean up nested clones, and because our current virtualenv setup code traverses the tree and can error out on `comm/` clones, let's clean up `comm/` after running cross-channel.

We'll be moving TB cross-channel to different tasks/workers in bug 1742711, and ideally we can update robustcheckout and/or `hg purge` to be able to detect and/or clean up nested clones.

Differential Revision: https://phabricator.services.mozilla.com/D134582
2021-12-23 19:25:02 +00:00
James Graham
e6d5fc7dfd Bug 1746948 - Remove deleted directory from whitespace lint config, a=testonly CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D134616
2021-12-23 15:17:33 +00:00
Sylvestre Ledru
2c4082a199 no bug - Update dependency Sphinx to v4.3.2 r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D134239
2021-12-22 09:07:29 +00:00
Gabriele Svelto
97a5174c27 Bug 1201598 - Add a midir-based implementation for WebMIDI r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D131351
2021-12-21 11:34:52 +00:00
Kelsey Gilbert
db4de3eeb3 Bug 1734141 - Improve clarity of try percentile estimates. r=ahal
Avoid "percentile" for user output, since it's not clear if e.g. a 10th
percentile push duration is good or bad.
(Also the previous output incorrectly displayed "10% percentile" for a
90th percentile push duration estimate)

Differential Revision: https://phabricator.services.mozilla.com/D134112
2021-12-20 22:44:12 +00:00
Gerald Squelart
1144535227 Bug 1729815 - Remove unnecessary profiler feature "threads" - r=julienw,perftest-reviewers,AlexandruIonescu
This feature doesn't have any effect anymore.

Differential Revision: https://phabricator.services.mozilla.com/D133860
2021-12-20 21:03:09 +00:00
Gerald Squelart
7b40fa572e Bug 1729815 - Allow empty feature list, or bitset=0 - r=julienw
This is necessary, because the next patch will remove the "threads" feature, and some tests only add that one feature so now they will have an empty feature list, equivalent to a feature bitset of 0 (zero).

Differential Revision: https://phabricator.services.mozilla.com/D134136
2021-12-20 21:03:09 +00:00
Gerald Squelart
16ce2f0dcc Bug 1726861 - Loosen expected marker start time - r=canaltinova
On macOS, we get intermittent failures when comparing a marker start time with the start of the test, with a difference of 0.00004166666666094443, which is very close to 24kHZ! I'm not too sure of the significance of this time difference (OS time slice resolution), but an easy fix for this intermittent is to loosen the expected time from 1e-6 to 5e-5.

Differential Revision: https://phabricator.services.mozilla.com/D134258
2021-12-20 19:42:39 +00:00
championshuttler
a3dd4bd705 Bug 1746782 - Support myst parser and remove recommanmark.r=firefox-source-docs-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D134242
2021-12-20 09:45:44 +00:00
Sylvestre Ledru
08662aaec5 Bug 1743088 - ignore some amiga incorrectly formatted file r=RyanVM DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D133863
2021-12-19 10:17:30 +00:00
Emilio Cobos Álvarez
be1a744435 Bug 1744102 - Remove servo/components/{hashglobe,fallible} in favor of try_reserve. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D134194
2021-12-18 09:54:24 +00:00
Mike Hommey
41cd2c96c2 Bug 1743832 - Autobootstrap fix-stacks if it's not available when needed. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134118
2021-12-17 22:47:51 +00:00
Markus Stange
875a34857d Bug 1362277 - Add an entry for dyld to the shared library list on macOS. r=gerald
This patch was r+ed before by Ted, but it never landed because I initially intended
to address Ted's review comment (about making it work on 10.11 and below), and
because it needed to be rebased around bug 1374888.
The rebase turned out to be really simple, and Ted's review comment no longer applies
because Firefox no longer runs on 10.11 and below.

Profile with fix: https://share.firefox.dev/3oYzvO6

Differential Revision: https://phabricator.services.mozilla.com/D134008
2021-12-17 11:54:28 +00:00