Commit Graph

1476 Commits

Author SHA1 Message Date
Gurzau Raul
00b3974ac0 Backed out 5 changesets (bug 1494613) for failing at testing/geckodriver/src/marionette.rs
Backed out changeset 09e9cefc19ca (bug 1494613)
Backed out changeset f9f4e7c55d61 (bug 1494613)
Backed out changeset 457da8a172be (bug 1494613)
Backed out changeset 8d26a58f754e (bug 1494613)
Backed out changeset 729d8f3e1341 (bug 1494613)
2018-09-27 18:49:58 +03:00
Andreas Tolfsen
ed28f66567 bug 1494613: mozprofile: add docs for Pref::new and ::new_sticky r=whimboo
Depends on D7076

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

--HG--
extra : moz-landing-system : lando
2018-09-27 13:17:56 +00:00
Aaron Klotz
acee6df4f4 Bug 1494398: Bump mozrunner version to 7.1.0 to reflect wait-for-browser changes; r=wlach
Differential Revision: https://phabricator.services.mozilla.com/D6997

--HG--
extra : moz-landing-system : lando
2018-09-26 21:19:40 +00:00
Edwin Gao
f18ceae200 Bug 715884 - replace optparse usage with argparse r=jmaher
- changed argument parser to use ArgumentParser in compliance with Python 2.7.

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

--HG--
extra : moz-landing-system : lando
2018-09-26 13:57:53 +00:00
Edwin Gao
b8a91d1cf9 Bug 1305743 - Make failure to find mozinfo.json a fatal error r=gbrown,ahal
- moved placement of the raise_exception computation to be after the initial objdir path computation.
- original implementation was missing detection for cases where user may pass in a False flag to explicitly suppress errors.
- added unit tests to check for scenarios where raise_exception flag is passed in as part of positional argument.
- changed argument to include a **kwargs argument for caller to modify default exception behavior.
- default behavior is to raise exceptions if mozinfo.json cannot be found.
- disabled TreeMetadataEmitter from calling mozinfo.find_and_update_from_json and setting the self.info variable since it was not referenced anywhere else after the initial setup.

Depends on D6859

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

--HG--
extra : moz-landing-system : lando
2018-09-26 20:07:25 +00:00
Aaron Klotz
ad8a283d23 Bug 1488554: Part 4 - Make FirefoxRunner pass --wait-for-browser on Windows; r=ahal
Depends on D4972

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

--HG--
extra : moz-landing-system : lando
2018-09-26 19:11:55 +00:00
arthur.iakab
ec46826255 Merge inbound to mozilla-central. a=merge 2018-09-26 15:54:41 +03:00
James Graham
4c0e8cd2e6 Bug 1438975 - Sort logging options by formatter and support negative options r=ahal
Depends on D6819

Depends on D6819

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

--HG--
extra : moz-landing-system : lando
2018-09-25 19:45:27 +00:00
James Graham
cc7b5832aa Bug 1438975 - Add tbpl-like output for failing refests to the mach formatter r=ahal
This allows the output to be used in the reftest anaylzer directly.

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

--HG--
extra : moz-landing-system : lando
2018-09-25 19:42:46 +00:00
James Graham
caad927e35 Bug 1493674 - Fix up test resolver with out of tree manifest r=ahal
mach try fuzzy has some stronger requirements compared to mach test.

Depends on D6673

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

--HG--
extra : moz-landing-system : lando
2018-09-25 09:40:56 +00:00
Ciure Andrei
6760739b90 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-09-26 00:53:40 +03:00
Henrik Skupin
eb04193509 Bug 1438830 - [mozprocess] Track and kill detached processes on Windows. r=gbrown
Allow mozprocess to track and kill processes on Windows,
even when they got restarted.

Such processes are still part of the job object, but unless
the "JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE" flag is set, they
aren't getting closed.

