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

989 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 57ae48126f Bug 1398223 - Add a webrender flag to mozinfo to allow using it in mochitest.ini conditions. r=gbrown
MozReview-Commit-ID: IEgirFNntzS

--HG--
extra : rebase_source : ce25ccba7e1a8274733c412c61e84cb680315683
2017-09-20 16:24:39 -04:00
Andrew Halberstadt c3c1749786 Bug 1392390 - Create a reftest selftest harness, r=jmaher
This just adds two basic tests, one for a passing test and another for a
failing one. In mochitest, we use privileged APIs to also tests crashes,
assertions, asan and leaks. But these APIs aren't available to reftests
so I'm not sure how we can test these things.

I figure it's not worth holding the framework up on this though, I'll file
a follow-up to figure out something to do for that.

MozReview-Commit-ID: 59TSbsugT5T

--HG--
extra : rebase_source : 72ecd817017c8b7d55eab879db4f6ad5fecc54c0
2017-09-11 16:08:01 -04:00
Andrew Halberstadt 9efc4d301f Bug 1392390 - Refactor common code out of mochitest selftests and into a new moztest.selftest module, r=jmaher
This includes code for downloading a Firefox binary, downloading + setting up a tests.zip and
running output through mozharness' output parsers. This is all stuff that will also be required
for the reftest selftests.

I couldn't think of a better location to put this stuff, suggestions welcome.

MozReview-Commit-ID: 59TSbsugT5T

--HG--
extra : rebase_source : a328f6bc90e73fe23f9054933cd01a30065419f6
2017-09-11 16:06:06 -04:00
Myk Melez 87ae2b846a Bug 1398345 - find llvm-symbolizer, get memory size on Mac; r=ahal 2017-09-11 09:04:57 -07:00
Cosm 917335fa1c Bug 1395956 - Update gecko.readthedocs links to the new firefox-source-docs.mozilla.org location. r=chutten 2017-09-02 22:11:02 +05:30
Geoff Brown 7a2a74a3fb Bug 1395718 - In devicemanager killProcess, only use force-stop when a signal is not specified; r=bc
dm.killProcess correctly tries to use 'am force-stop' in preference to kill()
to end a process. But some clients of killProcess specify a kill signal and
use killProcess for purposes other than endding the process, for example, to trigger
crash dumps. To allow for these cases, it is better to not use force-stop when a
signal is specified.
2017-09-01 11:35:45 -06:00
Andrew Halberstadt f79b06a32a Bug 1339178 - Use pytest to run python-tests, r=davehunt
This switches most tests over to use pytest as the runner instead of unittest (taking
advantage of the fact that pytest can run unittest based tests).

There were a couple tests that had failures when swithing to pytest:
config/tests/unit-expandlibs.py
xpcom/idl-parser/xpidl/runtests.py

For these tests, I added a runwith='unittest' argument so that they still run the
same way as before. Once we fix them to use pytest, the unittest logic in mozunit.py
can be deleted.

MozReview-Commit-ID: Gcsz6z8MeOi

--HG--
extra : rebase_source : 3c762422ce0af54cbbe7d9fc20085a2d1ebe7057
2017-08-29 14:50:33 -04:00
Ganti Sai Sarath Chandra 6ed789d12b Bug 1378422 - Add python 2 only classifiers to python modules under /testing, r=ahal
MozReview-Commit-ID: DRi8KFyCnBn

--HG--
extra : rebase_source : 3ac98bdc648f8a0e3dc6d3b6d42e19dfc295a396
2017-08-19 04:19:06 +05:30
Wes Kocher b1fc5e008c Merge inbound to central, a=merge
MozReview-Commit-ID: 4cWGBbMEU2x
2017-08-18 15:53:07 -07:00
Eric Rahm 0938982c90 Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj
--HG--
extra : rebase_source : 063c7f95dda063eafabfa1921366bd1957b8fe73
2017-08-11 17:45:18 -07:00
Mike Hommey 2874ecd82e Bug 1384062 - Make SystemResourceMonitor.stop more resilient to errors. r=ahal,gps
The poll() call in SystemResourceMonitor.stop might fail even though
there is something to read from the pipe, in some corner cases, and
python won't let us know about it. In that case, an exception is thrown,
leaving the SystemResourceMonitor (and its callers) in a weird state. In
practice, this leads BuildMonitor.__exit__ to recall stop, which then
fails.

So when poll() throws an exception, we pretend there's still something
to read, and we try to read anyways. If there is something to read,
recv() will return it, otherwise, it will throw an exception of its own,
which we catch, pretending we're done.

Furthermore, when there is nothing to read from the pipe, poll() simply
returns False, and our loop never sets `done` to True, and we then hit
an assert, which doesn't have its place here, so we remove it.

