Commit Graph
348 Commits
Author SHA1 Message Date
Greg Mierzwinski aa1b652ab7 Bug 1907926 - Add tests for the alert layer. r=perftest-reviewers,aglavic DONTBUILD
This patch adds tests, and mock test data for the alert layer.

Differential Revision: https://phabricator.services.mozilla.com/D219966
2024-09-03 11:42:29 +00:00
Greg Mierzwinski 8e1ea636c0 Bug 1907926 - Add an local alert test run layer to mozperftest. r=perftest-reviewers,aglavic DONTBUILD
This patch adds a new layer to mozperftest that allows people to run all the tests that produced an alert locally.

It does this by querying Treeherder for the alert information, and determining the tests to run from there. A `--alert-exact` option is added to enable users to run the exact same command as was run in CI as well. This is done by querying the task information of the alerting task, and parsing the options from it in a framework-specific manner.

All harnesses have option parsing implemented for them, however some of them, such as AWSY are more manual due to how the argument parser is implemented in that harness.

Differential Revision: https://phabricator.services.mozilla.com/D219965
2024-09-03 11:42:29 +00:00
Greg Mierzwinski 3531208d3d Bug 1914607 - Use harness-specific coveragerc files in unit tests. r=afinder,perftest-reviewers DONTBUILD
This patch changes how the coveragerc file is handled between raptor, and mozperftest unit test runs. Instead of using a single file, this patch adds a second one that is specific to raptor, and renames the original to `.mpt-coveragerc`.

Differential Revision: https://phabricator.services.mozilla.com/D219964
2024-09-03 11:42:29 +00:00
Noemi Erli 370ef271f2 Backed out 3 changesets (bug 1907926, bug 1914607) for breaking unit tests
Backed out changeset 4be97f09160b (bug 1907926)
Backed out changeset b37a84f28d80 (bug 1907926)
Backed out changeset 166420d270d2 (bug 1914607)
2024-08-30 16:30:07 +03:00
Greg Mierzwinski 59cea86488 Bug 1907926 - Add tests for the alert layer. r=perftest-reviewers,aglavic
This patch adds tests, and mock test data for the alert layer.

Differential Revision: https://phabricator.services.mozilla.com/D219966
2024-08-30 13:18:49 +00:00
Greg Mierzwinski 0058ee0e1a Bug 1907926 - Add an local alert test run layer to mozperftest. r=perftest-reviewers,aglavic
This patch adds a new layer to mozperftest that allows people to run all the tests that produced an alert locally.

It does this by querying Treeherder for the alert information, and determining the tests to run from there. A `--alert-exact` option is added to enable users to run the exact same command as was run in CI as well. This is done by querying the task information of the alerting task, and parsing the options from it in a framework-specific manner.

All harnesses have option parsing implemented for them, however some of them, such as AWSY are more manual due to how the argument parser is implemented in that harness.

Differential Revision: https://phabricator.services.mozilla.com/D219965
2024-08-30 13:18:48 +00:00
Greg Mierzwinski 15157eea44 Bug 1914607 - Use harness-specific coveragerc files in unit tests. r=afinder,perftest-reviewers
This patch changes how the coveragerc file is handled between raptor, and mozperftest unit test runs. Instead of using a single file, this patch adds a second one that is specific to raptor, and renames the original to `.mpt-coveragerc`.

Differential Revision: https://phabricator.services.mozilla.com/D219964
2024-08-30 13:18:48 +00:00
Joshua Marshall e6c169befb Bug 1903766 - Add perftests for service worker update r=perftest-reviewers,dom-worker-reviewers,sparky,asuth
Differential Revision: https://phabricator.services.mozilla.com/D218415
2024-08-02 19:04:40 +00:00
Greg Mierzwinski f89dfc0df9 Bug 1906102 - Modify the background-resource android test. r=perftest-reviewers,kshampur
This patch modifies the background-resource (formerly background-cpu) android test to collect resource information at distinct times rather than only at the end of the test run.