Since our sandbox also creates jobs, we preferably want to
nest the sandbox's job inside the job as created by mozprocess.
Specifying "JOB_OBJECT_LIMIT_BREAKAWAY_OK" would allow
sandboxed processes within the job to break off and form their
own, separate job. This is actually necessary for sandboxing
to work on older versions of Windows without nested job support,
but on newer versions, we don't want them breaking away.

--HG--
extra : rebase_source : a485adc370127dfec86329f775df089b3b71eb47
2018-09-20 09:05:22 +02:00
Bob Clary
0b522a50c1 Bug 1485638 - [mozsystemmonitor] wrap Multiprocessing.Pipe.poll in _collect as well as in SystemResourceMonitor.stop, r=ahal. 2018-09-23 15:08:56 -07:00
Bob Clary
57cca45e9a Bug 1485638 - [mozsystemmonitor] Multiprocessing.Process should always be called with keyword arguments, r=ahal. 2018-09-23 15:08:56 -07:00
Dave Hunt
e0f982a753 Bug 1492341 - Bump mozrunner version to 7.0.2; r=tcsc
TPS is currently depending on mozrunner v7.0.1, which depends on an earlier version of mozprofile. For TPS to be able to use the latest version of mozprofile we need to release a new version of mozrunner with the recent mozprofile version identifier update.

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

--HG--
extra : moz-landing-system : lando
2018-09-20 16:33:56 +00:00
Ahilya Sinha
8f5e322404 Bug 1473915 - Set up infra so we can move the wpt-manifest out of tree r=gps
Changes the wpt manifest path to the topobjdir instead so it can be moved out of tree.
Other changes so that the manifest download and update, and |mach wpt| and |mach test <wpt-test>| work with the new path.
The manifest is also downloaded and updated when creating the tests-archive to ensure that it exists when we run tests on TC.

MozReview-Commit-ID: Fp6UsKJjhTU

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

--HG--
extra : moz-landing-system : lando
2018-09-20 12:07:58 +00:00
Bogdan Tara
9f17cab93a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-20 01:03:35 +03:00
Raphael Pierzina
7cdbeffeb6 mozfile: Fix Python 3 compat issue in mozfile test_load.py (Bug 1492401) r=davehunt
This patch updates mozfile tests to use `wptserve` instead of `mozhttpd` and enables test_load.py for Python 3.5.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 17:53:35 +00:00
Raphael Pierzina
15087ce7c2 mozfile: Fix Python 3 compat issue in mozfile test_move_remove.py (Bug 1471622) r=ahal
This patch updates mozfile test_move_remove.py to use `open` instead of `file`
and enables the according test module for Python 3.5.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 20:25:39 +00:00
shindli
d8f561f92f Backed out changeset dd80de19f142 (bug 1473915) for mb failures in testing/mozbase/moztest/tests/test_resolve.py CLOSED TREE 2018-09-19 18:13:48 +03:00
Ahilya Sinha
67be437f68 Bug 1473915 - Set up infra so we can move the wpt-manifest out of tree r=gps
Changes the wpt manifest path to the topobjdir instead so it can be moved out of tree.
Other changes so that the manifest download and update, and |mach wpt| and |mach test <wpt-test>| work with the new path.
The manifest is also downloaded and updated when creating the tests-archive to ensure that it exists when we run tests on TC.

MozReview-Commit-ID: Fp6UsKJjhTU

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

--HG--
extra : moz-landing-system : lando
2018-09-19 06:57:50 +00:00
Bob Clary
60e22167a6 Bug 1491424 - Define AndroidMixin as new class Mixin with proper initialization, r=gbrown.
As defined initially, AndroidMixin was an old-style class not inheriting from object. This
prevents it from being properly called via super() which requires it be a new style class
and also requires that its __init__ method's signature conform to the signatures of the other
mixin's __init_methods.

AndroidMixin originally detected the adb_path using BaseScript's query_exe which required that
the previous initializers complete prior to the call which is not possible. To work around the
problem, adb_path was turned into a property whose value was not looked up until requested.
The intent was to defer the need to reference attributes which had not yet been initialized.

