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

1127 Коммитов

Автор SHA1 Сообщение Дата
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
Andreas Tolfsen 1509c2ba22 Bug 1443853 - Rename RunnerProcess::status() to ::try_wait(). r=jgraham
This renames RunnerProcess::status() to ::try_wait() for symmetry
with std::process::Child::try_wait() in the standard library.

The patch also makes an attempt at cleaning up its usage in geckodriver,
however this can be further improved.

MozReview-Commit-ID: 14ihT7MpM7l

--HG--
extra : rebase_source : 4e96c79c6ebbb256c4a08cb4dd86c99aacaa13ac
2018-03-07 21:43:49 +00:00
Andreas Tolfsen f57be4355e Bug 1443853 - Avoid std::io::{Result,Error} renaming. r=jgraham
We can pick up std::io::Result and std::io::Error directly from
the std::io namespace without having to rename them.

MozReview-Commit-ID: 9Xz92HvcFpO

--HG--
extra : rebase_source : 89a006c40e11d9e7fc5706d3a6612f916e00f919
2018-03-07 21:31:31 +00:00
Andreas Tolfsen a1615d76ac Bug 1443853 - Rename RunnerProcess::stop() to ::kill(). r=jgraham
This renames RunnerProcess::stop() to ::kill() for symmetry with
the standard library's std::process::Child.

MozReview-Commit-ID: 20vSni9bA0X

--HG--
extra : rebase_source : 112b29249563154b50d9a72c141034e5cdf7f19b
2018-03-07 21:29:23 +00:00
Andreas Tolfsen ecbbc100b2 Bug 1443853 - Rename RunnerProcess::is_running() to ::running(). r=jgraham
The ideom for getters in Rust is to not prefix them with "is_".
Setters should, however, have the "set_" prefix.

MozReview-Commit-ID: 9kXHBYGK7aL

--HG--
extra : rebase_source : 6c2591771646c8b7c5b0e6b1af5427455938b4cf
2018-03-07 21:23:57 +00:00
Andreas Tolfsen 8e428fe6bb Bug 1443853 - Drop unused std::ascii::AsciiExt trait. r=jgraham
Silences another compiler warning.

MozReview-Commit-ID: 6Bcw7Ej9uIC

--HG--
extra : rebase_source : 4f6d8522434fed7e673b71d028dce53753f4a3e5
2018-03-07 21:27:18 +00:00
Geoff Brown 6a32698d7b Bug 1440714 - Add ADBDevice.get_file() to pull and read a remote file; r=bc 2018-03-09 09:27:08 -07:00
Geoff Brown 302c5c717b Bug 1440714 - Add ADBAndroid.get_top_activity() to determine the focused app; r=bc 2018-03-09 09:27:08 -07:00
Geoff Brown 336d7b09b0 Bug 1440714 - Add -r option to ADBAndroid.install_app(); r=bc 2018-03-09 09:27:08 -07:00
Noemi Erli 5d87ef4db3 Backed out changeset 1383d36fdabf (bug 1440719) for mochitests failures @ js::ctypes::ConvertToJS on a CLOSED TREE 2018-03-07 23:16:30 +02:00
Geoff Brown 7ec2464f37 Bug 1440719 - Set MOZ_CRASHREPORTER_SHUTDOWN during tests, other than browser-chrome; r=ted 2018-03-07 10:18:40 -07:00
Henrik Skupin f5e866d199 Bug 1438679 - [mozrunner] DeviceRunner has to override returncode and wait() to check for remote process status. r=gbrown
Without returncode and wait() being overridden the default
implementation of the Runner class takes precedence and will
run the check for the adb command but not the remote process.
This always returns 0 because adb runs or forks itself as daemon.

Instead the remote process has to be checked for existence.

MozReview-Commit-ID: GvuAaMSxBT2

--HG--
extra : rebase_source : e84b52fdc9ce48617102650d6d0ae73e90899538
2018-02-22 23:08:49 +01:00
Mike Pennisi fb163fbacb Bug 1439411 - [mozlog] Document built-in CLI logging options r=jgraham
The output formatters provided by mozlog are well-documented in the
online help guide, but this information is not available to users in the
CLI. The `add_logging_group` method extends the consuming project's
command-line interface without referencing mozlog itself. This means
consumers may not have a means to discover the additional information,
and even in cases where they can infer this connection, there is no
indication of the stability of the behavior.

Extend the description of the built-in output formatters to explain
their origin and reference the relevant documentation.

