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

950 Коммитов

Автор SHA1 Сообщение Дата
Geoff Brown f8160809a8 Bug 1340233 - Take more care when killing browser before starting Android tests; r=jmaher
The devicemanager killProcess() is updated to use force-stop first, then
use kill if force-stop does not work.

Browser test harnesses are updated to check if killProcess() worked, and
warn if it failed.
2017-04-12 09:15:53 -06:00
Ting-Yu Chou 5dd0d99f75 Bug 1333003 part 6 - Fix test scripts to run ASan on Windows. r=ted
MozReview-Commit-ID: 6F9UXgTRb2Y

--HG--
extra : rebase_source : c618544db62381087f4190d3b12c57c340606b15
2017-03-10 12:08:34 +08:00
William Lachance dfdc5f2814 Bug 1353527 - Tag mozdevice 0.50 r=bc
MozReview-Commit-ID: 8MMuTDX7uBH

--HG--
extra : rebase_source : 6c632ad1cca513796b80d98050994ebb6d5cce6b
2017-04-04 16:44:07 -04:00
Geoff Brown 7d75784cbc Bug 1353537 - Update adb.py push() to always copy directories when pushing a directory; r=bc 2017-04-04 18:48:12 -06:00
Geoff Brown 7cc08b99a6 Bug 1352084 - Improve debug logging for 'mach android-emulator'; r=jmaher
Various minor improvements to aid debugging:
 - recommend --verbose on most common failure
 - in verbose mode, display platform
 - in verbose mode, display file creation date of binaries
 - in verbose mode, display sdk binary versions
 - remind of x86 vs arm emulator and need for corresponding apk
2017-04-04 09:45:19 -06:00
Maja Frydrychowicz 4c76df2d97 Bug 1349786 - Fix typo introduced in Bug 1322993; r=chmanchester
MozReview-Commit-ID: 2OB3yu4BBTs

--HG--
extra : rebase_source : 8cb0ce579255cd22c0522510fd1bfaf7251b1ac8
2017-03-24 10:16:48 -04:00
Wes Kocher 93d11e3441 Backed out 7 changesets (bug 1333003) for windows asan failures a=backout
Backed out changeset 3d2b2eeda8d3 (bug 1333003)
Backed out changeset 400d409ba4ca (bug 1333003)
Backed out changeset 1ba027abdfc9 (bug 1333003)
Backed out changeset 70114135bd8c (bug 1333003)
Backed out changeset 5715b15e33c0 (bug 1333003)
Backed out changeset 375e952bd738 (bug 1333003)
Backed out changeset d5d4112599f2 (bug 1333003)

MozReview-Commit-ID: DZUHJTdjX7V
2017-03-23 11:01:44 -07:00
Carsten "Tomcat" Book 187105652e Merge mozilla-central to autoland 2017-03-23 13:59:20 +01:00
Carsten "Tomcat" Book 9b6d088496 merge autoland to mozilla-central a=merge
--HG--
rename : browser/components/preferences/in-content/tests/browser_advanced_siteData.js => browser/components/preferences/in-content-old/tests/browser_advanced_siteData.js
rename : dom/media/mediasink/DecodedAudioDataSink.cpp => dom/media/mediasink/AudioSink.cpp
2017-03-23 13:42:40 +01:00
Carsten "Tomcat" Book d40c4b5e91 Backed out changeset 18fd8676751a (bug 1333003) 2017-03-23 10:38:04 +01:00
Wes Kocher b31e9e6a39 Merge inbound to central, a=merge
MozReview-Commit-ID: EQ7w1Gld1K2
2017-03-22 17:10:01 -07:00
Andrea Marchesini 507c00cb9f Bug 1343933 - Renaming Principal classes - part 4 - ContentPrincipal, r=qdot
--HG--
rename : caps/nsPrincipal.cpp => caps/ContentPrincipal.cpp
rename : caps/nsPrincipal.h => caps/ContentPrincipal.h
2017-03-22 11:39:31 +01:00
Ting-Yu Chou e8fe1839b7 Bug 1333003 part 6 - Fix test scripts to run ASan on Windows. r=ted
MozReview-Commit-ID: 6F9UXgTRb2Y