BaseScript's __init__ iterates over the attributes of its object determining if listeners should
be attached for the methods. This can cause problems in mixins which define properties which
require a fully initialized object since accessing the property will invoke the method before it
is ready.

This is worked around in this patch by catching AttributeError in adb_path and ignoring it. The
proper fix however might be to do this catch in BaseScript's __init__ where item = getattr(self, k)
is called.

These changes are not sufficient in of themselves. The additional followup patch to CoverCoverageMixin
and SingleTestMixin are also required for AndroidMixin to be properly initialized.

Since Raptor currently initializes AndroidMix without explicitly giving a device serial number,
mozrunner's android_device.py is modified to export the detected device serial number into the
environment as DEVICE_SERIAL. This allows AndroidMixin to obtain the device's serial number.
2018-09-19 10:35:39 -07:00
arthur.iakab
1ee75a928a Merge inbound to mozilla-central a=merge 2018-09-19 05:18:50 +03:00
Edwin Gao
2514b44cdb Bug 1488590 - Add tests to mozdevice::adb.py r=ahal
Created tests/ subdirectory under mozdevice.
Added conftest.py and populated with wrappers for the methods under test.
Added test_socket_connections.py with basic tests for new methods and some coverage of legacy/deprecated methods.

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

--HG--
extra : moz-landing-system : lando
2018-09-18 19:35:40 +00:00
Aaron Klotz
9e357d1cf3 Bug 1489277: Skip mozrunner tests if running under automation; r=ahal!
Differential Revision: https://phabricator.services.mozilla.com/D5922
2018-09-14 16:26:57 -06:00
Aaron Klotz
8ff40206fc Bug 1491489: Add automation property to mozinfo.info; r=ahal!
When MOZ_AUTOMATION is set, then automation = true

Differential Revision: https://phabricator.services.mozilla.com/D5921
2018-09-14 17:42:13 -06:00
Andreas Tolfsen
3d48e987b5 bug 1466818: mozrunner: release 0.8.0; r=me 2018-09-16 00:32:18 +01:00
Andreas Tolfsen
a90e90dac3 no bug: mozprofile: release 0.4.0; r=me 2018-09-16 00:24:46 +01:00
Pavel Slepushkin
21f7f10fe9 Bug 1471888 - [mozprofile] Add support for Python 3. r=davehunt
Bug 1471888 - [mozprofile] Add support for Python 3.

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

--HG--
extra : moz-landing-system : lando
2018-09-11 18:58:05 +00:00
Henrik Skupin
281acf7f9c Bug 905404 - [mozprofile] Remove all default testing related preferences. r=ahal
All preferences which were previously set for test harnesses are
part of testing/profiles now. As such they can all be removed.

--HG--
extra : rebase_source : 3feaac102f7b8a63ec4f07d84e121f26c49ce3c0
extra : histedit_source : e5b474e75d9f2c372c6439502fa1b30c8727e133
2018-09-05 17:01:17 +02:00
Cosmin Sabou
80e58fff22 Backed out changeset 30ec08a53991 (bug 1471888) for awsy test failures. CLOSED TREE 2018-09-11 15:12:53 +03:00
Pavel Slepushkin
05853e660a Bug 1471888 - [mozprofile] Add support for Python 3. r=davehunt
Bug 1471888 - [mozprofile] Add support for Python 3.

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

--HG--
extra : moz-landing-system : lando
2018-09-11 11:34:50 +00:00
Xidorn Quan
044a4b8c2c Bug 1489017 - Locate devenv.exe via vswhere on Windows. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D5117

--HG--
extra : moz-landing-system : lando
2018-09-07 14:59:55 +00:00
egao
be45c91042 Bug 1046146 - Change the way that mozdevice checks for the existence of a directory r=gbrown
Refactored the method by which ADBDevice checks for the presence of files or directories.
- created helper method _test_path(), which accepts a path and command line argument to the test command.
- modified existing methods to use the _test_path() method.

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

