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

1273 Коммитов

Автор SHA1 Сообщение Дата
Dave Hunt 4d7f8fd972 Bug 1428362 - Run modernize against mozlog to support Python 3; r=ahal
MozReview-Commit-ID: 6BxTt4eGmfc

--HG--
extra : rebase_source : 2185715e8664288a9847dd81695fdb1640ee32eb
2018-05-31 13:35:19 +01:00
Geoff Brown 897d7e1991 Bug 1470177 - Ensure numeric comparison of timeout in adb.py; r=bc 2018-06-25 10:09:48 -06:00
Dave Hunt 11afa9eaef Bug 1470122 - Bump mozinstall to 1.16.0; r=whimboo
MozReview-Commit-ID: LtxU2upM8Oo

--HG--
extra : rebase_source : 9ca85c85b220ad797a02c113c4d8e16f4d81f88d
2018-06-21 13:26:41 +01:00
Geoff Brown 1e82c592a2 Bug 1466657 - Retry Android 'ps' command on unexpected output; r=bc
On the Android x86 emulator, Android 7.0, ps infrequently fails, returning
no output and 0 exit code. Retries are usually effective.
2018-06-18 06:47:30 -06:00
Geoff Brown d4345ee2d8 Bug 1468532 - Disable chatty during Android tests; r=bc 2018-06-18 06:47:29 -06:00
Andreas Tolfsen 26a47a902a Bug 1441204 - Release mozrunner 0.7.0. r=maja_zf
MozReview-Commit-ID: HszLaFJv2w5

--HG--
extra : rebase_source : d3b32046bb8c6c5db4c578a84ee91ab270e2efbc
2018-06-14 13:26:59 -07:00
Andreas Tolfsen 14a4db48fa Bug 1441204 - Upgrade rust-ini from 0.10.2 to 0.10.3. r=maja_zf
MozReview-Commit-ID: DZp1wg7uVLN

--HG--
extra : rebase_source : 6e90df2a83accff53d021303e9bafc46aa1afe98
2018-06-14 13:05:30 -07:00
Andreas Tolfsen 3239875a26 Bug 1466573 - Start Firefox with -foreground and -no-remote. r=jgraham
Start Firefox with -foreground and -no-remote arguments if they
have not already been given by the user.

-foreground will ensure the application window gets focus when
Firefox is started, and -no-remote will prevent remote commands to
this instance of Firefox and also ensure we always start a new instance.

MozReview-Commit-ID: LGEqgyHYapc

--HG--
extra : rebase_source : 50054e89106421dc6b43bc1f109dc75db37dfd2d
2018-06-05 18:02:34 +01:00
Andreas Tolfsen 93b417ca3d Bug 1466573 - Avoid resetting stdout + stderr. r=jgraham
The std::process::Command's stdout and stderr is configured earlier in
::start(), and resetting it to a static value below would invalidate the
configured stdout and stderr stored in FirefoxRunner::stdout and ::stderr.

We did not notice this bug because geckodriver does not
yet use this feature.  It was added as a precursor for
https://bugzilla.mozilla.org/show_bug.cgi?id=1466573.

MozReview-Commit-ID: CmwqCZpEMqq

--HG--
extra : rebase_source : 209d7cdde8b05db9b7e6f02b221c32a436f2ecdf
2018-06-05 15:08:52 +01:00
Andreas Tolfsen 9dbf303c69 Bug 1466573 - Write profile prefs before constructing command. r=whimboo
MozReview-Commit-ID: 5XWglxjQvZh

--HG--
extra : rebase_source : 98f68088fe81746e7e878c1fa6b8fea3fb3dd150
2018-06-05 15:08:07 +01:00
Rob Wood 7d987c78c3 Bug 1460743 - Don't install testing/profiles on Google Chrome; r=ahal
MozReview-Commit-ID: HW8iqfTDcd0

--HG--
extra : rebase_source : 27bc06df77ff699cedeab309050d690d09f25ccd
2018-06-06 13:28:54 -04:00
Andreas Tolfsen 16e1247e4d Bug 1467728 - Fix mozrunner build on macOS. r=whimboo
Bug 1464995 broke mozrunner on macOS, but we did not notice because
geckodriver is not compiled on macOS.  This fixes the build.

MozReview-Commit-ID: GnvZTT30wHG

--HG--
extra : rebase_source : 6e5b5b37d0c962c75a2a4b41c004f9cf47c2e8a2
2018-06-08 14:24:58 +01:00
Geoff Brown 619e1afee0 Bug 1433308 - Change mach android-emulator default to x86-7.0; r=me,a=test-only
The x86-7.0 avd is great and offers much better performance than the arm 4.3
configuration. 7.0 is okay if you need arm / are in an arm context.
2018-06-07 17:00:48 -06:00
Geoff Brown bf2dcd9a16 Bug 1433308 - Remove Android 6.0/x86-6.0 options for mach android-emulator; r=me,a=test-only
mach android-emulator currently supports 6 different avds; I am struggling to maintain
that many configurations. I don't see a lot of value in keeping both 6.0 and 7.0,
and Android 6.0 is not as popular as 7.0. Let's remove 6.0, encouraging 7.0 as an
alternative; same for x86-6.0 -> x86-7.0.
2018-06-07 17:00:45 -06:00
Andreas Tolfsen 16b85ecaa0 Bug 1464995 - Ensure found Firefox is an executable binary. r=jgraham,whimboo
mozrunner fails to locate the correct binary if Firefox is found
under a "firefox" or "firefox-bin" (depending on the system)
because it thinks the parent directory is the executable.