--HG--
extra : rebase_source : c618544db62381087f4190d3b12c57c340606b15
2017-03-10 12:08:34 +08:00
Ting-Yu Chou 9c1ec9c16c Bug 1333003 part 6 - Fix test scripts to run ASan on Windows. r=ted
MozReview-Commit-ID: 6F9UXgTRb2Y

--HG--
extra : rebase_source : ae28acf8b01688ca73b09b08769e35261c9365bd
2017-03-10 12:08:34 +08:00
Geoff Brown 8736cd834c Bug 1340584 - Remove test_b2g_fallback_when_no_binary; r=wlach 2017-03-21 12:20:03 -06:00
Geoff Brown df122d5bfa Bug 1340584 - Remove devicemanagerSUT and references to sutagent; r=wlach
sutagent is no longer built or used; devicemanagerSUT is completely
unused. After this change, devicemanagerADB is the only implementation of
devicemanager, and test harness options like --dm_trans are eliminated.
2017-03-21 12:20:01 -06:00
Carsten "Tomcat" Book 4fc85d9151 Merge mozilla-central to autoland 2017-03-22 16:11:34 +01:00
Maja Frydrychowicz 63a91ec1cf Bug 1322993 - Guard against deleting nonexistent directory during emulator cleanup; r=whimboo
MozReview-Commit-ID: 7hopCdbHhj1

--HG--
extra : rebase_source : 64fcb946246aa89a00d2039f3cfbf6cdf24c62fc
2017-03-15 15:10:58 -04:00
Wes Kocher efcef12931 Backed out changeset e73241bcb49a (bug 1340584) for Windows build failures a=backout CLOSED TREE
MozReview-Commit-ID: 22csfCgl7Wb
2017-03-16 10:25:15 -07:00
Geoff Brown ecc9668072 Bug 1340584 - Remove devicemanagerSUT and references to sutagent; r=wlach
sutagent is no longer built or usedr; devicemanagerSUT is completely
unused. After this change, devicemanagerADB is the only implementation of
devicemanager, and the --dmTrans and similar options have been removed
from test harnesses and mach commands.
2017-03-16 10:44:44 -06:00
Geoff Brown 7e2388e217 Bug 1347407 - Add an Android 7.0 AVD for mach android-emulator; r=me,test-only
Add support for 'mach android-emulator --version 7.0'. This AVD is somewhat
experimental but has worked well in my initial testing.
2017-03-16 10:44:42 -06:00
Maja Frydrychowicz dcf67352b6 Bug 1347483 - blessings package should not be downloaded during mach virtualenv setup; r=mshal
This fixes a regression introduced in Bug 1335873, which changes the mozbase
packages.txt to call mozlog's setup.py. Calling setup.py registers the
pytest_mozlog plugin for marionette-harness tests.

Instead, we can register the pytest-mozlog plugin via command-line arguments
to pytest, which are set in pytest.ini for the marionette-harness tests.
As a result, we can revert the mozbase packages.txt to not refer to mozlog's
setup.py

I'm leaving the pytest entry-point in mozlog's setup.py so that external
consumers don't have to register the pytest_mozlog plugin manually.

MozReview-Commit-ID: I5wNq5H1x3X

--HG--
extra : rebase_source : 614a47995bc1655f36053d2a05b08f94bfdbe476
2017-03-22 14:26:18 -04:00
Geoff Brown 834f5465ad Bug 1346423 - Add manifest for Android x86 6.0 AVD; r=me,test-only
This adds support for 'mach android-emulator --version x86-6.0', a fast,
modern Android emulation environment for testing x86 builds of Firefox.
2017-03-14 08:08:45 -06:00
Geoff Brown c8b0aec1da Bug 1346083 - Fix devicemanagerADB's pushDir() for adb >= 1.0.36 with links in directory; r=bc
To allow for pushing directories containing symbolic links, pushDir
now always copies the source directory to a temporary local copy
before pushing.