--HG--
extra : moz-landing-system : lando
2018-09-06 18:33:22 +00:00
Bogdan Tara
f302cbb0b3 Merge inbound to mozilla-central. a=merge 2018-09-05 02:24:27 +03:00
egao
1a098a6537 Bug 1484238 - Add an 'adb_reverse' command to mozdevice.ADBAndroid r=gbrown,bc
Differential Revision: https://phabricator.services.mozilla.com/D4775

--HG--
extra : moz-landing-system : lando
2018-09-04 14:15:42 +00:00
ui.manish
a5ea6dfab9 Bug 1435552 Remove NO_EM_RESTART from test harnesses; r=gbrown 2018-08-31 15:33:32 +02:00
Andreas Tolfsen
c67e2dd198 Bug 1488006: mozprofile: derive Default for prefreader::Position. r=jgraham
The user might expect to be able to use Default as the type can be
constructed without arguments.
2018-09-04 14:29:01 +01:00
Andreas Tolfsen
ea994573f0 Bug 1488006: mozprofile: avoid incidental functional call; r=jgraham
There is a functional call after ok_or() which is called and
evaluated before escape_char is converted due to RHS evaluation.
We can avoid this by employing a closure with ok_or_else().
2018-09-04 14:29:01 +01:00
Andreas Tolfsen
5f5116a9ec Bug 1488006: mozprofile: deref token to avoid & prefix; r=jgraham
It is considered more idiomatic to dereference the match expression
than to peek at each variant through a reference.