Finally, the other end of the pipe might have died at any time, making
sending over the pipe fail, so we also protect against that.

With all these changes, it feels like the reason to backout bug 1239939
in bug 1272782 should have been dealt with, and we can drop the timeout
again.

--HG--
extra : rebase_source : ac72dd5b2602cf3ffddfb429f95e02380f939893
2017-08-16 13:16:16 +09:00
Phil Ringnalda cbc5805a36 Backed out changeset 4e9cd1d537cc (bug 1384062) for flake8 failures
MozReview-Commit-ID: C2AVg8g3xpV
2017-08-17 20:39:43 -07:00
Mike Hommey 452fa31f52 Bug 1384062 - Make SystemResourceMonitor.stop more resilient to errors. r=ahal,gps
The poll() call in SystemResourceMonitor.stop might fail even though
there is something to read from the pipe, in some corner cases, and
python won't let us know about it. In that case, an exception is thrown,
leaving the SystemResourceMonitor (and its callers) in a weird state. In
practice, this leads BuildMonitor.__exit__ to recall stop, which then
fails.

So when poll() throws an exception, we pretend there's still something
to read, and we try to read anyways. If there is something to read,
recv() will return it, otherwise, it will throw an exception of its own,
which we catch, pretending we're done.

Furthermore, when there is nothing to read from the pipe, poll() simply
returns False, and our loop never sets `done` to True, and we then hit
an assert, which doesn't have its place here, so we remove it.

Finally, the other end of the pipe might have died at any time, making
sending over the pipe fail, so we also protect against that.

With all these changes, it feels like the reason to backout bug 1239939
in bug 1272782 should have been dealt with, and we can drop the timeout
again.

--HG--
extra : rebase_source : fededf989fe9021654b67d5a070f7e49aa717f3c
2017-08-16 13:16:16 +09:00
William Lachance b16d5c2ff2 Bug 1390208 - Remove metro-specific code from testing/mozbase r=ahal
MozReview-Commit-ID: 5SPYXXTlFFt

--HG--
extra : rebase_source : 59d06862b4ff2408da69ac595511fdfff3cfdc0e
2017-08-14 13:12:07 -04:00
Andrew Halberstadt 57887f2601 Bug 1328830 - [manifestparser] Check line continuation before looking for next key, r=jmaher
Currently manifestparser will only look for line continuations *after* looking for a key. This means
that line continuations cannot contain key separators. For example, this:

    [test]
    foo=
      bar=baz

gets treated as:

    {'name': 'test', 'foo': '', 'bar': 'baz'}

Here, bar=baz will be treated as a new key/value pair despite the indentation. This patch switches
the order around, so we look for a continuation first. Now, it is only treated as a continuation if
the indent is greater than the indent of the preceding key.

So this manifest:

    [test]
    foo=bar
      baz=fleem

is a continuation and results in:

    {'name': 'test', 'foo': 'bar\nbaz=fleem'}

But this manifest:

    [test]
      foo=bar
      baz=fleem

is not a continuation, and yields:

    {'name': 'test', 'foo': 'bar', 'baz': 'fleem'}

MozReview-Commit-ID: FAMP5TUIo9q

--HG--
extra : rebase_source : 624c53cfe0565374c1224dd86a3fffc8831279d3
2017-07-19 14:48:01 -04:00
Dave Hunt 2eedc3c26e Bug 1349516 - Add support to pytest-mozlog for tests rerun using pytest-rerunfailures; r=ahal
MozReview-Commit-ID: GrFaW74EwXC

--HG--
extra : rebase_source : db4de3ddc815e3bd1802e0f7cbe4fe07255a54ca
2017-07-20 18:03:11 +01:00
Tarek Ziadé 6f2a6cfd6e Bug 1377510 - Add the ability to install webextensions with mozprofile r=automatedtester
MozReview-Commit-ID: DgI7hZFKHns

--HG--
extra : rebase_source : 90731ffd050f9968238f7f1ba1668918c257750d
2017-07-24 12:08:53 +02:00
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Alex Gaynor b08206238c Bug 1374557 - Part 2 - Use the new preference to whitelist paths for reading that are needed by tests; r=gcp,haik,jmaher
MozReview-Commit-ID: 4IaTrHPHZaC

--HG--
extra : rebase_source : 28824735f74b369d5755b3bced0f61d22c7c8845
2017-06-21 10:24:16 -04:00
Sebastian Hengst 5543531191 Backed out changeset 32f1daf0a256 (bug 1372263) for crashing in mochitests dom/ipc/tests/test_CrashService_crash.html and dom/ipc/tests/test_process_error.xul with js::ctypes::ConvertToJS. r=backout on a CLOSED TREE 2017-07-01 00:37:33 +02:00
Andrew Halberstadt d37e12c516 Bug 1372263 - Set MOZ_CRASHREPORTER_SHUTDOWN in mozrunner based unittests, r=ted
MozReview-Commit-ID: JTdTLOLWn5r