In addition, I have added error checking, so that pushDir will now fail
if its adb command fails and returns a non-0 status from _checkCmd.
2017-03-14 08:08:42 -06:00
Carsten "Tomcat" Book c1edc7067d merge mozilla-inbound to mozilla-central a=merge 2017-03-13 15:22:26 +01:00
Geoff Brown 7a0127e2d0 Bug 1326492 - Update avd manifests for 'mach android-emulator', r=jmaher
I created a new Android 4.3 AVD and uploaded it to tooltool. This new
AVD is compatible with the "new" emulator included in recent versions
of the Android SDK (circa Android SDK Tools 25). To avoid destabilizing
the emulator automated tests run via taskcluster and mozharness, I'm
creating a new tooltool manifest for the new AVD and using it only from
mach android-emulator.

For consistency, I'm creating separate but identical manifests for x86,
renaming the mach-only 6.0 manifest, and deleting the old 2.3 manifest.

--HG--
rename : testing/config/tooltool-manifests/androidarm_6_0/releng.manifest => testing/config/tooltool-manifests/androidarm_6_0/mach-emulator.manifest
2017-03-10 12:34:55 -07:00
Sebastian Hengst 757530a50d Backed out changeset 896205d8a760 (bug 1344346) 2017-03-09 18:35:41 +01:00
Andrew Halberstadt ed6750676b Bug 1344346 - [mozlog] Use less verbose formatting on 'process_output' messages, r=jgraham
This simplifies the 'process_output' formatting in both the mach and tbpl formatters. It will also
add the string 'pid' somewhere in the format, but only if the process id is actually a positive int.

MozReview-Commit-ID: 6nc5q06cDfM

--HG--
extra : rebase_source : 2c9ef125c19c06942a0c39d783151e8aa486a92c
2017-03-06 13:20:25 -05:00
Andrew Halberstadt 6b9bf4adbf Bug 1335873 - Convert marionette harness unittests to standard python unittests, r=maja_zf
This formats the marionette-harness python tests to be a regular |mach python-test| suite. Though
we add subsuite=marionette, this is just for automation purposes. The new preferred way to run the
marionette harness tests locally is:
./mach python-test testing/marionette

They will also run if running the full suite.

The mozbase packages.txt file modifies mozlog to use 'setup.py' instead of 'pth'. The reason for
this is that the marionette-harness tests use the pytest_mozlog pytest plugin for formatting
their results (converts pytest format into something resembling the standard tbpl logging format).
In order for this plugin to get picked up however, mozlog's setup.py file needs to be processed.

MozReview-Commit-ID: Ata99evHxbd

--HG--
extra : rebase_source : 22382e3d65ce8454a1682cfced0d03477762e8fe
2017-02-15 16:38:45 -05:00
Andrew Halberstadt 9e94d21674 Bug 1335873 - Ignore MozconfigFindException when looking for a mozinfo.json, r=maja_zf
This gets raised when trying to run the marionette-harness python tests without an objdir.
It's safe to ignore because mozinfo.json will still be found via the 'dirs' variable which
gets passed in from the marionette harness.

MozReview-Commit-ID: Ata99evHxbd

--HG--
extra : rebase_source : 6e3910667146b9caf0a9abe9a707b34627ba272b
2017-02-15 16:37:58 -05:00
Andrew Halberstadt eb7f8a46ec Bug 1344346 - [mozlog] Use less verbose formatting on 'process_output' messages, r=jgraham
This simplifies the 'process_output' formatting in both the mach and tbpl formatters. It will also
add the string 'pid' somewhere in the format, but only if the process id is actually a positive int.

MozReview-Commit-ID: 6nc5q06cDfM