This silences a clippy lint warning.
2018-09-04 14:29:00 +01:00
Andreas Tolfsen
3a22b09028 Bug 1488006: mozprofile: turn single-character strings into chars; r=jgraham
Where we have single-character strings we can convert them to chars
for efficiency.
2018-09-04 14:28:59 +01:00
Andreas Tolfsen
cc5b563e28 Bug 1488006: mozprofile: avoid identical conversions; r=jgraham
PrefReaderError::new already expects a &str.
2018-09-04 14:28:58 +01:00
Andreas Tolfsen
5c6ca540e3 Bug 1488006: mozprofile: loop over references to container; r=jgraham
It is considered more idiomatic Rust to loop over references to
containers rather than calling the iteration protocol's x.iter()
or x.into_iter() explicitly.
2018-09-04 14:28:58 +01:00
Andreas Tolfsen
129ea5a2a5 Bug 1488006: mozprofile: replace call to io::Write::write() with ::write_all(); r=jgraham
io::Write::write() is not guaranteed to process the entire buffer.
It returns how many bytes were processed, which may be smaller than the
given buffer's length.  mozprofile does not need to deal with partial
writes, so all the calls to ::write() may be replaced with ::write_all().
2018-09-04 14:28:57 +01:00
Andreas Tolfsen
70d1acfb74 Bug 1488006: mozprofile: prefer byte string literals to as_bytes() where possible; r=jgraham
Where string literals contain only ASCII characters, it is considered
better style to define byte strings using b"foo" rather than calling
"foo".as_bytes().
2018-09-04 14:28:56 +01:00
Andreas Tolfsen
da30cf1fa1 Bug 1488006: mozprofile: drop needless lifetimes; r=jgraham
Drops all the unnecessary lifetime definitions in mozprofile.
2018-09-04 14:28:56 +01:00
Andreas Tolfsen
4cf5f38cc9 Bug 1488006: mozprofile: avoid redundant field names in struct init; r=jgraham 2018-09-04 14:28:55 +01:00
Andreas Tolfsen
6064b9610a Bug 1488006: mozprofile: format code; r=jgraham
No functional changes, apart from running all the code through
rustfmt prior to fixing clippy lint warnings.
2018-09-04 14:28:55 +01:00
Andreas Tolfsen
397e3d27d5 Bug 1488007: mozversion: format; r=jgraham
No functional changes, except applying rustfmt.
2018-09-04 13:46:38 +01:00
Andreas Tolfsen
7b7c50ebb6 Bug 1488007: mozversion: lint; r=jgraham
Address clippy lint warnings in mozversion.
2018-09-04 13:46:38 +01:00
Bob Clary
705ee14361 Bug 1487220 - [mozrunner] Add a loop to the raw_input in verify_android_device to check if user actually installed app, r=gbrown. 2018-08-30 19:04:46 -07:00
Preeti Mukherjee
bfa8d74f55 Bug 1471920 - [mozbuild] Use shutil.which in Python 3 instead of vendored third-party package r=davehunt
Use shutil.which in mozbuild for Python 3 instead of vendored third-party package, and enable mozversion tests that are fixed under Python 3 by this change.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 16:39:55 +00:00
Bob Clary
c4b7cb740f Bug 1487130 - [mozdevice] Update version to 1.1.0, r=wlach 2018-08-29 10:57:52 -07:00
Bob Clary
7cb17b8a34 Bug 1485855 - [mozdevice] adb.py Do not attempt to chmod external storage as it will not affect permissions and will fail on unrooted devices, r=jmaher. 2018-08-27 06:59:21 -07:00
Bob Clary
6226063bcc Bug 1485854 - [mozdevice] make adb.py _check_adb_root more resilient to differing outputs, r=jmaher. 2018-08-27 06:59:21 -07:00
Bob Clary
4d434dc3ed Bug 1485852 - [mozdevice] rework SELinux support in adb_android.py, r=jmaher. 2018-08-27 06:59:21 -07:00
Bob Clary
2de74229da Bug 1485852 - [mozdevice] adb*.py should use require_root parameter to control root detection, r=jmaher. 2018-08-27 06:59:21 -07:00
Bob Clary
cc3c6c78b2 Bug 1485850 - [mozdevice] document adb*.py timeout and verbose parameters in all classes, r=jmaher. 2018-08-27 06:59:21 -07:00
Raphael Pierzina
37d1b753d2 Convert mozhttpd's test suite to pytest (Bug 1479420) r=davehunt
Currently mozhttpd's test suite uses Python's unittest. Several tests don't
shut down started MozHttpd server instances, resulting in blocking test runs.
This patch resolves that problem by using pytest fixtures.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 15:55:18 +00:00
Akshay Chiwhane
5d96779c1c Bug 1465046 - Remove ProcessHandler.waitForFinish(). r=whimboo
--HG--
extra : rebase_source : 9df8444de596c5868efd18c62054f321513b99d6
2018-08-20 21:28:21 +02:00
Bob Clary
b6ff47bfe1 Bug 1482888 - Allow fennec to record audio, r=gbrown. 2018-08-18 10:47:12 -07:00
Bob Clary
fbae2d44ea Bug 1482884 - During adb push check if remote directory exists before removing basename for adb 1.0.36 and later, r=gbrown. 2018-08-18 10:47:12 -07:00
Bob Clary
fbd6d3dfca Bug 1482878 - Use screencap to capture on physical android device screenshots, r=gbrown. 2018-08-18 10:47:12 -07:00
Bob Clary
ac89381d02 Bug 1482874 - Detect anr traces directory, r=gbrown. 2018-08-18 10:47:12 -07:00
Bob Clary
92e11808e8 Bug 1482873 - Do not check for su 0 id if su -c id is supported, r=gbrown.
This works around a hang on Pixel 2 8.1.0/OPM2.171019.029.B1/4720900
rooted via Magisk where su 0 id will hang.
2018-08-18 10:47:11 -07:00
Tiberius Oros
fffda63981 Backed out changeset aaabe6d53de2 (bug 1428713) for causing Bug 1483850 a=backout 2018-08-17 00:17:04 +03:00
dvarga
87db76ae1a Merge mozilla-central to mozilla-inbound on a CLOSED TREE
--HG--
extra : rebase_source : c9e6b9edae9ecf064d1318fa15d5d57ea42c102a
2018-08-16 01:22:36 +03:00
Pavel Slepushkin
01b4686deb Bug 1428713 - [mozprocess] Add support for Python 3 r=davehunt
MozReview-Commit-ID: 9wHoIEboA0K