--HG--
extra : histedit_source : 9069af86efc67232e059176f99a877c513644ce2
2018-02-26 08:29:00 +02:00
Andrew Halberstadt adbe589f59 Bug 1353461 - [manifestparser] Implement a chunk_by_manifest algorithm, r=jmaher
This implements a chunk_by_manifest algorithm. It is similar to chunk_by_slice
in that it tries to make an even number of tests run in each chunk. However,
unlike chunk_by_slice it will guarantee that tests in the same manifest will
all run in the same chunk. This makes it suitable to use with run-by-manifest.

This means the chunks won't be perfect (as manifests are differnet sizes). It
is also prone to more randomization, similar to chunk-by-runtime.

In fact, this algorithm is nearly identical to the chunk-by-runtime one, so it
was refactored out to a base class.

MozReview-Commit-ID: HI2ByxW0i8V

--HG--
extra : rebase_source : e066c034b85222d26bafe6873a80366d5bd9df9e
2018-02-13 15:16:37 -05:00
James Willcox a47a1c6678 Bug 1291387 - Make mochitest and reftest work against TestRunnerActivity r=gbrown,jchen
Pass --appname org.mozilla.geckoview.test to 'mach mochitest' or
'mach reftest'. This runs the tests without e10s currently.

MozReview-Commit-ID: 7TIvA3zRCw2
2018-02-22 09:18:37 -06:00
Ciure Andrei 040171056c Backed out changeset 25a1c4b0e2af (bug 1439411) for linting failure. a= backout on a CLOSED TREE 2018-02-20 13:45:08 +02:00
Mike Pennisi 4f6234b136 Bug 1439411 - [mozlog] Document built-in CLI logging options r=jgraham
The output formatters provided by mozlog are well-documented in the
online help guide, but this information is not available to users in the
CLI. The `add_logging_group` method extends the consuming project's
command-line interface without referencing mozlog itself. This means
consumers may not have a means to discover the additional information,
and even in cases where they can infer this connection, there is no
indication of the stability of the behavior.

Extend the description of the built-in output formatters to explain
their origin and reference the relevant documentation.

--HG--
extra : rebase_source : 5e7420f8d1589dccc335b0a48c8967d4928f959f
2018-02-19 11:58:00 +02:00
Andreas Tolfsen 86adc06b32 Bug 1439331 - Upgrade mozrunner log dependency to 0.4. r=jgraham
MozReview-Commit-ID: 96rHwvsIEik

--HG--
extra : rebase_source : 8dc84880d8b1f9cba778c55dabb1cfd2cd31257f
2018-02-19 12:46:53 +01:00
Andrew Halberstadt 794955920a Bug 1437912 - [moztest] Add some missing subsuite definitions, r=gbrown
Since we're adding specific 'task_regexes' for each new suite definition,
this will allow us to schedule tests of these subsuites with
|mach try fuzzy <path>|.

MozReview-Commit-ID: 2mDSneV95lG

--HG--
extra : rebase_source : 467b9d885e92c1c855ed547f2a7496b1062f2dc2
2018-02-16 09:35:25 -05:00
Andrew Halberstadt f249b70e43 Bug 1437912 - [moztest] Map flavors and subsuites to a suite definition, r=gbrown
The end goal here is to be able to use |mach try fuzzy <path>| with tests that
belong to a subsuite. To do this, we need a unique 'task_regex' value for each
subsuite so that we can map a test path back to a set of tasks.

This removes the TEST_FLAVORS dict (which was mostly just a redefinition of the
data in TEST_SUITES), and instead provides two new private mappings:

<flavor> -> suite definition
(<flavor>, <subsuite>) -> suite definition

To retrieve a suite definition given a flavor/subsuite, consumers can now call
get_suite_definition.

MozReview-Commit-ID: 2pe1v1IHUVy

--HG--
extra : rebase_source : 6fff947ba214112ccf16c894174a6a0e2487111a
2018-02-13 14:16:46 -05:00
Andrew Halberstadt 31a703789c Bug 1437912 - [moztest] Make TEST_SUITES aliases case insensitive, r=gbrown
This removes a lot of redundant alias definitions by calling lower() on the
user input. It also adds a couple of new aliases that look like they might
be useful.

MozReview-Commit-ID: 3Aix4LPB8wg

