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

2012 Коммитов

Автор SHA1 Сообщение Дата
Geoff Brown d04cf1a43d Bug 1650915 - [mozdevice] Do no type conversion on file contents returned by get_file; r=bc
Make the caller responsible for any desired type conversion, so that binary data can be
retrieved. This just works in py2. 'mach gtest' is the only py3 caller, and it already calls
ensure_str on the returned file contents. mochitest/reftest (via remoteautomation.py) may
require additional consideration when they are converted to py3 (coming soon!?).

Differential Revision: https://phabricator.services.mozilla.com/D86437
2020-08-07 22:45:28 +00:00
Ricky Stewart 31755b431d Bug 1657650 - Require that Mach command providers subclass MachCommandBase. r=remote-protocol-reviewers,marionette-reviewers,maja_zf,mhentges,froydnj
Today we don't require that `mach` `CommandProvider`s subclass from any particular parent class and we're very lax about the requirements they must meet. While that's convenient in certain circumstances, it has some unfortunate implications for feature development.

Today the only requirements that we have for `CommandProvider`s are that they have an `__init__()` method that takes either 1 or 2 arguments, the second of which must be called `context` and is populated with the `mach` `CommandContext`. Again, while this flexibility is occasionally convenient, it is limiting. As we add features to `mach`, having a better idea what the shape of our `CommandProvider`s are and how we can instantiate them and use them is increasingly important, and this gives us additional control when having `mach` configure `CommandProvider`s based on data that is only available at the `mach` level. In particular, we plan to leverage this in bugs 985141 and 1654074.

Here we add validation to the `CommandProvider` decorator to ensure all classes inherit from `MachCommandBase`, update all `CommandProvider`s in-tree to inherit from `MachCommandBase`, and update source and test code accordingly.

Follow-up work: we now require (de facto) that the `context` be populated with a `topdir` attribute by the `populate_context_handler` function, since instantiating the `MachCommandBase` requires a `topdir` be provided. This is fine for now in the interest of keeping this patch reasonably sized, but some additional refactoring could make this cleaner.

Differential Revision: https://phabricator.services.mozilla.com/D86255
2020-08-07 18:24:59 +00:00
Bob Clary 325e7ba955 Bug 1522661 - [mozdevice 4.0.1] adb should use ANDROID_SERIAL environment variable if device not otherwise specified. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D86401
2020-08-07 18:35:26 +00:00
Jim Porter 8e234c7598 Bug 1537763 - [mozproxy] Add a record mode; r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D84399
2020-08-05 19:43:55 +00:00
Geoff Brown 0474f467d1 Bug 1657461 - [mozdevice] Relax success requirements for remount; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D86064
2020-08-05 19:45:51 +00:00
Makoto Kato 598f77baca Bug 1656412 - moznetwork isn't compatible with Python 3. r=ahal
After landing bug 1638963, geckoview-junit is Python 3 compatible. But
moznetwork isn't still compatible with Python 3 although bug 1428711 is fixed.

According to https://docs.python.org/3/library/array.html,

- `names = array.array('B', '\0' * bytes)` isn't compatible with Python 3.
- `names.tostring()` returns byte array on Python 3 and this is deprecated.

Differential Revision: https://phabricator.services.mozilla.com/D85526
2020-08-05 14:54:09 +00:00
Hamzah b7e6b41fc5 Bug 1594914 - Convert mach python-test to run with python 3 r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D77872
2020-08-04 17:40:58 +00:00
Kristen Wright 18587e78f0 Bug 1613178 - Update mozcrash test files with a sample .extra file r=gbrown
Updates the test files for `mozcrash` so the .extra file resembles an actual .extra file, which exercises the json parser. This required updating the `LocalPath` to write out UTF-8 text, and the sample .extra files contains some unicode text to exercise the parse functionality.

Differential Revision: https://phabricator.services.mozilla.com/D85325
2020-07-30 17:21:52 +00:00
James Graham 860d7b97d4 Bug 1655934 - Update mozlog version number for release, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D85264
2020-07-29 14:39:11 +00:00
Henrik Skupin 81f12e6b15 Bug 1584911 - [rust-mozversion] Release version 0.3.0. r=webdriver-reviewers,jgraham
Depends on D81904

