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

2012 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst 927bcd02f8 Bug 1604001 - Add the missing process type of the fork server for tests: fix flake8 linting issue. a=lint-fix CLOSED TREE 2019-12-19 19:52:48 +01:00
Thinker Li 238a08c7d3 Bug 1604001 - Add the missing process type of the fork server for tests. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D57218

--HG--
extra : moz-landing-system : lando
2019-12-19 15:50:03 +00:00
Andrew Halberstadt e6f858b2fb Bug 1604360 - [manifestparser] Properly merge [DEFAULT] section of manifest with parent defaults r=gbrown
Previously the [DEFAULT] section of a manifest would simply overwrite whatever
values were passed down from the parent. This patch ensures we use
'combine_fields' so things like 'skip-if' and 'support-files' are properly
merged.

Differential Revision: https://phabricator.services.mozilla.com/D57410

--HG--
extra : moz-landing-system : lando
2019-12-18 23:54:26 +00:00
Andrew Halberstadt 4c525b8a42 Bug 1604360 - [manifestparser] Convert 'test_read_ini' to the pytest format r=egao
Make it nicer to read and edit.

Depends on D57408

Differential Revision: https://phabricator.services.mozilla.com/D57409

--HG--
extra : moz-landing-system : lando
2019-12-18 22:19:46 +00:00
Andrew Halberstadt 2f17f15aab Bug 1604360 - [manifestparser] Remove unused 'defaults_only' logic r=egao
This flag is not passed in from anywhere in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D57408

--HG--
extra : moz-landing-system : lando
2019-12-17 22:19:28 +00:00
Andrew Halberstadt f360e451f9 Bug 1604360 - [manifestparser] Remove unused 'parent' feature r=egao
There aren't any manifests using '[parent:<manifest>]' in mozilla-central.

Depends on D57406

Differential Revision: https://phabricator.services.mozilla.com/D57407

--HG--
extra : moz-landing-system : lando
2019-12-17 18:14:04 +00:00
Andrew Halberstadt 0e2a4f08b4 Bug 1604360 - [manifestparser] Remove unused treatment of 'server-root' key r=egao
This was probably a remnant from Mozmill. I don't see any uses of it in mozilla-central
anywhere (or even comm-central for that matter).

Depends on D57405

Differential Revision: https://phabricator.services.mozilla.com/D57406

--HG--
extra : moz-landing-system : lando
2019-12-17 18:13:42 +00:00
Edwin Takahashi dc60cf7e90 Bug 1428705 - fix manifestparser/test_chunking.py for python3 r=ahal,whimboo
Changes:

Fix syntax in the test file to work under python3.

Assorted changes to the code style, and eliminating unnecessary warnings.

Differential Revision: https://phabricator.services.mozilla.com/D56803

--HG--
extra : moz-landing-system : lando
2019-12-18 22:18:55 +00:00
Andrew Halberstadt c64802ef87 Bug 1583353 - [manifestparser] Take 'ancestor_manifest' into account in the pathprefix filter, r=gbrown
Previously, when running |mach mochitest path/to/manifest.ini|, any tests in
manifests that that one includes would not be run.

This fixes that behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D57164

--HG--
extra : moz-landing-system : lando
2019-12-13 23:09:54 +00:00
Edwin Takahashi e6e05ff21c Bug 1428705 - fix manifestparser/manifestparser for python3 and enable test_convert_directory.py r=ahal
Changes:

Import the appropriate version of `StringIO` instead of `BytesIO` depending on the version of python, and use it in `manifestparser.py`.

This is required for `test_convert_directory.py` to pass on both python versions. Changes to the test was not required.

Differential Revision: https://phabricator.services.mozilla.com/D56865

--HG--
extra : moz-landing-system : lando
2019-12-14 03:10:45 +00:00
Andrew Halberstadt 26e9db86f8 Bug 1583353 - [taskgraph] Implement test chunking in transforms r=gbrown
We've long handled chunks by defining the total number of chunks in our CI
configuration, and then passing that value down into the test harnesses at task
runtime (via the '--this-chunk' and '--total-chunks' parameters).  The test
harness then runs an algorithm to determine which tests should be run in "this"
chunk.

There are several problems with this approach, but by far the biggest is that
we can't use test information in our scheduling algorithms. The information
simply isn't available yet. This patch switches things around such that we
determine which tests go in which tasks during the taskgraph generation. This
means we have perfect information around which tasks are running which tests,
and if e.g a ccov or machine learning algorithm deems a particular test
important, we can make sure to *only* schedule the tasks that contain that
test.

I'm planning to enable this a couple suites at a time so we don't accidentally
stop running tests. This specifically only enables this mode for
'mochitest-media', 'mochitest-browser-chrome' and 'mochitest-devtools-chrome'.
I chose these suites because they are the ones that are already using the
'chunk_by_runtime' algorithm.

Differential Revision: https://phabricator.services.mozilla.com/D52729

--HG--
extra : moz-landing-system : lando
2019-12-11 21:10:48 +00:00
Florin Strugariu 9696f02d54 Bug 1585456 - [mozproxy] Error out when mozproxy can't bind to port r=tarek,perftest-reviewers,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D50594

--HG--
extra : moz-landing-system : lando
2019-12-11 10:07:28 +00:00
Geoff Brown 3f66236867 Bug 1599534 - Update help and version names for 'mach android-emulator'; r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D54802

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:59 +00:00
Gijs Kruitbosch 758921e735 Bug 1543447 - disable stack walking on mac for non-automation uses of mozrunner because of perf issues, r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D56513

--HG--
extra : moz-landing-system : lando
2019-12-10 02:19:47 +00:00
Edwin Takahashi a54f1b1dae Bug 1428705 - [manifestparser] Add support for Python 3. r=egao
Differential Revision: https://phabricator.services.mozilla.com/D54113

--HG--
extra : moz-landing-system : lando
2019-12-06 22:25:58 +00:00
Mike Hommey 4b7d2e300b Bug 1601544 - Upgrade mozversion to semver 0.9. r=whimboo
This was the only use of semver 0.6.

Differential Revision: https://phabricator.services.mozilla.com/D55921

--HG--
extra : moz-landing-system : lando
2019-12-05 09:21:58 +00:00
Andrew Halberstadt e68e5e2ee6 Bug 1600314 - [manifestparser] Use 'ancestor_manifest' in the 'chunk_by_runtime' filter (if it exists), r=gbrown
Ensures child (aka included) manifests always run in the same chunk as their parent.

Differential Revision: https://phabricator.services.mozilla.com/D55284

--HG--
extra : moz-landing-system : lando
2019-12-03 14:23:32 +00:00
Andrew Halberstadt 9e97c79054 Bug 1600314 - [manifestparser] Make 'ancestor_manifest' a relative path, r=gbrown
Also rename the key from 'ancestor-manifest' to 'ancestor_manifest' to be
consistent with other keys.

Differential Revision: https://phabricator.services.mozilla.com/D55283

--HG--
extra : moz-landing-system : lando
2019-12-02 21:19:45 +00:00
Nathan Froyd a36959414d Bug 1600771 - turn on --show-mismatched-frees=no for valgrind tests; r=jseward
Otherwise, Valgrind is liable to see false positives from mismatched
`new` where the `delete` has been inlined to `free` or vice versa.

Differential Revision: https://phabricator.services.mozilla.com/D55553

--HG--
extra : moz-landing-system : lando
2019-12-03 13:32:27 +00:00
Geoff Brown d2bcfce6f8 Bug 1600713 - Grant FOREGROUND_SERVICE permission to android test apps; r=bc
Simple addition of one item to list of granted permissions, for Android P+; see bug 1553515.

Differential Revision: https://phabricator.services.mozilla.com/D55561

--HG--
extra : moz-landing-system : lando
2019-12-02 23:17:40 +00:00
Mihai Alexandru Michis 3f8e4cc2e1 Backed out 3 changesets (bug 1600314) for causing bc and dt failures regarding manifest filters. CLOSED TREE
Backed out changeset 4c4e74df38bd (bug 1600314)
Backed out changeset 3c4063b93ce7 (bug 1600314)
Backed out changeset d28d71c964c7 (bug 1600314)
2019-12-02 16:44:35 +02:00
Andrew Halberstadt 8c10901652 Bug 1600314 - [manifestparser] Use 'ancestor_manifest' in the 'chunk_by_runtime' filter (if it exists), r=gbrown
Ensures child (aka included) manifests always run in the same chunk as their parent.

Differential Revision: https://phabricator.services.mozilla.com/D55284

--HG--
extra : moz-landing-system : lando
2019-12-02 14:24:30 +00:00
Andrew Halberstadt c66002dc20 Bug 1600314 - [manifestparser] Make 'ancestor_manifest' a relative path, r=gbrown
Also rename the key from 'ancestor-manifest' to 'ancestor_manifest' to be
consistent with other keys.

Differential Revision: https://phabricator.services.mozilla.com/D55283

--HG--
extra : moz-landing-system : lando
2019-11-29 16:16:09 +00:00
Edwin Takahashi 58c1a14caa Bug 1428718 - make moztest syntax python3 compatible r=gbrown,mozbase
Changes:

Replace `<list>.items()` calls with `six.iteritems()`.

Remove `try/except` handling of `unittest` import as we have standardized on python2.7 in CI.

Use `six` to handle metaclass changes while python2/3 intercompatibility is required.

Differential Revision: https://phabricator.services.mozilla.com/D54376

--HG--
extra : moz-landing-system : lando
2019-11-27 21:12:18 +00:00
Andrew Halberstadt 434b6657f5 Bug 1583364 - [manifestparser] Fix regression to ChunkByManifest filter, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D54369

--HG--
extra : moz-landing-system : lando
2019-11-27 14:07:54 +00:00
Andrew Halberstadt c531d1a91a Bug 1583364 - Generate 'manifest-runtimes.json' and update mochitest harness to use it, r=gbrown
As a side-effect this will also update runtime data for all suites using
'--chunk-by-runtime'.

This change simultaneously:

1. Stores runtime data from all suites
2. Stores runtime data from all tests (no more percentile)
3. Stores distinct data for android, unix (osx/linux) and windows
4. Reduces the size of 'testing/runtimes' from 408k -> 168k

The chunks look more balanced from my unscientific glance (especially on Windows).

Differential Revision: https://phabricator.services.mozilla.com/D53702

--HG--
extra : moz-landing-system : lando
2019-11-23 05:29:32 +00:00
Andrew Halberstadt 61fd53eabe Bug 1583364 - Create a 'build_flavor' key mapping 'moztest.resolve.TEST_SUITES' to their build flavor, r=gbrown
Build flavors are defined in 'python/mozbuild/mozbuild/testing.py'.

This change is needed by D52729 but it's also a good way to tell which suites
are integrated into the TestManifestBackend in the build system. So I'm landing
it here instead.

Depends on D53030

Differential Revision: https://phabricator.services.mozilla.com/D53698

--HG--
extra : moz-landing-system : lando
2019-11-27 13:57:20 +00:00
Geoff Brown 4286faeb7b Bug 1590354 - Remove checks for remote minidumps directory; r=jmaher
Whereas:
 - desktop tests don't make this check;
 - the check for directory existence has been troublesome and almost never useful;
 - bug classification of this condition has been troublesome;
 - if a startup crash actually did occur before crashreporter init, there would still be an indication in logcat and possibly a tombstone, and the "No test summary found" check would definitely be triggered;
Let's stop checking for minidumps directory creation.

Differential Revision: https://phabricator.services.mozilla.com/D54755

--HG--
extra : moz-landing-system : lando
2019-11-26 16:38:44 +00:00
Botond Ballo 83bfe6cee0 Bug 1590857 - Don't prompt to install Android app if the user is running 'mach install'. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D54381

--HG--
extra : moz-landing-system : lando
2019-11-25 22:17:59 +00:00
Andrew McCreight d25c3b20ae Bug 1598787 - Rename XRE_ChildProcessTypeToString to XRE_GeckoProcessTypeToString. r=froydnj
This function works on all GeckoProcessTypes, not just those for child
processes.

Differential Revision: https://phabricator.services.mozilla.com/D54375

--HG--
extra : moz-landing-system : lando
2019-11-25 22:45:31 +00:00
Edwin Takahashi a202b3bcbf Bug 1428718 - remove moztest/moztest/output directory r=gbrown,mozbase
Changes:

These files do not appear to be referred to by anything as searched on searchfox.

I believe we are safe to remove them.

Differential Revision: https://phabricator.services.mozilla.com/D54201

--HG--
extra : moz-landing-system : lando
2019-11-25 19:43:17 +00:00
Cosmin Sabou 4b33ed7836 Backed out 6 changesets (bug 1583364) for making bug 1593402 near permafail.
Backed out changeset b22b8ed60c0c (bug 1583364)
Backed out changeset ed4d544f3db4 (bug 1583364)
Backed out changeset 6ce87f7cc6f8 (bug 1583364)
Backed out changeset fd9f3064ec85 (bug 1583364)
Backed out changeset 20a16191cee2 (bug 1583364)
Backed out changeset 38314b60638c (bug 1583364)

--HG--
rename : testing/runtimes/writeruntimes => testing/runtimes/writeruntimes.py
extra : rebase_source : c4de0a09adfe4a94e45827860da68328ef33da6b
2019-11-23 05:36:20 +02:00
Andrew Halberstadt 5099e76c5d Bug 1583364 - [manifestparser] Fix regression to ChunkByManifest filter. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D54369

--HG--
extra : histedit_source : 6728719847f307627f3ff10535169ee71354b14b
2019-11-22 23:27:21 +02:00
Andrew Halberstadt b483d6326c Bug 1583364 - Generate 'manifest-runtimes.json' and update mochitest harness to use it, r=gbrown
As a side-effect this will also update runtime data for all suites using
'--chunk-by-runtime'.

This change simultaneously:

1. Stores runtime data from all suites
2. Stores runtime data from all tests (no more percentile)
3. Stores distinct data for android, unix (osx/linux) and windows
4. Reduces the size of 'testing/runtimes' from 408k -> 168k

The chunks look more balanced from my unscientific glance (especially on Windows).

Differential Revision: https://phabricator.services.mozilla.com/D53702

--HG--
extra : moz-landing-system : lando
2019-11-22 19:23:17 +00:00
Andrew Halberstadt a1d66863ae Bug 1583364 - Create a 'build_flavor' key mapping 'moztest.resolve.TEST_SUITES' to their build flavor, r=gbrown
Build flavors are defined in 'python/mozbuild/mozbuild/testing.py'.

This change is needed by D52729 but it's also a good way to tell which suites
are integrated into the TestManifestBackend in the build system. So I'm landing
it here instead.

