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

8933 Коммитов

Автор SHA1 Сообщение Дата
Gerald Squelart 93fc93adba Bug 1710607 - If not profiling, make ShutdownProfilerChild dispatch SYNC - r=canaltinova
When not profiling, ShutdownProfilerChild should be quick, so it's safe to run synchronously.
In this case, we don't need to manually shutdown the thread (to wait for the previously-async task).
This removes the risky thread-shutdown with its inner event-handling loop, where all crashes in bug 1613798 happen.

Differential Revision: https://phabricator.services.mozilla.com/D114845
2021-05-12 10:44:33 +00:00
Kimberly Sereduck afadbdf9a1 Bug 1706627: Migrate static wiki content for AWSY tests to PerfDocs r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D113858
2021-05-11 20:08:08 +00:00
Alex Ionescu 40e4622730 Bug 1707233 - Fix perfdocs manifest and recording names r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113243
2021-05-11 13:58:59 +00:00
Matt Woodrow 97cdf4f16e Bug 1707513 - Add reftest-snapshot task using the 'drawSnapshot' reftest mode. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D114189
2021-05-10 00:28:01 +00:00
Alexandru Michis 4b2cad43d1 Backed out 2 changesets (bug 1707513) for causing reftest failures in partial-prerender-expansion-with-resolution-1.html
Backed out changeset f9bdd1b929f2 (bug 1707513)
Backed out changeset b76d28f3a159 (bug 1707513)
2021-05-08 22:13:23 +03:00
Matt Woodrow 2f98b2305c Bug 1707513 - Add reftest-snapshot task using the 'drawSnapshot' reftest mode. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D114189
2021-05-08 05:52:19 +00:00
Florian Quèze 7a8983cc88 Bug 1705318 - substract the memory used by the profiler buffer when sampling the memory counter, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D114397
2021-05-07 09:32:11 +00:00
Gerald Squelart e2d8ae5a08 Bug 1708350 - profiler_suspend_and_sample_thread can now sample the current thread - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D114115
2021-05-06 23:23:40 +00:00
Cosmin Sabou 59ec919b24 Bug 1709496 - Fix clippy mozlint failure. r=glandium 2021-05-07 00:46:37 +03:00
Mike Hommey a23f5eb33e Bug 1709496 - Attribute clippy issues to the specific file where they are. r=sylvestre
And fix the paths filtering.

Differential Revision: https://phabricator.services.mozilla.com/D114308
2021-05-06 21:17:56 +00:00
Mike Hommey faeedaaeef Bug 1708379 - Adapt mozlint clippy test to pass with rustc 1.52. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D114450
2021-05-06 20:36:52 +00:00
Sandor Molnar 6ceb5f92a7 Backed out 10 changesets (bug 1696531) for causing mochitest failures in TypeError: cannot use a string pattern on a bytes-like object. CLOSED TREE
Backed out changeset abc85e3c21b0 (bug 1696531)
Backed out changeset 82445e26060e (bug 1696531)
Backed out changeset 97771570e425 (bug 1696531)
Backed out changeset c3f229148f6c (bug 1696531)
Backed out changeset 9557ff3065bc (bug 1696531)
Backed out changeset 98d17a5f6886 (bug 1696531)
Backed out changeset b0eee4af2caf (bug 1696531)
Backed out changeset 544be24f74be (bug 1696531)
Backed out changeset ddcc795bf838 (bug 1696531)
Backed out changeset e5e76f56ceb9 (bug 1696531)
2021-05-06 23:57:56 +03:00
Andrew Halberstadt a2d458f2a1 Bug 1696531 - Keep Python 2 compatibility in tools/rb/fix_stacks.py for now, r=bhearsum
This file is also used by some browser-chrome tests which are still Python 2
for now. So let's not drop PY2 compat just yet.

Depends on D109728

Differential Revision: https://phabricator.services.mozilla.com/D111728
2021-05-06 19:51:36 +00:00
Ben Hearsum 16e50ef8ae Bug 1696531: fix dmd.py and related tools to support python 3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D109731
2021-05-06 19:51:34 +00:00
Marco Castelluccio 3704fab7e3 Bug 1639164 - Use bugbug's config selection results by default when using 'mach try auto'. r=ahal DONTBUILD
By making the new strategy with bugbug's config selection and a low confidence threshold the
default for 'mach try auto'.

