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

564 Коммитов

Автор SHA1 Сообщение Дата
Greg Mierzwinski abf9cbbf9f Bug 1837049 - Use no-fission as default in mach-try-perf android selections. r=perftest-reviewers,AlexandruIonescu DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D180142
2023-06-08 12:18:08 +00:00
Mark Banner 2a53076d43 Bug 1826063 - Automatic fixes for enabling Prettier on production xhtml and html files. r=mossop,webdriver-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,fxview-reviewers,sgalich,nalexander,devtools-reviewers,sclements,denschub,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177938
2023-05-20 12:26:56 +00:00
Mark Banner 8219a5c503 Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Greg Mierzwinski 84c30c0f17 Bug 1832976 - Fix issue with missing argument for caching. r=mstange DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D177969
2023-05-14 12:04:58 +00:00
Greg Mierzwinski fa6289cf37 Bug 1831603 - Include tasks selected in the mach-try-perf cache entry. r=MyeongjunGo
This patch adds the selected task information to the cache file info so that we create a new base try run instead of using a cached one. The cache is also converted to use a list of base pushes that each may have unique tasks that were run.

Differential Revision: https://phabricator.services.mozilla.com/D177298
2023-05-12 12:41:13 +00:00
Greg Mierzwinski 83a76a1352 Bug 1832669 - Reset extra_args between pushes, and fail on bad arguments. r=perftest-reviewers,kshampur
This patch fixes an issue where the extra_args aren't reset between the base, and new runs. It also adds an additional failure when unknown arguments are provided.

Differential Revision: https://phabricator.services.mozilla.com/D177820
2023-05-12 11:16:47 +00:00
Greg Mierzwinski e0fd61a8f2 Bug 1830741 - Add documentation for Comparators, and their interface. r=perftest-reviewers,kshampur
This patch adds documentation to the BasePerfComparator, and also adds some documentation for Comparators in general to the mach-try-perf Firefox source docs.

Differential Revision: https://phabricator.services.mozilla.com/D177760
2023-05-11 14:35:56 +00:00
Greg Mierzwinski 9b0c600201 Bug 1830741 - Add tests for mach try perf comparators. r=perftest-reviewers,AlexandruIonescu
This patch adds some unit tests for the comparators.

Depends on D177031

Differential Revision: https://phabricator.services.mozilla.com/D177201
2023-05-11 14:35:56 +00:00
Greg Mierzwinski a33860448a Bug 1830741 - Add custom comparators to mach-try-perf. r=perftest-reviewers,kshampur
This patch adds the ability to run custom comparisons through "comparators". The code is modified to create a BasePerfComparator that provides the existing default behaviour. A new method, and command-line arguments are added to accept either a path to a custom comparator, or a name of a builtin comparator.

To add new builtin comparators, they must be added to the perfcomparators.py file with an `@comparator` decorator. It must also subclass the BasePerfComparator. With this, a BenchmarkComparator is added that lets us pass custom options to raptor through the PERF_FLAGS environment variable (see --extra-args). To do this, some code needed to be moved around such as where the try_config is created. This lets us reset the configuration between the base, and new revision if needed.

The BenchmarkComparator lets us pass PR links as arguments, or the actual benchmark repo, revision, and branch. The PR link gets parsed into the required info using Github API requests. Note that links to direct commits do not work at the moment as the API doesn't provide the branch information for those kinds of requests.

Depends on D177030

Differential Revision: https://phabricator.services.mozilla.com/D177031
2023-05-11 14:35:56 +00:00
Kash Shampur f725b26d0c Bug 1832303 - Add Windows platform to custom-car tests in mach try perf. r=perftest-reviewers,sparky
We now have windows custom chromium-as-release available in-tree for windows 64 platform.
This patch makes those tasks available for selection via mach try perf.