Differential Revision: https://phabricator.services.mozilla.com/D81905
2020-07-02 08:24:17 +00:00
Henrik Skupin 74d8e824fe Bug 1584911 - [rust-mozrunner] Release version 0.11.0. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D81904
2020-07-02 15:56:58 +00:00
Henrik Skupin 569832c767 Bug 1584911 - [rust-mozprofile] Release version 0.7.0. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D81903
2020-07-02 12:09:52 +00:00
Henrik Skupin 9f17643aed Bug 1584911 - [rust-mozdevice] Release version 0.2.0. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D81902
2020-07-02 08:19:12 +00:00
James Graham ee0e7d4b9e Bug 1654549 - Give mozlog's LoggingWrapper a buffer attribute, r=ahal
stdout in Python 3 has a `buffer` attribute that gives access to the
underlying bytestream. Code trying to access this will fail with
LoggingWrapper, because the property isn't defined. In practice the
`write()` method of LoggingWrapper handles both bytes and text, so
it's sufficient to just return the object itself.

Differential Revision: https://phabricator.services.mozilla.com/D84521
2020-07-22 20:23:18 +00:00
Bob Clary 2b960e20cc Bug 1486004 - Part 12 - [mozrunner 8.0.2] Update mozrunner requirements to support unrooted android devices using mozdevice 4.0.0, r=gbrown
Depends on D82754

Differential Revision: https://phabricator.services.mozilla.com/D82755
2020-07-17 20:48:58 +00:00
Bob Clary 4ae6b58764 Bug 1486004 - Part 11 - [mozpower 1.1.2] Update mozpower requirements to support unrooted android devices using mozdevice 4.0.0, ? r=wlach,sparky
Depends on D82753

Differential Revision: https://phabricator.services.mozilla.com/D82754
2020-07-17 20:48:24 +00:00
Bob Clary 421a5117f1 Bug 1486004 - Part 1 - [mozdevice 4.0.0] Use run-as to work around rooted device requirement, r=gbrown,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D82744
2020-07-17 20:48:22 +00:00
Narcis Beleuzu b1faa2872a Backed out 17 changesets (bug 1486004) for wrench bustage on android.py . CLOSED TREE
Backed out changeset cae730f105d7 (bug 1486004)
Backed out changeset e0094d50a315 (bug 1486004)
Backed out changeset 424425ed98c6 (bug 1486004)
Backed out changeset 551232749abe (bug 1486004)
Backed out changeset 505747095def (bug 1486004)
Backed out changeset 5b1c62c4a4d5 (bug 1486004)
Backed out changeset 0a1c8d50ee69 (bug 1486004)
Backed out changeset 6ef81c676859 (bug 1486004)
Backed out changeset 234e55153fb6 (bug 1486004)
Backed out changeset 2f33b309d746 (bug 1486004)
Backed out changeset 48947692c176 (bug 1486004)
Backed out changeset 473bac8eedd9 (bug 1486004)
Backed out changeset af6afed0a04a (bug 1486004)
Backed out changeset a0e2f91eb4d4 (bug 1486004)
Backed out changeset 138c987440c7 (bug 1486004)
Backed out changeset 6d2e305f4722 (bug 1486004)
Backed out changeset 1181ff03bb05 (bug 1486004)
2020-07-17 23:43:57 +03:00
Bob Clary 3dca103f53 Bug 1486004 - Part 12 - [mozrunner 8.0.2] Update mozrunner requirements to support unrooted android devices using mozdevice 4.0.0, r=gbrown
Depends on D82754

Differential Revision: https://phabricator.services.mozilla.com/D82755
2020-07-16 21:32:55 +00:00
Bob Clary 197496dd07 Bug 1486004 - Part 11 - [mozpower 1.1.2] Update mozpower requirements to support unrooted android devices using mozdevice 4.0.0, ? r=wlach,sparky
Depends on D82753

Differential Revision: https://phabricator.services.mozilla.com/D82754
2020-07-16 21:32:54 +00:00
Bob Clary 09dbc8d942 Bug 1486004 - Part 1 - [mozdevice 4.0.0] Use run-as to work around rooted device requirement, r=gbrown,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D82744
2020-07-16 21:32:52 +00:00
Narcis Beleuzu 1eb115035d Backed out 20 changesets (bug 1486004, bug 1653094) for wrench bustages. CLOSED TREE
Backed out changeset 120c64ebdea3 (bug 1486004)
Backed out changeset b10f105b1c36 (bug 1486004)
Backed out changeset 7f186e6bcccc (bug 1486004)
Backed out changeset cdda7b349cd8 (bug 1486004)
Backed out changeset 650c47e81402 (bug 1486004)
Backed out changeset 2bcca7cf3f1b (bug 1486004)
Backed out changeset e1df276f8a8d (bug 1486004)
Backed out changeset f6f5e7f2bd0a (bug 1486004)
Backed out changeset 1c56cb03ce53 (bug 1486004)
Backed out changeset 582cd190f174 (bug 1486004)
Backed out changeset 7c162e1b3a79 (bug 1486004)
Backed out changeset d1088e178216 (bug 1486004)
Backed out changeset 40763f4afd26 (bug 1486004)
Backed out changeset f20eb5b5a670 (bug 1486004)
Backed out changeset 6349ee0bd63f (bug 1486004)
Backed out changeset 7c23729053f6 (bug 1486004)
Backed out changeset 49586014bd29 (bug 1486004)
Backed out changeset 07971e82ae85 (bug 1653094)
Backed out changeset 47e7295e9c19 (bug 1653094)
Backed out changeset 57a25bbeec37 (bug 1653094)
2020-07-16 17:58:09 +03:00
Bob Clary 228090db81 Bug 1486004 - Part 12 - [mozrunner 8.0.2] Update mozrunner requirements to support unrooted android devices using mozdevice 4.0.0, r=gbrown
Depends on D82754