Depends on D53030

Differential Revision: https://phabricator.services.mozilla.com/D53698

--HG--
extra : moz-landing-system : lando
2019-11-19 00:30:21 +00:00
Gregory Mierzwinski 9d477bcb3a Bug 1597975 - Fix manifestparser in python 3 r=ahal
This patch fixes a minor issue with manifestparser when it is used in python 3. The problem was that dict.items() returns a generator in python 3 instead of a list.

Differential Revision: https://phabricator.services.mozilla.com/D53953

--HG--
extra : moz-landing-system : lando
2019-11-20 20:33:23 +00:00
Bob Clary 5f979fe576 Bug 1597317 - bump mozdevice to version 3.0.6, r=gbrown.
Differential Revision: https://phabricator.services.mozilla.com/D53669

--HG--
extra : moz-landing-system : lando
2019-11-18 18:02:18 +00:00
Edwin Takahashi 691d1901bc Bug 1428711 - add python3 compatibility to moznetwork r=ahal
Changes:
- rename `test.py` to a more descriptive `test_moznetwork.py` and change associated names in the manifest
- added `r` specifier to strings as per PEP warning
- bump version to 1.0.0 pending release to pypi

Differential Revision: https://phabricator.services.mozilla.com/D52107

--HG--
extra : moz-landing-system : lando
2019-11-15 22:45:12 +00:00
Mike Hommey 87b77cda38 Bug 1594998 - Make standalone SpiderMonkey use libxul-like panic. r=froydnj
This moves the parts of toolkit/library/rust/shared/lib.rs related to
panic hooking to a new mozglue subdirectory, which will be used for
things that can be statically linked to e.g. libxul, rather than in
a "shared library".

The panic hook is disabled when building spidermonkey via the mozjs_sys
crate.

Differential Revision: https://phabricator.services.mozilla.com/D52793

--HG--
extra : moz-landing-system : lando
2019-11-15 13:14:42 +00:00
Ciure Andrei 70b54837ac Backed out changeset 7a28c229e654 (bug 1594998) for causing bustages CLOSED TREE 2019-11-15 03:26:34 +02:00
Mike Hommey 63489b5491 Bug 1594998 - Make standalone SpiderMonkey use libxul-like panic. r=froydnj
This moves the parts of toolkit/library/rust/shared/lib.rs related to
panic hooking to a new mozglue subdirectory, which will be used for
things that can be statically linked to e.g. libxul, rather than in
a "shared library".

The panic hook is disabled when building spidermonkey via the mozjs_sys
crate.

Differential Revision: https://phabricator.services.mozilla.com/D52793

--HG--
extra : moz-landing-system : lando
2019-11-15 00:21:32 +00:00
Gurzau Raul f4fadbbe04 Backed out changeset 4cf8f3f89042 (bug 1594998) for xpcshell failures at test_crash_rust_panic.js on a CLOSED TREE. 2019-11-14 03:52:52 +02:00
Mike Hommey f33a622429 Bug 1594998 - Make standalone SpiderMonkey use libxul-like panic. r=froydnj,jandem
This moves the parts of toolkit/library/rust/shared/lib.rs related to
panic hooking to a new mozglue subdirectory, which will be used for
things that can be statically linked to e.g. libxul, rather than in
a "shared library".

The panic hook is disabled when building spidermonkey via the mozjs_sys
crate.

Differential Revision: https://phabricator.services.mozilla.com/D52793

--HG--
extra : moz-landing-system : lando
2019-11-13 22:07:08 +00:00
Edwin Takahashi c43a1bb5e8 Bug 1595220 - streamline and sanitize output of distro/platform linux_distribution call in mozinfo r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D52440

--HG--
extra : moz-landing-system : lando
2019-11-13 19:42:41 +00:00
Cosmin Sabou ec14bf90ea Backed out changeset 4b4f0fb8292c (bug 1595220) for several reftest failures. 2019-11-13 06:59:07 +02:00
Edwin Takahashi 87cd6febcd Bug 1595220 - streamline and sanitize output of distro/platform linux_distribution call in mozinfo r=jmaher
Simplified and streamlined the logic in the Linux side of things, to address 1595147.

Only attempt to import and use either `platform` or `distro`, not both.

Perform sanitization of the output string since `distro.linux_distribution()` has a slightly different output than the `platform` equivalent.

Minor version bump to 1.2.1 denoting a bugfix for release to pypi.

Differential Revision: https://phabricator.services.mozilla.com/D52440

--HG--
extra : moz-landing-system : lando
2019-11-12 19:23:31 +00:00
Andrew Halberstadt 418f34f9f7 Bug 1583353 - [moztest.resolve] Add ability to resolve manifest paths, r=gbrown
While not strictly necessary for this series, this patch allows:
./mach test path/to/manifest.ini

Which will be especially useful to have now that we are switching to running
tasks by manifest.

Depends on D52241

Differential Revision: https://phabricator.services.mozilla.com/D52242

--HG--
rename : testing/mozbase/moztest/tests/data/srcdir/apple/mochitest.ini => testing/mozbase/moztest/tests/data/srcdir/apple/a11y.ini
extra : moz-landing-system : lando
2019-11-08 16:01:28 +00:00
Andrew Halberstadt 64c3a4f64d Bug 1583353 - [moztest.resolve] Add ability to resolve only tests *without* a subsuite, r=gbrown
This gives us the ability to retrieve all browser-chrome tests (no flavor) but
not devtools-chrome (have a flavor).

Differential Revision: https://phabricator.services.mozilla.com/D52241

--HG--
extra : moz-landing-system : lando
2019-11-08 16:04:27 +00:00
Andrew Halberstadt a3466c3c3c Bug 1583353 - [manifestparser] Support manifests in the 'pathprefix' filter, r=egao
Allows 'paths' passed into the pathprefix filter to be manifests. Any path that
ends with '.ini' is considered a manifest.

Depends on D51899

Differential Revision: https://phabricator.services.mozilla.com/D51900

--HG--
extra : moz-landing-system : lando
2019-11-08 18:58:09 +00:00
Andrew Halberstadt 746c6aaf3a Bug 1583353 - [manifestparser] Convert test_filters.py to the pytest format, r=egao
Differential Revision: https://phabricator.services.mozilla.com/D51899

--HG--
extra : moz-landing-system : lando
2019-11-08 18:58:34 +00:00
Andrew Halberstadt 99f6a2c376 Bug 1583353 - [moztest.resolve] Implement a TestLoader that doesn't rely on the build system, r=gbrown
This loader uses 'reader.find_variables_from_ast' to parse all *_MANIFESTS variables from
moz.build files using the abstract syntax tree. This means it will find all such variables
regardless of the current buildconfig.

Differential Revision: https://phabricator.services.mozilla.com/D51834

--HG--
extra : moz-landing-system : lando
2019-11-06 17:13:20 +00:00
Andrew Halberstadt fc9cc8ceed Bug 1583353 - [moztest] Simplify the test data in test_resolve.py, r=egao
Test test data looks like it was pulled from a live all_tests.pkl file. There
are way more path components than necessary.

This simplifies the test paths so they are easy to manipulate/add/inspect. It
will also make it easier to craft a fake "sourcedir" to test the
TestManifestLoader in the next commit such that the data from both matches.

I decided to use a fruit theme for directories because:

1. Using real directories will pollute grep/searchfox/etc queries with junk.
2. Using a 'dirA', 'dirB', 'dirC' scheme is hard to read.
3. Why not?

This change does not functionally modify what is being tested.

Depends on D51832

Differential Revision: https://phabricator.services.mozilla.com/D51833

--HG--
extra : moz-landing-system : lando
2019-11-05 19:37:33 +00:00
J.C. Jones cbfe5fd32a Bug 1594559 - Set env var NSS_MAX_MP_PBE_ITERATION_COUNT for tests r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D52212

--HG--
extra : moz-landing-system : lando
2019-11-12 15:40:24 +00:00
Edwin Takahashi 16d5d677ce Bug 1212502 - bump mozinfo version up to 1.2.0 in preparation for upload to pypi r=gbrown
When I updated the dependencies and the `mozinfo.py` code I forgot to bump up the version denoting some changes. This will bump up the version from 1.1.0 to 1.2.0 and permit me to upload a new version to pypi.

Differential Revision: https://phabricator.services.mozilla.com/D51898

--HG--
extra : moz-landing-system : lando
2019-11-05 21:19:39 +00:00
Andrew Halberstadt d8dbe1133d Bug 1593360 - Version bump mozdebug to 0.2.0, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D51819

--HG--
extra : moz-landing-system : lando
2019-11-05 14:19:19 +00:00
Cosmin Sabou ac32e977d8 Backed out changeset ea612d6aa75b (bug 1585456) for causing regressions (Bug 1593351,1587387,1583680). 2019-11-01 23:22:05 +02:00
Andrew Halberstadt 241303e38f Bug 1583353 - [moztest] Use a fixture to generate the test data in test_resolve.py, r=egao
I'm making this refactor now because a future commit is going to completely re-write the
test data (so that it matches the data that a future TestManifestLoader is going to use).

With this method, updating the data will be a lot less tedious.

Differential Revision: https://phabricator.services.mozilla.com/D51278

--HG--
extra : moz-landing-system : lando
2019-11-01 20:13:35 +00:00
Andrew Halberstadt a7bb490dc3 Bug 1583353 - [moztest] Convert test_resolve.py to the pytest format, r=egao
Depends on D51174

Differential Revision: https://phabricator.services.mozilla.com/D51175

--HG--
extra : moz-landing-system : lando
2019-10-31 14:43:56 +00:00
Florin Strugariu 85629f9e1e Bug 1585456 - [mozproxy] Error out when mozproxy can't bind to port r=tarek,perftest-reviewers,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D50594

--HG--
extra : moz-landing-system : lando
2019-11-01 09:41:36 +00:00
Gregory Mierzwinski 8fd3e10993 Bug 1578487 - Add frequency and watts metric to mozpower IPG output. r=stephendonner
This patch adds GPU and CPU clock frequencies as well as Watts used to the metrics that are gathered into perfherder from mozpower.

Differential Revision: https://phabricator.services.mozilla.com/D50522

--HG--
extra : moz-landing-system : lando
2019-10-31 15:59:10 +00:00
Nathan Froyd 78ea1e07d0 Bug 1592971 - handle starting the android emulator from non-topsrcdir; r=gbrown
Other places take care to handle this case, but not running the tooltool
script.  Let's fix that.

Differential Revision: https://phabricator.services.mozilla.com/D51266

--HG--
extra : moz-landing-system : lando
2019-10-31 14:09:53 +00:00
Edwin Takahashi 128ef1e636 Bug 1212502 - Switch mozinfo to using the 'distro' package to get linux distribution info r=ahal,KWierso
Differential Revision: https://phabricator.services.mozilla.com/D49366

--HG--
extra : moz-landing-system : lando
2019-10-30 20:42:50 +00:00
Andrew Halberstadt 930fe5fab6 Bug 1591512 - [moztest.resolve] Fix bug where loaded wpt tests were being overwritten r=automatedtester
Differential Revision: https://phabricator.services.mozilla.com/D50649

--HG--
extra : moz-landing-system : lando
2019-10-25 19:41:50 +00:00
Philip Jägenstedt 9bca24019b Bug 1589056 - [mozprofile][mozrunner][mozrunner] bump minor versions r=jgraham
This is needed because the currently released versions use dependencies
like 'mozlog ~= 4.2.0', which won't match the newly released mozlog 5.0.
The dependencies were updated to 'mozlog >= 5.0' recently:
https://hg.mozilla.org/mozilla-central/rev/753beb12fdf6984c0a2ca8786fb9db1317e171b4

Differential Revision: https://phabricator.services.mozilla.com/D50595

--HG--
extra : moz-landing-system : lando
2019-10-25 13:15:01 +00:00
Sylvestre Ledru ba7c03e388 Bug 1590310 - Hide the copyright section by default r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D50028

--HG--
extra : moz-landing-system : lando
2019-10-22 17:37:38 +00:00
Philip Jägenstedt 21b473eac4 Bug 1589056 - [mozlog] Update mozlog version number to 5.0 r=jgraham
This is needed to release a new mozlog with the PRECONDITION_FAILED
test and subtest status for use in web-platform-tests.

Update all in-tree dependencies on mozlog to >=5.0. These were found
with `hg grep 'mozlog.*[0-9]'`.

Only testing/web-platform/tests/tools/wptrunner/requirements.txt
remains on 4.2.0, and it will be updated in upstream wpt after mozlog
5.0 has been released.

Differential Revision: https://phabricator.services.mozilla.com/D50456

--HG--
extra : moz-landing-system : lando
2019-10-24 14:12:32 +00:00
Philip Jägenstedt d51b560efd Bug 1589056 - [mozlog] tests for PRECONDITION_FAILED status r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D50200

--HG--
extra : moz-landing-system : lando
2019-10-24 08:34:05 +00:00
Philip Jägenstedt bd199f39ce Bug 1589056 - [mozlog] introduce PRECONDITION_FAILED status r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D50175

--HG--
extra : moz-landing-system : lando
2019-10-24 08:34:35 +00:00
Andrew Halberstadt 2a03d935f5 Bug 1590680 - [moztest.resolve] Fix edge case where puppeteer/wpt manifest data is requested before the main tests, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D50207

--HG--
extra : moz-landing-system : lando
2019-10-23 14:09:52 +00:00
Razvan Maries a5f7ecde59 Backed out 2 changesets (bug 1589056) for lint failure on test_formatters.py. CLOSED TREE
Backed out changeset 6bd10819c814 (bug 1589056)
Backed out changeset 4253a2fb8848 (bug 1589056)
2019-10-23 15:48:39 +03:00
Philip Jägenstedt 312d02c6c1 Bug 1589056 - [mozlog] tests for PRECONDITION_FAILED status r=jgraham
Depends on D50175

Differential Revision: https://phabricator.services.mozilla.com/D50200

--HG--
extra : moz-landing-system : lando
2019-10-23 12:34:13 +00:00
Philip Jägenstedt d1054d01d7 Bug 1589056 - [mozlog] introduce PRECONDITION_FAILED status r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D50175

--HG--
extra : moz-landing-system : lando
2019-10-23 12:35:09 +00:00
Andrew Halberstadt e9369fc3d9 Bug 1583353 - [moztest.resolve] Move everything from TestMetadata into the TestResolver class (except the load_tests function) r=gbrown
Previously there was a somewhat strange setup where we had both TestResolver
and TestMetadata classes. Both had 'resolve_tests' function and the separation
of concerns between the two were not clear.