On Unix systems, mozrunner also falsely reports non-executable
files as valid binaries.

This patch introduces a new mozrunner::path module that provides
two functions: one for searching the system path for a binary by a
given name, and another for checking whether a path is an executable
binary file.

MozReview-Commit-ID: 6N06CXZZWqd

--HG--
extra : rebase_source : dbcb4d6d8478bafc23c1aa2a3081589074908bbc
2018-05-29 17:10:26 +01:00
Andreas Tolfsen eb6512097e Bug 1464995 - Minor readability lints. r=whimboo
Removes an unnecessary as_ref() cast, a path coercion, and replaces
try!() with ?.

MozReview-Commit-ID: ASd9kNxDZ3n

--HG--
extra : rebase_source : fa88def64fc3c7ea4520403bfc7b5c391d7f83da
2018-05-29 17:10:07 +01:00
Andreas Tolfsen 50aa8dc506 Bug 1464995 - Document mozrunner::firefox_default_path(). r=whimboo
The method we use to find the Firefox binary varies from platform
to platform.  It can be useful to document how each of the system
specific implementations are meant to work.

MozReview-Commit-ID: 4SrNmlp3AdS

--HG--
extra : rebase_source : f1d54548edb416912af3a0a6d41188d0640a3ffb
2018-05-29 17:08:14 +01:00
Andreas Tolfsen 4b4f54e830 Bug 1465527 - Print stacks from parent tests in mach formatter. r=jgraham
Parent tests may also have stacktraces and this patch prints and
formats them the same way we do for subtests' stacks.

MozReview-Commit-ID: 64gfPWuQnHd

--HG--
extra : rebase_source : 6a37eda231091d66a92226c3ebadb7b7980766be
2018-05-30 18:29:35 +01:00
Dave Hunt f6a3ef5b8c Bug 1388013 - Remove restriction of Python 2 in mozrunner; r=ahal
MozReview-Commit-ID: 1ARx4Jy2Z83

--HG--
extra : rebase_source : cd401029f79fb8792a0ce5b42947feadf2645cc9
2018-05-30 13:21:51 +01:00
Andreea Pavel dd5cd1d832 Backed out 3 changesets (bug 1388013) for build bustages e.g. ../python/mozbuild/mozpack/test/test_files.py on a CLOSED TREE
Backed out changeset eea857170a41 (bug 1388013)
Backed out changeset c55bfefbd4e1 (bug 1388013)
Backed out changeset 3a163da2b21b (bug 1388013)
2018-05-31 11:48:19 +03:00
Dave Hunt 0fe264f656 Bug 1388013 - Remove restriction of Python 2 in mozrunner; r=ahal
MozReview-Commit-ID: 1ARx4Jy2Z83

--HG--
extra : rebase_source : 4de2a3f53dad010bdc2f1c0dc0050c279517c720
2018-05-30 13:21:51 +01:00
Joel Maher 9e5d9c55f5 Bug 1442790 - fix test-verify to not fail on: 'No checks run.'. r=ahal 2018-05-28 06:44:24 -04:00
James Graham bf28f809d2 Bug 1265584 - Fix logging of unexpected assertions with mach formatter, r=ahal
MozReview-Commit-ID: Dk1ahUYyYIm
2018-05-25 11:58:00 +01:00
Joel Maher 28e3660b54 Bug 1400895 - Better try support for test-verify. r=ahal 2018-05-23 10:00:03 -04:00
Andrew Halberstadt 4296f8c8f5 Bug 1461980 - [taskgraph] Use run-task's 'use-artifacts' key to setup artifacts in mochitest and reftest selftests, r=dustin
Instead of downloading the build artifacts (rather hackily) in moztest.fixtures, this now happens
directly in the taskgraph module via the run-task script.

For now extraction and setup happens in the task's command key. It might be a good idea to figure
out a syntax to tell run-task to do this extraction, e.g something like:

run:
    using-artifacts:
        build:
            target.tar.bz2:
                extract: true
                path: /home/worker/build
                name: firefox

But for now I wanted to avoid this extra complexity, so maybe it could be done in a follow-up.

MozReview-Commit-ID: KOhFFpFdP7Y

--HG--
extra : rebase_source : dcea36661fa9c6442c76c850ccc67f8f6d924fda
2018-05-18 08:22:36 -04:00
Rob Wu 90138813b0 Bug 1462936 - Use QEMU 2 engine for android-emulator for x86-6.0 and x86-7.0 r=gbrown
Before this patch, the x86-6.0 and x86-7.0 Android emulators were
unusable on macOS (tested 10.13.4 High Sierra).
The emulator's UI appears (but with black screen), and the launcher
icon in the dock has a default folder icon instead of the emulator.

When I use "mach android-emulator --version=x86-6.0 --verbose",
then the full emulator command is printed. I discovered that
using the newer QEMU 2 engine ("-engine qemu2") fixes the issue, and
that the emulator launches as expected. This option is documented at:
https://developer.android.com/studio/run/emulator-commandline

However, when I modify the source of these commands, then the emulator
fails to start (as before). This is caused by the setpgid call via
preexec_fn in testing/mozbase/mozprocess/mozprocess/processhandler.py .
Passing ignore_children=True to ProcessHandler avoids the setpgid call
and allows the emulator to be used as expected on macOS.