The collection script is split in two here for cpu, and memory. The python parsing script is also modified to be able to gather the resources from multiple files, and the name is changed to better reflect what it does.

This patch also renames the test to better reflect that it's a resource usage test and not just a cpu test.

Differential Revision: https://phabricator.services.mozilla.com/D217097
2024-08-01 18:30:45 +00:00
Harveer Singh 5beca9de35 Bug 1889930: Remove source code corresponding to deprecated notification store.r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D217143
2024-07-22 16:14:46 +00:00
ahochheiden 07ac67fc82 Bug 1898817 - Add custom copy_tree_update to replace distutils.dir_util.copy_tree r=mozperftest-reviewers,sparky
We can't use `shutil.copy_tree` here, since we need the `update=True`
functionality implemented by the `distutils` variant, but not by the
`shutil` one. This looks like the only place in the repo we use this
functionality, so it seems fine to implement an equivalent ourselves
here directly.

Differential Revision: https://phabricator.services.mozilla.com/D211632
2024-06-21 17:30:04 +00:00
ahochheiden ddd1d0e6a4 Bug 1898817 - Replace distutils.spawn.find_executable with shutil.which within mozperftest r=mozperftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D211631
2024-06-21 17:30:04 +00:00
andrej aa24226bf3 Bug 1900807 - Remove alerting for standard deviation for android startup tests. r=perftest-reviewers,sparky
Alerting on standard deviation is not needed for us, and so it is being removed.

Differential Revision: https://phabricator.services.mozilla.com/D214244
2024-06-20 12:32:47 +00:00
Noemi Erli 35f162af9c Backed out 8 changesets (bug 1899681, bug 1888570, bug 1898817) as requested by the dev CLOSED TREE
Backed out changeset 5be4d65a269f (bug 1899681)
Backed out changeset 4b2b91958615 (bug 1898817)
Backed out changeset 91cfbbe6cacd (bug 1898817)
Backed out changeset 689cadd510e1 (bug 1888570)
Backed out changeset dee593604635 (bug 1888570)
Backed out changeset 2fc073aab920 (bug 1898817)
Backed out changeset c68493490b5c (bug 1898817)
Backed out changeset eb50a220de69 (bug 1898817)
2024-06-12 21:19:10 +03:00
ahochheiden 385190326b Bug 1898817 - Add custom copy_tree_update to replace distutils.dir_util.copy_tree r=mozperftest-reviewers,sparky
We can't use `shutil.copy_tree` here, since we need the `update=True`
functionality implemented by the `distutils` variant, but not by the
`shutil` one. This looks like the only place in the repo we use this
functionality, so it seems fine to implement an equivalent ourselves
here directly.

Differential Revision: https://phabricator.services.mozilla.com/D211632
2024-06-12 16:10:35 +00:00
ahochheiden 317fb15476 Bug 1898817 - Replace distutils.spawn.find_executable with shutil.which within mozperftest r=mozperftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D211631
2024-06-12 16:10:34 +00:00
Greg Mierzwinski b523501cad Bug 1900065 - Add additional env variables for shell scripts. r=perftest-reviewers,kshampur
This patch adds a couple additional variable that shell scripts can use. One of them is the name of the app being tested, and the other is a temporary directory for the script that is removed once the script finishes. At the same time, the logging from the script is changed to use print directly instead of the logger due to bug 1900056.

Differential Revision: https://phabricator.services.mozilla.com/D212628
2024-06-10 11:57:58 +00:00
Greg Mierzwinski adf2ba11f6 Bug 1900256 - Use binary in android layer if it's available. r=perftest-reviewers,aglavic
This patch enables the android layer to use the binary setting from metadata if it exists.

Differential Revision: https://phabricator.services.mozilla.com/D212627
2024-06-10 11:57:57 +00:00
andrej 9bca33d472 Bug 1900428 - Add time delay when passing the skipping onbarding flag to ensure it can take effect. r=perftest-reviewers,sparky
A regression was introduced in the startup tests accidentally when re-formatting the android_startup file.
This patch resolves that issue, which was forgetting a sleep timer of 4 seconds to allow the skip on-boarding flag to propagate

