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

77 Коммитов

Автор SHA1 Сообщение Дата
Tarek Ziadé 6ccb7d2797 Bug 1644912 - remove python.ini r=sparky
We're using a custom test runner.

Differential Revision: https://phabricator.services.mozilla.com/D79247
2020-06-11 12:19:59 +00:00
Gregory Mierzwinski 83d3f92844 Bug 1644993 - Add a non-standard prefix field to mozperftest data. r=mozperftest-reviewers,tarek
This patch adds a prefix field to the mozperftest perfherder data. This is a non-standard data field so the performance-artifact-schema.json file isn't modified to include it.

Differential Revision: https://phabricator.services.mozilla.com/D79296
2020-06-11 14:38:53 +00:00
Gregory Mierzwinski 9a6913c3d3 Bug 1644706 - Make a multi-commit test for app-link in CI. r=mozperftest-reviewers,tarek
This patch adds a new method to test multiple Fenix builds within one test run.

Depends on D78926

Differential Revision: https://phabricator.services.mozilla.com/D79107
2020-06-10 22:10:35 +00:00
Tarek Ziadé afbe6e3cff Bug 1644437 - add --test-iterations r=sparky
Adds a new option to allow running the whole test several times,
and a `before_iterations` hook

Differential Revision: https://phabricator.services.mozilla.com/D78926
2020-06-10 22:11:05 +00:00
Tarek Ziadé a677101fc4 Bug 1644368 - improved scriptinfo r=sparky
Move scriptinfo to where it belongs and clean it

Differential Revision: https://phabricator.services.mozilla.com/D78870
2020-06-10 22:44:19 +00:00
Bogdan Tara 633c636ab1 Backed out 3 changesets (bug 1644706, bug 1644437, bug 1644368) for python related bustage CLOSED TREE
Backed out changeset 2a6645398c5a (bug 1644706)
Backed out changeset e695f5748e04 (bug 1644437)
Backed out changeset d615591507b9 (bug 1644368)
2020-06-11 01:04:33 +03:00
Gregory Mierzwinski 8d81e0549f Bug 1644706 - Make a multi-commit test for app-link in CI. r=mozperftest-reviewers,tarek
This patch adds a new method to test multiple Fenix builds within one test run.

Depends on D78926

Differential Revision: https://phabricator.services.mozilla.com/D79107
2020-06-10 21:18:57 +00:00
Tarek Ziadé b3c9f0eacc Bug 1644437 - add --test-iterations r=sparky
Adds a new option to allow running the whole test several times,
and a `before_iterations` hook

Differential Revision: https://phabricator.services.mozilla.com/D78926
2020-06-10 21:44:37 +00:00
Tarek Ziadé 9fe5ec323a Bug 1644368 - improved scriptinfo r=sparky
Move scriptinfo to where it belongs and clean it

Differential Revision: https://phabricator.services.mozilla.com/D78870
2020-06-10 20:57:06 +00:00
Tarek Ziadé 9458a80c0f Bug 1644586 - remove get_nested_values r=sparky
unused

Differential Revision: https://phabricator.services.mozilla.com/D78988
2020-06-10 15:03:19 +00:00
Gregory Mierzwinski de3c9ae058 Bug 1643685 - Use name instead of test_name when finding the metric test name. r=mozperftest-reviewers,tarek
This patch fixes the test name being used for the App-link test in CI (regression). The patch also adds a new feature to ScriptInfo which checks to make sure that the test doesn't have any extra unknown keys in it. If it does, a failure is raised. This change is to attempt to help prevent these kinds of regressions from happening again. A new test is added for this functinality as well.

Differential Revision: https://phabricator.services.mozilla.com/D78516
2020-06-08 21:02:53 +00:00
Tarek Ziadé 7489c5233a Bug 1642779 - implement the 'androidlog' test r=acreskey,sparky
Add a layer that scans the android logcat

Differential Revision: https://phabricator.services.mozilla.com/D78268
2020-06-08 10:47:52 +00:00
Yue Zhang fcaa3e19c7 Bug 1639692 - Re-enable custom transform discovery. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D76653
2020-06-05 21:09:32 +00:00
Gregory Mierzwinski 7a9ed37810 Bug 1643103 - Fix how system layers work with the test layers. r=mozperftest-reviewers,tarek
This patch fixes how the system and browser/test layers are run. With this fix, the system layer no longer fully runs its setup and teardown stages before the browser layer has started and finished. Now the setup/teardown happens before/after the full test layer run.

Depends on D78016

Differential Revision: https://phabricator.services.mozilla.com/D78128
2020-06-05 13:42:14 +00:00
Tarek Ziadé 18f9ccd8f2 Bug 1642615 - Renamed the browser layer to test r=sparky
This patch renames the browser layer to test, since
it could be something else than a browser

Differential Revision: https://phabricator.services.mozilla.com/D78016
2020-06-04 18:31:54 +00:00
Tarek Ziadé 9bcf786abb Bug 1643621 - add moz.build r=Bebe
forgot to add this file, so mozperftest docs are added in the sphinx sparse profile