Differential Revision: https://phabricator.services.mozilla.com/D177671
2023-05-11 13:08:34 +00:00
Paul Adenot 4932eeede3 Bug 1832299 - Adjust media-full try preset to not build shipable variants. r=media-playback-reviewers,alwu DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D177629
2023-05-11 08:46:27 +00:00
Myeongjun Go aa34d7b210 Bug 1831074 - mach-try-perf cache should be stored in the .mozbuild folder in the users folder. r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D177510
2023-05-09 18:32:22 +00:00
Gijs Kruitbosch ad4bc55e54 Bug 1508369 - clean up browser CSS to pass basic stylelint rules, r=desktop-theme-reviewers,webcompat-reviewers,extension-reviewers,devtools-reviewers,nchevobbe,denschub,dao
Differential Revision: https://phabricator.services.mozilla.com/D177476
2023-05-09 17:12:50 +00:00
Mark Banner c2dd8e3266 Bug 1829618 - Enable Prettier on json files (automatic fixes). r=perftest-reviewers,webcompat-reviewers,extension-reviewers,andi,desktop-theme-reviewers,pip-reviewers,devtools-reviewers,sync-reviewers,mossop,denschub,dao,sparky,robwu,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D176336
2023-05-09 16:14:51 +00:00
Kash Shampur c0d574a410 Bug 1831126 - Fix mach try perf selection with chromium-as-release tasks. r=perftest-reviewers,sparky
Modify the selector so that the new `chromiums-as-release`/`custom-car` tasks are properly selected when a user submits a job. Previously custom-car was going through on firefox only selections. This patch should fix this as well as add a new --custom-car flag for selection.

Differential Revision: https://phabricator.services.mozilla.com/D177073
2023-05-09 15:54:44 +00:00
Greg Mierzwinski 84f44c61fd Bug 1831662 - Don't set PERF_BASE_REVISION if it's None. r=perftest-reviewers,afinder
Differential Revision: https://phabricator.services.mozilla.com/D177315
2023-05-08 16:42:46 +00:00
Erich Gubler 1437f22ed9 Bug 1831199: use `'webgpu` selector for `webgpu` Try preset r=webgpu-reviewers,jgilbert
This reduces tasks by a whole boatload, omitting the vast majority of
WPT test cases. Save the Earth!

Differential Revision: https://phabricator.services.mozilla.com/D177100
2023-05-04 19:48:46 +00:00
Myeongjun Go 4652dce54a Bug 1804436 - Refactor the full perf.py file into multiple files r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D175566
2023-05-03 14:27:56 +00:00
Nicolas Silva b6dd52dddc Bug 1828462 - Add a webgpu try preset. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D175760
2023-04-24 07:59:43 +00:00
Paul Adenot 0885909062 Bug 1829143 - Update the media-full try preset to run tests on Android. r=media-playback-reviewers,karlt DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D176054
2023-04-21 09:32:24 +00:00
Greg Mierzwinski 2fea175bff Bug 1825770 - Consider --rebuild setting when determining if max tasks hit. r=perftest-reviewers,AlexandruIonescu
This patch moves some code to properly handle the max number of tasks better, and considers the --rebuild setting when we check if there are too many tasks selected.

Differential Revision: https://phabricator.services.mozilla.com/D174261
2023-04-18 13:46:24 +00:00
andrej bf6da28b49 Bug 1826187 - Make it clear mach try perf performs two pushes. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D174806
2023-04-13 16:30:22 +00:00
Myeongjun Go d577cf10cc Bug 1820513 - Cache the base revisions of past perf try runs so that they can be reused r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D172411
2023-04-03 12:28:51 +00:00
Greg Mierzwinski 6339d9bf58 Bug 1825769 - Add a category for speedometer 3. r=perftest-reviewers,kshampur DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D174262
2023-04-03 12:21:47 +00:00
Greg Mierzwinski 51e7664988 Bug 1821708 - Add change-detector to mach try perf. r=perftest-reviewers,afinder
This patch adds a method to inject the perftest change-detector task into mach try perf try runs. To do this, we need to flip the ordering of the try runs to do the base revision first, and the one with the changes (new) afterwards. This allows us to link a change-detector task in the new try run, with the base try run by passing a revision through the try-task-config.

The task can be triggered using --detect-changes. Once a user pushes to try, and after all of the performance tests finish in that push, the change-detector will start running, to generate a comparison. An artifact is produced with the results (revisions, and metrics regressed), and an exception is raise when a performance change is detected even if it's an improvement.

Differential Revision: https://phabricator.services.mozilla.com/D172284
2023-03-28 11:16:52 +00:00
Julian Descottes 736eb58cd3 Bug 1824457 - [devtools] Fix devtools try preset to start browser mochitests on windows r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D173574
2023-03-27 06:33:31 +00:00
Greg Mierzwinski b5deb4adf2 Bug 1613455 - Allow custom APK uploads for Geckoview/Fenix perftests. r=perftest-reviewers,afinder
This patch allows mobile developers to upload custom APKs for testing through a commit. This allows them to run our performance tests by building locally, and then uploading to CI to run tests there.