Differential Revision: https://phabricator.services.mozilla.com/D212645
2024-06-05 18:46:53 +00:00
andrej dce048bb67 Bug 1898554 - Clean up android startup script by adding functionality to android_device in android.py. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D211444
2024-05-31 00:57:56 +00:00
Greg Mierzwinski 49eda2189a Bug 1898256 - Add a layer to run bash shell scripts. r=perftest-reviewers,kshampur
This patch adds a new layer that will allow us to run custom/adhoc bash scripts in mozperftest. Currently, the layer can only handle bash scripts. At the same time, a new flavor is added for this, and additional script parsing capabilities are added.

Differential Revision: https://phabricator.services.mozilla.com/D211740
2024-05-28 15:43:50 +00:00
Greg Mierzwinski de2642a8fb Bug 1712337 - Add a layer for gathering the binary version. r=perftest-reviewers,aglavic
This patch adds a layer to gather the version of a given binary. The layer makes use of the tooling from `setups.py` to do this.

Differential Revision: https://phabricator.services.mozilla.com/D211739
2024-05-28 15:43:50 +00:00
Greg Mierzwinski 182f029c90 Bug 1712337 - Add a binary setup layer. r=perftest-reviewers,kshampur,aglavic
This patch adds a layer to setup the binary, and provide a single interface for specifying it and using it through the metadata. At the same time, some changes were made to the perfherder metrics production to gather the application name, and version from the metadata. The intermediate results are also properly passed into the perfherder blob production step as they were previously being ignored.

Differential Revision: https://phabricator.services.mozilla.com/D211738
2024-05-28 15:43:49 +00:00
Greg Mierzwinski 4c84af9e86 Bug 1712337 - Add helper classes for gathering binary, and binary version. r=perftest-reviewers,aglavic
This patch adds a set of classes that will be used for gathering the binary path, and binary version in the VersionProducer, and BinarySetup layers.

Differential Revision: https://phabricator.services.mozilla.com/D211737
2024-05-28 15:43:49 +00:00
Alex Finder 8aa8f7cf5c Bug 1824194 - Enable python code coverage for raptor unit tests r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D210937
2024-05-27 13:08:16 +00:00
Alex Finder 75c223dd05 Bug 1850903 - Add --raptor option for mach perftest-test r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D210935
2024-05-23 14:05:35 +00:00
Mike Hommey 32831b48cc Bug 1897317 - Rename MOZ_ANDROID_HISTORY to MOZ_GECKOVIEW_HISTORY. r=firefox-build-system-reviewers,geckoview-reviewers,nalexander,owlish
Differential Revision: https://phabricator.services.mozilla.com/D210743
2024-05-17 00:29:35 +00:00
KS f8d2172321 Bug 1887998 - Have mozperftest and raptor use the same browsertime. r=perftest-reviewers,sparky
Currently, the browsertime used by mozperftest is outdated and
maintained separately from the browsertime used in raptor tests.

This patch upgrades the browsertime used in mozperftest by now sharing
the same browsertime that is used with raptors (in `src/tools/browsertime`).

Going forward we now only have to maintain one browsertime version. This
introduces the potential of more infra changes (because previously when
upgrading raptor's browsertime we only checked raptor tests, but now we
will have to verify mozperftest) but this should be worth it to stay up
to date.

Differential Revision: https://phabricator.services.mozilla.com/D208944
2024-05-14 14:59:05 +00:00
andrej 5e2dd9d283 Bug 1884930 - Use per-commit fenix and geckoview builds instead of downloading daily build. r=perftest-reviewers,taskgraph-reviewers,sparky,bhearsum
As a result of the mono-repo change we have a very easy way to run the startup tests on each commit vs on a nightly build.
This change allows us to push a try job, build the fenix/focus/geckoview_example apk and test the startup impact!

