Commit Graph

1337 Commits

Author SHA1 Message Date
Nicolas Chevobbe
323e177418 Bug 1480201 - Fix intermittent on webconsole autocomplete damp test. r=bomsy,perftest-reviewers,sparky.
We used to clear a timeout in HTMLTooltip which is supposed to resolve a Promise
when it's executed, meaning that we could end up with Promises that would never
resolve.
In the test itself, we wait for a tick between each loop iteration and after hiding
the popup to make sure everything has the time to be painted.

Differential Revision: https://phabricator.services.mozilla.com/D83912
2020-07-17 14:11:47 +00:00
Julian Descottes
c648e30896 Bug 1652983 - Add logs in DAMP test helper openToolbox r=daisuke,perftest-reviewers,sparky
This should help investigate timeouts occuring during toolbox open in DAMP

Differential Revision: https://phabricator.services.mozilla.com/D83650
2020-07-16 18:47:50 +00:00
Julian Descottes
e0fea8d6ee Bug 1652690 - Remove outdated eslint rule for devtools/shared/platform r=nchevobbe,perftest-reviewers,sparky
Small cleanup of eslint rules.

Differential Revision: https://phabricator.services.mozilla.com/D83477
2020-07-15 14:59:19 +00:00
Scott
2bcdc17387 Bug 1649883 - Fix user pref for pocket toggle off. r=gvn,remote-protocol-reviewers,perftest-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D82773
2020-07-15 14:51:02 +00:00
Kris Maglione
b6be72f351 Bug 1649554: Part 1 - Move deprecated component registration helpers out of XPCOMUtils. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,whimboo,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81749
2020-07-10 23:58:30 +00:00
Kris Maglione
9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Tom Prince
204d796929 Bug 1651731: [lint] Python and shell files without #! should not be executable; r=linter-reviewers,perftest-reviewers,geckoview-reviewers,agi,sylvestre,sparky
Differential Revision: https://phabricator.services.mozilla.com/D82954
2020-07-09 20:29:18 +00:00
Andrea Marchesini
3c1b71a6e4 Bug 1651618 - Use cookie 'SameSite' attribute with capital 'S' everywhere, r=flod,fluent-reviewers,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,whimboo,sparky
Differential Revision: https://phabricator.services.mozilla.com/D82872
2020-07-09 20:40:15 +00:00
Julian Descottes
c32dffdf40 Bug 1647366 - Re-enable context menu tests that were skipped for fission r=ochameau,perftest-reviewers,Bebe
Depends on D80909

Differential Revision: https://phabricator.services.mozilla.com/D80910
2020-07-08 14:12:33 +00:00
Nika Layzell
446a1b2c89 Bug 1599579 - Part 6: Handle process switches in talos pageloader.js, r=mconley,perftest-reviewers,Bebe
This is done by reloading framescripts and re-attaching message listeners when
process switch events are fired.

Differential Revision: https://phabricator.services.mozilla.com/D81136
2020-07-06 19:45:46 +00:00
kanishk509
4652478d3d Bug 1380676 - Replace usages of Date.now() with performance.now() in testing/talos. r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81575
2020-07-07 11:55:04 +00:00
Andreea Pavel
68244e3252 Bug 1480201 - disable webconsole/autocomplete.js for frequent failures r=perftest-reviewers,jmaher,sparky
Differential Revision: https://phabricator.services.mozilla.com/D82259
2020-07-06 12:03:23 +00:00
Dorel Luca
6aa252b6bf Backed out changeset d2cfd29e2bb5 (bug 1380676) on Dev's request. CLOSED TREE 2020-07-06 15:44:41 +03:00
kanishk509
bb37a68522 Bug 1380676 - Replace usages of Date.now() with performance.now() in testing/talos. r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81575
2020-07-02 16:24:05 +00:00
Gerald Squelart
56736f31c3 Bug 1648507 - Distinguish pausing sampling only from pausing the whole profiler - r=canaltinova,perftest-reviewers,geckoview-reviewers,agi
The profiler can be "paused", which stops sampling, and since bug 1578329 stops markers as well.

Some test suites use pausing between tests (to better differentiate the tests, to keep the profiler ready to run, and to lower the amount of recorded data). But this causes problems with some tracing markers, as their matching ends have not been recorded (e.g., an end marker is missing), which show up as very loooong markers.
To solve this, we need to be able to pause sampling only, but keep recording markers.
But we still need to be able to pause the whole profiler, in particular before capturing, to avoid recording anything around that time.