Differential Revision: https://phabricator.services.mozilla.com/D82755
2020-07-15 21:22:36 +00:00
Bob Clary a3372483ec Bug 1486004 - Part 11 - [mozpower 1.1.2] Update mozpower requirements to support unrooted android devices using mozdevice 4.0.0, ? r=wlach,sparky
Depends on D82753

Differential Revision: https://phabricator.services.mozilla.com/D82754
2020-07-15 21:41:41 +00:00
Bob Clary e118ca3ed6 Bug 1486004 - Part 1 - [mozdevice 4.0.0] Use run-as to work around rooted device requirement, r=gbrown,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D82744
2020-07-15 20:57:17 +00:00
Mihai Alexandru Michis a1d49fb98d Backed out 17 changesets (bug 1486004) for causing bustages in AccessCheck.h
CLOSED TREE

Backed out changeset 86a0855e1e45 (bug 1486004)
Backed out changeset 4fc98067edc5 (bug 1486004)
Backed out changeset 8ab3f1597fde (bug 1486004)
Backed out changeset b487e98320fb (bug 1486004)
Backed out changeset 4cba8e6bc515 (bug 1486004)
Backed out changeset d0db5eef2343 (bug 1486004)
Backed out changeset 50285a87de6b (bug 1486004)
Backed out changeset 9730c0303810 (bug 1486004)
Backed out changeset 140a9d2362f3 (bug 1486004)
Backed out changeset 9d1ce06f6039 (bug 1486004)
Backed out changeset 88a5a4ab39fa (bug 1486004)
Backed out changeset eb186c92232d (bug 1486004)
Backed out changeset 677f2129750e (bug 1486004)
Backed out changeset 81427a5f2103 (bug 1486004)
Backed out changeset 38d7def3d425 (bug 1486004)
Backed out changeset a9e73221c471 (bug 1486004)
Backed out changeset ebe8c2d5432e (bug 1486004)
2020-07-16 15:29:29 +03:00
Bob Clary 456073d12d Bug 1486004 - Part 12 - [mozrunner 8.0.2] Update mozrunner requirements to support unrooted android devices using mozdevice 4.0.0, r=gbrown
Depends on D82754

Differential Revision: https://phabricator.services.mozilla.com/D82755
2020-07-15 21:22:36 +00:00
Bob Clary 68ed046429 Bug 1486004 - Part 11 - [mozpower 1.1.2] Update mozpower requirements to support unrooted android devices using mozdevice 4.0.0, ? r=wlach,sparky
Depends on D82753

Differential Revision: https://phabricator.services.mozilla.com/D82754
2020-07-15 21:41:41 +00:00
Bob Clary dfe3dc83b3 Bug 1486004 - Part 1 - [mozdevice 4.0.0] Use run-as to work around rooted device requirement, r=gbrown,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D82744
2020-07-15 20:57:17 +00:00
alexandru.ionescu 82ca0990cc Bug 1643263 Re-record amazon, apple, bing-search r=Bebe,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D79257
2020-07-15 14:42:06 +00:00
alexandru.ionescu 03b195d045 Bug 1643263 Update mitm from 5.0.1 to 5.1.1. r=perftest-reviewers,Bebe
This patch is updating the code to mitm 5.1.1 and mitmproxy manifest.

Differential Revision: https://phabricator.services.mozilla.com/D79256
2020-07-15 14:41:29 +00:00
Geoff Brown 2b9dc7cbe1 Bug 1641365 - Allow 'mach android-emulator' to fetch avd images from toolchains; r=bc
This adds the ability to fetch avd images from toolchain tasks, but doesn't update the configuration to use that feature yet. AVDs continue to be fetched with tooltool.