Differential Revision: https://phabricator.services.mozilla.com/D114365
2021-05-06 15:52:28 +00:00
Alexandru Michis 5a9064f6fa Backed out 3 changesets (bug 1639164) for causing python flake8 and ci failures.
CLOSED TREE

Backed out changeset 7a4401a358e8 (bug 1639164)
Backed out changeset f1377ee7e2d2 (bug 1639164)
Backed out changeset f9c73976484d (bug 1639164)
2021-05-06 11:49:01 +03:00
Marco Castelluccio c1190c06f7 Bug 1639164 - Use bugbug's config selection results by default when using 'mach try auto'. r=ahal DONTBUILD
By making the new strategy with bugbug's config selection and a low confidence threshold the
default for 'mach try auto'.

Depends on D114364

Differential Revision: https://phabricator.services.mozilla.com/D114365
2021-05-06 08:17:44 +00:00
Daisuke Akatsuka de295a0344 Bug 1511062: Implement a mechanism to fire bookmark-moved event. r=mak
Depends on D102572

Differential Revision: https://phabricator.services.mozilla.com/D102573
2021-05-06 04:24:34 +00:00
Csoregi Natalia ead13148c2 Backed out 4 changesets (bug 1511062) for causing bustage on nsNavHistoryResult.cpp. CLOSED TREE
Backed out changeset ed9ac8c3097b (bug 1511062)
Backed out changeset dc8c9488cf1a (bug 1511062)
Backed out changeset 2cf6fca33bf3 (bug 1511062)
Backed out changeset 87b0bbbcb0e6 (bug 1511062)
2021-05-06 05:53:12 +03:00
Daisuke Akatsuka 832afb7a7e Bug 1511062: Implement a mechanism to fire bookmark-moved event. r=mak
Depends on D102572

Differential Revision: https://phabricator.services.mozilla.com/D102573
2021-05-06 02:29:43 +00:00
Henrik Skupin 808d8e61ec Bug 1700454 - [geckodriver] Add geckodriver try preset. r=webdriver-reviewers,ahal,sparky,jdescottes DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D113465
2021-05-05 19:35:37 +00:00
Mitchell Hentges df45b126d1 Bug 1698616: Bump python dependencies r=firefox-build-system-reviewers,glandium
Did you know that our version of requests was from 2015? Phwoar!
This bumps `jinja2`, `py`, `pyyaml`, `requests` and `urllib3`.
There's significant risk for regressions due to breaking changes,
though due to the dynamic nature of Python, they're tricky to track
down.

The potential breaking changes I'm expecting to potentially affect
us are:

* `requests@2.11.0`: No longer accepts non-strings as header values.
* `requests@2.16.0`: `requests.packages` namespace was removed due to
  packages no longer being vendored. The namespace has been
  incrementally restored over future releases, but it's unclear to
  what degree.
* `requests@2.24.0`: Redirect resolution now only happens when
  `allow_redirects` is `True`.
* `requests` version of `urllib3` was bumped from `1.13.1` to `1.26`,
  unsure what repercussions that will have.

This also added dependencies to `flake8_requirements`. This is because
the vendored `importlib-metadata` update (and the new
`typing-extensions` dependency) is found by `pip`, but the
vendored `typing-extensions` is _not_ discovered (perhaps due to
details around "eggs" and the way we add vendored code to the sys.path).
So, `pip` tries to install it manually and fails when it finds no hash.
By re-compiling `flake8_requirements`, the necessary hashes are made
available.

Differential Revision: https://phabricator.services.mozilla.com/D108526
2021-05-04 20:43:26 +00:00
Calixte Denizet 11d5119f80 Bug 1541224 - Avoid to use uninitialized handle when flushing ccov counters r=marco
Counters can be flushed before init has been called so this patch add a condition in FlushCounters to be sure that everything has been initialized.

Differential Revision: https://phabricator.services.mozilla.com/D110575
2021-05-04 16:02:49 +00:00
Mike Hommey c43f8a0984 Bug 1708935 - Don't run clippy on crates that don't build on Linux. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D114210
2021-05-04 09:31:12 +00:00
Glenn Watson 7947bc10f1 Bug 1706824 - Remove old direct-composition example. r=gfx-reviewers,lsalzman
This was an old example / proof of concept of directly drawing
to a DirectComposition surface.

