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

1363 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 487c30e181 Bug 1493796 - [mozprocess] Revert poll() behavior on Windows due to regression. r=gbrown
Originally landed as changeset 8793e332890e via bug 1433905 the
patch caused a regression because GetExitCodeProcess() returns
0 for an inside of Firefox restarted process.

It can be relanded once the process id of the job object can
successfully be tracked.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 15:32:28 +00:00
Geoff Brown 98f7372cce Bug 1499511 - Add unit test for adb.py _escape_command_line; r=bc 2018-10-17 11:11:52 -06:00
Bob Clary 26b400b059 Bug 1499511 - [mozdevice] Support single-quotes in adb command line, r=gbrown. 2018-10-17 06:53:29 -07:00
Bob Clary 387a996ebf Bug 1499102 - [mozdevice] Allow HOST:PORT as device serial number, bump mozdevice to version 1.1.3, r=gbrown. 2018-10-15 21:03:00 -07:00
Ciure Andrei 6782f178aa Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-10-13 12:40:23 +03:00
Wes Kocher 08745f46ef Bug 1498680 - Fix wpt runner's browser stop implementation: request stop before waiting; r=kwierso
The current implementation waits for fennec to stop before trying to stop it - easy enough
to address. At the same time, I am updating the runner stop implementation to try
stop_application before kill: stop_application shuts down the application more
cleanly; kill should only be used as a backup.

--HG--
extra : source : d95463150a6fccfc51fe190693d2528cbeec49a4
2018-10-12 23:55:47 -07:00
Andreas Farre 9c89776534 Bug 1480198 - Check for allowed patterns deeper in LSAN stack. r=jgraham
Add the property lsan-max-stack-depth to enable configuring how many
stack frames we allow LSANLeaks to record.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 11:43:38 +00:00
Narcis Beleuzu c31a01ef52 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-12 00:57:21 +03:00
Geoff Brown 90b6dc31b9 Bug 1497566 - Remove logcat functionality from mozrunner; r=automatedtester
When testing locally, logcat can be run easily; in CI, mozharness scripts manage
logcat and save the logcat as a test artifact.
2018-10-11 09:47:55 -06:00
Raphael Pierzina 97a1f5b5ba [mozfile] Bump version to 2.0.0, update classifiers and add setup.cfg (Bug 1471622) r=davehunt
[mozfile] Bump version to 2.0.0, update classifiers and add setup.cfg (Bug 1471622)

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

--HG--
extra : moz-landing-system : lando
2018-10-11 14:20:10 +00:00
James Graham 2550468ec1 Bug 1497586 - Update mozlog version number for release, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D8114

--HG--
extra : moz-landing-system : lando
2018-10-10 15:53:34 +00:00
Raphael Pierzina 50207b9243 Bug 1471622 - Update dependency specifier for mozfile in mozrunner; r=davehunt
Depends on D8096

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

--HG--
extra : moz-landing-system : lando
2018-10-10 10:11:13 +00:00
Raphael Pierzina 866cdc914d Bug 1471622 - Update dependency specifier for mozfile in mozprofile; r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D8096

--HG--
extra : moz-landing-system : lando
2018-10-10 10:11:26 +00:00
Edwin Gao 7a26c4e550 Bug 1495596 - change how ADBAndroid checks for presence of 'ls' command r=bc,gbrown
Changes:

- changed the directory checked by the `/system/bin/ls` or `/system/xbin/ls` to be `/system`.
- factor out the directory to a single variable.

Checks:

- mozregression continues to function, checked with emulator
- try runs for all platforms look acceptable

Thoughts:

- error message slightly altered to address comment 10 on bugzilla, however this may not be enough.

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

