Commit Graph

1598 Commits

Author SHA1 Message Date
ogiorgis
81abd6a713 Bug 1749473 - Remove warnings from the generated talos.rst file r=perftest-reviewers,sparky DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D170330
2023-02-21 14:47:07 +00:00
Joel Maher
5189e8f6b4 Bug 1816110 - reduce error output from talos tabswitch. r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D169522
2023-02-15 16:04:33 +00:00
Alexandre Poirot
09e00fefc6 Bug 1813477 - [devtools] Convert all tests still using ActorClassWithSpec. r=devtools-reviewers,perftest-reviewers,jdescottes,sparky
Differential Revision: https://phabricator.services.mozilla.com/D169358
2023-02-14 10:34:19 +00:00
Gijs Kruitbosch
387cf24ca0 Bug 1810141 - fix tests to deal with changes to loadURI, r=mossop,perftest-reviewers,geckoview-reviewers,extension-reviewers,sparky,owlish
Depends on D168396

Differential Revision: https://phabricator.services.mozilla.com/D168397
2023-02-13 23:50:41 +00:00
Gijs Kruitbosch
4296f61b26 Bug 1810141 - fix pageloader.js to just load URIs,r=perftest-reviewers,mossop,sparky
Depends on D168395

Differential Revision: https://phabricator.services.mozilla.com/D168396
2023-02-13 23:50:41 +00:00
Cristina Horotan
5f4356e527 Backed out 9 changesets (bug 1810141) for several test failures on a CLOSED TREE
Backed out changeset 8781a0d1254d (bug 1810141)
Backed out changeset 131037295784 (bug 1810141)
Backed out changeset 3852fbe290f4 (bug 1810141)
Backed out changeset 118f131a524a (bug 1810141)
Backed out changeset ab5d76846e10 (bug 1810141)
Backed out changeset dce3aa683445 (bug 1810141)
Backed out changeset 4dc41d90dbb3 (bug 1810141)
Backed out changeset 50b57ba1a061 (bug 1810141)
Backed out changeset 569de94781e4 (bug 1810141)
2023-02-13 16:05:30 +02:00
Gijs Kruitbosch
ff1cc20bd7 Bug 1810141 - fix tests to deal with changes to loadURI, r=mossop,perftest-reviewers,geckoview-reviewers,extension-reviewers,sparky,owlish
Depends on D168396

Differential Revision: https://phabricator.services.mozilla.com/D168397
2023-02-13 12:55:26 +00:00
Gijs Kruitbosch
269159b655 Bug 1810141 - fix pageloader.js to just load URIs,r=perftest-reviewers,mossop,sparky
Depends on D168395

Differential Revision: https://phabricator.services.mozilla.com/D168396
2023-02-13 12:55:25 +00:00
Hubert Boma Manilla
660fe50452 Bug 1815168 - [devtools] Fix regression on webconsole damp tests r=jdescottes,perftest-reviewers,kshampur
Wait for the observer to be created before checking the predicate, so the results are accurate.

Differential Revision: https://phabricator.services.mozilla.com/D168945
2023-02-06 17:54:38 +00:00
Julian Descottes
b0b95baab1 Bug 1811138 - [devtools] Remove require calls to InspectorUtils r=ochameau,perftest-reviewers,sparky
Depends on D167211

Differential Revision: https://phabricator.services.mozilla.com/D167308
2023-02-06 09:47:18 +00:00
Neil Deakin
17635084c9 Bug 1812590, revert back to using a process script for setting up the about:tabswitch module as on some configurations it isn't set up before the page needs to create the about tabswitch channel, r=mconley,perftest-reviewers,kshampur
Differential Revision: https://phabricator.services.mozilla.com/D168739
2023-02-04 14:36:48 +00:00
James Teh
40a4d4b823 Bug 1813404: Fix missing startTime argument in a11y tablemutation Talos test. r=jlink,perftest-reviewers,sparky
This was accidentally removed in bug 1680766, causing the test to report NaN for all values.

Differential Revision: https://phabricator.services.mozilla.com/D168222
2023-02-02 01:52:47 +00:00
Hubert Boma Manilla
6e992536ac Bug 1810992 - [devtools] DAMP test for project search - time to first search result r=ochameau,perftest-reviewers,sparky
This patch adds a new DAMP test to track the time to when the user is able to interact with a clickable search result match.