The effect of not using setpgid is that the spawned process will not
be put in the process group of the "mach" Python script. This is not
a big deal. I can confirm that the emulator can still be killed by
quitting or force-quitting it, and did not experience other issues.

MozReview-Commit-ID: 4AKVqtwIoCj

--HG--
extra : rebase_source : df6615a32de666d0f9d4f27c1c6f462120364ee2
2018-05-19 21:48:50 +02:00
Gregory Szorc 0084dc7475 Bug 1461221 - Account for psutil.disk_io_counters() returning None; r=mshal
Apparently it can do this.

MozReview-Commit-ID: 6gMTGtcRAw6

--HG--
extra : rebase_source : 1e89583b3c15c85d1c86969f101358864c0e2e34
2018-05-15 12:02:46 -07:00
Andreas Tolfsen 95f8f2a563 Bug 1461101 - Remove unused .gitignore file. r=whimboo
Following the move to use cargo worktrees in central, the .gitignore
file for mozversion is not used anymore since we no longer generate
testing/mozbase/rust/mozversion/target on building.

MozReview-Commit-ID: 72geBjNxjZl

--HG--
extra : rebase_source : d7f11b33c91407e97416344ca1a2d0f06aa573d3
2018-05-12 14:08:07 +01:00
Geoff Brown ec356d3b70 Bug 1459351 - Warn when 'mach android-emulator' tries to start an x86 emulator without kvm; r=jmaher 2018-05-08 07:38:55 -06:00
Andrew Halberstadt 6afabae0cc Bug 1451159 - [mozprofile] Implement ability to merge other profile directories into the current one r=gbrown
MozReview-Commit-ID: EHOFU58Ipa2

--HG--
extra : rebase_source : 081f46d8a05b7842529780dc593979f188eb7eeb
2018-04-19 15:31:43 -04:00
Bogdan Tara b7924c2ed2 Backed out 4 changesets (bug 1451159) for linux build bustages CLOSED TREE
Backed out changeset 72926ae685af (bug 1451159)
Backed out changeset f90a99682382 (bug 1451159)
Backed out changeset 3914937893de (bug 1451159)
Backed out changeset 79931e4a2bfb (bug 1451159)

--HG--
rename : testing/profiles/common/user.js => testing/profiles/prefs_general.js
2018-05-04 00:25:56 +03:00
Andrew Halberstadt fe14ba967c Bug 1451159 - [mozprofile] Implement ability to merge other profile directories into the current one r=gbrown
MozReview-Commit-ID: EHOFU58Ipa2

--HG--
extra : rebase_source : b54821fda2a1fa8019456077d06791d7557c10e0
2018-04-19 15:31:43 -04:00
Geoff Brown 708384fcaa Bug 1457662 - [mozdevice] Use separate file object to read shell output for callback; r=bc 2018-04-30 17:58:24 -06:00
Geoff Brown 37cbed2df7 Bug 1457600 - Version bump for mozrunner; r=rwood
In bug 1440714, mozdevice had its version bumped to 1.0.0, outside of the required
range in mozrunner's deps, causing in-tree breakage. Subsequently, I changed mozrunner's
dep list to allow for mozdevice 1.0.0, and released mozdevice 1.0.0 on pypi. Now I need
to update mozrunner on pypi with the updated deps, so require a mozrunner version bump.
2018-04-30 07:18:29 -06:00
Henrik Skupin 507cc07062 Bug 1455241 - [mozinstall] Detach mounted image in install() if path contains space. r=gbrown
MozReview-Commit-ID: GOhiqQUzsRL

--HG--
extra : rebase_source : 010414f025623322ca2c26b63c1399e0c0ada514
2018-04-27 14:00:20 +02:00
Henrik Skupin 8dba930c7a Bug 1455241 - [mozinstall] Convert unit tests to pytest format. r=gbrown
MozReview-Commit-ID: T7vIhDwdC

--HG--
rename : testing/mozbase/mozinstall/tests/Installer-Stubs/firefox.dmg => testing/mozbase/mozinstall/tests/installer_stubs/firefox.dmg
rename : testing/mozbase/mozinstall/tests/Installer-Stubs/firefox.tar.bz2 => testing/mozbase/mozinstall/tests/installer_stubs/firefox.tar.bz2
rename : testing/mozbase/mozinstall/tests/Installer-Stubs/firefox.zip => testing/mozbase/mozinstall/tests/installer_stubs/firefox.zip
rename : testing/mozbase/mozinstall/tests/test.py => testing/mozbase/mozinstall/tests/test_install.py
extra : rebase_source : ea6e6a23e844b3fd421dc9e88445126c7567ac03
2018-04-27 13:44:21 +02:00
Geoff Brown f3a5cf22ea Bug 1440714 - Follow-up: Update mozrunner's mozdevice requirements; r=me on a CLOSED TREE 2018-04-26 12:30:23 -06:00
Geoff Brown 9110a81757 Bug 1440714 - Bump mozdevice version to 1.0.0; r=bc 2018-04-26 10:43:08 -06:00
Geoff Brown 53fdf724bf Bug 1440714 - Remove DeviceManagerADB and Droid classes from mozdevice; r=bc 2018-04-26 10:43:08 -06:00
Geoff Brown 4f07c8ba29 Bug 1440714 - Convert Android marionette tests to use adb.py; r=bc 2018-04-26 10:43:08 -06:00
Andrew Swan 7b20ac46dc Bug 1433574 Remove startup addon update check r=kmag
MozReview-Commit-ID: AjcRaDqjDNy