--HG--
extra : rebase_source : c4bdc327bd737a18f03952bb360af35608d091f1
2018-02-15 11:44:44 -05:00
Andreea Pavel 74b7ffee40 Merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : js/src/jscompartment.cpp => js/src/vm/JSCompartment.cpp
rename : js/src/jscompartment.h => js/src/vm/JSCompartment.h
rename : js/src/jsscript.cpp => js/src/vm/JSScript.cpp
rename : js/src/jsscript.h => js/src/vm/JSScript.h
extra : amend_source : 9c233cb959c45e401189d089a094f9d141d2b912
2018-02-15 12:24:21 +02:00
Dorel Luca 75f385b6d6 Merge mozilla-centra to mozilla-inbound 2018-02-15 00:37:44 +02:00
Andreas Tolfsen 14bddc03aa Bug 1437571 - Upgrade to winreg v0.5.0. r=jgraham
Output from "./mach vendor rust":

    Removing advapi32-sys v0.1.2
    Removing kernel32-sys v0.1.4
    Removing ktmw32-sys v0.1.0
      Adding winapi v0.3.4
      Adding winapi-i686-pc-windows-gnu v0.4.0
      Adding winapi-x86_64-pc-windows-gnu v0.4.0
    Updating winreg v0.3.5 -> v0.5.0

MozReview-Commit-ID: 5IP63yfo34S
2018-02-14 20:48:17 +00:00
Henrik Skupin b5f314390e Bug 892902 - [mozprocess] Enable unit tests on Windows. r=ahal
MozReview-Commit-ID: 70gC7gNkX75

--HG--
extra : rebase_source : aafb41aa59febf14c688be720e51503b0d7b3427
2018-02-07 08:28:11 +01:00
Henrik Skupin ac424f01de Bug 892902 - [mozprocess] Ensure that process returncodes are positive on Windows. r=ahal
In contrast to Posix the returncodes on Windows have positive
and not negative numbers.

MozReview-Commit-ID: 4foHWf9RR0B

--HG--
extra : rebase_source : 8e06cbb3e669fea7abe46cd8b53386b56030574d
2018-02-12 23:05:14 +01:00
Henrik Skupin 111c06a7ca Bug 892902 - [mozprocess] Returncode for kill() on Windows has to be set from wait(). r=ahal
Currently the returncode gets set immediately after the process
has been terminated via TerminateJobObject() or TerminateProcess().
Given that in both cases the process has not been quit yet, but
still waits for all streams to be closed, the returncode has to
be set by via wait().

Also in case of TerminateJobObject() the _cleanup method is never
called if an exception occurs.

MozReview-Commit-ID: 4NEyqafN0DD

--HG--
extra : rebase_source : ae176d5e052785cc77865e1bf220013e87d7a3f0
2018-02-12 22:46:14 +01:00
Henrik Skupin a426ad7cda Bug 892902 - [mozprocess] Remove dependency of psutil for pid exists check. r=ahal
The psutil package has only been used to check for the existence
of a given pid. Given the troubles with getting psutil compiled
on Windows, or by supplying the correct wheel, it has been decided
to get rid of this dependency.

Instead the ProcessHandler class itself now got the feature to
determine the existence of a pid by using ctypes to do the
necessary Windows API calls.

MozReview-Commit-ID: KAiSv0AH8HZ

--HG--
extra : rebase_source : 55e9ecac6ce12b0abcbaceb9aa385100744b16dd
2018-02-12 16:39:57 +01:00
Andreas Tolfsen 6ea2cf1e57 Bug 1437570 - Upgrade to rust-ini 0.10.2. r=jgraham
Upgrading to rust-ini 0.10.2 has the benefit that it no longers
depends on a too specific version of the log crate.  We currently
compile two different versions of log as part of the geckodriver
build, and it will marginally increase compile performance not to
compile that twice.

MozReview-Commit-ID: HAwa4Kg8Lyn

--HG--
extra : rebase_source : d81b3450934f011663b508271c8c6a0f92997490
2018-02-12 16:17:45 +00:00
Jim Chen 5e9435a262 Bug 1434469 - Add ACCESS_COARSE_LOCATION to list of permissions; r=snorp
Add ACCESS_COARSE_LOCATION to the Fennec and GeckoView list of
permissions. For completeness, also add ACCESS_COARSE_LOCATION to JS
modules that handle runtime permissions.

MozReview-Commit-ID: 8UHaiJcRnq

--HG--
extra : rebase_source : 5a74d4138d6d7b4bf6cf70724f695ff06201c38c
2018-02-13 13:01:18 -05:00
Andreas Tolfsen 6505810ac8 Bug 1430157 - Move geckodriver to use in-tree mozprofile. r=jgraham
The third_party/rust/mozprofile has not been deleted because mozrunner
also depends on it.  We will have to run "./mach vendor rust" again
once both these changes have landed in order to remove the third-party
dependency from crates.io.  This work is tracked in bug 1430158.