We now have the example-compositor/ project that shows how to
integrate with DirectComposition on Windows and Wayland on
Linux, in addition to a shipping implementation in Gecko for
CoreAnimation and DirectComposition.

Differential Revision: https://phabricator.services.mozilla.com/D113052
2021-05-04 00:32:41 +00:00
Mike Hommey fb2daa993e Bug 1708592 - Install clang-format via a toolchain artifact. r=sylvestre
(Drive-by) Similar to what we just did for rustfmt and clippy.

Differential Revision: https://phabricator.services.mozilla.com/D113906
2021-04-30 21:09:12 +00:00
Mike Hommey dc5646ba96 Bug 1708592 - Install rustfmt and clippy via a toolchain artifact. r=sylvestre
This will tie the version used for CI lints to the version of rust used
for builds on CI.

Bonus point: we can now have rustfmt and clippy on Windows and mac,
which allows to run the corresponding mozlint unit tests on those
platforms.

Differential Revision: https://phabricator.services.mozilla.com/D113905
2021-04-30 21:09:12 +00:00
Mike Hommey c2a87c9b07 Bug 1708592 - Normalize paths when filtering in clippy and rustfmt lints. r=sylvestre
Without normalization, the paths don't match the filters on Windows.

Differential Revision: https://phabricator.services.mozilla.com/D113904
2021-04-30 21:09:12 +00:00
Mike Hommey f2dcdd5390 Bug 1708592 - Get tools from MOZ_FETCHES_DIR on automation. r=firefox-build-system-reviewers,mhentges
While here, remove the unused clippyProcess.config. And because we need
to manipulate `$PATH` before running `cargo`, use the same wrapping
function in `get_clippy_version`.

Differential Revision: https://phabricator.services.mozilla.com/D113902
2021-04-30 21:09:11 +00:00
Mike Hommey 8a7d4ba4d9 Bug 1708591 - Disable test_eslint.py on Windows. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D113895
2021-04-30 08:12:31 +00:00
Valentin Gosu 9e4bdb9c25 Bug 1694662 - Remove old cache implementation r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D106456
2021-04-30 07:20:24 +00:00
Valentin Gosu 5c900317ff Bug 1694662 - Remove OfflineAppCacheHelper r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106445
2021-04-30 07:20:20 +00:00
Valentin Gosu 5aa53ddea9 Bug 1694662 - Remove OfflineCache update logic r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106443
2021-04-30 07:20:19 +00:00
Andrew Halberstadt 730d952a79 Bug 1708293 - [lint] Add a linter to prefer multiline skip-if statements in test manifests, r=releng-reviewers,jmaher
This will warn if someone includes something like:

    skip-if = <condition A> || <condition B>  # reason A is skipped; reason B is skipped

Instead they should use:

    skip-if =
        <condition A>  # reason A is skipped
        <condition B>  # reason B is skipped