With this change, all of the logic that is related to manipulating and
resolving the loaded tests has been moved to the TestResolver class. Also, the
TestMetadata class has been renamed to TestLoader, and it is solely responsible
for loading the metadata (from the build backend).

Future commits will add other types of TestLoaders.

Differential Revision: https://phabricator.services.mozilla.com/D49768

--HG--
extra : moz-landing-system : lando
2019-10-22 14:31:50 +00:00
Andrew Halberstadt d7fb00cbc4 Bug 1583353 - [moztest.resolve] Move test_rewrites to a class property r=gbrown
A minor cleanup. Re-write paths will now automatically be joined to
self.topobjdir.

Depends on D49766

Differential Revision: https://phabricator.services.mozilla.com/D49767

--HG--
extra : moz-landing-system : lando
2019-10-21 19:22:05 +00:00
Andrew Halberstadt 48488f8138 Bug 1583353 - [moztest.resolve] Use MozbuildObject.mozbuild_reader to resolve outgoing files r=gbrown
Similar to the vcs change, the MozbuildObject already has a reader attribute
available. So we can re-use that instead of creating our own.

Depends on D49765

Differential Revision: https://phabricator.services.mozilla.com/D49766

--HG--
extra : moz-landing-system : lando
2019-10-21 19:26:08 +00:00
Andrew Halberstadt 79bb28fefb Bug 1583353 - [moztest.resolve] Move all mozbuild backend logic into the TestMetadata class r=gbrown
Encapsulates all the logic around generating and loading the build backend
metadata on the TestMetadata class. Previously the TestResolver would trigger
the generation if necessary, and TestMetadata would load it. Now both
generation and loading happens in TestMetadata.load_tests.

This change also adds some convenience properties to make it easier to query
the loaded data.

Differential Revision: https://phabricator.services.mozilla.com/D49765

--HG--
extra : moz-landing-system : lando
2019-10-21 21:36:08 +00:00
Andrew Halberstadt ca37f985b6 Bug 1583353 - [moztest.resolve] Create an 'is_puppeteer_loaded' flag r=gbrown
This prevents us from adding the puppeteer tests over and over again. It
follows the wpt example.

Differential Revision: https://phabricator.services.mozilla.com/D49790

--HG--
extra : moz-landing-system : lando
2019-10-21 19:24:06 +00:00
Andrew Halberstadt fb84f5763d Bug 1583353 - [moztest.resolve] Use 'MozbuildObject.repository' in the TestResolver class r=gbrown
Since TestResolver is a subclass of MozbuildObject, there's no need to create
separate repository object. It already has one.

Depends on D49761

Differential Revision: https://phabricator.services.mozilla.com/D49764

--HG--
extra : moz-landing-system : lando
2019-10-21 14:20:10 +00:00
Andrew Halberstadt d59b14c3fa Bug 1583353 - [moztest.resolve] Remove unused 'tests_with_flavor' function from metadata class r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D49761

--HG--
extra : moz-landing-system : lando
2019-10-21 14:17:25 +00:00
Dorel Luca 3d43b20c77 Backed out changeset ca117d13ca06 (bug 1212502) for Windows 2012 build bustage. CLOSED TREE 2019-10-22 20:53:27 +03:00
Wes Kocher 49fba76f39 Bug 1212502 - Switch mozinfo to using the 'distro' package to get linux distribution info r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D49366

--HG--
extra : moz-landing-system : lando
2019-10-22 17:33:13 +00:00
Chris Manchester 079c3c1179 Bug 1587715 - Fix TypeError when submitting build telemetry without cpu_percent present. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D49342

--HG--
extra : moz-landing-system : lando
2019-10-16 04:01:26 +00:00
Christian Holler ea24b118e4 Bug 1589413 - Bump mozrunner version to 7.6. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D49623

--HG--
extra : moz-landing-system : lando
2019-10-17 16:31:57 +00:00
Christian Holler a157a20300 Bug 1587463 - Remove LSan/UBSan suppressions option from automation. r=ahal
Depends on D48786

Differential Revision: https://phabricator.services.mozilla.com/D48787

--HG--
extra : moz-landing-system : lando
2019-10-16 16:11:23 +00:00
shindli 0d8d6e3278 Bug 1580141 - fix linting opt CLOSED TREE
--HG--
extra : histedit_source : aba59927311e468ffbf1209cf0ff9ea7855bdd0f
2019-10-14 16:40:13 +03:00
alexandru.ionescu c063b76364 Bug 1580141 Stop raptor tests execution and fail with propper message if mozproxy has issues initiating and starting the proxy r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D47781

--HG--
extra : moz-landing-system : lando
2019-10-14 13:14:48 +00:00
Andrew Halberstadt 2b0d90e3ad Bug 1587206 - [lint.flake8] Enable F632 across the tree, r=sylvestre
This ensures we use ==/!= to strings and ints (instead of is/is not).

Differential Revision: https://phabricator.services.mozilla.com/D48609

--HG--
extra : moz-landing-system : lando
2019-10-10 18:50:33 +00:00
Henrik Skupin 3886e9c12c Bug 1585274 - "mach test" for Puppeteer unit test has to default to non-headless mode. r=mozbase,ahal
Depends on D48823

Differential Revision: https://phabricator.services.mozilla.com/D48824

--HG--
extra : moz-landing-system : lando
2019-10-10 12:53:42 +00:00
Andrew Halberstadt cb2eb80652 Bug 1585702 - [mozprocess] Fix "Embedded null character" error in Windows with Python 3, r=gbrown
This works around a bug in Python:
https://bugs.python.org/issue32745

Null characters aren't allowed in 'c_wchar_p' types anymore, but we can get around
the issue by allocating a buffer in memory and casting it after the fact. This was
discovered via trial and error and I'm not really sure why it works.. But it does.

This also enables the tests under Python 3 on Windows (which thankfully all
seem to pass).

Differential Revision: https://phabricator.services.mozilla.com/D48113

--HG--
extra : moz-landing-system : lando
2019-10-04 17:46:38 +00:00
Andrew Halberstadt ac8e519112 Bug 1585702 - [mozprocess] Temporarily disable 'env' default on Windows with Python 3, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D47974

--HG--
extra : moz-landing-system : lando
2019-10-03 13:17:34 +00:00
championshuttler c244a4d41d Bug 1428716 - Create setup.cfg for universal wheels in mozsystemmonitor. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D47204

--HG--
extra : moz-landing-system : lando
2019-09-27 19:30:52 +00:00
championshuttler dc7639a923 Bug 1428716 - Bump mozsystemmonitor to v1.0.0 and add classifiers. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D47203

--HG--
extra : moz-landing-system : lando
2019-09-27 19:46:45 +00:00
Gregory Mierzwinski f62dd43b6a Bug 1575575 - Add fullscreen and windowed youtube-playback power tests. r=perftest-reviewers,stephendonner,dhouse,rwood
This patch adds fullscreen and windowed youtube tests for the V9 and H264 encoding at 1080p30 and 1080p60. Each subtest runs for 20 page cycles which amounts to about 5 minutes each. It also begins adding these to power test tasks running on the macosx-1014 reference hardware.

Differential Revision: https://phabricator.services.mozilla.com/D45067

--HG--
extra : moz-landing-system : lando
2019-09-26 22:18:54 +00:00
Henrik Skupin 2b151b0ce6 Bug 1525126 - [mozbase] Add Rust `mozdevice` crate speaking ADB over TCP/IP. r=jgraham,webdriver-reviewers,nalexander
This implementation speaks the ADB wire protocol over TCP/IP. This is
in constrast to the Python implementation, which generally invokes adb
on the command line. In thousands of runs across multiple devices,
this implementation has proved surprisingly robust.

Differential Revision: https://phabricator.services.mozilla.com/D44895

--HG--
extra : moz-landing-system : lando
2019-09-25 23:01:56 +00:00
James Graham 18b6b7a5db Bug 1583602 - Use a real colour for printing intermittent failures, r=maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D46999

--HG--
extra : moz-landing-system : lando
2019-09-25 18:57:47 +00:00
championshuttler d80122b971 Bug 1428715 - Create setup.cfg for universal wheels in mozscreenshot. r=ahal
Depends on D46717

Differential Revision: https://phabricator.services.mozilla.com/D46718

--HG--
extra : moz-landing-system : lando
2019-09-24 05:59:57 +00:00
championshuttler 58487351c3 Bug 1428715 - Bump mozscreenshot to v1.0.0 and update classifiers. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D46717

--HG--
extra : moz-landing-system : lando
2019-09-24 05:59:57 +00:00
b4hand 754a4dc42b Bug 1578255 - Update mozprofile tests to use wptserve; r=raphael
Differential Revision: https://phabricator.services.mozilla.com/D45431

--HG--
extra : moz-landing-system : lando
2019-09-19 15:14:50 +00:00
championshuttler 36dcc34bfa Bug 1428710 - Update the classifiers for Python 3.5. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D46512

--HG--
extra : moz-landing-system : lando
2019-09-19 19:45:22 +00:00
championshuttler 2aab9454f8 Bug 1428710 - Add support for Python 3 for mozleak. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D46480

--HG--
extra : moz-landing-system : lando
2019-09-19 16:12:49 +00:00
William Lachance 06f159199b Bug 1582248 - Bump mozfile to version 2.1.0 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D46354

--HG--
extra : moz-landing-system : lando
2019-09-18 21:11:00 +00:00
Florin Strugariu b4b1cbd754 Bug 1572142 - Intermittent Exception: nss cert db creation command failed to complete r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D45163

--HG--
extra : moz-landing-system : lando
2019-09-18 09:15:14 +00:00
Nick Alexander 93d82bb882 Bug 1581197 - Remove unused Android device parameter from `mozproxy`. r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D45885

--HG--
extra : moz-landing-system : lando
2019-09-16 18:35:15 +00:00
Cosmin Sabou f5e3f907e5 Backed out changeset 174569dad75b (bug 1581197) for causing massive raptor failures. CLOSED TREE 2019-09-14 02:39:36 +03:00
Nick Alexander 8b460d641c Bug 1581197 - Remove unused Android device parameter from `mozproxy`. r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D45885

--HG--
extra : moz-landing-system : lando
2019-09-13 19:13:04 +00:00
Nick Alexander 21955fe91b Bug 1581006 - Allow mozdevice to find `ls` on unrooted devices. r=bc
Bug 1572563 wanted to be extra sure that `ls` could be found. To do
that it tries to run various `ls` variants in a loop until one such
variant exits with exit code 0. However, `ls` can be present and
functional and still exit with code 1. For many unrooted devices, bare
`ls` will exit with code 1 because there are files and directories for
which the shell user doesn't have read permission.

This works around by trying to list only the file that the loop is
trying to execute.

Differential Revision: https://phabricator.services.mozilla.com/D45770

--HG--
extra : moz-landing-system : lando
2019-09-13 01:13:49 +00:00
Andrew Halberstadt 9a9c5a8311 Bug 1580620 - [mozbase] Make manifestparser fail on duplicate keys even without strict mode r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D45592

--HG--
extra : moz-landing-system : lando
2019-09-13 14:09:19 +00:00
Tarek Ziadé 01224ba87c Bug 1579853 - added get_sys_info() r=bc
This API returns the data from get_info() along with a handful
list of dumpsys services data.

Differential Revision: https://phabricator.services.mozilla.com/D45317

--HG--
extra : moz-landing-system : lando
2019-09-11 19:23:35 +00:00
Andreas Tolfsen d4712b7542 bug 1579902: mozrunner: supply mozprofile version dependency; r=webdriver-reviewers,jgraham
Depending on mozprofile by relative path makes it hard to publish
mozrunner to crates.io because cargo is unable to work out the
version range the crate needs.

By specifying both a path and a semver range we ensure mozrunner
uses the in-tree version of mozprofile when building locally,
and the upstream crates.io version when published and used elsewhere.

This means this version number must be bumped every time a new
(backwards incompatible) mozversion is released.

It is debatable whether the version range should be exact, i.e. "0.6.0",
but I opted to go with "0.6" which is how I would normally define
a crate dependency.  As long as mozprofile continues to follow the
principles of semantic versioning this should be fine.

Differential Revision: https://phabricator.services.mozilla.com/D45511

--HG--
extra : moz-landing-system : lando
2019-09-11 12:16:35 +00:00
Andreas Tolfsen 353dfe9cf9 bug 1580269: mozrunner: remove unused moz.build file; r=webdriver-reviewers,whimboo
The moz.build file for the mozrunner crate is not included by the
build system, and the Bugzilla categorisation it attempts to define
is already provided by testing/mozbase/moz.build.

Differential Revision: https://phabricator.services.mozilla.com/D45408

--HG--
extra : moz-landing-system : lando
2019-09-10 19:14:31 +00:00
David Heiberg 611ad9a301 Bug 1488006 - Use assignment operator instead of manual implementation r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D45502

--HG--
extra : moz-landing-system : lando
2019-09-11 09:48:49 +00:00
Andrew Halberstadt e1337a729d Bug 1567642 - [mozbase] Fix flake8 under py3 lint errors r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D45243

--HG--
extra : moz-landing-system : lando
2019-09-09 23:55:32 +00:00
David Heiberg 94473e6ea9 Bug 1577504 - Replace single match with if let r=jgraham
Depends on D45357

Differential Revision: https://phabricator.services.mozilla.com/D45358

--HG--
extra : moz-landing-system : lando
2019-09-10 15:02:38 +00:00
David Heiberg 9fe96fa22c Bug 1577504 - Remove redundant closures r=jgraham
Depends on D45356

Differential Revision: https://phabricator.services.mozilla.com/D45357

--HG--
extra : moz-landing-system : lando
2019-09-10 15:02:27 +00:00
David Heiberg 7c13b008af Bug 1577504 - Remove explicit lifetimes that can be elided r=jgraham
When there is an input of either &self or &mut self, its lifetime is automatically assigned to the elided output lifetimes

Depends on D45355

Differential Revision: https://phabricator.services.mozilla.com/D45356

--HG--
extra : moz-landing-system : lando
2019-09-10 15:02:15 +00:00
David Heiberg e700524875 Bug 1577504 - Remove redundant field names r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D45355

--HG--
extra : moz-landing-system : lando
2019-09-10 15:01:37 +00:00
Andreas Tolfsen 43d63b0975 bug 1520585: mozrunner: release 0.10.0; r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D44661

--HG--
extra : moz-landing-system : lando
2019-09-09 11:00:08 +00:00
Andreas Tolfsen 2462dad1df bug 1520585: mozrunner: upgrade plist to 0.5; r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D44659