--HG--
extra : rebase_source : d2c84e838b8b76b1b607a3beace02843085fca26
2017-03-06 13:20:25 -05:00
Iris Hsiao effe8f959a Backed out 3 changesets (bug 1344346) for mochitest shutdownleaks
Backed out changeset 71e3443cdc43 (bug 1344346)
Backed out changeset cd8993e4d0dd (bug 1344346)
Backed out changeset 8e03e57d44aa (bug 1344346)
2017-03-10 10:44:13 +08:00
Andrew Halberstadt ab8925b67f Bug 1344346 - [mozlog] Use less verbose formatting on 'process_output' messages, r=jgraham
This simplifies the 'process_output' formatting in both the mach and tbpl formatters. It will also
add the string 'pid' somewhere in the format, but only if the process id is actually a positive int.

MozReview-Commit-ID: 6nc5q06cDfM

--HG--
extra : rebase_source : 67a435b653eed3cd374037f4bd30e1f65bf5615a
2017-03-06 13:20:25 -05:00
Sebastian Hengst 9da116023c Backed out changeset caacf82afba1 (bug 1335873) for failing spidermonkey pkg due to not finding new file python.ini. r=backout 2017-03-01 17:35:45 +01:00
Sebastian Hengst 964fc701a8 Backed out changeset 3c0a7527608a (bug 1335873) 2017-03-01 17:35:06 +01:00
Andrew Halberstadt 0fa9f19bdf Bug 1335873 - Convert marionette harness unittests to standard python unittests, r=maja_zf
This formats the marionette-harness python tests to be a regular |mach python-test| suite. Though
we add subsuite=marionette, this is just for automation purposes. The new preferred way to run the
marionette harness tests locally is:
./mach python-test testing/marionette

They will also run if running the full suite.

The mozbase packages.txt file modifies mozlog to use 'setup.py' instead of 'pth'. The reason for
this is that the marionette-harness tests use the pytest_mozlog pytest plugin for formatting
their results (converts pytest format into something resembling the standard tbpl logging format).
In order for this plugin to get picked up however, mozlog's setup.py file needs to be processed.

MozReview-Commit-ID: Ata99evHxbd

--HG--
extra : rebase_source : 16ed70edd38a53c3279d8632d7cba3df4d5216c3
2017-02-15 16:38:45 -05:00
Andrew Halberstadt 640509a3a9 Bug 1335873 - Ignore MozconfigFindException when looking for a mozinfo.json, r=maja_zf
This gets raised when trying to run the marionette-harness python tests without an objdir.
It's safe to ignore because mozinfo.json will still be found via the 'dirs' variable which
gets passed in from the marionette harness.

MozReview-Commit-ID: Ata99evHxbd

--HG--
extra : rebase_source : 10731561f644aa563c85ed4a8f70759e64eb4ed2
2017-02-15 16:37:58 -05:00
James Graham f8d7a25a76 Bug 1342954 - fixup formatting to keep flake8 happy, a=bustage
MozReview-Commit-ID: xY96Ttr4pz
2017-02-28 14:50:55 +00:00
Andrew Halberstadt c53ca9353d Bug 1340551 - [mozlog] Add test group (manifest) information to test harness error summaries, r=jgraham
This modifies the errorsummary formatter to make use of the new keyed-by-group tests field in the suite_start
message.

MozReview-Commit-ID: 1lcw62fmofa

--HG--
extra : rebase_source : fb6e5b02ae7f6f9201625f4392c8f4f7629023c2
2017-02-22 14:36:10 -05:00
Andrew Halberstadt dc228ea415 Bug 1340551 - [mozlog] Change 'tests' field in suite_start action to a dict of tests keyed by group name, r=jgraham
In suite_start, tests is currently a list of test ids. But to support a new 'test-centric' treeherder view, we need to
be able to map tests to their manifests somewhere in the structured log, and the suite_start tests field seemed like a
good spot.

Because not all test suites use manifests, this is being called a "group" so it could potentially be re-used with
directories, tags or subsuites.

MozReview-Commit-ID: 2Sc7nqJrWts