Differential Revision: https://phabricator.services.mozilla.com/D208240
2024-05-13 16:50:03 +00:00
Iulian Moraru f4afd9c509 Backed out changeset d4ef5f3b9858 (bug 1884930) for causing Bug 1896049. CLOSED TREE 2024-05-10 17:38:49 +03:00
andrej 54e1b45e94 Bug 1884930 - Use per-commit fenix and geckoview builds instead of downloading daily build. r=perftest-reviewers,taskgraph-reviewers,sparky,bhearsum
As a result of the mono-repo change we have a very easy way to run the startup tests on each commit vs on a nightly build.
This change allows us to push a try job, build the fenix/focus/geckoview_example apk and test the startup impact!

Differential Revision: https://phabricator.services.mozilla.com/D208240
2024-05-09 15:05:05 +00:00
Henrik Skupin 7c80d55b26 Bug 1892044 - [mozperftest] Remove "--no-deps" argument for installing Python requirements file. r=sparky
Depends on D207902

Differential Revision: https://phabricator.services.mozilla.com/D207903
2024-04-19 01:53:11 +00:00
Andrew Halberstadt a680bcd3e1 Bug 1868440 - [ci] Upgrade taskcluster-taskgraph to v7.4.0, r=perftest-reviewers,geckoview-reviewers,ci-and-tooling,devtools-reviewers,taskgraph-reviewers,releng-reviewers,mach-reviewers,omc-reviewers,jmaher,hneiva,aminomancer,jari,dom-storage-reviewers,afinder,asuth,bhearsum,owlish
Differential Revision: https://phabricator.services.mozilla.com/D206260
2024-04-18 20:39:09 +00:00
Stanca Serban 3dbb534055 Backed out 2 changesets (bug 1868440) for gecko decision task broken. CLOSED TREE
Backed out changeset 4b22948d849a (bug 1868440)
Backed out changeset 837bdcb3694a (bug 1868440)
2024-04-18 21:25:43 +03:00
Andrew Halberstadt ef4f1e168b Bug 1868440 - [ci] Upgrade taskcluster-taskgraph to v7.4.0, r=perftest-reviewers,geckoview-reviewers,ci-and-tooling,devtools-reviewers,taskgraph-reviewers,releng-reviewers,mach-reviewers,omc-reviewers,jmaher,hneiva,aminomancer,jari,dom-storage-reviewers,afinder,asuth,bhearsum,owlish
Differential Revision: https://phabricator.services.mozilla.com/D206260
2024-04-18 17:50:50 +00:00
andrej c636c101a3 Bug 1888142 - Webpagetest Permafail due to new way of accepting API keys. r=perftest-reviewers,kshampur
Webpagetest has modified the way that they accept keys, they used to accept it through a URL parameter, but now they require it to be in the header and with a different name

Differential Revision: https://phabricator.services.mozilla.com/D207159
2024-04-10 18:44:46 +00:00
andrej 13b8db92e1 Bug 1836330 - Enable android chrome startup testing for cold_main_first_frame. r=perftest-reviewers,sparky
In this commit we are adding the ability to run the cold_main_first_frame startup test on android google chrome

Differential Revision: https://phabricator.services.mozilla.com/D202626
2024-03-26 12:51:54 +00:00
andrej 938a7ccc52 Bug 1885080 - Modify links used to download browser apks for android_startup script. r=perftest-reviewers,afinder
As the monorepo migration is occurring we want to access the apks in the new place they are located in post-migration

Differential Revision: https://phabricator.services.mozilla.com/D205014
2024-03-19 15:35:24 +00:00
ahochheiden 0715082d45 Bug 1877344 - Replace all usages of distutils.spawn.find_executable with shutil.which within mach r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D199949
2024-02-08 21:07:26 +00:00
Greg Mierzwinski 07315862c7 Bug 1877180 - Pass the app name to mozproxy during recording. r=perftest-reviewers,kshampur,afinder DONTBUILD
This patch fixes a couple bugs with recording. The first is that the app wasn't being passed to mozproxy, and this was preventing the creation of the mitmproxy certificate for the app being used to record. The second is that the --proxy-deterministic flag isn't defined within the proxy layer even though it's used by it from the hooks.