This big patch is mostly mechanical changes: Wherever there are "Pause" and "Unpause/Resume" profiler functions, we add matching "PauseSampling" and "UnpauseSampling/ResumeSampling" functions that only impact the periodic sampling loop; And existing "Pause/Unpause/Resume" imply pausing sampling as well.
Exceptions and extra work:
- nsIProfiler (the JS API) already had `Pause/ResumeSampling()`, which misleadingly paused everything! Now they do the right thing, and we have `Pause/Resume()` as well.
- All tests using `Pause/ResumeSampling()` now use `Pause/Resume()`, except for Talos tests that only pause sampling between tests; Added some extra `Pause()` calls to pause everything before capturing profiles.
- GeckoJavaSampler doesn't handle pausing/resuming everything, this should be done in a follow-up bug.
- Sampling-only pauses are not streamed into JSON. If needed, we should follow-up, with potential work on the front-end to deal with these.

Differential Revision: https://phabricator.services.mozilla.com/D81492
2020-07-02 01:36:27 +00:00
Yura Zenevich
d8a089d118 Bug 1602054 - add a DAPM test for the accessibility panel that measures open/close toolbox on it against simple document. r=jdescottes,perftest-reviewers,sparky
Depends on D80512

Differential Revision: https://phabricator.services.mozilla.com/D81370
2020-06-30 16:28:57 +00:00
Yura Zenevich
9af969dee0 Bug 1602054 - add cold open DAMP test for the accessibility panel. r=perftest-reviewers,jdescottes,Bebe
This is a brand new (and first) DAMP talos test for accessibility panel. "accessibility.cold-open" is similar to other cold open tests such as inspector one. It opens accessibility panel, waits for its UI to render and then closes the toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D80512
2020-06-30 10:26:19 +00:00
Butkovits Atila
146ad267af Backed out 6 changesets (bug 1599579) for bc failures at test_chrome_ext_contentscript_data_uri.html.
Backed out changeset b767f26b10ed (bug 1599579)
Backed out changeset c5bc0ea42193 (bug 1599579)
Backed out changeset cfdd8d5973d4 (bug 1599579)
Backed out changeset 73f6c956fc30 (bug 1599579)
Backed out changeset 14698ab42ee4 (bug 1599579)
Backed out changeset b4bdd8759433 (bug 1599579)
2020-06-30 21:41:27 +03:00
Nika Layzell
35d83dbe5a Bug 1599579 - Part 6: Handle process switches in talos pageloader.js, r=mconley,perftest-reviewers,Bebe
This is done by reloading framescripts and re-attaching message listeners when
process switch events are fired.

Differential Revision: https://phabricator.services.mozilla.com/D81136
2020-06-30 15:55:49 +00:00
Julian Descottes
772f4d693d Bug 1646636 - Skip tests with inspect element in same process frames if fission is enabled r=ochameau,perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D80815
2020-06-30 10:22:10 +00:00
Florian Quèze
49bfcec471 Bug 1648510 - Make DAMP profiler markers use ChromeUtils.addProfilerMarker, r=ochameau,perftest-reviewers,Bebe.
Differential Revision: https://phabricator.services.mozilla.com/D81133
2020-06-30 10:24:07 +00:00
Florian Quèze
697f943653 Bug 1648169 - Replace Services.profiler.AddMarker with ChromeUtils.addProfilerMarker in Talos, r=perftest-reviewers,igoldan.
Differential Revision: https://phabricator.services.mozilla.com/D80914
2020-06-30 09:46:13 +00:00
Gerald Squelart
6c4a10dba6 Bug 1630448 - Set MOZ_PROFILER_STARTUP_NO_BASE=1 in Talos tests - r=canaltinova
Talos tests suffer the most from intermittents that seem due to the Base Profiler.
So until symptoms are reduced (bug 1648324) or the root cause is fixed (bug 1648325), Talos tests will run without the Base Profiler.