--HG--
extra : rebase_source : 6c70243496248b617d3bf5d7244388d0c30004f8
2018-04-23 14:59:11 -07:00
Dave Hunt 61727fdba5 Bug 1454514 - [mozversion] Convert tests to pytest format; r=ahal
MozReview-Commit-ID: AchB3EUEZ33

--HG--
extra : rebase_source : 6de5fdaa5e6736717f5738fed0cce233629b82d0
2018-04-16 23:37:22 +01:00
Brindusan Cristian 667fae7dc8 Merge inbound to mozilla-central. a=merge 2018-04-17 12:53:33 +03:00
Geoff Brown ce07cbb7d8 Bug 1452239 - adb.py - support output callbacks; r=bc
The output callback will be used by geckoview-junit tests, bug 1445716.
2018-04-16 14:05:29 -06:00
Andrew Halberstadt e633e6ba44 Bug 1453496 - [mozprofile] Bump version to 1.0.0 for Addon installation changes, r=gbrown
This is mainly to pick up bug 1448221 since the version of mozprofile on pypi can't
install addons with nightly anymore (due to the profile/extensions/staged directory
not being supported).

But since that change I've also landed several backwards incompatible API changes to
how addons are installed.

Bumping to 1.0.0 because I'd like us to start (attempting) to follow SemVer:
https://semver.org/

MozReview-Commit-ID: FDIPqNnSKJ6

--HG--
extra : rebase_source : 4e083b77802c97b85436410b40225ad234b9e7fb
2018-04-11 20:57:37 -04:00
Andrew Halberstadt e35a19ff81 Bug 1445944 - [mozbase] Bump mozprofile and mozrunner version numbers r=rwood
Neither package has any backwards incompatible changes. However, I decided to
bump the major version for mozrunner as this is the first time it's switching
to SemVer (mozprofile already made the switch). It seemed cleaner to have the
switch happen after a major bump.

In both cases, I've added major version upper limit guards to each dependency.
This way we won't break these packages in the future when we land backwards
incompatible changes to the dependendencies.

MozReview-Commit-ID: 5SIpMGTS3cc

--HG--
extra : rebase_source : 43ab4c9f3af50eb82a22ec3112e5b56fe703dbc6
2018-04-13 18:22:46 -04:00
Andrew Halberstadt a1af153708 Bug 1445944 - [mozprofile] Create a new ChromeProfile class for managing chrome profiles r=rwood
In Chrome it doesn't seem to be possible to install extensions by dropping them
in the profile directory. Instead we use the --load-extension command line
argument. To that end the ChromeProfile uses a 'dummy' AddonManager() class
that is actually just a list with an 'install' method. Mozrunner will be
responsible for building the command line based on this list.

We also need a few other command line arguments to build and create a temporary
profile directory.

MozReview-Commit-ID: HC2p2ZZMl66

--HG--
extra : rebase_source : 2d748893e8530a312afb5d8b1442a4c29f93caf1
2018-04-13 13:28:30 -04:00
Andrew Halberstadt e29aebf0d9 Bug 1445944 - [mozprofile] Pull functionality out of Profile and into an abstract 'BaseProfile' class r=rwood
In addition to Profile, this will be implemented by the ChromeProfile class in
the next commit. This way we can test for 'isinstance(profile, BaseProfile)'
when we just want to test for a profile regardless of application.

Ideally I would have preferred 'Profile' itself to be the base class (and co-opt
FirefoxProfile to be the new defacto class for firefox profiles), but this would
break backwards compatibility.

MozReview-Commit-ID: 6TTFq2PQOGM

--HG--
extra : rebase_source : 57651887061ec52b176729109271ee2e23552cdb
2018-04-13 13:26:41 -04:00
Andrew Halberstadt 198dd77c3a Bug 1445944 - [mozprofile] Add a 'create_profile' helper method for instanting an instance from an app r=rwood
This will make it a bit easier for consumers to create a profile instance. They
can just call:

    profile = create_profile('firefox', prefs=...)

Instead of needing to first find the class, then do the instantiation.

MozReview-Commit-ID: 7FqAGsSyZVe

--HG--
extra : rebase_source : 3172189618d6948959edfc61d6782373d27a2cbb
2018-04-12 12:40:47 -04:00
Andrew Halberstadt d0deb3a47c Bug 1445944 - [mozprofile] Convert mozprofile unittests to the pytest format r=davehunt
This is a much cleaner and easier to understand test format. It will also make
it easier to add tests for the upcoming ChromeProfile changes.

MozReview-Commit-ID: DizKGt0qkPF

--HG--
rename : testing/mozbase/mozprofile/tests/addonid.py => testing/mozbase/mozprofile/tests/test_addonid.py
rename : testing/mozbase/mozprofile/tests/bug758250.py => testing/mozbase/mozprofile/tests/test_bug758250.py
rename : testing/mozbase/mozprofile/tests/permissions.py => testing/mozbase/mozprofile/tests/test_permissions.py
rename : testing/mozbase/mozprofile/tests/server_locations.py => testing/mozbase/mozprofile/tests/test_server_locations.py
extra : rebase_source : 07953fd02a8592ed31e1972d646ff93bfd25d80b
2018-04-13 11:06:10 -04:00
Andrew Halberstadt 3d3df5c730 Bug 1445944 - [mozrunner] Create a base BlinkRuntimeRunner and add a ChromeRunner to the runners list r=rwood
This allows consumers to bootstrap Chrome with mozrunner. For now the profile implementation
is just an empty class but this will be expanded in a future commit.