Differential Revision: https://phabricator.services.mozilla.com/D199891
2024-02-02 13:09:18 +00:00
andrej 984dfe840e Bug 1874774 - Remove references to moto g5 and pixel2 devices in taskcluster. r=perftest-reviewers,jmaher,sparky
As the motorola G5 and the Pixel 2 have been removed from CI we are also going to remove references to them in our documentation and taskcluster code.

Differential Revision: https://phabricator.services.mozilla.com/D199294
2024-01-31 02:42:08 +00:00
andrej ea3318d60e Bug 1870500 - Resolving the WPT intermittent failure. r=perftest-reviewers,kshampur
The issue we were encountering here was a missing metric for canva.com intermittently occuring
That ocured because of the location of that metric(first contentful paint) in the returned json moved locations for just canva.com, and so canva.com was removed whilst the problem debugged. Afterwards it was discovered that this issue was covering up another intermittent about json decoding error which was in turn resolved by removing code which removed "www." from links used with python requests.

Differential Revision: https://phabricator.services.mozilla.com/D199238
2024-01-24 02:36:24 +00:00
Alex Finder c6c5fed905 Bug 1870051 Update mozperftest-tools version to 0.3.2 r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D196428
2024-01-08 16:25:43 +00:00
Greg Mierzwinski 14718089e9 Bug 1870864 - Fix mozperftest writing docs to mention mochitest. r=aglavic,perftest-reviewers DONTBUILD
This patch fixes the mozperftest docs to mention mochitest in the writing section, as well as fixes the `info` calls so that they mention the JSON.stringify requirement.

Differential Revision: https://phabricator.services.mozilla.com/D196853
2024-01-08 15:15:45 +00:00
Joel Maher 6d618a2524 Bug 1869871 - convert perftest.ini -> .toml. r=sparky,perftest-reviewers,necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D196334
2023-12-14 19:41:14 +00:00
Joel Maher 6ef3fa1746 Bug 1869437 - support .toml for mozperftest when using xpcshell. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D196190
2023-12-12 17:34:41 +00:00
Greg Mierzwinski d00f013bfc Bug 1868937 - Prevent install of opencv during mozperftest unit tests.r=aglavic
This patch prevents the mozperftest unit tests from installing the opencv-python/mozperftest-tools module during unit tests.

Differential Revision: https://phabricator.services.mozilla.com/D195901
2023-12-11 14:56:43 +00:00
Greg Mierzwinski eddbfd58d7 Bug 1867956 - Remove opencv-python 4.5 install, and update mpt to 0.2.9. r=perftest-reviewers,AlexandruIonescu DONTBUILD
This patch updates mozperftest-tools to 0.2.9, and removes the opencv-python 4.5 install since it interferes with the new opencv-python package that has a lower minimum version for python (version 3.7).

Differential Revision: https://phabricator.services.mozilla.com/D195774
2023-12-07 14:17:54 +00:00
Greg Mierzwinski 2e4628dcf9 Bug 1865869 - Allow toml files to be used in perfdocs generation. r=jmarshall,perftest-reviewers,afinder DONTBUILD
This patch fixes an issue where only `perftest.ini` manifests were being parsed for mozperftest tests in perfdocs. It's temporary as we will move all ini manifests to toml in the future. At the same time, this patch adds missing documentation for some new mozperftest tests that use a toml manifest to define the tests.

Differential Revision: https://phabricator.services.mozilla.com/D194251
2023-12-06 13:01:24 +00:00
Joshua Marshall d65088640e Bug 1299271 - Service worker performance test r=asuth,sparky
These are a first-cut of service worker performance tests, just running as
vanilla mochitests for now.  Bug 1832059 tracks the integration work necessary.

Differential Revision: https://phabricator.services.mozilla.com/D177427
2023-11-28 16:33:38 +00:00