--HG--
extra : moz-landing-system : lando
2018-10-05 16:00:32 +00:00
James Graham 43dd99c169 Bug 1275926 - Upstream grouping mozlog formatter from Servo, r=ahal
This is designed to produce minimal output; just show which tests are
running and then provide details at the end for tests that gave an
unexpected result.
2018-10-09 13:15:30 +01:00
Brindusan Cristian 693c2fa7e3 Backed out 2 changesets (bug 1275926) for linting failure on grouping.py. CLOSED TREE
Backed out changeset 0d5f2da0dce7 (bug 1275926)
Backed out changeset 4ee6bd59c115 (bug 1275926)
2018-10-09 14:48:53 +03:00
James Graham 1a638683d6 Bug 1275926 - Upstream grouping mozlog formatter from Servo, r=ahal
This is designed to produce minimal output; just show which tests are
running and then provide details at the end for tests that gave an
unexpected result.
2018-10-09 12:06:25 +01:00
Alex Gaynor 8c784a6c6d Bug 1498247 - Part 3 - switch from using the deprecated env::home_dir() to the dirs crate; r=jgraham
Depends on D8578

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

--HG--
extra : moz-landing-system : lando
2018-10-12 17:26:21 +00:00
Alex Gaynor b796049372 Bug 1498247 - Part 1 - Add a dependency on dirs for getting the home directory; r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D8577

--HG--
extra : moz-landing-system : lando
2018-10-12 17:24:43 +00:00
Edwin Gao b4f0f75efe Bug 1197370 - Add chown method to adb.py, refactor chmod r=bc
Behavior changes:

- added method for ADBDevice class called chown
- when initializing ADBDevice class, check if recursive flag is supported (similar to chmod -R)