MozReview-Commit-ID: 1Z14FudH0JJ

--HG--
extra : rebase_source : b593965a6bd725b133adf42ff31d61726bcff520
2018-04-12 22:29:17 -04:00
Andrew Halberstadt 07297de09a Bug 1445944 - [mozrunner] Convert mozrunner unittests to the pytest format r=davehunt
This will make it easier to add the ChromeRunner tests in the next couple of
commits.

MozReview-Commit-ID: 2Nfz92FStSX

--HG--
rename : testing/mozbase/mozrunner/tests/mozrunnertest.py => testing/mozbase/mozrunner/tests/conftest.py
extra : rebase_source : 27837679b744e7f765fdb2d4f43d4bab14fb2dc0
2018-04-12 15:14:03 -04:00
Andrew Halberstadt 11c250e87b Bug 1445944 - [mozrunner] Remove ability to specify the 'wrap_command' function on an Application context r=rwood
This is a leftover artifact from the B2G days that isn't being used anymore.

MozReview-Commit-ID: FZoTwHltmAG

--HG--
extra : rebase_source : 455450f360fa222522f365118d1e687528e08b69
2018-04-12 12:08:05 -04:00
Andrew Halberstadt bcf900bf38 Bug 1445944 - [moztest] Update shared test fixtures so they can work outside of mozilla-central r=rwood
This isn't strictly related to this bug, but it is a change made to mozbase in
the raptor repo that is worth backporting here. Figured it's easiest to land it
alongside the other mozbase backports.

MozReview-Commit-ID: DW7I2zKZZNk

--HG--
extra : rebase_source : a000d27774f224d37f981d6683d96c65846b8a32
2018-04-12 12:03:16 -04:00
Dave Hunt a9ba788f0b Bug 1454338 - [mozversion] Remove support for B2G; r=ahal
MozReview-Commit-ID: 9CJ8arQiZtf

--HG--
extra : rebase_source : b29ff46e1cef9073cb6c4c0080b30a2b7ce884ad
2018-04-16 13:16:17 +01:00
Bob Clary fd49545585 Bug 1440714 - make sure to use root=True when determining/creating test_root, r=gbrown 2018-04-10 23:12:29 -07:00
Coroiu Cristina c22c3be855 Merge inbound to mozilla-central a=merge 2018-04-11 00:56:08 +03:00
Geoff Brown 3680684f70 Bug 1452694 - Use TestRunnerActivity for geckoview mochitest/reftest; r=bc
This makes the changes necessary to use TestRunnerActivity when geckoview
is installed and requested, but we do not yet attempt to run any such
test tasks in automation.
2018-04-10 13:26:11 -06:00
Andrew Halberstadt 823b6dea94 Bug 1452769 - [mozprofile] Fix a couple of missed instances of 'addon_manager' leftover after bug 1451733, r=jmaher
I missed a couple of references in cleanup code. This wouldn't have caused any
failures but might result in addons not being cleaned up properly.

MozReview-Commit-ID: BX0oX2GRGWT

--HG--
extra : rebase_source : 2193adb4e96b8e70faa6ffb1afd6db698b10ad2d
2018-04-09 17:05:27 -04:00
Henrik Skupin 45a5fa3432 Bug 1452864 - [mozfile] Always use Unicode delimiters for tree() output. r=gbrown
MozReview-Commit-ID: E44O1NGM7Mg

--HG--
extra : rebase_source : c3d5932b05ad9099fb563a3ab69c3a610f26755e
2018-04-10 10:22:27 +02:00
Henrik Skupin 7524e36b05 Bug 1452864 - [mozfile] tree() broken with Unicode characters in path. r=gbrown
The patch correctly marks the delimiters for the tree output
as Unicode, and also updates mozprofile to correctly serialize
the Profile object when str() is used.

MozReview-Commit-ID: AjUHa6zGHQe

--HG--
extra : rebase_source : d4fa6c5db91184dee6a2abe788aa23d0c6255be6
2018-04-10 09:31:10 +02:00
Andrew Halberstadt 69d04f8035 Bug 1451733 - [mozprofile] Clean up the public facing addons API a bit r=jmaher
While we are removing a bunch of stuff and breaking backwards compatibility, I
figured this would be a good time to also change some of the APIs. These APIs
aren't used much in mozilla-central (and this patch updates the few places that
do).

This rolls the 'install_addons()' and 'install_addon_from_path' method into a
single 'install' method. This install method can accept a string or list of
paths to an individual addon (directory or .xpi), or a directory containing
addons.

This also renames Profile.addon_manager to Profile.addons, which reads better.

MozReview-Commit-ID: 7vDPnG4cKqu

--HG--
extra : rebase_source : 62f8613b9824e06e698d5af8dcbb4bcb07b8079e
2018-04-05 12:04:21 -04:00
Andrew Halberstadt caac402c4b Bug 1451733 - [mozprofile] Remove ability to download addons from AddonManager r=jmaher
This is another seemingly unused feature in mozilla-central.

Being able to download addons in AddonManager is a violation of the single
responsibility principle. If consumers *really* need to download addons, they
can easily do so with requests and then pass the file path in to AddonManager
like normal. There's no need to have this baked into AddonManager itself.