The `./mach try perf` command is modified to make this simpler. It accepts either an environment variable, or a path to an APK, and copies it in-tree. After adding it to hg, the command stops running and asks the user to commit the changes. From there the user re-runs the `./mach try perf` command to select the appropriate tests.

Using --browsertime-upload-apk, users can use a custom APK for browsertime tests, and using --mozperftest-upload-apk, users can use a custom APK in mozperftest tests. The reason it's done this way is that we don't have common areas between the two frameworks. The methods are the same in both cases, i.e. for a fenix test, a fenix APK needs to be uploaded.

Differential Revision: https://phabricator.services.mozilla.com/D172435
2023-03-23 13:43:45 +00:00
Iulian Moraru 540cf0521d Backed out changeset faa1c03828fe (bug 1613455) for causing btime failures. CLOSED TREE 2023-03-22 19:10:02 +02:00
Greg Mierzwinski d9c9e6a248 Bug 1613455 - Allow custom APK uploads for Geckoview/Fenix perftests. r=perftest-reviewers,afinder
This patch allows mobile developers to upload custom APKs for testing through a commit. This allows them to run our performance tests by building locally, and then uploading to CI to run tests there.

The `./mach try perf` command is modified to make this simpler. It accepts either an environment variable, or a path to an APK, and copies it in-tree. After adding it to hg, the command stops running and asks the user to commit the changes. From there the user re-runs the `./mach try perf` command to select the appropriate tests.

Using --browsertime-upload-apk, users can use a custom APK for browsertime tests, and using --mozperftest-upload-apk, users can use a custom APK in mozperftest tests. The reason it's done this way is that we don't have common areas between the two frameworks. The methods are the same in both cases, i.e. for a fenix test, a fenix APK needs to be uploaded.

Differential Revision: https://phabricator.services.mozilla.com/D172435
2023-03-22 12:30:17 +00:00
Andrew Halberstadt 577c4dacfe Bug 1811850 - [lint] Fix ruff errors resulting from new configuration, r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,firefox-build-system-reviewers,ahochheiden
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D172359
2023-03-20 13:06:28 +00:00
Cristian Tuns c1b52fd95e Backed out 5 changesets (bug 1811850) for causing linting bustages(bugzilla) CLOSED TREE
Backed out changeset e8fcfc7f8108 (bug 1811850)
Backed out changeset f8950d716c9e (bug 1811850)
Backed out changeset f650123cc188 (bug 1811850)
Backed out changeset d96f90c2c58b (bug 1811850)
Backed out changeset c3b0f9666183 (bug 1811850)
2023-03-16 22:16:30 -04:00
Andrew Halberstadt d93be6a402 Bug 1811850 - [lint] Fix ruff errors resulting from new configuration, r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,firefox-build-system-reviewers,ahochheiden
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D172359
2023-03-17 01:54:00 +00:00
Greg Mierzwinski edde6fdf2e Bug 1821780 - Add -q/--query option to mach try perf. r=perftest-reviewers,afinder
Differential Revision: https://phabricator.services.mozilla.com/D172321
2023-03-13 13:37:59 +00:00
Gijs Kruitbosch b43aea27e5 Bug 1818051 - fix tryselect cramtest test failure by adjusting expectations it has wrt quotes, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D170533
2023-02-24 22:49:47 +00:00
Gijs Kruitbosch 955b0ad251 Bug 1817815 - use double quotes for mach try presets, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D170364
2023-02-21 16:35:19 +00:00
Myeongjun Go 0e3595d18a Bug 1772541 - Add option for running try tests in "verbose" mode to `mach try perf` r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D168370
2023-02-21 14:15:58 +00:00
Gijs Kruitbosch c2b7e5ee98 Bug 1817434 - set up some try presets for frontend use, r=mossop CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D170201
2023-02-20 15:33:28 +00:00
Sandor Molnar d9e17dd850 Backed out changeset f206ae47bfef (bug 1817434) for causing data race failures. 2023-02-20 21:55:10 +02:00
Gijs Kruitbosch d9a3d266c4 Bug 1817434 - set up some try presets for frontend use, r=mossop DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D170201
2023-02-20 15:33:28 +00:00
Ben Hearsum b202f0ce19 Bug 1816440: ./mach try ... --artifact should imply --disable-pgo r=releng-reviewers,jcristau
Currently, ./mach try ... --artifact only affects non-shippable (aka PGO) builds. This is fine for many use cases, but there are a number of tasks that depend exclusively on shippable builds, and it's when testing those types of tasks it usually doesn't matter if you have a full build, or whether or not it's PGO. --disable-pgo partly does this: it disables the profile run and instrumented build parts of shippable builds. When combined with --artifact, you end up with a single, artifact build - exactly what we want!