Differential Revision: https://phabricator.services.mozilla.com/D167521
2023-02-01 17:24:05 +00:00
Hubert Boma Manilla
0d97d530a6 Bug 1810992 - [devtools] Add wait functions for use in damp tests r=ochameau,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D167987
2023-02-01 17:24:04 +00:00
Neil Deakin
768a4ed3e6 Bug 1663647, convert talos tab switching test to use actor-based RemotePageChild and remove usage of old RemotePageManager, r=mconley,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D167358
2023-01-24 14:47:08 +00:00
Mark Banner
60852a03b7 Bug 1811797 - Make Troubleshoot.snapshot an async function, rather than using a callback. r=mossop,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D167516
2023-01-23 18:09:02 +00:00
Nicolas Chevobbe
e1810af2e3 Bug 1810393 - [devtools] Remove unused url parameter in debugger-helper.js waitForText. r=jdescottes,perftest-reviewers,kshampur.
Differential Revision: https://phabricator.services.mozilla.com/D166889
2023-01-20 06:46:53 +00:00
Alexandre Poirot
e844ad87e1 Bug 1807896 - [devtools] Remove "toolbox-created" event. r=devtools-reviewers,perftest-reviewers,sparky,jdescottes
This event was only used in this test.

Unfortunately, I wasn't able to keep the same logic in the test while keeping it reliable.
I prefer to remove this test-only event and simplify the test to only ensure
we safely ignore subsequent calls to toggle.

What is hard to know from the test, when calling toggle in some following event loops
is if this will be ignored -or- close/open a toolbox...

Differential Revision: https://phabricator.services.mozilla.com/D165715
2023-01-18 09:27:30 +00:00
Nazım Can Altınova
989d804140 Bug 1738932 - Enable screenshots when capturing profiles from talos r=perftest-reviewers,kshampur
Profiler didn't have a screenshots feature added for the talos tests, that's
why we weren't capturing any screenshots for talos profiling tasks. Screenshots
make the analysis a lot easier when there is a regression that is related to
visual changes. Also they help people understand the state of a test. We already
have screenshots for raptor browsertime tests when the profiler is enabled. We
also wanted to enable this for talos  to give our users more context into
what the test is doing at a certain time.

After this patch, talos profiles will include tracks at the top of the profiler
analysis view that shows the screenshot of each window.

Differential Revision: https://phabricator.services.mozilla.com/D166930
2023-01-17 15:09:01 +00:00
Nicolas Chevobbe
d06af12cdd Bug 1006785 - [devtools] Add DAMP test for debugger pretty-printing. r=jdescottes,bomsy,perftest-reviewers,sparky.
Differential Revision: https://phabricator.services.mozilla.com/D166772
2023-01-16 06:50:38 +00:00
Joel Maher
4aa5fda7a5 Bug 1809252 - Allow talos-xperf to use run-as-administrator on win11 machines in CI. r=bxbrenden,perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D166391
2023-01-11 14:38:18 +00:00
Kash Shampur
4c39b81094 Bug 1759450 - Use in-tree wptserve for Raptor and Talos. r=perftest-reviewers,sparky
Presently we pull wptserve 3.0 from pypi, however it is incompatible with Python 3.10 that is shipping as default on more and more platforms (e.g. Linux).
This patch instead pulls the in-tree version of wptserve which is more up to date and compatible and should help future proof the Raptor and Talos tests.

Differential Revision: https://phabricator.services.mozilla.com/D166388
2023-01-10 21:14:04 +00:00
Gijs Kruitbosch
3762db01b9 Bug 1475606 - remove loadOneTab and switch its callers over, r=dao,perftest-reviewers,sparky
Depends on D165774

Differential Revision: https://phabricator.services.mozilla.com/D165775
2023-01-03 22:24:44 +00:00
Sylvestre Ledru
8c1ca7d7bc Bug 1808288 - ride along: lint: fix some windows CR r=linter-reviewers,marco
Depends on D165849