Differential Revision: https://phabricator.services.mozilla.com/D113707
2021-04-29 18:38:59 +00:00
Florian Quèze 3e63d9143b Bug 1635442 - Only initialize LUL when the StackWalk feature is requested on Linux, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D113693
2021-04-29 15:27:26 +00:00
Alexandru Michis 335b6f5f96 Backed out changeset 6bd7baadb78c (bug 1702086) for causing Bug 1607574.
CLOSED TREE
2021-04-28 23:23:01 +03:00
Andi-Bogdan Postelnicu 6666ac0af8 Bug 1696180 - Update Clang based static analysis to clang 12. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D113330
2021-04-28 09:56:13 +00:00
Myeongjun Go a4c2f8da8d Bug 1698567 - [perfdocs] Provide a way to link directly to individual Raptor tests r=sparky,perftest-reviewers,firefox-source-docs-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D110779
2021-04-27 18:19:03 +00:00
Joel Maher ff43e8acc0 Bug 1577013 - turn off reftest-gpu jobs as they are not testing what they intend to and are being deprecated in the short term. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D112091
2021-04-27 15:32:46 +00:00
Gerald Squelart a354af1934 Bug 1707537 - Make ChildProfilerController::mThread thread-safe, and reset it before final dispatch and shutdown, to prevent re-entrancy - r=florian
Bug 1613798 (shutdown crashes during ChildProfilerController::ShutdownAndMaybeGrabShutdownProfileFirst's nsThread::Shutdown) could be explained by another nested shutdown destroying the same thread first, so when coming back to the first inner loop, there's a UAF on the already-destroyed thread!

Now we first reset the `mThread` pointer so it cannot be used by later/nested function calls, but keep a local reference (which should be the last one) to dispatch the shutdown operations and then shutdown the thread itself.

Also the thread pointer is now encapsulated in a DataMutex, in case it is accessed from different threads (e.g., the main thread and the IPC reception thread.)

Differential Revision: https://phabricator.services.mozilla.com/D113304
2021-04-26 23:17:02 +00:00
Steve Fink a45b73b47e Bug 1702310 - Add --gecko-profile-features and similar options to `mach try fuzzy` and `mach raptor` etc. to make it easier to generate marker-only profiles, configure threads and sampling interval, etc. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D110451
2021-04-26 21:59:29 +00:00
Sylvestre Ledru 5af4ac8850 Bug 1702922 - mozlint/clippy: Adjust the tests with the new version of clippy r=linter-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D113286
2021-04-26 09:12:24 +00:00
Sylvestre Ledru 518cfdaa66 Bug 1702922 - mozlint/clippy: Set the minimal version of clippy to 2021.03.23 r=linter-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D113285
2021-04-26 09:12:24 +00:00
Butkovits Atila 2e34e363b9 Backed out 2 changesets (bug 1696251) for causing js-bench-sm failures. CLOSED TREE
Backed out changeset 1c84c9a34575 (bug 1696251)
Backed out changeset e169193b7423 (bug 1696251)
2021-04-23 02:53:36 +03:00
Alex Lopez 41687360e8 Bug 1696251 - Turn all properties in MachCommandBase subclasses into methods. r=mhentges,perftest-reviewers,sparky
As a step towards moving mach commands outside of classes, this converts all
properties into methods so that they can later become top-level helper functions.

Differential Revision: https://phabricator.services.mozilla.com/D112196
2021-04-22 19:44:52 +00:00
Alex Lopez d1a82b8092 Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-04-22 18:56:15 +00:00
Dave Townsend 30b4f94dd3 Bug 1700972: Remove profile-per-install onboarding UI. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D112292
2021-04-21 20:06:31 +00:00
Myeongjun Go 5870ecd14e Bug 1691558 - Using an escape character to find the exact path r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D112182
2021-04-21 19:24:06 +00:00
imoraru 63d199a7e6 Backed out changeset b413fce77522 (bug 1698616) for breaking mach commands (bug 1706456). a=backout 2021-04-21 14:16:08 +03:00
Mitchell Hentges 73f81b1c85 Bug 1698616: Bump python dependencies r=firefox-build-system-reviewers,glandium
Did you know that our version of requests was from 2015? Phwoar!
This bumps `jinja2`, `py`, `pyyaml`, `requests` and `urllib3`.
There's significant risk for regressions due to breaking changes,
though due to the dynamic nature of Python, they're tricky to track
down.

The potential breaking changes I'm expecting to potentially affect
us are:

* `requests@2.11.0`: No longer accepts non-strings as header values.
* `requests@2.16.0`: `requests.packages` namespace was removed due to
  packages no longer being vendored. The namespace has been
  incrementally restored over future releases, but it's unclear to
  what degree.
* `requests@2.24.0`: Redirect resolution now only happens when
  `allow_redirects` is `True`.
* `requests` version of `urllib3` was bumped from `1.13.1` to `1.26`,
  unsure what repercussions that will have.

This also added dependencies to `flake8_requirements`. This is because
the vendored `importlib-metadata` update (and the new
`typing-extensions` dependency) is found by `pip`, but the
vendored `typing-extensions` is _not_ discovered (perhaps due to
details around "eggs" and the way we add vendored code to the sys.path).
So, `pip` tries to install it manually and fails when it finds no hash.
By re-compiling `flake8_requirements`, the necessary hashes are made
available.

Differential Revision: https://phabricator.services.mozilla.com/D108526
2021-04-20 13:57:47 +00:00