--HG--
extra : rebase_source : f1b1c3a1dcbcd9038adb7a149fc00f7c1849d6e1
2018-08-04 17:32:57 +02:00
Geoff Brown
2b831a4422 Bug 1483563 - Remove 'mach autophone'; r=bc
Autophone has been retired.
2018-08-15 12:54:08 -06:00
Andreas Tolfsen
8f5737840d Bug 1483288 - Provide more number conversions for mozprofile::preferences::PrefValue. r=whimboo
Allow i8, u8, i16, u64, i32, and u32 to be implicitly converted into
PrefValue::Int.  u64 is not supported because it would overflow,
so this still needs to be handled manually.

geckodriver stores the port number as u8 and this will allow it to
implicitly convert it to PrefValue::Int without using the unsafe
"as i64" coercion.
2018-08-15 15:49:09 +01:00
Brindusan Cristian
6a85eae780 Backed out changeset d08617053829 (bug 1428713) for awsy-base failures. CLOSED TREE 2018-08-15 16:46:18 +03:00
Pavel Slepushkin
2022970c76 Bug 1428713 - [mozprocess] Add support for Python 3 r=davehunt
MozReview-Commit-ID: 9wHoIEboA0K

--HG--
extra : rebase_source : ef02475141a1c2d7aa1fb95e2da637b6c033c35f
2018-08-04 17:32:57 +02:00
William Lachance
d65b9942a2 Bug 1482898 - Support running adb commands in mozdevice as non-root;r=bc 2018-08-13 10:51:12 -04:00
James Graham
38b6d8b9c7 Bug 1482238 - Bump version of regex in mozversion, r=froydnj
MozReview-Commit-ID: 4VxqemrFWf0

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

--HG--
extra : moz-landing-system : lando
2018-08-10 20:43:53 +00:00
Chris AtLee
182e3f8445 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743

--HG--
extra : moz-landing-system : lando
2018-08-01 16:00:03 +00:00
Andrew Halberstadt
578b5805ba Bug 1478050 - [moztest] Clean up broken symlinks when setting up test_harness_root r=gbrown
It's unclear how this situation can actually happen, but it has caused a couple of
intermittents.

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

--HG--
extra : moz-landing-system : lando
2018-07-25 19:05:50 +00:00
James Graham
8b666c4875 Bug 1477219 - Update mozlog version number for release, r=ahal
Bump the version number to 3.8, incorporating the LSAN changes. This
minor version bump assumes that mozlog consumers are supposed to
handle unknown actions gracefully (i.e. by ignoring them) and
therefore adding actions doesn't count as a compat-breaking change.

MozReview-Commit-ID: ECsDTuUgkfQ
2018-07-20 13:59:46 +01:00
James Graham
73f2d1ad5b Bug 1354232 - Ensure lsan failures cause treeherder jobs to fail, r=ahal
MozReview-Commit-ID: 56BMxWYWwGr
2018-07-19 16:32:13 +01:00
James Graham
5fd56eafb2 Bug 1354232 - Add support for LSAN to mozlog, r=ahal, mccr8
This adds two new actions to mozlog, one for reporting an LSAN
failure, and one for reporting the summary.

MozReview-Commit-ID: D7ep27SrI1n
2018-07-19 16:32:13 +01:00
James Graham
d234e52c5b Bug 1354232 - Copy LSANLeaks to mozleak, r=ahal
This is a copy for now rather than a move because followup patches are
going to convert the LSAN support to use mozlog and I don't want to
risk breaking mochitest by accident.

MozReview-Commit-ID: I6NVgjDjsX2
2018-07-19 16:32:13 +01:00
Kirk Steuber
da107c225e Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in the test harness r=ato,chutten,jmaher,lina
MozReview-Commit-ID: GCGKQ5QCC7o