MozReview-Commit-ID: IorG0foiHfT

--HG--
extra : rebase_source : 27b4162d9adfb986c2b9822c12b6abc5a2561a9a
2018-04-05 10:39:31 -04:00
Andrew Halberstadt 7368b59d75 Bug 1451733 - [mozprofile] Remove ability to install from a manifest r=jmaher
This feature isn't used anywhere in mozilla-central that I can tell. Because
using a manifest is the only way to install an addon from AMO, that ability has
also been removed with this commit.

MozReview-Commit-ID: BNFGPWdo96t

--HG--
extra : rebase_source : 9bc7c9c7e91b01b71082f763fb6e621c430de808
2018-04-05 09:54:31 -04:00
Andreea Pavel 7a4b9a3f56 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
extra : rebase_source : 66bd87105d99036ada5008499ff0eaea579b531a
2018-04-06 13:20:21 +03:00
Geoff Brown 146ff5998a Bug 1440714 - Convert Android mach commands to adb.py; r=bc 2018-04-05 12:50:29 -06:00
Tiberius Oros 784748948c Backed out changeset aecbdcadaf96 (bug 1451319) for linting opt failures /builds/worker/checkouts/gecko/testing/mozbase/mozcrash/tests/conftest.py:90 on a CLOSED TREE
--HG--
extra : amend_source : 35e120af14725c1cc045f729e0d5b36fab2a1cfd
2018-04-05 14:53:07 +03:00
Henrik Skupin 8effc5360b Bug 1451319 - Unset MINIDUMP_SAVE_PATH for mozcrash unit tests. r=davehunt
The build job on Windows sets the MINIDUMP_SAVE_PATH env variable,
and because it isn't unset mozcrash copies all created minidump
files from unittests to the "public/build" folder, which then
get uploaded as artifacts.

MozReview-Commit-ID: 6JNnRZGlOj3

--HG--
extra : rebase_source : c148e5a8ac4439ca0f4e66ee649b45ceb7b1bc60
2018-04-05 11:53:43 +02:00
Henrik Skupin 4c98f9ad50 Bug 1451310 - [mozrunner] Catch exceptions when starting the client process. r=ahal
If a ProcessHandler instance has been created, but mozprocess fails
to start the child process, a dangling process_handler instance is
attached to the runner instance. This should be avoided, and a
RunnerNotStartedError has to be thrown.

MozReview-Commit-ID: LgNFVaT9qVs

--HG--
extra : rebase_source : c06aef08d7619ac9d3fe94ad29bdae06f0f79364
2018-04-04 15:04:42 +02:00
Henrik Skupin 14f784eac8 Bug 1451246 - [mozrunner] Always encode key and value of env variables as UTF-8 if those are of unicode type. r=gbrown
Without encoding the key and value of environment variables as UTF-8
for non-interactive sessions "subprocess.Popen()" and specifically
"os.execvpe()" will fail.

MozReview-Commit-ID: 9lO562XnDZx

--HG--
extra : rebase_source : bba542648b6050d0e9f628c95b658c3a546d2b5d
2018-04-04 10:36:58 +02:00
Andrew Halberstadt 61fa56c010 Bug 1328273 - Log mozrunner.utils failure messages at the error level, r=jgraham
MozReview-Commit-ID: LSzpGJeyY77

--HG--
extra : rebase_source : b9eef524597a29cfa912fb14c5eab0d58f74d430
2018-04-04 16:46:32 -04:00
Henrik Skupin 9726fd9d3b Bug 1451680 - Release mozrunner 6.15. r=gbrown
DONTBUILD

MozReview-Commit-ID: 6gRUgVbNjwA

--HG--
extra : rebase_source : ea47169db17f4e4b7a3d464d298f684d984926aa
2018-04-05 12:12:07 +02:00
Henrik Skupin 10c59cca93 Bug 1451319 - Unset MINIDUMP_SAVE_PATH for mozcrash unit tests. r=davehunt
The build job on Windows sets the MINIDUMP_SAVE_PATH env variable,
and because it isn't unset mozcrash copies all created minidump
files from unittests to the "public/build" folder, which then
get uploaded as artifacts.

MozReview-Commit-ID: 6JNnRZGlOj3

--HG--
extra : rebase_source : a139221b810e1b38082d5676b67583269802b7e9
2018-04-05 11:53:43 +02:00
Andreas Tolfsen 2efb6af857 Bug 1448900 - Release mozrunner 0.6.1. r=whimboo
One change since 0.6.0, which is a regression fix for a fallout
from bug 1443853.

MozReview-Commit-ID: 56GbEV4HM4v

--HG--
extra : rebase_source : 0e14fa63f00f1661cae01a10c76c2813d349ba1b
2018-03-28 17:28:29 +01:00
Andreas Tolfsen 73c11c00a8 Bug 1448900 - Avoid killing exited process. r=jgraham,whimboo
std::process::Child::kill() will return Err if the process has
already exited.  The assumption in bug 1443853 was that calling
::kill() would consistently return the std::process::ExitStatus
was the process already dead.

This patches the regression from bug 1443853 by employing
Child::try_wait() in a loop.  When the process gives some exit status,
this is return directly without relying on Child::kill() as before.

If the process has not exited and the timeout has elapsed, we kill
the process and return its return value.  If the process has not
exited but the timeout duration has not elapsed, we wait 100 ms as before.