Differential Revision: https://phabricator.services.mozilla.com/D77157
2020-07-14 16:39:04 +00:00
Bob Clary 36e2ee2839 Bug 1652489 - version bump mozpower to 1.1.1 and mozrunner version to 8.0.1 and release, r=ahal,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D83342
2020-07-13 17:32:07 +00:00
James Graham 0012f0a5f3 Bug 1652479 - Include non-build-system suites in mach-test-info, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D83334
2020-07-13 14:54:30 +00:00
Bob Clary 13b8cbabeb Bug 1652339 - set mozdevice version requirements to exclude version 4.0.0 on trunk, beta r=marionette-reviewers,perftest-reviewers,whimboo,sparky
Differential Revision: https://phabricator.services.mozilla.com/D83278
2020-07-13 11:36:39 +00:00
Razvan Maries edd6936d05 Backed out changeset b932e78a6bbc (bug 1591678) as per Andrew's request. 2020-07-12 05:22:58 +03:00
Jim Porter 52f7e9ce53 Bug 1651928 - Fix test failures in testing/mozbase/mozversion/tests/<random>.py; r=tarek
The mozproxy command line interface is only designed to run under Python 3,
and restricting these tests to Python 3-only fixes the other failing tests.

Differential Revision: https://phabricator.services.mozilla.com/D83171
2020-07-10 20:45:54 +00:00
Ricky Stewart 88e985048c Bug 1652102 - `mozleak/tests/test_lsan.py` should run in the `mozbase` test suite r=froydnj
This is presumably the place where it was always supposed to run, but the `manifest.ini` file is messed up. Fix the syntax.

Differential Revision: https://phabricator.services.mozilla.com/D83165
2020-07-10 19:54:55 +00:00
Andrew Halberstadt 54703acbfb Bug 1651762 - [mozrunner] Bump to version 8.0.0, r=gbrown
There have been a few backwards incompatible changes, so bumping major version.
This also updates the minimum mozprocess to 1.2.0 to pick up the latest Py3
fixes.

Depends on D82974

Differential Revision: https://phabricator.services.mozilla.com/D82975
2020-07-09 20:31:23 +00:00
Andrew Halberstadt 0de5257d97 Bug 1651762 - [mozprocess] Bump to version 1.2.0, r=gbrown
This release mostly contains Python 3 compatibility fixes since the last one.

Differential Revision: https://phabricator.services.mozilla.com/D82974
2020-07-09 20:31:56 +00:00
Stefan Zabka e970626244 Bug 1622692 - Fixing clippy warnings in testing/mozbase/rust/mozversion/src/lib.rs r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D83003
2020-07-10 12:36:13 +00:00
Jim Porter 5c759e3542 Bug 1631806 - [mozproxy] Add a command line interface r=tarek,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D76017
2020-07-08 13:41:24 +00:00
Tom Prince 204d796929 Bug 1651731: [lint] Python and shell files without `#!` should not be executable; r=linter-reviewers,perftest-reviewers,geckoview-reviewers,agi,sylvestre,sparky
Differential Revision: https://phabricator.services.mozilla.com/D82954
2020-07-09 20:29:18 +00:00
Andrew Halberstadt 6774848e15 Bug 1591678 - [mozlog] Ensure missing leak totals count as a failure in the StatusHandler, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D82794
2020-07-09 03:59:26 +00:00
Mihai Alexandru Michis 53a4dbf91a Backed out changeset 19269e470c71 (bug 1594914) for causing bustages.
CLOSED TREE
2020-07-09 01:36:29 +03:00
Hamzah 0606c70920 Bug 1594914 - Convert mach python-test to run with python 3 r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D77872
2020-07-08 19:15:27 +00:00
Tom Tung 7e78f4ec74 Bug 1626581 - Use mozfile.remove in test_refresh_firefox.py and add the "\\?\" prefix for file path on Windows for mozfile.remove; r=whimboo,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D81901
2020-07-07 15:00:46 +00:00
Coroiu Cristina 07dda135f5 Backed out changeset 64456c63779a (bug 1626581) for xpcshell task aborted failures on a CLOSED TREE 2020-07-03 16:36:32 +03:00
Tom Tung 30f78a7f6e Bug 1626581 - Use mozfile.remove in test_refresh_firefox.py and add the "\\?\" prefix for file path on Windows for mozfile.remove; r=whimboo,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D81901
2020-07-03 12:02:28 +00:00
Geoff Brown 847bba935b Bug 1649703 - Avoid binary output from mozcrash under py3; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D82080
2020-07-02 20:56:52 +00:00