Differential Revision: https://phabricator.services.mozilla.com/D165850
2023-01-03 14:54:40 +00:00
Marco Castelluccio
9a5c674965 Bug 1801836 - Remove no longer necessary 'from __future__' imports under testing/. r=linter-reviewers,webdriver-reviewers,perftest-reviewers,ahal,afinder DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165399
2022-12-23 10:08:06 +00:00
Marco Castelluccio
8f59316975 Bug 1790816 - Reformat testing/ with isort. r=linter-reviewers,webdriver-reviewers,perftest-reviewers,jgraham,gbrown,whimboo,sparky,ahal
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162657
2022-12-21 14:38:37 +00:00
Alexandre Poirot
1ec54ba838 Bug 1806405 - [devtools] Remove code related to "show content message" toggle. r=perftest-reviewers,nchevobbe,kshampur
This was no longer implemented/shown in the fission browser toolbox.
Now that we removed the non-fission toolbox, we can remove this feature.
Instead, content process messages are shown/hidden depending on browser toolbox's scope.
"everything" will show them. "parent-process" won't.

Differential Revision: https://phabricator.services.mozilla.com/D165026
2022-12-20 19:30:30 +00:00
Alexandre Poirot
efb7f408c5 Bug 1805378 - [devtools] Make the SourceMapLoader be instantiated per toolbox. r=bomsy,perftest-reviewers,kshampur
This complexify the existing tests a bit, but will make the management from the Toolbox more obvious.

The metrics test highlights that we allow to prevent loading the sourcemap modules
unless it is strictly necessary!

(Also I forgot to remove the source-map-loader from the list of browser loader module...)

Differential Revision: https://phabricator.services.mozilla.com/D164694
2022-12-20 19:09:57 +00:00
Alexandre Poirot
d6e7b9e6c8 Bug 1805378 - [devtools] Automatically start the worker on first WorkerDispatcher invoke/task call. r=bomsy,perftest-reviewers,kshampur
Because of this, we have to now pass the worker URL via WorkerDispatcher constructor.
Doing this should help then extend WorkerDispatcher instead of manually instantiating it.

About browser_jsterm_hide_when_devtools_chrome_enabled_false.js, as the SourceMapLoader
is now started lazily, the worker is no longer started during this test
and so we no longer have to wait for it.

And browser_jsterm_await_paused.js was failing because we resumed too quickly.
I added some code to better wait for awaitExpression full evaluation.

Differential Revision: https://phabricator.services.mozilla.com/D164547
2022-12-20 19:09:56 +00:00
Alexandre Poirot
6fb8757655 Bug 1625939 - [devtools] Remove devtools.browsertoolbox.fission preference and remove old non-fission Browser Toolbox. r=nchevobbe,fluent-reviewers,flod,perftest-reviewers,kshampur
Differential Revision: https://phabricator.services.mozilla.com/D164699
2022-12-20 10:16:48 +00:00
Barret Rennie
e23c2fbace Bug 1805748 - Fix writing profiles in talos-powers API r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164735
2022-12-16 03:19:22 +00:00
Mark Banner
53ce0faad1 Bug 1804661 - Convert browser/components/BrowserGlue.jsm to an ES module. r=Gijs,settings-reviewers,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D164204
2022-12-12 14:59:18 +00:00
Gijs Kruitbosch
38d4b2f917 Bug 1803158 - convert session restore consumers to reference the sys.mjs files instead, r=webdriver-reviewers,perftest-reviewers,extension-reviewers,credential-management-reviewers,Standard8,sgalich,whimboo,sparky,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D163350
2022-12-06 16:02:03 +00:00
Mark Banner
c20944ef61 Bug 1803342 - Automatically replace Cu.reportError with console.error (testing). r=perftest-reviewers,sparky
Depends on D163455

Differential Revision: https://phabricator.services.mozilla.com/D163456
2022-12-01 16:29:01 +00:00
Barret Rennie
15bea72588 Bug 1541508 - Use Services.env in testing/ r=jmaher,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D160147
2022-11-25 19:09:10 +00:00
Nazım Can Altınova
58530653d6 Bug 1802535 - Remove the leaf feature from profiler arguments of talos and browsertime r=perftest-reviewers,sparky
Previously we had a "leaf" feature but it's been removed in Bug 1571089. It
doesn't break the tests, but it always outputs an error string to the std out
and it might be annoying for our users or it can get in the way of analyzing
other errors. It's good to remove it.