MozReview-Commit-ID: 5Q3PdTS03wm

--HG--
extra : rebase_source : a3b52bcb4c2047ddd81b830e4e2f349d8396ee79
2018-01-12 16:21:17 +00:00
Andreas Tolfsen bd3776c6e7 Bug 1430157 - Move Rust port of mozprofile to central. r=ahal
This moves the Rust crate mozprofile into central from GitHub.
The old repository will be graveyarded:

	https://github.com/jgraham/mozprofile

The git history is not considered important, hence this does not
overlay that onto central like we did for testing/geckodriver and
testing/webdriver.

MozReview-Commit-ID: 5SKlss6uAZ4

--HG--
extra : rebase_source : f19efa20d3eadfbe478b47699512dd22f369dd95
2018-01-12 16:18:28 +00:00
Geoff Brown cd78045019 Bug 1434423 - Check for installation of correct test application when --app is passed to mach; r=jmaher 2018-02-09 14:34:20 -07:00
Andrew Halberstadt 41c896bd5d Bug 1392391 - [mozlog] Forward extra data from 'suite_end' action, r=jgraham
The suite_end action ostensibly supports an extra key, however that extra data never
gets forwarded to the _log_data function.

MozReview-Commit-ID: AfUBmQpx3Zz

--HG--
extra : rebase_source : 5f10746a8384f89ce9fffc28db49b764f6e279ff
2018-01-25 10:44:04 -05:00
Gurzau Raul 9c39f70c0f Backed out 5 changesets (bug 1392391) for frequently failing jsreftests on Android. a=backout
Backed out changeset 50df56a0cebf (bug 1392391)
Backed out changeset 406806a088d5 (bug 1392391)
Backed out changeset 6bd3abc55ea8 (bug 1392391)
Backed out changeset 846d50ea8403 (bug 1392391)
Backed out changeset b9e9374af9a1 (bug 1392391)
2018-02-07 02:20:38 +02:00
Henrik Skupin 581602594e Bug 1435820 - Rename mozprocess unit tests and support files. r=ahal
MozReview-Commit-ID: 2LhfafKi8ym

--HG--
rename : testing/mozbase/mozprocess/tests/process_normal_broad_python.ini => testing/mozbase/mozprocess/tests/process_normal_broad.ini
rename : testing/mozbase/mozprocess/tests/process_normal_deep_python.ini => testing/mozbase/mozprocess/tests/process_normal_deep.ini
rename : testing/mozbase/mozprocess/tests/process_normal_finish_python.ini => testing/mozbase/mozprocess/tests/process_normal_finish.ini
rename : testing/mozbase/mozprocess/tests/process_waittimeout_python.ini => testing/mozbase/mozprocess/tests/process_waittimeout.ini
rename : testing/mozbase/mozprocess/tests/process_waittimeout_10s_python.ini => testing/mozbase/mozprocess/tests/process_waittimeout_10s.ini
rename : testing/mozbase/mozprocess/tests/infinite_loop.py => testing/mozbase/mozprocess/tests/scripts/infinite_loop.py
rename : testing/mozbase/mozprocess/tests/proccountfive.py => testing/mozbase/mozprocess/tests/scripts/proccountfive.py
rename : testing/mozbase/mozprocess/tests/procnonewline.py => testing/mozbase/mozprocess/tests/scripts/procnonewline.py
rename : testing/mozbase/mozprocess/tests/test_mozprocess_kill.py => testing/mozbase/mozprocess/tests/test_kill.py
rename : testing/mozbase/mozprocess/tests/test_mozprocess_misc.py => testing/mozbase/mozprocess/tests/test_misc.py
rename : testing/mozbase/mozprocess/tests/test_mozprocess_output.py => testing/mozbase/mozprocess/tests/test_output.py
rename : testing/mozbase/mozprocess/tests/test_mozprocess_params.py => testing/mozbase/mozprocess/tests/test_params.py
rename : testing/mozbase/mozprocess/tests/test_mozprocess_poll.py => testing/mozbase/mozprocess/tests/test_poll.py
rename : testing/mozbase/mozprocess/tests/test_mozprocess_wait.py => testing/mozbase/mozprocess/tests/test_wait.py
extra : rebase_source : e026178ca6fe2a34d5621e50f7f28812e3ad4ac8
2018-02-05 21:50:57 +01:00
Henrik Skupin 4bc4175eb0 Bug 1435820 - [mozprocess] Remove unused C implemenation of proclaunch and all its support files. r=ahal
Only test_mozprocess.py was still using the C implementation but is
disabled since ages.