Differential Revision: https://phabricator.services.mozilla.com/D78465
2020-06-05 09:46:15 +00:00
xuanqi xu 33b538ca48 Bug 1636534 - Added test for notebook layer and perftestnotebook. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D77386
2020-06-02 21:35:03 +00:00
xuanqi xu 2b9bf62319 Bug 1636534 - Separate perftestetl from perftestnotebook r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D75684
2020-06-02 21:34:49 +00:00
Tarek Ziadé 7c486e2ce0 Bug 1641834 - started a Sphinx doc r=sparky,acreskey
Initial Sphinx structure with minimal content.
This is mostly to get started in writing doc

Differential Revision: https://phabricator.services.mozilla.com/D77440
2020-06-03 08:17:06 +00:00
Tom Prince 581eba974b Bug 1641971: Pass `mach perftest` options explicitly, rather than inpsect parameters; r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D77548
2020-06-03 02:35:09 +00:00
Narcis Beleuzu 479c45bbea Backed out 7 changesets (bug 1641971) for breaking Gecko Decision Task opt . CLOSED TREE
Backed out changeset a039e60a26d2 (bug 1641971)
Backed out changeset e7d4c490c31a (bug 1641971)
Backed out changeset f2322981b294 (bug 1641971)
Backed out changeset d123b08d2c20 (bug 1641971)
Backed out changeset 57772c0b9b3e (bug 1641971)
Backed out changeset 11a887f73dbb (bug 1641971)
Backed out changeset e9c7a59d4bc5 (bug 1641971)
2020-06-03 05:30:51 +03:00
Tom Prince 11aedca9b2 Bug 1641971: Pass `mach perftest` options explicitly, rather than inpsect parameters; r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D77548
2020-06-02 18:23:07 +00:00
Gregory Mierzwinski 55c95e297a Bug 1637994 - Add a transformer for extracting times/durations from logcat logs. r=acreskey,mozperftest-reviewers,tarek
This patch adds a transformer that is capable of extracting times/entries or durations for logcat logs. Here, we also implement the ability for users to pass options to the transformers so that they can be more generic (through transformer-options). The logcat transformer makes use of this, and also shows how a custom function can be used within transformers. A new test file is added for the transformer, as well as a test in test_perfherder.py so we can test the full pipeline.

Differential Revision: https://phabricator.services.mozilla.com/D77094
2020-05-29 12:40:40 +00:00
Gregory Mierzwinski 115d1b4294 Bug 1641566 - Update in-tree browsertime to latest. r=tarek,perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D77257
2020-05-29 12:24:33 +00:00
Tarek Ziadé 3c6bbe84ba Bug 1641549 - Run the metrics layer separately r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D77292
2020-05-29 12:21:52 +00:00
Tarek Ziadé 77da205d14 Bug 1640627 - added android logs options r=sparky
--android-capture-logcat  - captures the logcat
--android-clear-logcat - clears the logcat on start
--android-capture-adb - captures the adb commands

Differential Revision: https://phabricator.services.mozilla.com/D77038
2020-05-28 16:42:37 +00:00
Tarek Ziadé c0c06d6f1f Bug 1641351 - raise on node error in BT r=acreskey
We forgot to check that the node command succeeded.
This patch fixes it.

Differential Revision: https://phabricator.services.mozilla.com/D77148
2020-05-27 21:43:38 +00:00
Tarek Ziadé bddb8551ed Bug 1640747 - Add test-level support for handling exceptions while running the tests r=acreskey
This patch adds the `on_exception` hook, that will let developers
drive the runner behavior when a layer fails.

Differential Revision: https://phabricator.services.mozilla.com/D76794
2020-05-26 13:35:00 +00:00
Tarek Ziadé 92a2c142f7 Bug 1640649 - add --android-timeout r=sparky
This patch surfaces the timeout value for ADBDevice.
It also adds the ability to run a single test with
mach perftest-test and a new --skip-lint option
to skip black/flake8

Differential Revision: https://phabricator.services.mozilla.com/D76791
2020-05-26 14:42:58 +00:00
Tarek Ziadé af3ea56177 Bug 1639321 - increase the coverage to 85 r=sparky
Increase the coverage to 85%

Differential Revision: https://phabricator.services.mozilla.com/D76048
2020-05-26 14:44:14 +00:00
Gregory Mierzwinski f94f60a9c2 Bug 1640171 - Make the test file a str before using it. r=mozperftest-reviewers,tarek
This patch fixes a bug where a PosixPath is attempted to be used rather than a string path. There's also a regression in the coverage test run in `./mach perftest-test` on some platforms that is fixed by this patch (the attrs module being used by pytest is too old, so we update during setup). Lastly, a regression test is added to the browsertime tests to ensure that the command only contains knowingly compatible types.

Depends on D76713

Differential Revision: https://phabricator.services.mozilla.com/D76599
2020-05-25 20:07:58 +00:00
Tarek Ziadé d634c1741b Bug 1639493 - improved README r=acreskey
Added some minimal doc