--HG--
extra : rebase_source : ca5630c1e3f4c79c1b791e80049652e14b722ec2
2017-06-22 16:35:04 -04:00
Christian Holler b8ee76ebd8 Bug 1373256 - Changes to support -fsanitize=integer in the codebase. r=froydnj
The -fsanitize=integer analysis from UBSan can be helpful to detect signed and unsigned integer overflows in the codebase. Unfortunately, those occur very frequently, making it impossible to test anything with it without the use of a huge blacklist. This patch includes a blacklist that is broad enough to silence everything that would drain performance too much. But even with this blacklist, neither tests nor fuzzing is "clean". We can however in the future combine this with static analysis to limit ourselves to interesting places to look at, or improve the dynamic analysis to omit typical benign overflows.

It also adds another attribute that can be used on functions. It is not used right now because it was initially easier to add things to the compile-time blacklist to get started.

Finally, it includes a runtime suppression list and patches various parts in the test harnesses to support that. It is currently empty and it should not be used on frequent overflows because it is expensive. However, it has the advantage that it can be used to differentiate between signed and unsigned overflows while the compile-time blacklist cannot do that. So it can be used to e.g. silence unsigned integer overflows on a file or function while still reporting signed issues. We can also use this suppression list for any other UBSan related suppressions, should we ever want to use other features from that sanitizer.

MozReview-Commit-ID: C5ofhfJdpCS

--HG--
extra : rebase_source : 952043a441b41b2f58ec4abc51ac15fa71fc142f
2017-04-09 12:59:26 +02:00
James Graham 6035ebf6c6 Bug 1376977 - Update mozlog version number for release, r=whimboo
MozReview-Commit-ID: 6NPCSOXnSAI
2017-06-28 20:06:18 -07:00
James Graham 187d2e0308 Bug 1375145 - Make xdist hook optional in pytest-mozlog, r=davehunt
MozReview-Commit-ID: 6wVUi9XoLZX

--HG--
extra : rebase_source : c2894130a01be8f37383d318ee927fe093b14b68
2017-06-21 18:07:27 +01:00
Carsten "Tomcat" Book 859e15bbda Backed out changeset ea9c2e2a07e5 (bug 1375145) for test failures in /mozlog/pytest_mozlog/plugin.py:10:1 2017-06-22 12:13:36 +02:00
James Graham 3a7558d388 Bug 1375145 - Make xdist hook optional in pytest-mozlog, r=davehunt
MozReview-Commit-ID: 6wVUi9XoLZX

--HG--
extra : rebase_source : cf43a64a98f2cc961918b3666900a4e228b953e7
2017-06-21 18:07:27 +01:00
Andrew Halberstadt c9beaa56b4 Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher
This is needed before we can upgrade to flake8 3.3.0, as that version starts flagging these errors.

These files were modified by running:
autopep8 --select E305 --in-place -r <dir>

on the affected directories. I did it one dir at a time and verified the result after each.

MozReview-Commit-ID: FmlsfiKIbtr

--HG--
extra : rebase_source : 9df32258cadff5d27a0e72113c57f782756c0b18
2017-06-15 12:10:59 -04:00
Andrew Halberstadt aeecd3dc7c Bug 1372668 - [mozlog] Limit the size of data logged from error message when suite_start called multiple times, r=jgraham
We've seen a couple of enormous log files (200MB+). This largely happened due to a bug in the test harness that resulted
in suite_start being called over and over again. In each of these instances, mozlog logged something like:
log.error("Suite start called multiple times: {}".format(data))

The problem is that 'data' contained every single test id in the suite, which was *a lot*. Dumping all test ids in that
error message is not useful for debugging. This patch limits the size of the 'suite_start' data in the error message to
100 characters.

MozReview-Commit-ID: GnPizNrZ2QJ

--HG--
extra : rebase_source : 985d484544da9ea4cce445ce406fe085f86f112b
2017-06-14 11:20:39 -04:00
Andrew Halberstadt c7ebd24d8e Bug 1048446 - [mozlog] Don't re-use existing loggers when calling mozlog.commandline.setup_logging a second time, r=jgraham
This is case that got hit with the new mochitest selftest harness. In this scenario, several MochitestDesktop instances
(which call commandline.setup_logging in their constructor) are instantiated in the same interpreter. Because mozlog
implicitly saves the logger state, this meant that setup_logging kept appending duplicate handlers to the existing ones.

I believe that the intent of 'setup_logging' is to get a brand new logger, so it should ensure logger state is reset
on subsequent calls.

MozReview-Commit-ID: Jqyhbj7nC6z

