Commit Graph

361 Commits

Author SHA1 Message Date
Chidam Gopal
55c58339f0 Bug 1928224 - Add intent and NER performance test in local r=sparky,tarek,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D227416
2024-11-07 14:45:12 +00:00
Greg Mierzwinski
74b438f3d4 Bug 1928135 - Output suite-level description missing error on all changed files. r=perftest-reviewers,fbilt DONTBUILD
This patch fixes an issue where the suite-level description error wasn't being output. Instead of using the manifest from the yaml for this error, we'll output the failure to all changed files. Some additional changes are made for mozperftest to handle tests with periods in their names.

Differential Revision: https://phabricator.services.mozilla.com/D227378
2024-11-07 12:17:51 +00:00
Sylvestre Ledru
d35ba16a18 Bug 1918098 - ruff: fix the errors identified by 0.6.4 r=linter-reviewers,taskgraph-reviewers,releng-reviewers,webdriver-reviewers,perftest-reviewers,migration-reviewers,jmaher,whimboo,sparky,xpcom-reviewers,beth,ahal,mconley
Differential Revision: https://phabricator.services.mozilla.com/D221874
2024-11-06 12:51:32 +00:00
Vasish Baungally
d27d9480e0 Bug 1919861 - Add metrics for remote models running in CI - r=sparky,tarek,frontend-codestyle-reviewers,perftest-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D223990
2024-10-31 20:10:56 +00:00
Alexandru Marc
714318814a Backed out changeset bfe4f7bcf0e7 (bug 1919861) for causing bc failures @ ModelHub.sys.mjs. CLOSED TREE 2024-10-31 16:24:13 +02:00
Vasish Baungally
5da652af25 Bug 1919861 - Add metrics for remote models running in CI - r=sparky,tarek,frontend-codestyle-reviewers,perftest-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D223990
2024-10-31 13:14:21 +00:00
Chun-Min Chang
f64dbf04f0 Bug 1920813 - Add performance test for WebCodecs video encoding r=perftest-reviewers,media-playback-reviewers,aosmond,padenot,sparky
This patch introduces performance tests to evaluate the video encoding
performance in two usage scenarios: *Realtime* and *Record*. Each
scenario assesses the encoding using two key metrics:

1. Frame Encoding Latency: The time from encoding a single frame to
   receiving its encoded result
2. Total Encoding Time: The duration from the first encoding request to
   the reception of the last encoded result

In the *Realtime* scenario, minimizing the latency for each frame is
crucial. This metric is essential for applications like live streaming
and video conferencing, where timely delivery of each frame impacts user
experience.

In contrast, the *Record* scenarios prioritizes the total encoding time.
Here, the focus is on processing the entire sequence efficiently to
produce the final output.

By adding these tests, we aim to thoroughly assess and optimize the
encoder's performance under both scenarios, ensuring Gecko provides the
experience users expect.

Differential Revision: https://phabricator.services.mozilla.com/D224999
2024-10-25 21:43:26 +00:00
Vasish Baungally
e2772d926c Bug 1925273 - Set script type for mochitest using manifest flavor. r=perftest-reviewers,afinder
Differential Revision: https://phabricator.services.mozilla.com/D225972
2024-10-24 11:57:24 +00:00
Greg Mierzwinski
68a66de9af Bug 1916538 - Add documentation about the mach perftest alet command. r=perftest-reviewers,fbilt
This patch adds some documentation about the mach perftest alert layer, and how to use it. This includes the additional options that it has.

Differential Revision: https://phabricator.services.mozilla.com/D224006
2024-10-09 14:51:30 +00:00
Greg Mierzwinski
782e00951b Bug 1921527 - Add option to select tests to run from an alert. r=perftest-reviewers,afinder
This patch adds an option to specify which tests from an alert should run through using the mozperftest alert layer.

Differential Revision: https://phabricator.services.mozilla.com/D224005
2024-10-09 14:51:29 +00:00
Julien Cristau
e6e6b733e3 Bug 1913141 - mozperftest: fix subprocess error handling on mac. r=mozperftest-reviewers,sparky
CalledProcessError's constructor doesn't have a `stdout` argument, it's called `output`.

Differential Revision: https://phabricator.services.mozilla.com/D224746
2024-10-09 12:03:43 +00:00
andrej
f6a44424fa Bug 1898221 - Add mobile applink startup tests. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D220177
2024-09-18 13:24:41 +00:00
myeongjun
e187818d25 Bug 1826822 - Make tp6 the default for AWSY r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D220147
2024-09-18 12:12:53 +00:00
Greg Mierzwinski
ef47fc84d4 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
c887480fe6 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
00a7660ec7 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
05963188e7 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
3b15bfed63 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
5f5f56b094 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
8e3532e324 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
fd429c3f21 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
cde4675ae4 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
5a1ed5e7fe 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
b354a11bb4 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
3740a7c6e4 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
40fc2d19e0 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
7763ec39c6 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
bb4d4feed5 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
c01916dbac 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
de549a07b3 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
fec1cc0e45 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
4a8b713f94 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
890b5f006d 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
a4aa973d21 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
9c6228c83e 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
0de67f49ed 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
d2a459fca6 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
af063a188c 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
9166f9e560 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
0166b77500 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
644e33da0a 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
34cd136d5c 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
cf1e4ee639 Backed out changeset d4ef5f3b9858 (bug 1884930) for causing Bug 1896049. CLOSED TREE 2024-05-10 17:38:49 +03:00
andrej
b801b8e482 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
c4ab772dbd 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
d68e3340c5 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
f9c5779927 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
f33979228a 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
063d18e296 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
546f3e2019 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