--HG--
extra : rebase_source : ba135c7d285987fd030fef4e18a5aa701a43cdba
extra : intermediate-source : e6c89a0ff0c7a7e7cd1c028e49660bab0416a531
extra : source : 646080a591c0d2365d6e8f4a493607fa3fff86c9
2018-05-22 09:14:19 -07:00
Raphael Pierzina
d4d5aeaf26 Bug 1428709 - Enable several mozhttpd tests for Python 3; r=davehunt
MozReview-Commit-ID: K7m58KGR29N

--HG--
extra : rebase_source : cc95b403348679ee4cc263c7ae0e9f6d54026261
2018-07-12 18:37:54 +02:00
Raphael Pierzina
6650158314 Bug 1428709 - Add six for Python 3 compat in mozhttpd; r=davehunt
MozReview-Commit-ID: 1fNdmG9YVQq

--HG--
extra : rebase_source : 560e433640947384baf93d53ffaedad3a64ea2c4
2018-07-03 11:42:29 +02:00
Raphael Pierzina
0ea361ac9f Bug 1428709 - Add py35 skip-if to individual mozhttpd tests;r=davehunt
MozReview-Commit-ID: GXbdp9SU3vn

--HG--
extra : rebase_source : 933bf29e3035c961bfc921dec7947dc311bfb70d
2018-07-03 11:23:02 +02:00
Andreea Pavel
1e8d2e6f7d Backed out 7 changesets (bug 1420514) for breaking bc on different files on a CLOSED TREE
Backed out changeset 5a46a221b6e8 (bug 1420514)
Backed out changeset 48ed6dfe8772 (bug 1420514)
Backed out changeset 01bf643c77e5 (bug 1420514)
Backed out changeset 5791b17ccb82 (bug 1420514)
Backed out changeset 416e398d942f (bug 1420514)
Backed out changeset de4a4592dbd9 (bug 1420514)
Backed out changeset d3399edf0197 (bug 1420514)
2018-07-12 21:22:32 +03:00
Kirk Steuber
35d8c30dbb Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in the test harness r=ato,chutten,jmaher,lina
MozReview-Commit-ID: GCGKQ5QCC7o

--HG--
extra : rebase_source : e38cf587711192c3020cd9ac6a39cdbd97d2600b
extra : source : 646080a591c0d2365d6e8f4a493607fa3fff86c9
2018-05-22 09:14:19 -07:00
Raphael Pierzina
f17db4328b Bug 1471625 - Bump mozinfo to v1.0.0 and update classifiers;r=davehunt
MozReview-Commit-ID: 1Kgl4fCzCyq

--HG--
extra : rebase_source : 865e9abdd4a04b3e3dc1906ce8ec497096f5e6b3
2018-07-03 14:22:11 +02:00
Raphael Pierzina
6eaf5002c2 Bug 1471625 - Create setup.cfg for universal wheels in mozinfo;r=davehunt
MozReview-Commit-ID: 3GRRIx3KH6x

--HG--
extra : rebase_source : 405d134b1d9b7cf01bae2a00c470c69fa0a7c72e
2018-07-03 13:39:20 +02:00
Raphael Pierzina
b259225456 Bug 1471625 - Resolve Python 3.5 compat issues in mozinfo;r=davehunt
MozReview-Commit-ID: HdPEVAJnXZf

--HG--
extra : rebase_source : ede5641bf5a03fc59d49a95c4b93f93aa69c0c16
2018-07-03 11:06:11 +02:00
Bogdan Tara
6eafe1c00b Backed out changeset 9c75cab2e322 (bug 733530) for breaking artifact builds 2018-07-04 14:50:22 +03:00
Chris AtLee
8745339529 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743

--HG--
extra : moz-landing-system : lando
2018-07-03 18:33:02 +00:00
Cosmin Sabou
8ce5b1c6cf Backed out 3 changesets (bug 1471625) for linting failure on mozinfo/tests/test.py. CLOSED TREE
Backed out changeset 7d0fb7a6b9fa (bug 1471625)
Backed out changeset 217570468fde (bug 1471625)
Backed out changeset 70d0097e8c03 (bug 1471625)
2018-07-03 17:02:02 +03:00
Raphael Pierzina
25881406e9 Bug 1471625 - Bump mozinfo to v1.0.0 and update classifiers;r=davehunt
MozReview-Commit-ID: 1Kgl4fCzCyq