--HG--
extra : rebase_source : f267489bef99f3ac3d657357002a0001610a038f
2017-05-29 14:23:04 -04:00
Andrew Halberstadt c9821f47ec Bug 1048446 - [mozinstall] Add ability to download and extract installer from a url, r=whimboo
This is a minor convenience for downloading the installer from a url. It uses requests (which should be
available everywhere in-tree).


MozReview-Commit-ID: 8IfiVkYNr06

--HG--
extra : rebase_source : cb8798cf3adb61008a5dac3794043950e48c3d6a
2017-03-09 12:20:03 -05:00
Andrew Halberstadt f863907f7e Bug 1370359 - Stop dumping all tests to errorsummary.log; include manifest in error lines, r=jgraham
MozReview-Commit-ID: 9m0ArgifgU9

--HG--
extra : rebase_source : 25ba80a4e2947e727c055a35c47ce0275df41682
2017-06-06 15:05:17 -04:00
William Lachance a95523e2a5 Bug 1366919 - Bump mozinfo version to 0.10 r=ahal
MozReview-Commit-ID: 2k5xgTogSN6

--HG--
extra : rebase_source : f92dfdf4cede8309a4f9fc021b1cc1d6a1bc687f
2017-05-23 13:04:29 -04:00
William Lachance 089ed28b97 Bug 1366919 - Consider MSYS_NT to equal windows in mozinfo r=ahal
MozReview-Commit-ID: FtLNulaCDEV

--HG--
extra : rebase_source : f3b8f23ad075f39a50f4a09ab52f93a11116825c
2017-05-23 13:00:59 -04:00
Dão Gottwald 8a952aed25 Bug 1367076 - Set datareporting.policy.firstRunURL by default to replace data choices infobar with privacy policy in a background tab on first run. r=Gijs
MozReview-Commit-ID: 9r5el0I2HrA

--HG--
extra : rebase_source : d5bc0f8a5dea60d4d3bbaaf5332d8f022693d381
2017-05-31 13:48:06 +02:00
Geoff Brown e8d6ec9627 Bug 1367780 - Additional changes for eslint on testing/firefox-ui,mozbase,profiles,specialpowers; r=Standard8 2017-05-30 16:06:31 -06:00
Geoff Brown 67daf2d2b0 Bug 1367780 - Enable eslint on testing/firefox-ui,mozbase,profiles,specialpowers - mechanical updates; r=Standard8 2017-05-30 16:06:29 -06:00
James Graham ba40cb0a5c Bug 1368342 - Add mozlog logger that goes via a queue, r=ahal
This allows subprocesses to log to a shared stream via a queue, so that we
avoid the overhead of a multiprocessing Lock around all log access, but still
avoid races where two processes try to log simultaneously. It's mostly useful
where one process is responsible for the majority of logging, but some messages
will be generated in child processes.

MozReview-Commit-ID: ABl6cvpb6qI

--HG--
extra : rebase_source : 5c749074c1646c7abb865a71b31b3056137ef398
2017-05-26 12:53:00 +01:00
William Lachance 2310106daa Bug 1367465 - Bump mozdevice version to 0.51 r=bc
MozReview-Commit-ID: AYTbOymTApS

--HG--
extra : rebase_source : c0e065498d603890a56c4b1a5d0d40a85cba6b8f
2017-05-24 11:52:14 -04:00
William Lachance da6276d3c7 Bug 1367465 - Fix log message when setting selinux mode on Android fails r=bc
MozReview-Commit-ID: LvLfujDcGfU

--HG--
extra : rebase_source : f05671052e4468322cc97dfbea6d39dd964be22c
2017-05-24 11:26:59 -04:00
Geoff Brown f8160809a8 Bug 1340233 - Take more care when killing browser before starting Android tests; r=jmaher
The devicemanager killProcess() is updated to use force-stop first, then
use kill if force-stop does not work.

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

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

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

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

MozReview-Commit-ID: DZUHJTdjX7V
2017-03-23 11:01:44 -07:00
Carsten "Tomcat" Book 187105652e Merge mozilla-central to autoland 2017-03-23 13:59:20 +01:00
Carsten "Tomcat" Book 9b6d088496 merge autoland to mozilla-central a=merge
--HG--
rename : browser/components/preferences/in-content/tests/browser_advanced_siteData.js => browser/components/preferences/in-content-old/tests/browser_advanced_siteData.js
rename : dom/media/mediasink/DecodedAudioDataSink.cpp => dom/media/mediasink/AudioSink.cpp
2017-03-23 13:42:40 +01:00
Carsten "Tomcat" Book d40c4b5e91 Backed out changeset 18fd8676751a (bug 1333003) 2017-03-23 10:38:04 +01:00
Wes Kocher b31e9e6a39 Merge inbound to central, a=merge
MozReview-Commit-ID: EQ7w1Gld1K2
2017-03-22 17:10:01 -07:00