Differential Revision: https://phabricator.services.mozilla.com/D81019
2020-06-25 07:34:36 +00:00
Julian Descottes
426d07f236 Bug 1646636 - Disable devtools.contenttoolbox.fission in inspector tests for frames + context menu r=ochameau,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D80503
2020-06-23 13:26:06 +00:00
Sylvestre Ledru
46af48052b Bug 1646421 - flake8 Fix a bunch of actual errors r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D80078
2020-06-20 09:46:45 +00:00
Mike Conley
e40f4cfba0 Bug 1622088 - Part 3: Add startup_about_home_paint_cached Talos test. r=davehunt,perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D71794
2020-06-16 17:18:27 +00:00
Butkovits Atila
eafc99f75d Backed out changeset 5b6153efe67f (bug 1645488) as requested by dev a=backout 2020-06-16 18:03:51 +03:00
Taegeon Lee
44587e00b4 Bug 1645488 Remove condition and set required to not mach_interface r=perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D79600
2020-06-16 14:31:25 +00:00
Coroiu Cristina
7d48b5a40a Backed out changeset 49c61831e2a7 (bug 1645488) on request by bebe 2020-06-16 14:22:05 +03:00
Taegeon Lee
8771ba314f Bug 1645488 Remove condition for '--executablePath' command and set required to false r=perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D79600
2020-06-16 09:43:17 +00:00
Emilio Cobos Álvarez
421c78970d Bug 1599160 - Allow waiting for less expected requests in a complicated netmonitor test. r=bomsy,perftest-reviewers,sparky
The complicated test loads a lot of iframes. Now that with my changes we
coalesce stylesheet loads across documents it's expected to have way
less network loads for this test, which has a lot of facebook iframes
that load multiple stylesheets each.

The value is the one that made it reliably pass on my machine.

Differential Revision: https://phabricator.services.mozilla.com/D79394
2020-06-15 13:15:35 +00:00
Emilio Cobos Álvarez
88493a8db6 Bug 1599160 - Wait for less zoom messages in a DAMP test. r=nchevobbe,perftest-reviewers,sparky
DAMP refreshes the page that it loads, and it bypasses the caches, but
we still coalesce in-progress loads, so it's expected to see less of
this.

This actually caught another issue, that I'm fixing in bug 1645180.

Differential Revision: https://phabricator.services.mozilla.com/D79352
2020-06-15 13:53:46 +00:00
Razvan Maries
7b30d6e82e Backed out 7 changesets (bug 1599160) for damp failures. CLOSED TREE
Backed out changeset edb0e17f3c98 (bug 1599160)
Backed out changeset 64b42ac358e6 (bug 1599160)
Backed out changeset ce1521b895e1 (bug 1599160)
Backed out changeset 0b0ff0ad8db7 (bug 1599160)
Backed out changeset c7ef05dae614 (bug 1599160)
Backed out changeset 466cfd0ad5db (bug 1599160)
Backed out changeset b3f28494f0e7 (bug 1599160)
2020-06-12 02:40:38 +03:00
Emilio Cobos Álvarez
76be476529 Bug 1599160 - Temporarily don't wait for the zoom messages in a DAMP test. r=nchevobbe a=NPOTB. CLOSED TREE
DAMP refreshes the page that it loads, but doesn't clear the stylesheet
cache, so the second+ time around some of the zoom messages will not be
sent.

This is actually a wider issue, that I plan to fix in bug 1645180.
Meanwhile don't wait for these messages.

Differential Revision: https://phabricator.services.mozilla.com/D79352
2020-06-11 20:26:12 +00:00
Kunchanapalli Shriram
75c48c9453 Bug 1518313 - Removes --geckoProfile from talos-test mach command and replaces it with --gecko-profile; r=AlexandruIonescu,perftest-reviewers
Also removes import argparse as per https://bugzilla.mozilla.org/show_bug.cgi?id=1518313#c15
Addresses defect found in code analysis as per https://code-review.moz.tools/#/diff/242580
Changes parameters value as per https://phabricator.services.mozilla.com/D66380#2132590

Differential Revision: https://phabricator.services.mozilla.com/D66380
2020-06-09 13:22:15 +00:00
Dorel Luca
13c718e2f2 Backed out 3 changesets (bug 1622088) for XPCshell and Browser-chrome failurs on browser/abouthomecache/browser_process_crash.js. CLOSED TREE
Backed out changeset 238fa307504a (bug 1622088)
Backed out changeset ceaa7857baea (bug 1622088)
Backed out changeset 9c75ae56f50e (bug 1622088)
2020-06-08 20:17:42 +03:00
Mike Conley
5871cc1e82 Bug 1622088 - Part 3: Add startup_about_home_paint_cached Talos test. r=davehunt,perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D71794
2020-06-08 15:56:38 +00:00
Sonia Singla
228fa97fb8 Bug 1628599 - Fixing all links pointing to docs.firefox-dev.tools r=Honza,remote-protocol-reviewers,perftest-reviewers,maja_zf,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D77560
2020-06-01 10:58:38 +00:00
David Major
2372940165 Bug 1642749 - Reduce the iterations on the attr-selector-1.html perf test r=perftest-reviewers,emilio,Bebe
`attr-selector-1.html` currently takes 89 seconds on my machine. That's quite an outlier when its sibling tests are in the few-tenths to few-seconds range.

Because these tests are run for PGO, I'm concerned about a risk of overtraining. The #1 function in our profile, related to the attrs test, has 1200M counts, while more typical values for our hottest functions are in the 200M range. This might make functions lower on the list seem colder than they really are.