Other changes:
- handling for situation where recursive is desired but -R flag is not supported is in place
- changed behavior above situation to mirror chmod (creation of temporary file based on `self.ls` output, then executing script on device using adb

Unit Tests:
- unit tests to exercise attributes and common paths created. Would need further expansion of tests at some point.
- additional mocking fixtures created.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 16:58:35 +00:00
James Graham c32b272c7a Bug 1496452 - Don't log wpt manifest update when resolving tests r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D7732

--HG--
extra : moz-landing-system : lando
2018-10-05 16:46:52 +00:00
Csoregi Natalia 9d55d83f31 Merge inbound to mozilla-central. a=merge 2018-10-05 01:29:38 +03:00
Henrik Skupin 6156b8d1f5 Bug 1433905 - [mozprocess] poll() always returns None for stopped process until wait() is called. r=gbrown
If the process quits externally (shutdown by itself or via kill),
the poll method still returns None, even with the process not
existent anymore.

To fix that, the poll method should at least try to join the reader
thread once before checking if it is still alive. Otherwise it will
continue to run, and never stop.

Also the attribute existence check for "returncode" on the process
instance has to be removed because this property always exists.
Instead a check for the "returncode" property of the ProcessHandler
class is necessary.

Depends on D7396

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

--HG--
extra : moz-landing-system : lando
2018-10-04 14:51:32 +00:00
Henrik Skupin 0b6b3e94da Bug 1433905 - [mozprocess] Existence of _handle on Windows doesn't mean the process is still alive. r=gbrown
The assumption that when a handle is present for the process handler
on Windows doesn't mean that the process is still alive. It could
have already been externally killed, crashed, or closed itself.

The patch makes sure to check the process exit code, and run
clean-up steps if the process is already gone.

Depends on D7395

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

--HG--
extra : moz-landing-system : lando
2018-10-04 14:52:47 +00:00
Henrik Skupin 4a1ba8961f Bug 1433905 - [mozprocess] Fix broken path to process script for test_process_output_nonewline. r=gbrown
Depends on D7394

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

--HG--
extra : moz-landing-system : lando
2018-10-04 10:49:52 +00:00
Henrik Skupin dc3840d283 Bug 1433905 - [mozprocess] "check_for_detached()" has to raise RuntimeError if process hasn't been started yet. r=gbrown
Calling "check_for_detached()" doesn't make sense if the process
hasn't been started yet, and as such has to raise a RuntimeError.

Depends on D7393

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

--HG--
extra : moz-landing-system : lando
2018-10-04 10:49:24 +00:00
Henrik Skupin 8744982dbc Bug 1433905 - [mozprocess] Retrieving pid has to fail with RuntimeError if process hasn't been started yet. r=gbrown
Instead of an AttributeError a RuntimeError has to be thrown if
the underlying process hasn't been created yet.

Depends on D7392

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

--HG--
extra : moz-landing-system : lando
2018-10-04 10:48:50 +00:00
Cosmin Sabou f34bdc7e4b Backed out changeset 8660ad891a23 (bug 1495372) for causing win2012 bustages. a=backout 2018-10-04 02:25:45 +03:00
Cosmin Sabou 7244d89e06 Backed out changeset dcba2a476ccf (bug 1305743) on request from jgraham for causing issues with mozinfo.json. a=backout 2018-10-04 01:05:44 +03:00
Edwin Gao ee7107754b Bug 1190701 - make ADBAndroidMixin.is_app_installed() unambiguous r=bc,gbrown
Behavior changes:
- ADBAndroidMixin.is_app_installed() will now perform a strict check on `app_name` provided. Previously, the behavior was to do a fuzzy match, where as long as the provided `app_name` matched some item on the list it would return True. Now, the exact string as shown when user calls `adb shell > pm list packages` will be required in order to generate a True return value.

Other changes:
- bumped mozdevice version to 1.1.2 reflecting minor behavior change.
- addition of unit tests for ADBAndroidMixin.is_app_installed() method call and surrounding helper methods such as mocked fixtures, manifest changes.

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

--HG--
extra : moz-landing-system : lando
2018-10-02 18:39:38 +00:00
James Graham 57c945674a Bug 1495372 - Unify wpt manifest download and update r=ato
The previous code split a lot of logic between the update and download
parts, and exposed two different mach commands. In order to simplify
things it's better to have a single entry point for manifest download
and update, and ensure that's called consistently.

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

--HG--
extra : moz-landing-system : lando
2018-10-03 15:43:44 +00:00
Geoff Brown 0b2be11c56 Bug 1495863 - Pass mozrunner adb path when creating ADBHost; r=bc 2018-10-02 16:55:10 -06:00
James Graham 8df230bb58 Bug 1495372 - Unify wpt manifest download and update, r=ato
The previous code split a lot of logic between the update and download
parts, and exposed two different mach commands. In order to simplify
things it's better to have a single entry point for manifest download
and update, and ensure that's called consistently.

Differential Revision: https://phabricator.services.mozilla.com/D7497
2018-10-04 14:19:38 +01:00
Andreas Tolfsen 4b95006f04 bug 1494613: mozprofile: add docs for Pref::new and ::new_sticky r=whimboo 2018-09-29 15:45:30 +01:00
James Graham 04f21f657a Bug 1494963 - Expose mozdebug's DebuggerInfo type r=ahal
Otherwise it doesn't work with multiprocessing, which breaks debugging wpt on Windows.

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

--HG--
extra : moz-landing-system : lando
2018-09-28 15:55:18 +00:00
Andrew Halberstadt 9e9fc55acc Bug 1470266 - [moztest.resolve] Make task regexes more resilient to change, r=jmaher
These regexes are used for things like determining which tasks to run given a
"path" int |mach try|. Previously, we used patterns like:

mochitest-chrome-(?:e10s)?(?:-1)?$

This would match both e10s and non-e10s versions of a task with either no
chunks, or only selecting chunk 1. But we keep adding other configurations, e.g
-gpu, -no-accel, -sw, etc.  Each time we create a new possibility we need to
remember to update these task regexes (or else lose test coverage when using
paths with |mach try|).

Instead of individually listing every possibility, let's use a pattern like
this:

mochitest-chrome($|.*(-1|[^0-9])$)

This also selects tasks that are either chunk 1 or don't have any chunks.  But
it allows for arbitrary strings in-between. This regex doesn't need to be
updated when we add configurations like -sw.

Depends on D7119

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

--HG--
extra : moz-landing-system : lando
2018-09-28 07:15:36 +00:00
Andrew Halberstadt aebcf45519 Bug 1470266 - [moztest.resolve] Create a unittest for the task regexes, r=jmaher
I almost forgot to update the regexes in moztest.resolve when creating the -sw
variant of task. This adds a test to make sure we don't forget more things in
the future.

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

--HG--
extra : moz-landing-system : lando
2018-09-28 06:59:39 +00:00
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