MozReview-Commit-ID: 4VENbrKtcEh

--HG--
extra : rebase_source : 7f27ed057da740306367ef2b6a87f8ac6a242541
2018-03-28 17:17:29 +01:00
Geoff Brown b4dddb3c35 Bug 1440719 - Set MOZ_CRASHREPORTER_SHUTDOWN during tests, other than browser-chrome and non-e10s; r=ted 2018-03-28 12:43:52 -06:00
Kris Maglione 7d75136f52 Bug 1448221: Part 3 - Remove startup staging directory scan. r=aswan
MozReview-Commit-ID: JHA1umCQS2D

--HG--
extra : rebase_source : d360aeb165bdac1122ff27b1ea561146e48f16e7
2018-03-26 16:09:52 -07:00
Andrew Halberstadt c30792183c Bug 1445624 - [mozlog] Various improvements and fixes to the mach formatter, r=gbrown
This consolidates the printing of status logs, which was previously handled
differently in 3-4 places. This also fixes a few of the annoyances listed in
the bug 1445624 description. Finally this also fixes a few edge cases that I
noticed when writing the tests.

MozReview-Commit-ID: APudT8yBqVS

--HG--
extra : rebase_source : 943a71c762dd27a7f7ebea86d467e81a0b27d400
extra : source : 61ba86fc1366a62a429a7daab7d6b1c198c69593
2018-03-19 11:55:39 -04:00
Andrew Halberstadt 4d112dbe6e Bug 1445624 - [mozlog] Add some tests for the mach formatter, r=gbrown
This adds a basic test for the mach formatter. This will ensure that changes to
this format are intentional. It will also make it easier for reviewers of these
changes to see a diff of the old vs new format.

MozReview-Commit-ID: LBSfdyvOPVV

--HG--
extra : rebase_source : 5529ad1f03306dcf867d88af579b69d6005091c0
2018-03-19 11:55:31 -04:00
arthur.iakab 5e8092339a Merge mozilla-central to inbound
--HG--
rename : browser/base/content/test/general/bug364677-data.xml => browser/components/feeds/test/bug364677-data.xml
rename : browser/base/content/test/general/bug364677-data.xml^headers^ => browser/components/feeds/test/bug364677-data.xml^headers^
rename : browser/base/content/test/general/test_bug364677.html => browser/components/feeds/test/test_bug364677.html
rename : services/sync/tps/extensions/tps/bootstrap.js => services/sync/tps/extensions/tps/components/tps-cmdline.js
rename : testing/talos/talos/pageloader/bootstrap.js => testing/talos/talos/pageloader/components/tp-cmdline.js
rename : testing/talos/talos/startup_test/sessionrestore/addon/bootstrap.js => testing/talos/talos/startup_test/sessionrestore/addon/SessionRestoreTalosTest.js
rename : testing/talos/talos/talos-powers/bootstrap.js => testing/talos/talos/talos-powers/components/TalosPowersService.js
rename : tools/quitter/bootstrap.js => tools/quitter/QuitterObserver.js
extra : rebase_source : 5801e95a945b54754f27571e7b211e1eac132d67
2018-03-21 22:27:21 +02:00
arthur.iakab abcb47d8cc Merge inbound to mozilla-central. a=merge 2018-03-21 21:13:11 +02:00
Henrik Skupin 1983e0ddd6 Bug 1441287 - [mozcrash] Add support for unicode paths. r=ahal
To let mozcrash handle minidump files located in profile paths
with unicode characters, support for that has to be added. It
also applies to the locations for the stackwalk binary, minidump
save path, and symbols.

MozReview-Commit-ID: EROVmK21a5Y

--HG--
extra : rebase_source : 67092e6164eb0e46decd24b2da1490ffefb4d5d7
2018-03-20 11:54:04 +01:00
Henrik Skupin 8152b5a69d Bug 1441287 - [mozcrash] Convert unit tests to pytest. r=ahal
Switch to the pytest framework to benefit from its rich
feature set for creating Python test.

MozReview-Commit-ID: AoptjhT1Hln

--HG--
extra : rebase_source : a0870e54038697f08cf14e7babffdb014a7a3c7d
2018-03-19 14:37:31 +01:00
Henrik Skupin ba18be73fc Bug 1441287 - [mozcrash] check_for_crashes should always return count of crashes. r=ahal
Right now if no minidump file is present in the minidump folder,
the check_for_crashes method returns False. Whereby in all other
cases the number of crashes is returned.

To be consistent this method should always return a number, and
in case of no minidumps it should be 0.

MozReview-Commit-ID: 3DTgxn41TVn

--HG--
extra : rebase_source : 1631313878b596607ede27ebb04f95a64e2f9e2e
2018-03-20 13:44:56 +01:00
Henrik Skupin cecdc45b6f Bug 1441287 - [mozcrash] Refactor unit tests. r=ahal
Split single unit test module into different modules separated
by area of test coverage.

MozReview-Commit-ID: Blh8V46kDq1

--HG--
extra : rebase_source : 64bfa620286904fdb2bde114efb337d0dd5d42b7
2018-03-13 15:14:49 +01:00
Andrew Halberstadt c252fe40f7 Bug 1447401 - [mozrunner] Remove b2g related runners and devices, r=jmaher
MozReview-Commit-ID: 4TYYSoviSEy