Differential Revision: https://phabricator.services.mozilla.com/D77899
2020-06-04 08:21:34 +00:00
Cameron McCormack
4d86697e24 Bug 1641108 - Add perf-reftest-singleton for bug 1640545 changes. r=emilio,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D76966
2020-05-27 12:01:53 +00:00
Greg Tatum
4d20207a95 Bug 1628073 - Remove the view_gecko_profile.py tool; r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D74294
2020-05-22 13:19:58 +00:00
Greg Tatum
593ab0604f Bug 1628073 - Move gecko profiler testing files to mozgeckoprofiler; r=sparky,perftest-reviewers,gbrown
I need to add symbolication support for the mochitest Gecko Profiler command line
option. These profiles also need to be symbolicated. Unfortunately, there is not
a common place where I could use these files. Talos and Raptor each had their
own copy of the snappy symbolication server.

This commit consolidates these packages into a re-usable mozbase package that can
be used in mochitests, and eventually in other places like xpcshell tests.

I stubbed out a test file, but it doesn't do anything quite yet. This commit makes
it so that the tests still work in Raptor and Talos, but doesn't add any features.
It also doesn't try too hard to make the files look like a mozbase package.

Differential Revision: https://phabricator.services.mozilla.com/D74289
2020-05-22 13:18:44 +00:00
Greg Tatum
11e4654387 Bug 1628073 - Document some of the symbolication python code; r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D74287
2020-05-22 13:17:55 +00:00
Greg Tatum
01b425b6d5 Bug 1628073 - Rewrite view_gecko_profile.py to open a URL; r=perftest-reviewers,sparky
The current implementation opens the built Firefox in the objdir. This is not
optimal as the built Firefox is not really great for viewing files in. The build
could be broken. With this patch, the profiles will instead be opened in the users
default browser.

Differential Revision: https://phabricator.services.mozilla.com/D70089
2020-05-22 13:17:30 +00:00
Razvan Caliman
d8b0ded34b Bug 1636111 - Add DAMP test for Inspector Rules view with many CSS Variables r=jdescottes,sparky,perftest-reviewers
Inspecting a node with many CSS variables makes the Rules view render slowly. A patch to improve performance is in development in D73062.

This patch adds a new subtest, `custom.inspector.manycssvariables.selectnode`, to the existing custom Inspector DAMP test to measure the rendering time for a node with 300 CSS variables all of them used (600 declarations in total).

It might seem extreme. In May 2020 youtube.com has 1,375 CSS variables applicable to the `<html>` element. They all get inherited by all CSS rules for most nodes on the page. This slows down the action of inspecting CSS for any node. The largest CSS rule from youtube's stylesheets has 287 declarations of CSS variables. In the age of automatically-generated stylesheets for design systems this scenario becomes more common.

Differential Revision: https://phabricator.services.mozilla.com/D73289
2020-05-12 14:09:25 +00:00
alexandru.ionescu
3497d554d1 Bug 1614805 Part 2: modify the re.match expression to cover the empty event r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D73608
2020-05-12 12:25:27 +00:00
Nicolas Chevobbe
1c52c579d2 Bug 1595046 - Display thrown object as inspectable elements. r=Honza,perftest-reviewers,davehunt.
This patch use the new `exception` and `hasException` field from nsIScriptError
so we can render the actual object in the message error instead of a stringified
version.
Error object are still displayed using the `customFormat` prop, so we display
only the type + message + stacktrace (but we'll have a way to inspect them
in the sidebar soon).
Existing tests were updated to fix failures, and some tests/test cases were
added to make sure we cover all the different kind of errors we can display
in the console.

Differential Revision: https://phabricator.services.mozilla.com/D71288
2020-05-11 10:38:57 +00:00
Csoregi Natalia
9955440e45 Backed out 3 changesets (bug 1622088) for sanitizer failures on RootingAPI.h. CLOSED TREE
Backed out changeset 43477ef52982 (bug 1622088)
Backed out changeset 35c3d2b322fa (bug 1622088)
Backed out changeset 77f71cbc61ec (bug 1622088)
2020-05-06 01:32:41 +03:00
Mike Conley
cef57051cc Bug 1622088 - Part 3: Add startup_about_home_paint_cached Talos test. r=davehunt,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D71794
2020-05-05 21:03:52 +00:00
Dão Gottwald
fc90cf03c9 Bug 1634861 - Set ui.prefersReducedMotion instead of toolkit.cosmeticAnimations.enabled for tabpaint. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D73541
2020-05-04 20:43:44 +00:00