--HG--
extra : rebase_source : d999df4c137b4752f118017a5db337e2ba6b467d
2017-02-22 11:46:09 -05:00
Andrew Halberstadt b5de92b51f Bug 1340551 - [mozlog] Introduce concept of ContainerType in logtypes and allow nested containers, r=jgraham
Currently the List and Tuple DataTypes must specify what items they contain. But there's no way to specify
item types recursively, e.g List(Tuple(Int, Int)). Also the Dict type can't specify the item types it must
contain either. Dict is a special case because we may want to control both keys and values.

This patch formalizes a ContainerType (of which List, Tuple and Dict are subclasses).

MozReview-Commit-ID: Bouhy1DIAyD

--HG--
extra : rebase_source : e7b26f4411861fc3065b4b5b746f05172f70d455
2017-02-21 14:24:14 -05:00
James Graham e8fcba4845 Bug 1342954 - Improve ERROR handling in pytest_mozlog r=davehunt
Not all report objects are strings, tuples or have a .crashrepr
property. In particular some brokeness in wdspec test setup produced
an object with a .errorstring property. Handle that and the general
case of being passed a weird object more gracefully.

MozReview-Commit-ID: 8vfuNNmwjhC

--HG--
extra : rebase_source : d7dd7ed6f76353df3bc82ed5b5bbd7d29cc4828e
2017-02-27 16:56:48 +00:00
Carsten "Tomcat" Book 2b24bba0a1 Merge mozilla-central to autoland 2017-02-17 13:28:16 +01:00
Sam Giles eda63b77d4 Bug 1340429 - Bump mozprocess to 0.24; r=jgraham
MozReview-Commit-ID: G3473IJp0i2

--HG--
extra : rebase_source : c74a707cef891135da77ffb7dd2854c0159265ff
2017-02-17 05:53:06 +00:00
Wes Kocher adaec16e2b Merge m-c to inbound, a=merge
MozReview-Commit-ID: HtopB4vot9e
2017-02-16 17:23:00 -08:00
Sam Giles 8c1f7ef5cc Bug 1329528 - Reap zombie processes on Mac OS if killing the process group initially fails with EPERM; r=ahal
MozReview-Commit-ID: IKqXKIN0mXx

--HG--
extra : rebase_source : 40e012f3cbeca139e15ce23e33f4c131f1e4d6cd
2017-02-16 06:18:17 +00:00
Geoff Brown cf5c7a3dc7 Bug 1340175 - Remove WRITE_CONTACTS permission from Android mozrunner; r=sebastian 2017-02-16 15:31:22 -07:00
Dave Hunt cdfdefb10c Bug 1338531 - [mozlog] Collect tests when using pytest-xdist and send suite_start when the first test starts. r=ahal
When using pytest-xdist we need to gather the tests for each slave. Lack of a better hook means I'm then using the first test start to log the suite_start message including the collected tests.

MozReview-Commit-ID: 7l22z9RvIhx

--HG--
extra : rebase_source : c5002956ae81585b47dc19c571a57a7641d8ce9b
2017-02-13 18:46:10 +00:00
Dave Hunt 04f0d97d56 Bug 1338528 - [mozlog] Remove formatting of node ID to allow classes and reduce chance of duplicates. r=ahal
Stripping the path from the test file could cause duplicates if two files had the same name in different directories. Splitting on '::' also causes an issue when test classes are used and there are too many values to unpack.

MozReview-Commit-ID: Ex5nHl3SGaQ

--HG--
extra : rebase_source : 13198d8a886928402b6b079c441e8b1d675ebfa1
2017-02-10 18:48:22 +00:00
Dave Hunt d64e51a5f5 Bug 1340092 - [mozlog] Add metadata from pytest-metadata plugin if installed to suite_start. r=ahal
If the optional pytest-metadata plugin is installed, add the metadata as run_info when logging the suite_start to give additional context to the results.

MozReview-Commit-ID: 1MeXZTmzvyp

--HG--
extra : rebase_source : e5f9fd4fddc2bbe2cc8fbf76b4f2a5034a14e722
2017-02-16 01:54:25 +00:00