Differential Revision: https://phabricator.services.mozilla.com/D76107
2020-05-20 13:12:15 +00:00
Yue Zhang d8d83da843 Bug 1636535 - Remove subclass requirement for custom data transformers. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D75394
2020-05-20 19:48:58 +00:00
Tarek Ziadé f8d5627e71 Bug 1639212 - allow URLs for hooks and scripts r=sparky
This patch allows using URLS for --hooks and scripts

Differential Revision: https://phabricator.services.mozilla.com/D75967
2020-05-19 20:27:27 +00:00
Gregory Mierzwinski 7788d4b576 Bug 1639211 - Implement --perfherder-app in mozperftest Perfherder layer. r=mozperftest-reviewers,tarek
This patch adds a new --perfherder-app that can be used to specify the shorthand name of the application being tested. The choices here are limited to what the perfherder schema can accept. We also add these settings to the existing taskcluster tasks to split the perfherder data. A couple tests are also added for this new flag.

Differential Revision: https://phabricator.services.mozilla.com/D76010
2020-05-19 19:07:27 +00:00
Gregory Mierzwinski 99953d32a0 Bug 1638001 - Add test name from metadata to perfherder data. r=acreskey,mozperftest-reviewers,tarek
This patch adds a `test_name` field to the test metadata that can be used to change the name of the test when output in the perfherder format. It also implements this for the app-link tests.

Differential Revision: https://phabricator.services.mozilla.com/D75544
2020-05-19 19:52:52 +00:00
Tarek Ziadé 7d6014b5a8 Bug 1635573 - vendor coverage r=ahal
Vendor coverage, and make sure we can run out of third_party as much as possible

Differential Revision: https://phabricator.services.mozilla.com/D74531
2020-05-19 15:04:28 +00:00
Tarek Ziadé ffc7bb2c00 Bug 1637959 - Added more test coverage r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D75309
2020-05-15 07:19:39 +00:00
Tarek Ziadé e5c6044cc3 Bug 1636179 - switch mpu to perftest-test r=sparky
This patch will use perftest-test on any code change in python/mozperftest

Differential Revision: https://phabricator.services.mozilla.com/D75080
2020-05-14 13:01:59 +00:00
Tarek Ziadé c84c8756b8 Bug 1637231 - add applink tests r=acreskey
Adds tests for applink for gve/fenix on p2/g5

Differential Revision: https://phabricator.services.mozilla.com/D75097
2020-05-14 13:01:59 +00:00
Yue Zhang 740c6c3ab7 Bug 1630610 - Add tests for transformers/single_json.py. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D74554
2020-05-13 00:29:36 +00:00
Yue Zhang 44c0a36b80 Bug 1630610 - Add tests for perftestnotebook.py and transformer.py. r=sparky
Depends on D73926

Differential Revision: https://phabricator.services.mozilla.com/D73927
2020-05-13 12:08:40 +00:00
Yue Zhang a8fc57d316 Bug 1630610 - Add setup function for pytest. r=sparky
Depends on D73154

Differential Revision: https://phabricator.services.mozilla.com/D73926
2020-05-13 00:29:16 +00:00
Yue Zhang 118aa2368b Bug 1630610 - Fix broken code. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D73154
2020-05-13 00:29:08 +00:00
Tarek Ziadé 734633e6c5 Bug 1637315 - Plug flake8 r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D74886
2020-05-12 16:57:27 +00:00
Tarek Ziadé 080870795e Bug 1635136 - add a --push-to-try option r=aerickson
This patch is adding an option to push a perftest run in the CI.

It's based on :
- sparse profiles
- push_to_try
- options passed through try_task_config.json

Differential Revision: https://phabricator.services.mozilla.com/D74115
2020-05-12 21:19:48 +00:00
Tarek Ziadé c1ea70b2d6 Bug 1636871 - allow URLs and aliases for --android-install-apk r=sparky
This patch let us use urls for that option

Differential Revision: https://phabricator.services.mozilla.com/D74629
2020-05-12 17:01:17 +00:00
Gregory Mierzwinski b563884d06 Bug 1637303 - Add perfherder data validation to mozperftest. r=mozperftest-reviewers,tarek
This patch enables perfherder data validation with jsonschema and also adds some extra tests for the Perfherder layer.

Differential Revision: https://phabricator.services.mozilla.com/D74877
2020-05-12 18:06:15 +00:00
Andrew Creskey 5276336dcf Bug 1634516 Extend the android applink tests to cover all variations of fenix r=tarek,sparky
Adds support for all variations of fenix (app name and activity passed by argument to mach perfest)
Fixes bug in mach perftest argument passing (android-activity was not being set)

Differential Revision: https://phabricator.services.mozilla.com/D73334
2020-05-11 14:30:01 +00:00
Tarek Ziadé fa240018c6 Bug 1635546 - deactivate test under macOS r=sparky
until we have Bug 1635573

Differential Revision: https://phabricator.services.mozilla.com/D73943
2020-05-05 21:29:00 +00:00