We should make this the default behaviour for --artifact. It's very surprising behaviour to pass --artifact and end up with a full, 2 stage build because you happen to be testing something that needs a shippable build.

Differential Revision: https://phabricator.services.mozilla.com/D169640
2023-02-13 21:41:30 +00:00
Cosmin Sabou bb2c0d0ee4 Backed out 3 changesets (bug 1816440) for causing try related failures. CLOSED TREE
Backed out changeset 5b5c8d6892fb (bug 1816440)
Backed out changeset 073d6070b7cf (bug 1816440)
Backed out changeset f853b488db5d (bug 1816440)
2023-02-13 19:18:09 +02:00
Ben Hearsum e610003ae1 Bug 1816440: bustage fix #2 for test failure. r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D169648
2023-02-13 16:42:42 +00:00
Ben Hearsum a01ffc2f42 Bug 1816440: bustage fix for test failure. r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D169644
2023-02-13 16:06:32 +00:00
Ben Hearsum 6c4c8077e0 Bug 1816440: ./mach try ... --artifact should imply --disable-pgo r=releng-reviewers,jcristau
Currently, ./mach try ... --artifact only affects non-shippable (aka PGO) builds. This is fine for many use cases, but there are a number of tasks that depend exclusively on shippable builds, and it's when testing those types of tasks it usually doesn't matter if you have a full build, or whether or not it's PGO. --disable-pgo partly does this: it disables the profile run and instrumented build parts of shippable builds. When combined with --artifact, you end up with a single, artifact build - exactly what we want!

We should make this the default behaviour for --artifact. It's very surprising behaviour to pass --artifact and end up with a full, 2 stage build because you happen to be testing something that needs a shippable build.

Differential Revision: https://phabricator.services.mozilla.com/D169640
2023-02-13 15:48:28 +00:00
Emilio Cobos Álvarez b0c0bff90b Bug 1815799 - Fix fzf preview on Windows. r=firefox-build-system-reviewers,ahochheiden
fzf doesn't quote the preview command arguments, so if you have
windows-style paths given to a unix-style shell, the slashes are
completely gone.

This happens on multiple systems, both with MozillaBuild and external
MSYS2 shell.

fzf respects the SHELL environment variable, so to fix it, execute the
command using cmd.exe on Windows, via $COMSPEC.

Depends on D169264

Differential Revision: https://phabricator.services.mozilla.com/D169265
2023-02-09 01:12:12 +00:00
Emilio Cobos Álvarez 503554894e Bug 1815799 - Remove unused run_cmd function in fzf.py. r=firefox-build-system-reviewers,ahochheiden
Drive-by, while I was going through this code.

Differential Revision: https://phabricator.services.mozilla.com/D169264
2023-02-09 01:12:10 +00:00
alwu 6a283b2eab Bug 1809983 - part2 : support mochitest-browser-media in the media-full preset. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D166728
2023-01-13 00:04:13 +00:00
alwu 0fd970dca3 Bug 1809983 - part1 : split media browser tests from mochitest-browser-chrome into mochitest-browser-media. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D166705
2023-01-13 00:04:13 +00:00
Ben Hearsum 82c63aa888 Bug 1805920: Enable xpcshell msix variant testing r=taskgraph-reviewers,ahal,jcristau
This is _mostly_ boring, standard stuff. The most notable part is the refactor of the test transforms to process `variant` as early as possible. This is needed to key `suite` by variant (and is likely going to be helpful in other places as well, eg: we can now key all `mozharness` keys on variant). See the previous patch for why we need a separate xpcshell suite for this.

I don't know if I'm adding the runtime manifest correctly, or how those times are supposed to be generated/updated (the commit log seems to suggest that it's broken right now?) - let me know if I should do something differently here.

Note: I'm still working through a few more tests that need to be disabled, so this isn't ready to be landed yet, but I don't anticipate any changes to this patch.

Differential Revision: https://phabricator.services.mozilla.com/D164230
2023-01-11 14:45:04 +00:00
Marco Castelluccio f69e697461 Bug 1801836 - Remove no longer necessary 'from __future__' imports. r=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165395
2022-12-23 22:45:46 +00:00