--HG--
extra : moz-landing-system : lando
2019-09-09 10:59:48 +00:00
Andreas Tolfsen d3e73a3681 bug 1520585: mozprofile: release 0.6.0; r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D44658

--HG--
extra : moz-landing-system : lando
2019-09-09 10:59:41 +00:00
Andreas Tolfsen d95d17e28d bug 1520585: mozversion: release 0.2.1; r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D44657

--HG--
extra : moz-landing-system : lando
2019-09-09 10:59:34 +00:00
Florin Strugariu 37d17612f4 Bug 1563164 - Remove option to enable/disable upstream certs in raptor r=perftest-reviewers,tarek,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D44622

--HG--
extra : moz-landing-system : lando
2019-09-04 13:39:19 +00:00
Florin Strugariu 300a8a317b Bug 1563162 - remove mitmproxy 2.0.2 support in raptor r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D43748

--HG--
extra : moz-landing-system : lando
2019-09-03 10:38:10 +00:00
Matt Woodrow 06950779ab Bug 1543447 - Add an env var to disable stack fixing scripts in mozrunner. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D44414

--HG--
extra : moz-landing-system : lando
2019-09-03 03:10:55 +00:00
Andrew Halberstadt 5ce2bf9eab Bug 1576988 - [docs] Remove 'Indices and tables' section from doc trees, r=Standard8
The main motivation here is to get these subsections out of the main index.
While changing the heading to an 'h2' or lower would suffice, I opted to remove
them entirely. I did this because the links in this section is for the overall
global documentation. E.g, the "Indices and tables" section under /tools/lint,
has nothing to do with linting.

It is still possible to access the index and search page from the root:
https://firefox-source-docs.mozilla.org/#indices-and-tables

Differential Revision: https://phabricator.services.mozilla.com/D43653

--HG--
extra : moz-landing-system : lando
2019-08-28 12:38:49 +00:00
Florin Strugariu b846cf6646 Bug 1567137 Update AWSY tp6 tests to mitmproxy 4 r=perftest-reviewers,erahm,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D41343

--HG--
extra : moz-landing-system : lando
2019-08-28 08:36:48 +00:00
Mike Hommey 66d7fe943e Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D42765

--HG--
extra : moz-landing-system : lando
2019-08-21 12:25:42 +00:00
Bob Clary 51b52e6ee0 Bug 1573555 - [mozdevice] detect pidof via execution, r=gbrown.
Depends on D42861

Differential Revision: https://phabricator.services.mozilla.com/D42862

--HG--
extra : moz-landing-system : lando
2019-08-21 14:42:33 +00:00
Bob Clary 98678c381c Bug 1573555 - [mozdevice] detect cp via execution, r=gbrown.
Differential Revision: https://phabricator.services.mozilla.com/D42861

--HG--
extra : moz-landing-system : lando
2019-08-21 14:44:42 +00:00
Andreas Tolfsen 208fc409a5 bug 1575134: mozrunner: drop fallback firefox_default_path(); r=webdriver-reviewers,jgraham
With bug 1566778 we started searching the system path on BSDs
similarly to how we had done it on Linux.  The patch forgot to
adapt the fallback implementation of the platform module, causing
a compile issue on BSDs since they are now covered by the same
implementation as what used to be Linux-specific.

Differential Revision: https://phabricator.services.mozilla.com/D42625

--HG--
extra : moz-landing-system : lando
2019-08-20 12:07:24 +00:00
Tarek Ziadé 2097876b46 Bug 1572404 - [mozprofile] install addon with browser_specific_settings r=whimboo
webextensions now uses "browser_specific_settings" instead of "applications" in
the manifest file. This patch make mozprofile look for both places.

Differential Revision: https://phabricator.services.mozilla.com/D42457

--HG--
extra : moz-landing-system : lando
2019-08-20 09:16:54 +00:00
Tarek Ziadé ed17105ac7 Bug 1573432 - make adb.py python 3 compatible r=bc
These changes will fix the API that read values out of ADB commands
for Python 3.

Differential Revision: https://phabricator.services.mozilla.com/D41921

--HG--
extra : moz-landing-system : lando
2019-08-19 14:36:17 +00:00
Andreas Tolfsen 54820db49c bug 1540655: moztest: add test path resolution for Puppeteer tests; r=ahal
Makes it possible for mach to resolve test paths for Puppeteer,
so that individual tests can be run from the command line using
"./mach test", as such:

	% ./mach test remote/test/puppeteer/test/screenshot.spec.js

As the Puppeteer test suite is imported from upstream and we cannot
change this directory at will (i.e. to add test manifest files),
we take the same approach as for WPT and populate the manifest by
recursively walking the remote/test/puppeteer/test/**/*.spec.js file tree.

Differential Revision: https://phabricator.services.mozilla.com/D37013

--HG--
extra : moz-landing-system : lando
2019-08-16 12:58:21 +00:00
Ciure Andrei 8a1785a6cc Backed out 11 changesets (bug 1540655) for test_resolve.py perma failures CLOSED TREE
Backed out changeset 1a23d770d8a1 (bug 1540655)
Backed out changeset 641a7cb25298 (bug 1540655)
Backed out changeset 73236f81da44 (bug 1540655)
Backed out changeset 8d7bad30be46 (bug 1540655)
Backed out changeset bb012df3018b (bug 1540655)
Backed out changeset 8c67b494e207 (bug 1540655)
Backed out changeset c0a80d37576d (bug 1540655)
Backed out changeset 939ce2afcf0b (bug 1540655)
Backed out changeset 3b3a2a9fbc8b (bug 1540655)
Backed out changeset b96dede008ad (bug 1540655)
Backed out changeset 997d1568d944 (bug 1540655)
2019-08-14 18:53:36 +03:00
Andreas Tolfsen 5f375cf773 bug 1540655: moztest: add test path resolution for Puppeteer tests; r=ahal
Makes it possible for mach to resolve test paths for Puppeteer,
so that individual tests can be run from the command line using
"./mach test", as such:

	% ./mach test remote/test/puppeteer/test/screenshot.spec.js

As the Puppeteer test suite is imported from upstream and we cannot
change this directory at will (i.e. to add test manifest files),
we take the same approach as for WPT and populate the manifest by
recursively walking the remote/test/puppeteer/test/**/*.spec.js file tree.

Differential Revision: https://phabricator.services.mozilla.com/D37013

--HG--
extra : moz-landing-system : lando
2019-08-14 14:58:05 +00:00
Florin Strugariu a9dde2d93d Bug 1539983 [mozproxy] Move alternate-server-replay script into mozproxy r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D41540

--HG--
rename : testing/mozbase/mozproxy/mozproxy/backends/mitm.py => testing/mozbase/mozproxy/mozproxy/backends/mitm/mitm.py
rename : testing/mozbase/mozproxy/mozproxy/backends/mitmproxy-rel-bin-4.0.4-linux64.manifest => testing/mozbase/mozproxy/mozproxy/backends/mitm/mitmproxy-rel-bin-4.0.4-linux64.manifest
rename : testing/mozbase/mozproxy/mozproxy/backends/mitmproxy-rel-bin-4.0.4-osx.manifest => testing/mozbase/mozproxy/mozproxy/backends/mitm/mitmproxy-rel-bin-4.0.4-osx.manifest
rename : testing/mozbase/mozproxy/mozproxy/backends/mitmproxy-rel-bin-4.0.4-win.manifest => testing/mozbase/mozproxy/mozproxy/backends/mitm/mitmproxy-rel-bin-4.0.4-win.manifest
rename : testing/mozbase/mozproxy/mozproxy/backends/mitmproxy-rel-bin-linux64.manifest => testing/mozbase/mozproxy/mozproxy/backends/mitm/mitmproxy-rel-bin-linux64.manifest
rename : testing/mozbase/mozproxy/mozproxy/backends/mitmproxy-rel-bin-osx.manifest => testing/mozbase/mozproxy/mozproxy/backends/mitm/mitmproxy-rel-bin-osx.manifest
rename : testing/mozbase/mozproxy/mozproxy/backends/mitmproxy-rel-bin-win.manifest => testing/mozbase/mozproxy/mozproxy/backends/mitm/mitmproxy-rel-bin-win.manifest
rename : testing/mozbase/mozproxy/mozproxy/backends/mitmproxy_requirements.txt => testing/mozbase/mozproxy/mozproxy/backends/mitm/mitmproxy_requirements.txt
rename : testing/raptor/raptor/playback/alternate-server-replay-2.0.2.py => testing/mozbase/mozproxy/mozproxy/backends/mitm/scripts/alternate-server-replay-2.0.2.py
rename : testing/raptor/raptor/playback/alternate-server-replay-4.0.4.py => testing/mozbase/mozproxy/mozproxy/backends/mitm/scripts/alternate-server-replay-4.0.4.py
rename : testing/raptor/raptor/playback/scripts/catapult/LICENSE => testing/mozbase/mozproxy/mozproxy/backends/mitm/scripts/catapult/LICENSE
rename : testing/raptor/raptor/playback/scripts/catapult/deterministic.js => testing/mozbase/mozproxy/mozproxy/backends/mitm/scripts/catapult/deterministic.js
rename : testing/raptor/raptor/playback/scripts/inject-deterministic.py => testing/mozbase/mozproxy/mozproxy/backends/mitm/scripts/inject-deterministic.py
extra : moz-landing-system : lando
2019-08-14 11:49:35 +00:00
James Graham d289d43116 Bug 1573414 - Make geckodriver, webdriver and mozbase #![forbid(unsafe_code)], r=ato
We don't expect to use any unsafe and doing this helps static analysis tools
determine that the library is low risk from the point of view of memory unsafety,
and makes it less likely someone will add in some unsafe code in the future without
appropriate care.

Differential Revision: https://phabricator.services.mozilla.com/D41730

--HG--
extra : moz-landing-system : lando
2019-08-13 13:27:51 +00:00
Bob Clary 084747dfb5 Bug 1572563 - [mozdevice 3.0.5] - sync file system after modifications, r=jmaher.
Depends on D41570

Differential Revision: https://phabricator.services.mozilla.com/D41571

--HG--
extra : moz-landing-system : lando
2019-08-12 19:57:01 +00:00
Bob Clary 6f8bdebafe Bug 1572563 - [mozdevice 3.0.5] - Continue to use echo adb_returncode=0 hack for emulators regardless of Android version, r=jmaher.
Depends on D41395

Differential Revision: https://phabricator.services.mozilla.com/D41570

--HG--
extra : moz-landing-system : lando
2019-08-12 15:38:43 +00:00
Bob Clary a2f6a21c82 Bug 1572563 - [mozdevice 3.0.5] - repeatedly attempt to detect ls through execution to determine which instance is available, r=gbrown,jmaher.
***

Differential Revision: https://phabricator.services.mozilla.com/D41395

--HG--
extra : moz-landing-system : lando
2019-08-12 15:32:45 +00:00
Bob Clary 88ded63ad8 Bug 1572563 - [mozdevice 3.0.5] - work around intermittent test path failures on emulators, r=jmaher.
Differential Revision: https://phabricator.services.mozilla.com/D41394

--HG--
extra : moz-landing-system : lando
2019-08-12 20:06:19 +00:00
Ciure Andrei 226bfc7c40 Backed out changeset 46206b874a55 (bug 1572448) for causing test_preferences.py to perma fail CLOSED TREE 2019-08-09 12:48:06 +03:00
Henrik Skupin 4d29daa6fb Bug 1572448 - [mozprofile] Cast boolean preference values case-insensitive. r=jgraham
Depends on D41282

Differential Revision: https://phabricator.services.mozilla.com/D41347

--HG--
extra : moz-landing-system : lando
2019-08-09 09:10:54 +00:00
James Graham e6b3c4085c Bug 1572383 - Bump version numbers for mozprofile and mozrunner, r=gbrown
Bug 1539437 indtroduced a new ChromiumProfile class in mozprofile
that's imported into mozrunner. This means that the 7.5.0 release of
mozrunner should have been accompanied by a corresponding mozprofile
release and requirements version bump.

Differential Revision: https://phabricator.services.mozilla.com/D41167

--HG--
extra : moz-landing-system : lando
2019-08-08 13:35:06 +00:00
Gregory Mierzwinski 83697159ec Bug 1567954 - Part 4: Implement MozPower class in the Mozpower module. r=perftest-reviewers,rwood
This patch implements the MozPower class in the Mozpower module which is the interface for the user to use the power measurement tooling. It primarily detects the user's OS and CPU combination and provides the appropriate methods for them.

Differential Revision: https://phabricator.services.mozilla.com/D39194

--HG--
extra : moz-landing-system : lando
2019-08-07 20:55:27 +00:00
Gregory Mierzwinski e382e45e4c Bug 1567954 - Part 3: Implement MacIntelPower class in the Mozpower module. r=perftest-reviewers,rwood,alexandru.irimovici
This patch implements the MacIntelPower class in the Mozpower module. It is used for power measurement testing on Mac Intel-based machines using Intel Power Gadget.

Differential Revision: https://phabricator.services.mozilla.com/D39193

--HG--
extra : moz-landing-system : lando
2019-08-01 20:38:23 +00:00
Gregory Mierzwinski accc36a617 Bug 1567954 - Part 2: Implement IntelPowerGadget and IPGResultsHandler classes in the Mozpower module. r=perftest-reviewers,rwood
This patch implements IntelPowerGadget and IPGResultsHandler for the Mozpower module. These classes handle data generation with Intel Power Gadget as well as cleaning the data and formatting it into the PERFHERDER_DATA format.

Differential Revision: https://phabricator.services.mozilla.com/D39192

--HG--
extra : moz-landing-system : lando
2019-08-07 17:50:26 +00:00
Gregory Mierzwinski 92d5021daf Bug 1567954 - Part 1: Initialize Mozpower module and implement PowerBase class. r=perftest-reviewers,ahal,rwood
This patch initializes the Mozpower module and implements the PowerBase class. This class is used as a base for subclasses that implement power measurement tooling for various OS and CPU combinations.

Differential Revision: https://phabricator.services.mozilla.com/D39191

--HG--
extra : moz-landing-system : lando
2019-08-01 20:36:00 +00:00
Florin Strugariu c99ea2e1ba Bug 1553932 Update mozproxy certutil usage r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D39200

--HG--
extra : moz-landing-system : lando
2019-08-07 08:22:55 +00:00
Bob Clary d2ff3d2ad4 Bug 1571501 - [mozdevice 3.0.4] Use exitcode of adb process as exitcode of Android command for Android 7/24 and later, r=jmaher.
Differential Revision: https://phabricator.services.mozilla.com/D40668