Given that the proclaunch script as written in Python replaced the
C implemenation lets remove all the old unused code.

MozReview-Commit-ID: J4izHz5ljtO

--HG--
extra : rebase_source : e33720aa3a6734fa3dd5fc082441ef54d515e75f
2018-02-05 21:25:47 +01:00
Andrew Halberstadt fba8718e4a Bug 1392391 - [mozlog] Forward extra data from 'suite_end' action, r=jgraham
The suite_end action ostensibly supports an extra key, however that extra data never
gets forwarded to the _log_data function.

MozReview-Commit-ID: AfUBmQpx3Zz

--HG--
extra : rebase_source : 187fba189deec77b914d455cb55fe21e140bb3c8
2018-01-25 10:44:04 -05:00
Henrik Skupin 96ed8b8cf5 Bug 921632 - Re-enable delayed kill broad mozprocess unit test. r=ahal
MozReview-Commit-ID: 93KwNlw84ld

--HG--
extra : rebase_source : fd96ee848ea3b4211db338f6f337372901fff210
2018-02-05 15:16:48 +01:00
William Lachance bc3cce1805 Bug 1434664 - Bump mozdevice to 0.52 r=bc
MozReview-Commit-ID: 9u3Abd15R6E

--HG--
extra : rebase_source : a6b7bb8044aa4b5ecf433bca84e962d6757855cf
2018-02-02 13:53:34 -05:00
William Lachance 168d85d1b6 Bug 1434664 - Fix mozdevice's pull/push methods on Windows r=bc
We should use posixpath's normpath for calculating the remote
(i.e. device path) with these methods.

MozReview-Commit-ID: zwfsRvCxoe

--HG--
extra : rebase_source : 9635de305db90d0bd99ab080d96d28fcf29cec96
2018-01-31 13:08:30 -05:00
Andrew Halberstadt f354075c7a Bug 1434430 - [flake8] Fix blank 'except' statements r=rwood
This is a new issue that gets linted with flake8 3.5.0. Basically you should
never use a blank except: statement.

This will catch all exceptions, including KeyboardInterrupt and SystemExit
(which is likely not intended). If a catch all is needed, use
`except: Exception`.  If you *really* mean to also catch KeyboardInterrupt et
al, use `except: BaseException`.

Of course, being specific is often better than a catch all.

MozReview-Commit-ID: FKx80MLO4RN

--HG--
extra : rebase_source : 7c74a7d0d81f2c984b47aff3a0ee3448b791177b
2018-01-31 14:32:08 -05:00
Henrik Skupin 5db8c27e13 Bug 1434932 - Release mozprocess 0.26. r=ahal
MozReview-Commit-ID: IHblWy0ypqs

--HG--
extra : rebase_source : 48fa68ad2344f805d78d7f6461e22bf0192f8044
2018-02-01 16:37:20 +01:00
Henrik Skupin 067a604727 Bug 1434932 - [mozprocess] ProcessHandler.wait() doesn't immediately return with timeout=0. r=ahal
MozReview-Commit-ID: 6ArknLHR933

--HG--
extra : rebase_source : c95ca78311957a7c93b69a398c2c6127f2096c09
2018-02-01 16:36:28 +01:00
James Graham 3ecd324bdc Bug 1431459 - Update rust_mozrunner to use a Builder API, r=ato
This is a major API revision to replace the Python-like API with
something more idiomatically Rust. In particular you now create a
FirefoxRunner object and then call start() and end up with a
FirefoxProcess. This is pretty similar to the Command builder in std.

MozReview-Commit-ID: DmEfIfKSukA

--HG--
extra : rebase_source : 30fba6b2d9584a8a4128b641747beda1d264f7c5
2017-12-19 18:39:10 +00:00
Andrew Halberstadt 3684054b5d Bug 1433974 - Update BUG_COMPONENT for some of the new Testing components, r=jmaher
MozReview-Commit-ID: 7jQnnAhOzEr

--HG--
extra : rebase_source : af1c9dca779c6089b5cc062eea81ef9945133d48
2018-01-29 12:57:54 -05:00
Sylvestre Ledru 3a35e750f3 Bug 1433417 - Fix a bunch of typo in the doc r=ahal
MozReview-Commit-ID: LRgL0CMJdDP

--HG--
extra : rebase_source : b99364bb96c1501a674a1726a3b5fdf0664a8e4f
2018-01-26 12:50:07 +01:00