Commit Graph

1586 Commits

Author SHA1 Message Date
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