--HG--
extra : moz-landing-system : lando
2019-08-06 14:35:52 +00:00
Geoff Brown f7b0420fd4 Bug 1570051 - Minor updates to android mach commands; r=bc
Various cleanup:
 - remove extraneous calls to grant_runtime_permissions
 - remove unused legacy jimdb support code
 - remove "This may take a while" logging
 - emphasize x86/x86_64 capabilities of emulator

Differential Revision: https://phabricator.services.mozilla.com/D40302

--HG--
extra : moz-landing-system : lando
2019-08-03 01:52:39 +00:00
James Graham 226d6ca0b2 Bug 1571019 - Update mozrunner version to 7.5.0, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D40443

--HG--
extra : moz-landing-system : lando
2019-08-02 15:44:31 +00:00
Maja Frydrychowicz 8e15c4ae87 Bug 1569440 - [mozrunner] Empty the minidump directory instead of deleting it; r=gbrown
Other harness code intermittently complains if the directory is absent. Maybe this will help.

Differential Revision: https://phabricator.services.mozilla.com/D39621

--HG--
extra : moz-landing-system : lando
2019-07-30 16:55:19 +00:00
Maja Frydrychowicz 96e61238be Bug 1569440 - [mozrunner] Clean up stray temp directory; r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D39620

--HG--
extra : moz-landing-system : lando
2019-07-30 01:27:03 +00:00
Maja Frydrychowicz b368ec56ba Bug 1569440 - [mozdevice] Remove redundant except clause; r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D39619

--HG--
extra : moz-landing-system : lando
2019-07-30 01:59:45 +00:00
Maja Frydrychowicz 14e9dd3c9e Bug 1569440 - [mozrunner] Set MOZ_IN_AUTOMATION when running on Android; r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D39616

--HG--
extra : moz-landing-system : lando
2019-07-30 01:59:45 +00:00
Maja Frydrychowicz 2b9bdaaf17 Bug 1569440 - [mozrunner] Log when minidumps directory does not exist on device; r=gbrown
The missing directory seems to happens ~20 or so times per test run. I hope this
can help with investigations.

Differential Revision: https://phabricator.services.mozilla.com/D39613

--HG--
extra : moz-landing-system : lando
2019-07-30 16:19:03 +00:00
Bob Clary da772c8074 Bug 1569707 - [mozdevice 3.0.3] - Improve boot complete detection and ensure that the device state is reset after rebooting, r=gbrown.
Add internal method _wait_for_bootcompleted to wait until sys.boot_completed and dev.bootcomplate are set.
Add internal method _initialize_boot_state to encapsulate the steps required to initialize device state.
Make sure to set device state after rebooting.
Normalize optional arguments for _test_path calls.
Add verbose logging for shell_bool.

Differential Revision: https://phabricator.services.mozilla.com/D39876

--HG--
extra : moz-landing-system : lando
2019-07-30 18:03:27 +00:00
Andrew Halberstadt e3e6ea6d8e Bug 1567264 - [mozlog] Support log errors in the errorsummary and mach formatter r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D39547

--HG--
extra : moz-landing-system : lando
2019-07-29 15:16:22 +00:00
Andreas Tolfsen 2ce9924f6c bug 1569143: mozrunner: lint; r=webdriver-reviewers,automatedtester
Differential Revision: https://phabricator.services.mozilla.com/D39487

--HG--
extra : moz-landing-system : lando
2019-07-26 12:03:22 +00:00
Andreas Tolfsen ac034168fc bug 1569143: mozprofile: lint; r=webdriver-reviewers,automatedtester
Differential Revision: https://phabricator.services.mozilla.com/D39486

--HG--
extra : moz-landing-system : lando
2019-07-26 12:01:09 +00:00
Edwin Gao a1cc4534a7 Bug 1519369 - support 'debugger' parser argument for mach test command r=ahal,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D39229

--HG--
extra : moz-landing-system : lando
2019-07-26 15:18:18 +00:00
Andreea Pavel e4263c00eb Merge mozilla-inbound to mozilla-central. a=merge 2019-07-25 08:59:39 +03:00
Andreas Tolfsen bb030bafa9 bug 1566778: mozrunner: search system path on assorted Unices; r=webdriver-reviewers,jgraham
Makes the Linux platform implementation of firefox_default_path()
apply to all flavours of Unix.

It was reported in https://github.com/mozilla/geckodriver/issues/1585
that geckodriver does not search the system path for the Firefox
binary on FreeBSD.

Differential Revision: https://phabricator.services.mozilla.com/D39196

--HG--
extra : moz-landing-system : lando
2019-07-24 14:45:27 +00:00
Marian Raiciof 914b7530c9 Bug 1560339 - Extra incoherent logging when running android mochitest r=gbrown
Do not decode data returned by get_file() in adb.py

Differential Revision: https://phabricator.services.mozilla.com/D38844

--HG--
extra : moz-landing-system : lando
2019-07-22 14:19:03 +00:00
Kris Maglione 73e321aadc Bug 1566952: Part 0 - Fix comment processing in multi-line directives. r=ahal
The current comment processing code strips whitespace from a line, calculates
comment offsets based on the unstripped version, and then strips those offsets
from the stripped version. That means that, for multi-line directives, which
typically have two spaces at the front, the offsets are wrong and lines with
comments end up with a trailing "# " that the expression parser doesn't
understand.

This patch fixes the comment parser to correctly use the stripped line for
offset calculations instead.

Differential Revision: https://phabricator.services.mozilla.com/D38724

--HG--
extra : rebase_source : 9f19314ccab3fb2fa68642ff0aef978cb5c3e13c
2019-07-17 14:19:59 -07:00
Andrew McCreight d78c44314a Bug 1567541 - Fix typo "Minidump anaylsed". r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D38688

--HG--
extra : moz-landing-system : lando
2019-07-19 17:05:47 +00:00
Andrew Halberstadt 3336efcb3f Bug 1473498 - Fixing Py3 compatibility errors reachable from testing/mach_commands.py r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D37762

--HG--
extra : moz-landing-system : lando
2019-07-16 01:21:55 +00:00
Tom Prince d644374710 Bug 1565725: Make tests of `mozfile.which` insensitive to the case of the cwd on windows; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37949

--HG--
extra : moz-landing-system : lando
2019-07-15 17:31:04 +00:00
Eric Rahm 7432760a32 Bug 1565359 - Fix trait objects without an explicit `dyn` are deprecated error. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D37771

--HG--
extra : moz-landing-system : lando
2019-07-12 00:25:21 +00:00
Mike Shal d877ac79c4 Bug 1565314 - use is_tarfile() check before is_zipfile() in mozinstall; r=ahal
Similar to bug 1552672, very rarely is_zipfile() can return True on a
tarfile if the tarfile happens to contain a magic four byte sequence at
the right location in the file. By checking for is_zipfile() first, we
try to unzip the tar file and then fail. Instead we can call
is_tarfile() first, which is more robust, and call is_zipfile() last.

Differential Revision: https://phabricator.services.mozilla.com/D37765

--HG--
extra : moz-landing-system : lando
2019-07-11 19:49:03 +00:00
Andrew Halberstadt 9a1ff6557d Bug 1563797 - [mozfile] Add a 'which' function to make 'shutil.which' consistent on Windows r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D37621

--HG--
extra : moz-landing-system : lando
2019-07-11 14:13:47 +00:00
Geoff Brown 911570de65 Bug 1562938 - Update 'mach android-emulator' for emulator 29.0.11; r=aerickson
Use the same options for x86-7.0 emulator via mach as in CI.

Differential Revision: https://phabricator.services.mozilla.com/D36631

--HG--
extra : moz-landing-system : lando
2019-07-10 13:09:26 +00:00
Victor Porof 2b036e45c5 Bug 1561435 - Format testing/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35962

--HG--
extra : source : c0948f31e520ca087279cf429ca5f1db5a8341b8
2019-07-05 11:01:24 +02:00
Edwin Gao 4760b99320 Bug 1562083 - explicitly insert sys.path to env for use in subprocess for python3 mozprocess unit tests r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D36681

--HG--
extra : moz-landing-system : lando
2019-07-03 17:52:19 +00:00
Cosmin Sabou e869758aa5 Backed out changeset da3af6a077fc (bug 1562083) for busting gecko decision task. CLOSED TREE 2019-07-03 19:48:58 +03:00
Edwin Gao 4a65facb18 Bug 1562083 - explicitly insert sys.path to env for use in subprocess for python3 mozprocess unit tests r=jmaher
Changes:
- for macosx1014, in the tests where `subprocess` is called and the process relies on `six` being present, ensure that `six` is available in the PYTHONPATH by explicitly inserting the contents of `sys.path` to the modified environment variable dict
- change how the command line call to run the suite is being built in `taskcluster/taskgraph/transforms/job/mach.py`
- migrate source-tests from macosx1010 to macosx1014

Differential Revision: https://phabricator.services.mozilla.com/D36681

--HG--
extra : moz-landing-system : lando
2019-07-03 01:04:24 +00:00
Kartikaya Gupta 721a5dbcf4 Bug 1558598 - Ensure mozinfo correctly detects WebRender. r=ahal
I don't know if this covers all the things that use mozinfo (probably not)
but it covers all the suites that use mozinfo and have webrender conditions
in the test manifests (i.e. mochitest and wpt variants).

Differential Revision: https://phabricator.services.mozilla.com/D35869

--HG--
extra : moz-landing-system : lando
2019-06-29 09:51:14 +00:00
Nikki Sharpley cd5919d8dd Bug 1561421 - [mozlog] Update mozlog docs and version to 4.2.0 r=ahal
The mozlog documents have been updated to reflect the addition of a `known_intermittent`
parameter in `test_status` and `test_end` included in the `StructuredLogger`, and across
multiple mozlog handlers and formatters.

As this was a major change, the version has been bumped to 4.2 for the next pypi release.

Web-platform-tests will eventually require this update in order for future patches related
to `known_intermittent` statuses to merge upstream.

Differential Revision: https://phabricator.services.mozilla.com/D36029

--HG--
extra : moz-landing-system : lando
2019-06-28 19:35:55 +00:00
Geoff Brown 95706218a2 Bug 1557152 - [mozdevice] Retry mkdir check for directory existence; r=bc
This effectively avoids the mkdir failures I see with the 29.0.11 emulator
on packet.net with Android 7.0 x86_64. I hate to add this sort of complication
but it really helps clear the way for an otherwise useful upgrade.

Differential Revision: https://phabricator.services.mozilla.com/D34740

--HG--
extra : moz-landing-system : lando
2019-06-26 22:45:11 +00:00
Geoff Brown 00c7fc4efb Bug 1560073 - Change default android package name for most mach test commands; r=snorp,nalexander,maja_zf
Use the geckoview TestRunnerActivity, org.mozilla.geckoview.test, by default
for all types of mochitests, reftests, and web-platform tests. TRA is already
the default for gtest and geckoview-junit. Fennec, based on ANDROID_PACKAGE_NAME,
remains the default for robocop and marionette-test and I have no plans to
change those. There is a related issue for xpcshell-test -- not the package
name, but the default apk -- but I am reluctant to handle that until bug 1553225
is resolved.

Differential Revision: https://phabricator.services.mozilla.com/D35479

--HG--
extra : moz-landing-system : lando
2019-06-26 02:34:49 +00:00
Geoff Brown 46ae70c525 Bug 1560162 - Handle psutil exception in 'mach android-emulator'; r=denschub
I haven't reproduced this failure myself, but this change *should* help.

Differential Revision: https://phabricator.services.mozilla.com/D35561

--HG--
extra : moz-landing-system : lando
2019-06-21 20:07:20 +00:00
Emilio Cobos Álvarez 3a16c93150 Bug 1556602 - Fix various warnings with rust 1.37 nightly. r=froydnj
In particular:

 * trait objects without an explicit `dyn` are deprecated
 * `...` range patterns are deprecated

I think these shouldn't really warn by default and should be clippy / opt-in
lints, but anyway, doesn't hurt.

Differential Revision: https://phabricator.services.mozilla.com/D35135

--HG--
extra : moz-landing-system : lando
2019-06-18 21:32:16 +00:00
Alexandre Poirot d73b8a9739 Bug 1545147 - Run remote agent's mochitests in a distinct "remote" job. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D32028

--HG--
extra : moz-landing-system : lando
2019-06-17 13:57:03 +00:00
Marian Raiciof b2b633e095 Bug 1526752 - [mozdevice] Update adb.py and other necessary files to support python3 r=ahal,davehunt
Improve support for Python 3 by running modernize over adb.py and a few other related changes.

Differential Revision: https://phabricator.services.mozilla.com/D19306

--HG--
extra : moz-landing-system : lando
2019-06-07 08:44:15 +00:00
Geoff Brown 69303ee81f Bug 1558516 - [mozdevice] Improve check for effectiveness of rm; r=bc
If path exists in any form after rm, rm() should raise.

Differential Revision: https://phabricator.services.mozilla.com/D34531

--HG--
extra : moz-landing-system : lando
2019-06-11 15:23:22 +00:00
Nikki Sharpley 4c76a56119 Bug 1554818 - [mozlog] Update StatusHandler to support known_intermittent field r=jgraham
This patch adds a `known_intermittent_statuses` attribute to the `StatusHandler`
class, allowing it to keep a count of expected intermittents for future use.
Additionally, known intermittents are not recorded as `unexpected_statuses` but
are recorded as `expected_statuses`.

testing/mozharness/mozharness/mozilla/structuredlog.py is directly affected by
this change and has been updated to also reflect `known_intermittent_statuses`.
However, it may require a test to be written to check this addition.

The `StatusHandler` test has been added to, ensuring this patch works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D33086

--HG--
extra : moz-landing-system : lando
2019-06-11 14:09:40 +00:00
Nikki Sharpley 9eec24a901 Bug 1554239 - [mozlog] Add new test for known_intermittent in tbpl and grouping formatters r=jgraham
This patch adds support for the known_intermittent field in the html,
and grouping formatters. Tests have been added to check the new
field in grouping and tbpl formatter tests.

Differential Revision: https://phabricator.services.mozilla.com/D32773

--HG--
extra : moz-landing-system : lando
2019-06-04 10:13:57 +00:00
Kris Maglione 11ef932856 Bug 1556073: Also ignore Rust panic frames in crash signature. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D33359

--HG--
extra : rebase_source : 75cb9522f049fa744d6fe6b0e9a562d5f44504f7
2019-05-31 13:53:37 -07:00
Kris Maglione 44386e0e66 Bug 1555427: Skip abort functions when determining crash signature. r=gbrown
mozalloc_abort and related abort functions are the top frame for many
different, unrelated crashes because they happen to be the standard way to
abort execution. That makes it difficult to properly classify and deal with
intermittent failures.