Differential Revision: https://phabricator.services.mozilla.com/D163126
2022-11-25 17:56:16 +00:00
Barret Rennie
111159cc9d Bug 1798559 - Port osfile.jsm usage to IOUtils in testing/talos/ r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D160955
2022-11-17 03:42:40 +00:00
Emilio Cobos Álvarez
4d14fad96c Bug 1800133 - Make displaylist tests runnable outside of talos. r=gfx-reviewers,perftest-reviewers,tnikkel,nical,sparky
No behavior change, but sometimes it's easier to do this for local
testing / profiling.

Differential Revision: https://phabricator.services.mozilla.com/D161884
2022-11-14 14:11:32 +00:00
Alexandre Poirot
ce46c666e5 Bug 1797690 - [devtools] Track performance of source-map npm package. r=bomsy,jdescottes,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D160462
2022-11-08 16:01:02 +00:00
Alexandre Poirot
ae7b6ea7e4 Bug 1794693 - [devtools] Move devtools-source-map to regular mozilla-central code. r=bomsy,perftest-reviewers,jdescottes,sparky
This used to be a node package. Let's make it become regular commonjs devtools modules.
This will make it trivial to migrate this to ES Modules.
Also possibly make this code become the unique layer in m-c on top of the source-map package.

We no longer use webpack to build the two bundles (index.js and worker.js),
instead, we are using the toolkit worker loader (require.js) in order to load
all this code without any build step.

As this is no longer a node package, I removed node-specific modules (assertRoot/wasmAsset)
and simplify the definition of wasm file URIs as they are now fixed.

Also moving the debugger to load internal "devtools/client/shared/source-map/source-map.js"
module in jest as running the Web Worker instantiated by source-map/index.js is too complex.

Differential Revision: https://phabricator.services.mozilla.com/D159115
2022-11-08 16:01:01 +00:00
Mark Banner
935ec07f02 Bug 1799311 - Convert testing/talos JSM modules to ES modules. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D161374
2022-11-08 14:28:47 +00:00
William Durand
560aa1a276 Bug 1797050 - Part 6 - Use browser_specific_settings instead of applications in test manifests. r=rpl,perftest-reviewers,sparky
We want to encourage extension developers to use `browser_specific_settings` instead of `applications`, which will be unsupported in Manifest Version 3+. This patch makes sure test manifests in m-c won't cause any issues in the future.

Depends on D160541

Differential Revision: https://phabricator.services.mozilla.com/D160668
2022-11-03 16:23:03 +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
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
Barret Rennie
c99b29d427 Bug 1541508 - Use Services.env in testing/ r=jmaher,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D160147
2022-11-02 02:08:58 +00:00
Myeongjun Go
6aa3603f37 Bug 1790962 - Document sample commands to run talos tests. r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D159600
2022-10-19 17:17:23 +00:00
Mark Banner
2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Alexandre Poirot
a6539ba47e Bug 1793604 - [devtools] Convert Loader.jsm to ESM. r=perftest-reviewers,geckoview-reviewers,preferences-reviewers,owlish,kshampur,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158582
2022-10-14 12:19:42 +00:00
Masayuki Nakano
14a67464fa Bug 1793390 - Make line-iterator.html collapse Selection into the editable element by itself r=perftest-reviewers,sparky
It calls `pre[contenteditable].focus()`, but when talos tests run, the URL bar
keeps having focus.  Therefore, the `focus()` call in content cannot steal focus
from the chrome UI.  Then, it does not pay the cost of `Selection.modify` in
the first loop because it does nothing when there is no selection ranges.
(Before bug 1789967, `Selection` was collapsed to end of the document at
loading by `HTMLEditor`, but it's now not performed, and due to the silent
failure of the call of `focus()`, nobody collapse selection in the document.)

Depends on D158551

Differential Revision: https://phabricator.services.mozilla.com/D158552
2022-10-08 12:59:33 +00:00
Mark Banner
8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00