--HG--
extra : rebase_source : 62bfddcd6444fe820d0c2b94bf7d9f60d12d4fa3
2018-07-03 14:22:11 +02:00
Raphael Pierzina
8d972d1397 Bug 1471625 - Create setup.cfg for universal wheels in mozinfo;r=davehunt
MozReview-Commit-ID: 3GRRIx3KH6x

--HG--
extra : rebase_source : 73f980885e08760fa9052964ff6ae3db24e454be
2018-07-03 13:39:20 +02:00
Raphael Pierzina
d4d653049f Bug 1471625 - Resolve Python 3.5 compat issues in mozinfo;r=davehunt
MozReview-Commit-ID: HdPEVAJnXZf

--HG--
extra : rebase_source : 0fb105798e6aae08c05edf433ff65e6b8a08cba3
2018-07-03 11:06:11 +02:00
Raphael Pierzina
bb8e7208ea Bug 1471622 - Fix mozfile's test_tempfile.py under Python 3.5; r=davehunt
MozReview-Commit-ID: JuWRTVEFJtv

--HG--
extra : rebase_source : 11393471d8d199623d2150071fa75e1e5a26504f
2018-07-03 10:09:41 +02:00
Raphael Pierzina
79eaf1fafd Bug 1471622 - Fix mozfile's test_extract.py under Python 3.5; r=davehunt
MozReview-Commit-ID: 5c8SoMMpv70

--HG--
extra : rebase_source : 65717f1f056d43588b4df59ea765a7ec2e2657c0
2018-07-03 09:56:18 +02:00
Jeff Gilbert
000829776c Bug 1471112 - Split mochitest-gl into mochitest-webgl[1,2]-[core,ext] - r=gbrown
Also include webgl2-deqp, which we would like to run eventually, but not yet.

MozReview-Commit-ID: CY4hYCI95ws

--HG--
extra : rebase_source : 9973df0f905bb65d2e8b8c66a6a57e8869e527c1
2018-06-25 20:23:33 -07:00
Gurzau Raul
4074ba4032 Backed out 2 changesets (bug 1471112) for failing webgl2 tests on OSX
Backed out changeset 7f2d98706144 (bug 1471112)
Backed out changeset 1f26d0868935 (bug 1471112)
2018-06-29 18:20:55 +03:00
Jeff Gilbert
9786adccaf Bug 1471112 - Split mochitest-gl into mochitest-webgl[1,2]-[core,ext] - r=gbrown
Also include webgl2-deqp, which we would like to run eventually, but not yet.

MozReview-Commit-ID: FDWdu1J0end

--HG--
extra : rebase_source : a47d88cb2c5eb82e4dfaa9e58d76acbf0736d35d
2018-06-25 20:23:33 -07:00
Tom Ritter
0f2235111d Bug 1469933 When using ./mach run --debugger=windbg, use the x64 version of WinDBG r=ted
Summary: Bug 1469933 When using ./mach run --debugger=windbg, use the x64 version of WinDBG r?ted

Reviewers: ted

Reviewed By: ted

Bug #: 1469933

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

--HG--
extra : amend_source : 67de4dae3a129df77976da82005acb47ad64b5ed
2018-06-27 16:16:57 +03:00
Geoff Brown
15f306a0f1 Bug 1425471 - Avoid use of netcfg in Android marionette tests; r=bc 2018-06-26 16:17:50 -06:00
Dave Hunt
696d9f1858 Bug 1388016 - Run mozbase tests against Python 2 and 3; r=ahal
MozReview-Commit-ID: LdmTHHrLZwq

--HG--
extra : rebase_source : e7f21bb73ffc1a322a10eef21b705b14a2077144
2018-06-21 06:26:17 +01:00
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