This patch changes our crash handling behavior so that we try to skip any
frames at the top of the stack that are in generic abort functions, and use
the topmost frame which is actually relevant to the crash reason instead.

Differential Revision: https://phabricator.services.mozilla.com/D33051

--HG--
extra : moz-landing-system : lando
2019-05-30 17:56:25 +00:00
Nikki Sharpley 9601163e6a Bug 1554203 - [mozlog] Move formatter tests to one location and refactor r=jgraham
As the number of tests have grown considerably, for clarity, this patch
moves the formatter tests in test_structured.py to test_formatters.py.

html.py and its corresponding test were also amended to account for
discrepancies in the way Python 2 and 3 handle strings (bytes vs text type).

Differential Revision: https://phabricator.services.mozilla.com/D33048

--HG--
extra : moz-landing-system : lando
2019-05-29 17:20:28 +00:00
Nikki Sharpley ac14a7e160 Bug 1554203 - [mozlog] Move formatter tests to one location and refactor r=jgraham
As the number of tests have grown considerably, for clarity, this patch
moves the formatter tests in test_structured.py to test_formatters.py.

I am striking an error on one of the tests since the move.
`test_base64_other`, which tests that ability to read different characters
in the HTMLformatter. It appears that whilst moving the tests, `test_end`
now returns a unicode string, which fails the assertion. Am looking into
Python 2 v 3 discrepancies, but any guidance would be most welcome. Error
message will be attached below.

Differential Revision: https://phabricator.services.mozilla.com/D32732

--HG--
extra : moz-landing-system : lando
2019-05-29 14:38:05 +00:00
Geoff Brown f7738c91de Bug 1555141 - Simplify process management in android mozrunner; r=jmaher
There is no real need to use mozprocess from this code, so switched to subprocess.

Differential Revision: https://phabricator.services.mozilla.com/D32897

--HG--
extra : moz-landing-system : lando
2019-05-28 21:37:42 +00:00
Nikki S 7e9e422495 Bug 1552914 - [mozlog] Update formatters to reflect new known_intermittent field. r=jgraham
The in-tree log formatters have been updated to reflect the new `known_intermittent`
field, ensuring that a status matching a `known_intermittent` status  is not logged as an
unexpected failure. A message is printed when there is a test status that matches this.
A test for known intermittents has been added to the test_formatters, following the
same testing style for pass or fail.

Differential Revision: https://phabricator.services.mozilla.com/D32174

--HG--
extra : moz-landing-system : lando
2019-05-24 13:30:13 +00:00
Nikki S 6259af5846 Bug 1066323 - [mozlog] Mozlog shouldn't propagate unremarkable defaults to the raw log r=jgraham
Currently, some of the raw JSON logs for mochitest and marionette, et al, include
empty dictionaries, None values and other unremarkable values that are marked
as optional. This fix aims to remove these unnecessary items from being
passed to the raw log.

A method has been added to the log_actions class which removes defaults if they
are marked as optional and the value is included in the default list. This is
called on the kwargs returned by the convert_known method, before being
propagated to the log_raw method for StructuredLogger.

Differential Revision: https://phabricator.services.mozilla.com/D25081

--HG--
extra : moz-landing-system : lando
2019-05-21 16:45:59 +00:00
Andreea Pavel e544d76126 Backed out changeset 86bc425ccdbd (bug 1066323) for failing logtypes.py on a CLOSED TREE 2019-05-21 19:11:48 +03:00
Nikki S 30631bd28b Bug 1066323 - [mozlog] Mozlog shouldn't propagate unremarkable defaults to the raw log r=jgraham
Currently, some of the raw JSON logs for mochitest and marionette, et al, include
empty dictionaries, None values and other unremarkable values that are marked
as optional. This fix aims to remove these unnecessary items from being
passed to the raw log.

A method has been added to the log_actions class which removes defaults if they
are marked as optional and the value is included in the default list. This is
called on the kwargs returned by the convert_known method, before being
propagated to the log_raw method for StructuredLogger.

Differential Revision: https://phabricator.services.mozilla.com/D25081

--HG--
extra : moz-landing-system : lando
2019-05-21 15:49:51 +00:00
Nikki S 9c23b063f4 Bug 1527610 - [mozlog] Library fails after python 3 update; TypeError: vars() argument must have _dict_ attribute r=ahal
Updated from Differential D20458.

Differential Revision: https://phabricator.services.mozilla.com/D30719

--HG--
extra : moz-landing-system : lando
2019-05-21 15:04:20 +00:00
Nikki S 1a21f1c47b Bug 1552855 - [mozlog] Add new optional field to test actions for expected intermittents. r=jgraham
Added a new optional field on the test_end and test_status actions called expected_intermittents
which accepts a List of expected intermittent statuses. The default is None. As it is an optional
field, upon landing of D25081, it will only show if there is an expected intermittent.

A test was added to check that expected_intermittents are logged.

Differential Revision: https://phabricator.services.mozilla.com/D31809

--HG--
extra : moz-landing-system : lando
2019-05-21 14:17:29 +00:00
Makoto Kato ededb354fa Bug 1540589 - _get_host_platform shouldn't return None. r=nalexander
`./mach run` doesn't work since `_get_host_platform` returns None. So we should
return `win32` on Windows.

Differential Revision: https://phabricator.services.mozilla.com/D30608

--HG--
extra : moz-landing-system : lando
2019-05-21 03:28:04 +00:00
b4hand 09aeeca068 Bug 1532607 - Add configuration to run telemetry tests directly; r=raphael,ahal
Differential Revision: https://phabricator.services.mozilla.com/D30663

--HG--
extra : moz-landing-system : lando
2019-05-20 08:59:56 +00:00
Nick Alexander ec2255472a Bug 1521996 - Part 3: Make `mach run` for Android bring Fennec forward by default. r=gbrown
`mach run` as it is doesn't really parallel `mach run` on Desktop;
this makes it a little closer more fully featured.  The underlying
functionality is all there in layers of mozharness; let's make it
easier to get to.

Differential Revision: https://phabricator.services.mozilla.com/D18292

--HG--
extra : moz-landing-system : lando
2019-05-17 22:21:20 +00:00
Narcis Beleuzu 1aace747e3 Backed out changeset 0883716b330e (bug 1532607) for conflicting with the backout of Bug 1542963. a=backout
--HG--
extra : histedit_source : 7f0a46319ac36c899d3f57b1ee6efcedf443992c
2019-05-17 11:27:16 +03:00
b4hand 906a369fe2 Bug 1532607 - Add configuration to run telemetry tests directly; r=raphael,ahal
Differential Revision: https://phabricator.services.mozilla.com/D30663

--HG--
extra : moz-landing-system : lando
2019-05-16 14:40:13 +00:00
Geoff Brown 9352ea1aa6 Bug 1551262 - Remove mach support for jimdb; r=snorp
If there is still value to this -- if you know of anyone using jimdb via mach, etc -- I am
happy to throw this away, but otherwise, would like to clean it up.

Differential Revision: https://phabricator.services.mozilla.com/D30943

--HG--
extra : moz-landing-system : lando
2019-05-13 20:52:29 +00:00
Florin Strugariu de3dab4a98 Bug 1549992 [mozdevice] mozdevice is not returning exception launch_application is returning a error r=bc
Differential Revision: https://phabricator.services.mozilla.com/D30368

--HG--
extra : moz-landing-system : lando
2019-05-09 13:24:16 +00:00
Nikki S a4451e2014 Bug 1550565 - [mozlog] Update mozlog version number to 4.1 r=jgraham
The Mozlog version number needed to be updated to 4.1 for the new
release on PyPI. The dependencies of other libraries that require
mozlog were updated to reflect the new version. (mozversion,
mozrunner, mozprofile)

Differential Revision: https://phabricator.services.mozilla.com/D30550

--HG--
extra : moz-landing-system : lando
2019-05-10 10:29:49 +00:00
Geoff Brown 5a5e4bf443 Bug 1550052 - Ensure clean android app install via mach; r=jmaher
Uninstalling the test app before re-installing ensures a clean, predictable
starting state for gtest.

Differential Revision: https://phabricator.services.mozilla.com/D30407

--HG--
extra : moz-landing-system : lando
2019-05-08 20:38:47 +00:00
Geoff Brown 8855a442ee Bug 1550069 - Quick fix for 'mach android-emulator' handling of tooltool checksum file; r=aerickson
I think a more robust solution would involve disabling the checksum behavior in tooltool.py;
I will leave-open for us to consider later. In the meantime, this will get things working again.

Differential Revision: https://phabricator.services.mozilla.com/D30403

--HG--
extra : moz-landing-system : lando
2019-05-08 19:52:47 +00:00
Bastien Orivel 81ccf6ca5b Bug 1545960 - Part 1: Replace tempdir by tempfile. r=ato
tempdir has been deprecated for a while. I've set tempfile to 3.0.2 on
purpose to avoid duping rand for now (but this is one more step in the
direction of getting everything to rand 0.6 as tempfile 3 is on it
already).

Differential Revision: https://phabricator.services.mozilla.com/D28278

--HG--
extra : moz-landing-system : lando
2019-05-08 09:49:24 +00:00
Florin Strugariu 9d54d2da02 Bug 1548574 [mozproxy] mitmproxy failing to start when using both 2.x and 4.x in same test job r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D29996

--HG--
extra : moz-landing-system : lando
2019-05-07 13:36:37 +00:00
Geoff Brown bcb439e8b2 Bug 1548873 - When running android mach test commands, always offer to install app; r=snorp
In addition to the inconvenience of geckoview installation, there are other reasons to
re-install, notably to test against new changes; let's always offer to install, regardless
of which app is requested and regardless of whether it is installed.
I've also removed the looping that was here: I think prompting once is sufficient.

Differential Revision: https://phabricator.services.mozilla.com/D29880

--HG--
extra : moz-landing-system : lando
2019-05-03 22:11:24 +00:00
Andrew Erickson d869dc1418 Bug 1548008: update glob used to find host-utils in mozproxy r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D29400

--HG--
extra : moz-landing-system : lando
2019-05-01 17:28:36 +00:00
Sebastian Hengst a9f493f1cb Bug 1546459 - remove subsuite=clipboard from manifests: remove obsolete reference to mochitest clipboard in test causing mozbase test failure
--HG--
extra : rebase_source : 7937f393f3db43fbf094ce8b125d4c9460cfc7d8
2019-05-01 12:42:05 +02:00
Joel Maher 6611f95ab0 Bug 1546459 - remove subsuite=clipboard from manifests. r=ahal
remove subsuite=clipboard from manifests

Differential Revision: https://phabricator.services.mozilla.com/D28521

--HG--
extra : moz-landing-system : lando
2019-05-01 08:16:44 +00:00
Andrew Halberstadt e108b019b8 Bug 1547983 - [mochitest] Fix running a single mochitest-plain-clipboard/gpu test locally, r=jmaher
This was a regression from bug 1546100.

Differential Revision: https://phabricator.services.mozilla.com/D29390

--HG--
extra : moz-landing-system : lando
2019-04-30 21:09:16 +00:00
Andrew Halberstadt 060e1d37f0 Bug 1546100 - [mochitest] Error out when running 'a11y' or 'chrome' with e10s, r=jmaher
Previously we would silently change the value of "e10s" from False to True.
This can cause confusion and lead people to falsely think mochitest-chrome/a11y
work with e10s (they do not).

Now we explicitly error out in this case. This might be slightly less
convenient for the developer (e.g they might need to re-run the command), but
the downside of needing to rerun a test command is less than the risk of
misunderstanding what is being tested.

Note: when running |mach test| or |mach mochitest| on a directory that contains
both chrome/a11y and another suite, we'll still do the right thing and
implicitly set "e10s=False".

Differential Revision: https://phabricator.services.mozilla.com/D28538

--HG--
extra : moz-landing-system : lando
2019-04-26 18:25:21 +00:00
Andrew Erickson 03710e2fef Bug 1546187: `mach android-emulator` uses in-tree tooltool.py r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D28397

--HG--
extra : moz-landing-system : lando
2019-04-24 18:14:14 +00:00
Andrew Halberstadt 48648a7344 Bug 1523303 - Align mozharness suite names with the ones in 'moztest.resolve', r=gbrown
This officially makes 'moztest.resolve' the source of truth when it comes to
suite names. It aligns that file with the names used in both the
desktop_unittest and android_emulator_unittest scripts.

Differential Revision: https://phabricator.services.mozilla.com/D27555

--HG--
extra : moz-landing-system : lando
2019-04-22 22:32:34 +00:00
Andrew Erickson 377244bae8 Bug 1545860: fix tooltool url, r2 r=bc,gbrown
changes from https://phabricator.services.mozilla.com/D28260:
- fix flake error ( was reverted due to one)

Differential Revision: https://phabricator.services.mozilla.com/D28388

--HG--
extra : moz-landing-system : lando
2019-04-22 20:06:37 +00:00
Bogdan Tara 2a38c1eb3a Backed out changeset 67463f3dd222 (bug 1545860) for flake lint failure on android_device.py CLOSED TREE 2019-04-22 21:20:16 +03:00
Andrew Erickson 14a02f9fe1 Bug 1545860: fix tooltool url r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D28260

--HG--
extra : moz-landing-system : lando
2019-04-22 17:41:33 +00:00
Geoff Brown 9ac9cd5861 Bug 1546045 - [mozdevice] Downgrade 'chmod external storage' warning to debug message; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D28311

--HG--
extra : moz-landing-system : lando
2019-04-22 15:55:23 +00:00
Ted Mielczarek 466bb937bf bug 1517806 - make mozdebug's Visual Studio detection with vswhere more useful. r=ahal,froydnj
mozdebug has code to locate Visual Studio using vswhere.exe, but it only
works if vswhere is in PATH. We have a copy vendored in the source tree,
so this change adds support for using that binary when available. Additionally
the code parsing the output of vswhere appeared to be using a key that
does not exist in the JSON output, so this change fixes that to match the
documentation: https://github.com/Microsoft/vswhere/wiki#examples .

Differential Revision: https://phabricator.services.mozilla.com/D16542

--HG--
extra : moz-landing-system : lando
2019-04-01 14:22:56 +00:00
Geoff Brown f1bca69405 Bug 1544940 - [mozdevice] Fix typo in default intent name; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D27836