--HG--
extra : rebase_source : a6fd7356ad4c320c00c1f9ddad9b3924086c4954
2018-03-20 10:43:39 -04:00
Noemi Erli e2ccf77a14 Backed out 10 changesets (bug 1446809) for failures in testing/mozbase/moztest/tests/test.py on a CLOSED TREE
Backed out changeset 5748f214f813 (bug 1446809)
Backed out changeset 1c7a6f2885fb (bug 1446809)
Backed out changeset 2c31f0efbe64 (bug 1446809)
Backed out changeset e102f93c590f (bug 1446809)
Backed out changeset c722a1c3395f (bug 1446809)
Backed out changeset 20b4c87f8abb (bug 1446809)
Backed out changeset 31026393c5b6 (bug 1446809)
Backed out changeset 9103be0ca176 (bug 1446809)
Backed out changeset 11d671ad8ed4 (bug 1446809)
Backed out changeset e412991e7f95 (bug 1446809)
2018-03-20 17:00:04 +02:00
Sylvestre Ledru d7d0839614 Bug 1446809 - Remove some b2g leftover in the testing/mozbase r=jgraham
MozReview-Commit-ID: 6PGuSXVjMB9

--HG--
extra : rebase_source : daf2f4e824dd700efa50d5f67430bfb47a5853b5
2018-03-18 19:28:26 +01:00
Andrew Halberstadt 246d6dddec Bug 1444152 - [test] Fix regression running marionette tests with |mach test|, r=whimboo
There were two issues:
1) The mach command name in resolve.py was wrong.
2) The marionette harness uses deepcopy on the passed in kwargs and sometimes
the 'log' argument that testing/mach_commands.py was passing in can be a class
instance (which can't be deepcopied).

MozReview-Commit-ID: 5gPxuiHs3dY

--HG--
extra : rebase_source : 63bc9c84fdcb540862f1dcbc2654bf5729e0dec8
2018-03-13 09:49:09 -04:00
Sylvestre Ledru debb1617bd Bug 1446809 - Remove some b2g leftover in the testing/mozbase r=jgraham
MozReview-Commit-ID: 6PGuSXVjMB9

--HG--
extra : rebase_source : 69d3611477d78fcd7ba6db6baff1803281244ac0
extra : source : 04c46f107d24bc387a98839c86a22aec9ad31721
2018-03-20 21:20:26 +01:00
Geoff Brown d22a877f24 Bug 1444421 - Restore some mozdevice documentation; r=bc
This was accidentally deleted in bug 1340584.
2018-03-21 13:54:27 -06:00
Geoff Brown e2c5753929 Bug 1440714 - Convert Android cppunit test harness to adb.py; r=bc 2018-03-16 09:37:48 -06:00
Geoff Brown b2a1ec39be Bug 1440714 - Convert rungeckoview to adb.py; r=bc 2018-03-16 09:37:48 -06:00
Geoff Brown 30995fa955 Bug 1440714 - Remove devicemanager code from mozversion; r=bc
Remove RemoteB2GVersion from mozversion and associated parameters from
mozversion.get_version(). Other than the cli interface modified here,
there are no in-tree clients of get_version() using the remote parameters.
2018-03-16 09:37:48 -06:00
Geoff Brown b484e85fee Bug 1445940 - fix adb_android.py detection of bool extras in launch_application, r=bc
Originally landed on autophone github in bug 1401617.
2018-03-15 10:57:48 -06:00
Geoff Brown d8fdaf351c Bug 1445940 - adb_android.py - use activity name org.mozilla.gecko.BrowserApp when launching Fennec, r=nalexander
Originally landed on autophone github in bug 1237755.
2018-03-15 10:57:48 -06:00
Sylvestre Ledru 06b7836c7e Bug 1444628 - Fix a bunch of typo in the doc r=ahal
MozReview-Commit-ID: SNXsViVUm0

--HG--
extra : rebase_source : d1a73dd5399854c0ec28087b207bb1b1d4bb9c02
2018-03-10 17:14:38 +01:00
Andreas Tolfsen 6b09cf8df1 Bug 1401129 - Release mozrunner 0.6.0. r=whimboo
MozReview-Commit-ID: 2nljPi3HN5b

--HG--
extra : rebase_source : 7e1cd2201937b5bb47fe81bcdbd6c1bc068b92b5
2018-03-08 14:26:10 +00:00
Andreas Tolfsen 7b875989b2 Bug 1401129 - Release mozversion 0.1.3. r=whimboo
MozReview-Commit-ID: JMUOjttq31L

--HG--
extra : rebase_source : 188ea63b2a3aff99562df94bb7c4a9e164cfea54
2018-03-12 11:48:18 +00:00
Andreas Tolfsen 98cdaaee72 Bug 1443853 - Move browser process shutdown monitor to mozrunner. r=jgraham
This moves the shutdown monitor for the Firefox process from
geckodriver to mozrunner, which is a more suitable home for it.
We will likely need specialised versions of this in the future with
products such as GeckoView and Fennec.

In addition to the move it also cleans up the polling loop by
employing std::time::SystemTime which lets us match on the elapsed
time since its construction.  This seems nicer than having to perform
division operations on integers, which in Rust are inherently unsafe
(there is no guard against SIGFPE).

This change should be functionally equivalent to the existing code.

MozReview-Commit-ID: 1asnFbixhcY

--HG--
extra : rebase_source : f21f734862bfbbc1ed665dc9c9f611c5968d662f
2018-03-07 21:57:53 +00:00