--HG--
extra : moz-landing-system : lando
2019-04-16 23:26:24 +00:00
Andrew Halberstadt 6b482c7f2e Bug 1541527 - Remove "-e10s" from treeherder group symbols and task labels, r=jmaher,gbrown
Since e10s is the default configuration, we shouldn't explicitly mark things
with the "-e10s" suffix. Instead we should mark things that *don't* run with
'e10s. This patch removes '-e10s' from all treeherder group symbols and task
labels, adds the "-1proc" suffix to tasks that are non-e10s.

Differential Revision: https://phabricator.services.mozilla.com/D25958

--HG--
extra : moz-landing-system : lando
2019-04-15 18:18:33 +00:00
Ionut Goldan e0060de75c Bug 1539437 - Replace Chrome with Chromium mentionings where needed r=sparky,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D25094

--HG--
rename : taskcluster/ci/test/raptor-chrome.yml => taskcluster/ci/test/raptor-chromium.yml
extra : moz-landing-system : lando
2019-04-12 10:33:24 +00:00
Mike Shal e28f6db31f Bug 1537574 - Use mozbuild's backend-out-of-date logic for RecursiveMake; r=firefox-build-system-reviewers,chmanchester
If mozbuild parsing fails due to a missing file (eg: a file not existing
in UNIFIED_SOURCES), then no Makefiles are written out, but
config.status exists. This would cause mozbuild to think that configure
doesn't need to run, and rely on make to perform the backend-out-of-date
check in rebuild-backend.mk. Unfortunately since no Makefiles were
written, the make command fails immediately and no attempt is made to
re-create the backend. Note that this is only a problem if the first
mozbuild parsing from a clobber build fails, otherwise there is
typically a top-level Makefile from a previous build to call into (at
which point make can determine it is out-of-date, and re-invoke itself).

The fix is to have the RecursiveMake backend re-use the same logic that
was introduced into mozbuild for alternate backends, and remove
rebuild-backend.mk. This way, mozbuild can always determine if the
backend needs to be regenerated, even if the initial parsing failed.

Test code was also relying on rebuild-backend.mk to generate the
TestBackend, but moving backend_out_of_date() into MozbuildObject allows
this code to be shared.

Differential Revision: https://phabricator.services.mozilla.com/D26262

--HG--
rename : build/gen_test_backend.py => python/mozbuild/mozbuild/gen_test_backend.py
extra : moz-landing-system : lando
2019-04-10 22:14:27 +00:00
Andreea Pavel a7f868ac25 Backed out changeset 95b3298fd2d4 (bug 1537574) for windows task timeouts a=backout
--HG--
rename : python/mozbuild/mozbuild/gen_test_backend.py => build/gen_test_backend.py
2019-04-08 22:23:03 +03:00
alexandru.ionescu faeccf1361 Bug 1532545 Add support for running page load tests against Fennec r=rwood
Differential Revision: https://phabricator.services.mozilla.com/D25723

--HG--
extra : moz-landing-system : lando
2019-04-08 17:47:59 +00:00
Mike Shal 96425af79a Bug 1537574 - Use mozbuild's backend-out-of-date logic for RecursiveMake; r=firefox-build-system-reviewers,chmanchester
If mozbuild parsing fails due to a missing file (eg: a file not existing
in UNIFIED_SOURCES), then no Makefiles are written out, but
config.status exists. This would cause mozbuild to think that configure
doesn't need to run, and rely on make to perform the backend-out-of-date
check in rebuild-backend.mk. Unfortunately since no Makefiles were
written, the make command fails immediately and no attempt is made to
re-create the backend. Note that this is only a problem if the first
mozbuild parsing from a clobber build fails, otherwise there is
typically a top-level Makefile from a previous build to call into (at
which point make can determine it is out-of-date, and re-invoke itself).

The fix is to have the RecursiveMake backend re-use the same logic that
was introduced into mozbuild for alternate backends, and remove
rebuild-backend.mk. This way, mozbuild can always determine if the
backend needs to be regenerated, even if the initial parsing failed.

Test code was also relying on rebuild-backend.mk to generate the
TestBackend, but moving backend_out_of_date() into MozbuildObject allows
this code to be shared.

Differential Revision: https://phabricator.services.mozilla.com/D26262

--HG--
rename : build/gen_test_backend.py => python/mozbuild/mozbuild/gen_test_backend.py
extra : moz-landing-system : lando
2019-04-08 16:37:56 +00:00
Brendan Dahl 0375e3a2b7 Bug 1542354 - Fix unexpected fail mach formatter. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D26379

--HG--
extra : moz-landing-system : lando
2019-04-05 20:48:11 +00:00
Brendan Dahl e204fc0102 Bug 1541569 - Fix terminal colors for mach formatter. r=jgraham
Restore old "FAIL" tests color to red. Restore heading of mochitest. Fix
marking of unexpected failures.

Differential Revision: https://phabricator.services.mozilla.com/D25996

--HG--
extra : moz-landing-system : lando
2019-04-05 10:42:19 +00:00
Florin Strugariu 5446188f5f Bug 1541849 [mozproxy]mozproxy is not downloading mozproxy executable files when running localy r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D26132

--HG--
extra : moz-landing-system : lando
2019-04-05 08:47:22 +00:00
Tarek Ziadé fbf4fdacfb Bug 1527620 - Add youtube streaming tests - r=whimboo
This patch introduces a new marionette media test along
with a Youtube test.

To run the Youtube streaming test locally:

./mach marionette-test dom/media/test/marionette/test_youtube.py -vv --gecko-log -

Differential Revision: https://phabricator.services.mozilla.com/D23644

--HG--
extra : moz-landing-system : lando
2019-04-02 15:09:47 +00:00
Narcis Beleuzu 36a6694a8b Backed out changeset 304b957afe29 (bug 1527620) for marionette-media failures on test_youtube.py. CLOSED TREE 2019-04-02 11:19:26 +03:00
Tarek Ziadé 0d09d08c72 Bug 1527620 - Add youtube streaming tests - r=whimboo
This patch introduces a new marionette media test along
with a Youtube test.

To run the Youtube streaming test locally:

./mach marionette-test dom/media/test/marionette/test_youtube.py -vv --gecko-log -

Differential Revision: https://phabricator.services.mozilla.com/D23644

--HG--
extra : moz-landing-system : lando
2019-04-02 07:38:41 +00:00
Ian Moody 93748b5526 Bug 1540653 - [mozinfo] Bump version to 1.1.0. r=ahal
Just a version-bump so DONTBUILD.

Differential Revision: https://phabricator.services.mozilla.com/D25579

--HG--
extra : moz-landing-system : lando
2019-04-01 20:21:08 +00:00
Eric Rahm d27ee411ac Bug 1539317 - Add option to ignore mitmproxy shutdown error code. r=rwood
mitmproxy appears to return an error code of 1 if we use the `--no-upstream-cert`. The actual playback works fine. This patch adds an option to reduce the log level to `info` in order to prevent tests from being marked orange due to a shutdown error message.

Differential Revision: https://phabricator.services.mozilla.com/D25000

--HG--
extra : moz-landing-system : lando
2019-03-29 17:26:05 +00:00
Eric Rahm 6f2f0f61bf Bug 1539970 - Support taskcluster cache env var in mozproxy. r=tarek
TaskCluster tasks use the `TOOLTOOL_CACHE` env var to specify which directory to use for the `tooltool` cache. This patch falls back to that value if `TOOLTOOLCACHE` is not found.

Differential Revision: https://phabricator.services.mozilla.com/D25305

--HG--
extra : moz-landing-system : lando
2019-03-29 17:12:37 +00:00
Ian Moody 709594bd91 Bug 1538382 - Teach mozinfo to report the correct values for bits and processor on ARM64. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D24574

--HG--
extra : moz-landing-system : lando
2019-03-27 17:02:41 +00:00
Bob Clary a38770e259 Bug 1525401 - [mozdevice 3.0.2] work around need to invoke su -c setenforce 0 prior to check for su support when using Magisk later than 17.3, r=gbrown.
Differential Revision: https://phabricator.services.mozilla.com/D25398

--HG--
extra : moz-landing-system : lando
2019-03-29 14:56:42 +00:00
Florin Strugariu 5ef71add7a Bug 1457274 Upgrade mitmproxy in production r=rwood,tarek
Differential Revision: https://phabricator.services.mozilla.com/D21374

--HG--
rename : testing/raptor/raptor/playback/alternate-server-replay.py => testing/raptor/raptor/playback/alternate-server-replay-2.0.2.py
extra : moz-landing-system : lando
2019-03-29 09:54:53 +00:00
Tarek Ziadé 032362875a Bug 1539540 - fix PATH separator r=rwood
The path separator is platform-specific

Differential Revision: https://phabricator.services.mozilla.com/D25095

--HG--
extra : moz-landing-system : lando
2019-03-27 17:10:54 +00:00
Geoff Brown fe297ae528 Bug 1539603 - Remove obsolete references to MediaPipelineFactory logging; r=jmaher
Other than the MediaPipelineFactory references, nothing else is obsolete, so this is a
very minor cleanup, just to improve readability a bit.

Differential Revision: https://phabricator.services.mozilla.com/D25124

--HG--
extra : moz-landing-system : lando
2019-03-28 00:13:48 +00:00
Andrew Halberstadt 574b9b89ea Bug 1523303 - [tryselect] Define 'mozharness_name' key in relevant TEST_SUITE definitions, r=gbrown
Some of these were working with the '<flavor>-<subsuite>' mechanism that was
previously being used, but better to be explicit wherever possible.

Depends on D25077

Differential Revision: https://phabricator.services.mozilla.com/D25078

--HG--
extra : moz-landing-system : lando
2019-03-27 18:42:48 +00:00
Andrew Halberstadt 649b8284ce Bug 1523303 - [moztest] Exclude mochitest-webgl tasks from the mochitest-plain regexes, r=gbrown
We should use filter functions instead of regexes here. Would be a lot more robust.

Depends on D25076

Differential Revision: https://phabricator.services.mozilla.com/D25077

--HG--
extra : moz-landing-system : lando
2019-03-27 18:39:39 +00:00
Andrew Halberstadt 4bd2c3936b Bug 1523303 - [moztest] Split mochitest-gpu/mochitest-clipboard suite definitions into distinct flavors, r=gbrown
Depends on D25015

Differential Revision: https://phabricator.services.mozilla.com/D25076

--HG--
extra : moz-landing-system : lando
2019-03-27 20:05:25 +00:00
Tarek Ziadé 7b582e3d8b Bug 1532630 - mozprocess broken on python 3.6+ - r=gbrown
Make sure ProcessHandlerMixin.Process works also under 3.6.

3.6 introduced a _wait() method in its Popen class, that
conflicts with the one in mozprocess. The patch renames it
and also adds timeout where possible.

Differential Revision: https://phabricator.services.mozilla.com/D22157

--HG--
extra : moz-landing-system : lando
2019-03-26 16:47:54 +00:00
Henrik Skupin eea49fc824 Bug 1538677 - [mitmproxy] Allow mitmproxy commands at maximum 30s of runtime. r=rwood,tarek
Differential Revision: https://phabricator.services.mozilla.com/D24711

--HG--
extra : moz-landing-system : lando
2019-03-25 15:45:09 +00:00
Nikki S ac6056b247 [mozsystemmonitor] Add test manifest to testing/mozbase/moz.build (bug 1471916) r=davehunt
Currently, tests in mozsystemmonitor are skipped because the manifest is missing
from mozbase/moz.build. This has now been added.

For the moment, this patch also skips the test if run against Python 3. This is
not ideal - a better fix may be setting the unittest.skipIf condition to skip
if the there is simply a failure when run with Python 3.

Differential Revision: https://phabricator.services.mozilla.com/D22426

--HG--
extra : moz-landing-system : lando
2019-03-25 13:49:38 +00:00
championshuttler 677714a968 Bug 1536103 - Fix Sphinx Warning - Title Underline too short in 'mach doc'. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D24536

--HG--
extra : moz-landing-system : lando
2019-03-22 19:30:34 +00:00
Nikki S 0a5bd934c4 [mozlog] Allow passing messages down to formatters (Bug 1534341) r=jgraham
This addition allows formatters to be configured by sending a message.

For example, the show_logs attribute has been added to the GroupingFormatter
to allow switching on/off the display of all log messages at runtime.
A generic handle_message method was added to the BaseFormatter to allow
attributes to be configured, with optional arguments for those that require
it.

An additional log(data) method has been implemented on the GroupingFormatter
that checks self.show_logs, and if True, displays all messages regardless of
failure or success, with component, level and stack.

A test may be required to ensure this is behaving as expected.

Differential Revision: https://phabricator.services.mozilla.com/D23726

--HG--
extra : moz-landing-system : lando
2019-03-22 11:54:09 +00:00
Chris AtLee 2137cec2d9 Bug 1536230: Speed up extraction of tarballs r=marco
Differential Revision: https://phabricator.services.mozilla.com/D23938

--HG--
extra : moz-landing-system : lando
2019-03-21 12:41:29 +00:00
Henrik Skupin ea7f9a7e36 Bug 1535562 - [mozproxy] Docs are not referenced in mozbase index. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D23851

--HG--
extra : moz-landing-system : lando
2019-03-19 16:51:27 +00:00
vrinda 87d12705bc Bug 1424287 - [mozlog] added color dictionary and TerminalColors class r=jgraham
The default color dictionary is implemented, to avoid formattor specifying the colors discretely

Differential Revision: https://phabricator.services.mozilla.com/D24196

--HG--
extra : moz-landing-system : lando
2019-03-21 11:59:55 +00:00
Tarek Ziadé 9f92511bbb Bug 1532557 - Improve mitmdump start/stop process - r=whimboo
This patch will remove the very long wait on start and stop,
should be down to one second.

Differential Revision: https://phabricator.services.mozilla.com/D23668

--HG--
extra : moz-landing-system : lando
2019-03-21 10:20:39 +00:00
Mike Shal ea0cf79382 Bug 632954 - Ignore dashes in adb error messages; r=bc
The regex should match '-' characters as well as \w to properly trim the
error message if the device string contains a dash.

Differential Revision: https://phabricator.services.mozilla.com/D22823

--HG--
extra : source : 26031d3623333bbdedd1fb388f0867bc9f7cc23c
2019-03-18 23:53:15 +00:00
Noemi Erli b61340c4b0 Backed out 12 changesets (bug 632954) for causing Android Bpgo(run) pending jobs CLOSED TREE
Backed out changeset 429c96e4de32 (bug 632954)
Backed out changeset de8beacc5eb4 (bug 632954)
Backed out changeset c151ebf303ca (bug 632954)
Backed out changeset b96dd954a456 (bug 632954)
Backed out changeset 26031d362333 (bug 632954)
Backed out changeset 097f141a499d (bug 632954)
Backed out changeset 6f5fc0d644dd (bug 632954)
Backed out changeset 53d3443e55d9 (bug 632954)
Backed out changeset 503bcac73583 (bug 632954)
Backed out changeset 142ae187478d (bug 632954)
Backed out changeset 0615c775a0cf (bug 632954)
Backed out changeset 3dfc0e4f8e7c (bug 632954)
2019-03-20 11:58:18 +02:00
Mike Shal be5ed9b762 Bug 632954 - Ignore dashes in adb error messages; r=bc
The regex should match '-' characters as well as \w to properly trim the
error message if the device string contains a dash.

Differential Revision: https://phabricator.services.mozilla.com/D22823

--HG--
extra : moz-landing-system : lando
2019-03-18 23:53:15 +00:00
Coroiu Cristina d1458a807e Backed out changeset 53bd5240052b (bug 1424287) for mozabase failures at testing/mozbase/mozlog/tests/test_formatters.py 2019-03-19 18:46:09 +02:00
vrinda ae793e05f0 Bug 1424287 - [mozlog] added color dictionary and functionality for overriding formatter r=jgraham
The default color dictionary is implemented,to avoid hardcode color information. The functionality for overridding the values in formatter, is hitherto partially
 implemented

Differential Revision: https://phabricator.services.mozilla.com/D23134

--HG--
extra : moz-landing-system : lando
2019-03-19 16:23:10 +00:00
Geoff Brown e7c069fb48 Bug 1536238 - Expand mozprocess debug logging; r=whimboo
Add debug() for the process handler and process reader classes, and add a few
debug() calls that I am interested in.

Differential Revision: https://phabricator.services.mozilla.com/D23946

--HG--
extra : moz-landing-system : lando
2019-03-19 15:07:02 +00:00
Sam Sneddon 02fae301d6 Bug 1536410 - make mozlog grouped formatter use float math for computing suite time r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D24007

--HG--
extra : moz-landing-system : lando
2019-03-19 13:35:14 +00:00
pgadige 6def09df1e Bug 1524961 - Update mozlog's license to MPL 2.0. r=raphael
Differential Revision: https://phabricator.services.mozilla.com/D23407

--HG--
extra : moz-landing-system : lando
2019-03-19 10:59:24 +00:00
Nick Alexander 43dd4cef44 Bug 1521967 - Part 2: Drop sleeps in `mach raptor-test` when running locally. r=rwood
I don't know why we're sleeping around `certutil` invocations at all,
but let's at least not spend 10s of seconds doing nothing locally.

Differential Revision: https://phabricator.services.mozilla.com/D17398

--HG--
extra : moz-landing-system : lando
2019-03-18 16:50:57 +00:00
Nick Alexander 7a1c539e39 Bug 1521967 - Part 1: Use MOZ_HOST_BIN to find certutil in `mach raptor-test` for Android. r=rwood
Differential Revision: https://phabricator.services.mozilla.com/D17396

--HG--
extra : moz-landing-system : lando
2019-03-18 16:50:57 +00:00
Nupur Baghel 2c34e28fb4 bug 1529278: mozrunner: support macOS application bundle paths; r=ato 2019-03-15 16:22:37 +00:00
Kriti Singh 1301ea21a7 bug 1529282: mozrunner: support searching for Nightly’s default path on macOS. r=ato 2019-03-15 14:53:07 +00:00
Kriti Singh 4438287276 Bug 1529273 - replaces the current implementation of Profile::new with dedicated Profile::new and Profile::new_from_path. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D23310

--HG--
extra : moz-landing-system : lando
2019-03-13 16:42:23 +00:00
Tarek Ziadé 2f3c136a11 Bug 1534788 - add the playback_args option r=Bebe,rwood
This patch also removes custom_script and stops
executing start() in the constructor.

Differential Revision: https://phabricator.services.mozilla.com/D23288

--HG--
extra : moz-landing-system : lando
2019-03-13 14:50:03 +00:00
Florin Strugariu 5ee219394c Bug 1518447 Capture full Mitmproxy logs and have them available as treeherder artifact r=rwood,davehunt,tarek
Differential Revision: https://phabricator.services.mozilla.com/D21923

--HG--
extra : moz-landing-system : lando
2019-03-12 14:57:43 +00:00
Kartikaya Gupta 5486eb421d Bug 1533517 - [mozdevice] Remove FirefoxOS candidate test root paths. r=bc
Differential Revision: https://phabricator.services.mozilla.com/D22952

--HG--
extra : moz-landing-system : lando
2019-03-12 13:55:51 +00:00
Nikki S c1eaf010be mozlog: move the capture io class from web-platform/tests to mozlog (bug 1021926) r=jgraham
The ability to capture the parent process' stdio is suggested to be a useful feature
to move from web-platform/tests into mozlog. To do so, I have created a new capture.py
file within mozlog/mozlog. This includes the CaptureIO class and its dependencies,
including the LoggingWrapper and LogThread classes. These have been removed from their
original location, to avoid duplication, and the files depending on them updated
accordingly.

It would be useful to add unittests testing the CaptureIO enter and exit methods, and
the original_stdio, logging_queue and logging_thread properties. I have begun such a
file with test_capture.py in mozlog/tests. This is a work in progress, however I may
need some guidance, please, in regards to creating appropriate mock data to assert.

Differential Revision: https://phabricator.services.mozilla.com/D22166

--HG--
extra : moz-landing-system : lando
2019-03-12 10:21:12 +00:00
Andrew Erickson df02d36a9b Bug 1532434: don't hardcode host-utils path r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D22019

--HG--
extra : moz-landing-system : lando
2019-03-11 15:02:03 +00:00
Tarek Ziadé de084db3fd Bug 1533671 - Tweak some options in mozproxy r=Bebe
- adds playback_artifacts
- make playback_pageset_manifest optional
- adds the MOZPROXY_DIR environment variable

Differential Revision: https://phabricator.services.mozilla.com/D22663

--HG--
extra : moz-landing-system : lando
2019-03-08 13:23:28 +00:00
Tarek Ziadé 2b9f2e9f59 Bug 1533670 - extend download_file_from_url so it can extract archive r=Bebe
Adds archive extraction support to download_file_from_url (and also make it py3
compatible)

Differential Revision: https://phabricator.services.mozilla.com/D22662

--HG--
extra : moz-landing-system : lando
2019-03-08 13:25:09 +00:00
Tarek Ziadé b8a3774d97 Bug 1533488 - Fix typo in mozproxy setup.py - r=davehunt
Fix a typo.

Differential Revision: https://phabricator.services.mozilla.com/D22559

--HG--
extra : moz-landing-system : lando
2019-03-07 19:56:09 +00:00
Tarek Ziadé 5e459d846d Bug 1533309 - Correct process shutdown on setup error - r=Bebe
Make sure we shutdown the mitmproxy process in case the setup fails.

Differential Revision: https://phabricator.services.mozilla.com/D22467

--HG--
rename : testing/mozbase/mozproxy/tests/test.py => testing/mozbase/mozproxy/tests/test_proxy.py
extra : moz-landing-system : lando
2019-03-07 14:31:46 +00:00
Tarek Ziadé 9ed1006ca9 Bug 1528992 - extract raptor mitmproxy integration - r=rwood,Bebe,gbrown
This patch moves testing/raptor/raptor/playback into its own testing package in testing/mozbase/mozproxy
so we can use the proxy in other places than Raptor.

Differential Revision: https://phabricator.services.mozilla.com/D21200

--HG--
rename : testing/raptor/raptor/playback/__init__.py => testing/mozbase/mozproxy/mozproxy/__init__.py
rename : testing/raptor/raptor/playback/base.py => testing/mozbase/mozproxy/mozproxy/backends/base.py
rename : testing/raptor/raptor/playback/mitmproxy.py => testing/mozbase/mozproxy/mozproxy/backends/mitm.py
rename : testing/raptor/raptor/playback/mitmproxy-rel-bin-linux64.manifest => testing/mozbase/mozproxy/mozproxy/backends/mitmproxy-rel-bin-linux64.manifest
rename : testing/raptor/raptor/playback/mitmproxy-rel-bin-osx.manifest => testing/mozbase/mozproxy/mozproxy/backends/mitmproxy-rel-bin-osx.manifest
rename : testing/raptor/raptor/playback/mitmproxy-rel-bin-win.manifest => testing/mozbase/mozproxy/mozproxy/backends/mitmproxy-rel-bin-win.manifest
rename : testing/raptor/raptor/playback/mitmproxy_requirements.txt => testing/mozbase/mozproxy/mozproxy/backends/mitmproxy_requirements.txt
extra : moz-landing-system : lando
2019-03-06 17:13:21 +00:00
Florian Quèze a65779bd47 Bug 1529000 - add a way to provide environment variables to use at startup in mochitest manifests, r=ahal.
Differential Revision: https://phabricator.services.mozilla.com/D21726

--HG--
extra : moz-landing-system : lando
2019-03-06 19:03:51 +00:00
Andrew Erickson 9864393fc6 Bug 1530846: fix issue when installing hostutils r=gbrown
Per https://pythonhosted.org/six/index.html, urlopen resides in urllib.request.

Differential Revision: https://phabricator.services.mozilla.com/D21277

--HG--
extra : moz-landing-system : lando
2019-02-26 22:38:35 +00:00
Asfiya ce78b3d73a Bug 1166355 - HTML formatter generates correct link for the gecko revision to hg.mozilla.org r=jgraham
The HTML formatter now references the correct link and does not produce a 404 error

Differential Revision: https://phabricator.services.mozilla.com/D21207

--HG--
extra : moz-landing-system : lando
2019-02-26 14:00:56 +00:00
Narcis Beleuzu 977db21160 Backed out changeset 615d38401d49 (bug 1166355) for flake8 failure. CLOSED TREE 2019-02-26 14:42:18 +02:00
Asfiya 5d3428aca9 Bug 1166355 - HTML formatter generates correct link for the gecko revision to hg.mozilla.org r=jgraham
The HTML formatter now references the correct link and does not produce a 404 error

Differential Revision: https://phabricator.services.mozilla.com/D21207

--HG--
extra : moz-landing-system : lando
2019-02-26 11:35:23 +00:00
Geoff Brown 1fdf3c890e Bug 1529960 - [mozdevice] Retry pidof if no output; r=bc
On the Android 7.0 x86_64 emulator, pidof occasionally returns
no results for a running process. To guard against this case, mozdevice
retries exactly once.

Differential Revision: https://phabricator.services.mozilla.com/D20898

--HG--
extra : moz-landing-system : lando
2019-02-25 20:42:46 +00:00
Geoff Brown 35e32aae80 Bug 1530463 - [mozdevice] Update android version_codes up to Pie; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D21058

--HG--
extra : moz-landing-system : lando
2019-02-25 20:39:07 +00:00
Coroiu Cristina 0f56da86e3 Backed out changeset a465a9a1a913 (bug 1526752) for mochitest failures with ValueError: need more than 1 value to unpack 2019-02-22 15:32:03 +02:00
Dave Hunt bf8987e947 Bug 1526752 - [mozdevice] Run modernize over adb.py; r=ahal
Improve support for Python 3 by running modernize over adb.py and a few other related changes.

Differential Revision: https://phabricator.services.mozilla.com/D19306

--HG--
extra : moz-landing-system : lando
2019-02-22 12:33:14 +00:00
AndreiH d2f3c89b98 Bug 1428714 - [mozrunner] Add support for Python 3 r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D20486

--HG--
extra : moz-landing-system : lando
2019-02-22 10:16:17 +00:00
Geoff Brown b994aed230 Bug 1528361 - Avoid unnecessary error message from Android marionette/wpt tests when profile is missing r=bc
Differential Revision: https://phabricator.services.mozilla.com/D20739

--HG--
extra : moz-landing-system : lando
2019-02-22 00:21:27 +00:00
Andreea Pavel 41802224f4 Backed out changeset 1995ec00c434 (bug 1428714) for lint failure at mozrunner/utils.py on a CLOSED TREE 2019-02-20 16:19:58 +02:00
AndreiH 24d18c114c Bug 1428714 - [mozrunner] Add support for Python 3 r=ahal,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D18975

--HG--
extra : moz-landing-system : lando
2019-02-20 14:00:15 +00:00
Jan Henning 4dc81a9cde Bug 1527708 - Fix default emulator selection for ARM. r=gbrown
This bit of code annoyingly runs before we know whether we really need an
emulator or not, so the error blocks testing even with a real device.

Differential Revision: https://phabricator.services.mozilla.com/D19700

--HG--
extra : moz-landing-system : lando
2019-02-13 20:43:14 +00:00
Dave Hunt a7adf87dd6 Bug 1428706 - [mozcrash] Bump version number to 1.2.0 and prepare for release with Python 3 support; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D19133

--HG--
extra : moz-landing-system : lando
2019-02-11 15:51:24 +00:00
James Graham 13aadbebec Bug 1526990 - Bump mozprofile to 2.2, r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D19374

--HG--
extra : moz-landing-system : lando
2019-02-11 21:59:09 +00:00
Andrew Erickson cbb252c256 Bug 1519489 - remove the android 7.0 arm emulator r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D19095

--HG--
extra : moz-landing-system : lando
2019-02-08 01:26:25 +00:00
A. Wilcox cc96901400 Bug 1428706 - [mozcrash] Add support for Python 3; r=ted
Differential Revision: https://phabricator.services.mozilla.com/D19132

--HG--
extra : moz-landing-system : lando
2019-02-11 13:37:25 +00:00
James Graham ba9df1b470 Bug 1526973 - Bump mozrunner version to 7.3, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D19372

--HG--
extra : moz-landing-system : lando
2019-02-11 15:48:39 +00:00
Dave Hunt 4811b2cb05 Bug 1471920 - Fix Python 3 support in mozversion; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D18063

--HG--
extra : moz-landing-system : lando
2019-02-08 15:28:00 +00:00
Rob Wu 0e858ea76c Bug 1498636 - Separate "include" variables from manifest defaults r=ahal
Test manifests may be included by multiple other manifests, optionally
with additional variables below the `[include:...]` section header.
These additional variables are specific to the manifest that contained
the "include" section, and should not inadvertently be shared with other
manifests that also happen to include this manifest.

To achieve that, store the defaults for included manifests in a (path to
parent manifest, path to included manifest) tuple instead of just the
included manifest.

Differential Revision: https://phabricator.services.mozilla.com/D18086

--HG--
extra : moz-landing-system : lando
2019-02-07 15:10:25 +00:00