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

866 Коммитов

Автор SHA1 Сообщение Дата
Julian Seward 9c349f1195 Bug 1248365 - Make Valgrind Mochitests run greener on Taskcluster. r=n.nethercote.
--HG--
extra : rebase_source : d1c3a1fb594e73cb5978e81636a9b3ed3dd341aa
2016-11-28 15:46:43 +01:00
Kris Maglione 1390ab41bf Bug 994255: Add included and parent test manifest files to backend inputs list. r=gps
MozReview-Commit-ID: EvMt0ojZGFr

--HG--
extra : rebase_source : ccdf62dde1d315495e7effbdd824c2a2c14099f2
2016-11-18 14:52:54 -08:00
Carsten "Tomcat" Book 8b27dda5d1 merge mozilla-inbound to mozilla-central a=merge 2016-11-22 15:53:05 +01:00
Ehsan Akhgari 6b394f0382 Bug 1318879 - Remove the app related code from mozprofile; r=ahal 2016-11-21 18:56:08 -05:00
Wes Kocher efeab1563a Backed out changeset 0cafbf944d89 (bug 1318879) for robocop failures a=backout 2016-11-21 13:01:21 -08:00
Ehsan Akhgari 012349bc0f Bug 1318879 - Remove the app related code from mozprofile; r=ahal 2016-11-21 14:59:05 -05:00
Andrew Halberstadt 6adcf5b456 Bug 1317970 - Use manifestparser manifests for python unit tests, r=chmanchester
This deprecates PYTHON_UNIT_TESTS and replaces it with PYTHON_UNITTEST_MANIFESTS.
In the build system, this means python unittests will be treated the same as all
other test suites that use manifestparser. New manifests called 'python.ini' have
been created for all test directories containing python unittests.

MozReview-Commit-ID: IBHG7Thif2D

--HG--
extra : rebase_source : 11a92a2bc544d067946bbd774975140147458caa
2016-11-16 09:59:22 -05:00
Andrew Halberstadt 2d76b4f70d Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester
The mozbase unittests don't use mozunit, so their output is confusing in the log.
This makes mozbase output consistent with the rest of the python unittests.

MozReview-Commit-ID: AIs5mza8Rn6

--HG--
extra : rebase_source : 10f65e612f5b3cebb921c47699f5a8be7cd2ba5a
2016-11-17 16:36:18 -05:00
Andrew Halberstadt f395e4d6dd Bug 1317970 - Move mozsystemmonitor tests to a consistent directory structure, r=chmanchester
The mozsystemmonitor test is under mozsystemmonitor/mozsystemmonitor/test instead of
mozsystemmonitor/tests like all the other mozbase modules.

MozReview-Commit-ID: AIs5mza8Rn6

--HG--
rename : testing/mozbase/mozsystemmonitor/mozsystemmonitor/test/test_resource_monitor.py => testing/mozbase/mozsystemmonitor/tests/test_resource_monitor.py
extra : rebase_source : dde714fb9212f19d1f8ba566f574bd7e9d7c4030
2016-11-17 16:36:13 -05:00
Sebastian Hengst 53e819cf3c Backed out changeset de975fd9cbf6 (bug 1318879) for mass mochitest failures. r=backout on a CLOSED TREE 2016-11-21 17:32:30 +01:00
Ehsan Akhgari 1f07859636 Bug 1318879 - Remove the app related code from mozprofile; r=ahal 2016-11-21 09:55:25 -05:00
Bob Clary b43b4345da Bug 1318001 - Autophone - mozdevice - adb*.py - properly split lines from shell output, r=gbrown. 2016-11-17 09:21:06 -08:00
Bob Clary 2c776a4858 Bug 1245347 - [Autophone|mozdevice] - increase mozdevice version to 0.49, r=wlach. 2016-11-17 09:21:06 -08:00
Bob Clary 18f2b61b73 Bug 1245347 - [Autophone|mozdevice] - is_device_ready should not require root to check the ready_path, r=wlach. 2016-11-17 09:21:06 -08:00
Bob Clary 87156f5bf5 Bug 1245347 - [Autophone|mozdevice] - catch initial ADBRootError during initialization if root is not supported, r=wlach. 2016-11-17 09:21:06 -08:00
Andrew Halberstadt ffb7cb0b99 Bug 1309060 - Ignore "No such process" when trying to find pgid in mozprocess, r=gps
For some reason calling os.getpgid(proc.pid) in this bug results in an OSError "No such process"
on OSX. This bug is starting the ProcessHandler from a concurrent.futures Thread, that must be
somehow related.

I tried debugging this, but couldn't figure out why this is happening. However, the pgid is not
needed for this use case, and simply ignoring the error works. We also ignore this very same
exception when calling os.getpgid elsewhere in mozprocess, so there must be some weird OSXism
happening.

MozReview-Commit-ID: 2YXhBaORC5s

--HG--
extra : rebase_source : 120e4bff7ef29d2a0ad1e3bdd2df11b8b682d981
2016-11-03 10:24:11 -04:00
Henrik Skupin 89b4515176 Bug 1299216 - Bump mozrunner version to 6.13. r=ahal
MozReview-Commit-ID: 2hCytAyqfsp

--HG--
extra : rebase_source : 8b9b647fcf305aa47521073947ef446ba4cb7b5a
2016-09-28 23:29:40 +02:00
Henrik Skupin c2cf729145 Bug 1299216 - [mozrunner] check_for_crashes() has to return the crash count since its last invocation. r=ahal
Adapt check_for_crashes() for latest mozcrash changes, which returns the number of crashes for both log_crashes()
and check_for_crashes() now. Also the runner should accumulate the number of crashes so it will be known at any
time how many times the process has been crashed.

MozReview-Commit-ID: Dl9FlH1TalH

--HG--
extra : rebase_source : b27895482fcad099cf4fcfc01a65fe0fbc5243e3
2016-09-21 12:57:50 +02:00
Henrik Skupin 659bb474d2 Bug 1299216 - [mozcrash] Count crash reports in check_for_crashes and bump version to 1.0. r=ahal
Currently check_for_crashes() behaves differently compared to log_crashes(), whereby it only returns a
boolean if a crash has been detected but not the amount of crash reports found. We should make sure that
both methods behave the same. Given that this change might affect consumers, we should have a major version
bump for the new release.

MozReview-Commit-ID: LiPaozJL5NF

--HG--
extra : rebase_source : d4392207399a1383a20e037bcf73f44bf3c36c7d
2016-09-28 23:26:19 +02:00
Chris Manchester 4aaad1ce55 Bug 1313716 - Don't provide a blank subsuite as a default in the manifestparser. r=ahal
This causes consumers managing defaults themselves to fail to find a default
subsuite for tests, because the manifestparser will have provided a blank
default value by the time they incorporate defaults into a test definition.
This patch removes the provided defaults and updates a number of places assuming
the 'subsuite' field is always present.

MozReview-Commit-ID: 1jPy52VmEPr
2016-10-31 10:04:42 -07:00
Kris Maglione 3a59c31923 Backed out changeset 425c0602ccb4 (bug 1313716) for breaking mach mochitest. r=backout
MozReview-Commit-ID: pTW1acQYLV
2016-10-30 19:17:13 -07:00
Ryan VanderMeulen a41f7d1058 Merge autoland to m-c. a=merge 2016-10-29 09:12:45 -04:00
Randell Jesup 35232de3ba Bug 1311397: fix DataChannel logging for mochitests/etc r=erahm 2016-10-28 03:25:10 -04:00
Geoff Brown 094fe98143 Bug 1309436 - Add test name to java-exception failure messages; r=ted 2016-10-26 11:31:41 -06:00
Chris Manchester 2de89e603a Bug 1313716 - Don't provide a blank subsuite as a default in the manifestparser. r=ahal
This causes consumers managing defaults themselves to fail to find a default
subsuite for tests, because the manifestparser will have provided a blank
default value by the time they incorporate defaults into a test definition.
This patch removes the provided defaults and updates a number of places assuming
the 'subsuite' field is always present.

MozReview-Commit-ID: 1jPy52VmEPr

--HG--
extra : rebase_source : be7a2504af6853abb1bc532a058738f33d8dcbee
2016-10-28 11:07:21 -07:00
Chris Manchester 8792602f28 Bug 1312520 - Extract the logic for combining defaults and individual section defnitions in the manifestparser to a standalone function. r=ahal
MozReview-Commit-ID: CQNFboRhsOs
2016-10-25 12:23:39 -07:00
Chris Manchester 47d22a4d61 Bug 1312520 - Add an option to the manifestparser to prevent defaults from propagating to individual section definitions. r=ahal
Consumers will be expected to process defaults themselves through the
"manifest_defaults" member variable instead.

MozReview-Commit-ID: IGnOj3zEJfE
2016-10-25 12:23:39 -07:00
Geoff Brown 08bbef87dc Bug 1311412 - Try restarting emulator without -gpu if first attempt fails; r=jmaher 2016-10-25 08:53:34 -06:00
Geoff Brown 3bab85a102 Bug 1311528 - Do not report java-exception on "FATAL EXCEPTION"; r=jmaher 2016-10-25 08:53:31 -06:00
Bob Clary 7d8ea8a26f Bug 1306703 - Autophone - mozdevice - combine stdout, stderr, r=droeh,gbrown 2016-10-24 11:09:57 -07:00
Bob Clary 6c9a138775 Bug 1306703 - Autophone - mozdevice - minimal Android 7 support in adb*.py, r=droeh 2016-10-24 11:09:57 -07:00
Gregory Szorc dc86faefcd Backed out changeset 361ac37d15d6 (bug 1311580) for breaking WPT's rather narrow expectations
On a CLOSED TREE.

--HG--
extra : amend_source : 6492a41c5c66da4ea0f5e8f260227dd05f681a61
2016-10-21 16:28:29 -07:00
Ted Mielczarek d0f81be1fb bug 1311580 - Fix mozinfo os_version / linux_distro on Linux. r=jmaher
MozReview-Commit-ID: FD9fzKg6Ei4

--HG--
extra : rebase_source : f2e0dcc74cc997e14a07546f215cd3e9a123855b
2016-10-19 21:04:21 -04:00
Bob Clary 05fec78423 Bug 1310937 - Autophone - mozdevice - sync Bug 1300890 - Autophone - pylint fixes and logging clean up, r=jmaher. 2016-10-19 06:06:55 -07:00
Bob Clary b585826937 Bug 1310937 - Autophone - mozdevice - sync Bug 1249120 - Autophone - use unrolled recursive chmod when -R not supported, r=gbrown. 2016-10-19 06:06:55 -07:00
Bob Clary e42a131006 Bug 1310937 - Autophone - mozdevice - sync Bug 1249120 - Autophone - adb.py - add ADBDevice.ls, r=gbrown. 2016-10-19 06:06:55 -07:00
Bob Clary f1e8ddaf2b Bug 1310937 - Autophone - mozdevice - sync Bug 1242070 - Autophone - adb.py - use native recursion with chmod when supported by the device, r=gbrown. 2016-10-19 06:06:54 -07:00
Bob Clary e03d68e716 Bug 1310937 - Autophone - mozdevice - sync Bug 1241267 - Autophone - adb_android.py - use install -g on Marshmallow to grant permissions at install time, r=gbrown. 2016-10-19 06:06:54 -07:00
Bob Clary cf3db8494d Bug 1310937 - Autophone - mozdevice - sync Bug 1238450 - Autophone - adb.py - use ifconfig interface or netcfg to obtain ip address, r=gbrown 2016-10-19 06:06:54 -07:00
David Anderson 6fb56533fa Add GPU process type to leaklog.py. (bug 1310110, r=mccr8) 2016-10-14 23:27:14 -07:00
Kartikaya Gupta f6d49dac63 Bug 1310215 - Add a verbose argument to mach install which provides useful information in case the android emulator startup fails. r=ahal
MozReview-Commit-ID: EhuBgeewqtb
2016-10-14 11:15:10 -04:00
Francesco Pischedda f45ed99748 Bug 1280573 - Add testing/mozbase to flake8 linter: r=ahal
added testing/mozbase to tools/lint/flake8.lint
fixed a first batch of PEP8 errors/warnings

at first the commad autopep8 -i --max-line-length 99 -r -j 8 .
has been used to fix simpler problems, run from testing/mozbase

some of the issues can not easily fixed :
- undefined 'names' in code for example isLinux - isLinux and isBsd "fixed" with # noqa
- undefined 'message' resolved with return fmt.format(...
- undefined 'structured' resolved replacing those with mozlog
- long comments - some remaining - addressed with # noqa
- package level import everything - addressed with # flake8: noqa

restored testing/mozbase/mozdevice/mozdevice/Zeroconf.py
fixed issues reported on mozreview
fixed ')' in testing/mozbase/mozprocess/mozprocess/qijo.py imports
finally fixed multiline string at testing/mozbase/manifestparser/tests/test_manifestparser.py:114
^^^ and again, but now with ./mach python-test --path-only testing/mozbase/manifestparser/tests/test_manifestparser.py passing
fixed testing/mozbase/manifestparser/tests/test_convert_directory.py assert

fixed this error:
10:15:21     INFO -      return lambda line: stack_fixer_module.fixSymbols(line)
10:15:21     INFO -  TypeError: fixSymbols() takes exactly 2 arguments (1 given)

fixed two spaces lint error even of #  noqa comments
restored assignement to lambda with #  noqa to silence the lint error
global noqa for testing/mozbase/manifestparser/tests/test_filters.py
stupid is/is not error...

MozReview-Commit-ID: 1FpJF54GqIi

--HG--
extra : rebase_source : 3cf0277fb36a296e3506aeacc2ff05e1b03f9eac
2016-09-30 16:08:37 +02:00
Geoff Brown 59d81d8be3 Bug 1306490 - Use '-gpu swiftshader' when starting android emulator from mach; r=jmaher 2016-10-11 13:48:37 -06:00
Wes Kocher e1ade7ef8a Backed out 8 changesets (bug 1286900) for win7vm wpt timeouts a=backout
Backed out changeset 3fff88de2f2d (bug 1286900)
Backed out changeset 748abfe6748e (bug 1286900)
Backed out changeset b4844ee1e542 (bug 1286900)
Backed out changeset bde587e47d00 (bug 1286900)
Backed out changeset a1311218621b (bug 1286900)
Backed out changeset 2de97e3cfcb3 (bug 1286900)
Backed out changeset 43df1e962f8e (bug 1286900)
Backed out changeset 6ed46e8ac86c (bug 1286900)
2016-10-04 17:17:07 -07:00
Gregory Szorc a358731e48 Bug 1286900 - Add environment variable to define location of mozinfo.json; r=ted
As part of converting WPT to run from a source checkout in automation,
I ran into problems where mozinfo.json wasn't being loaded, causing
several tests to fail. This is because mozinfo.json is only found
from a source directory or from a parent of the WPT meta directory.

Before, mozinfo.json was provided by the "common" tests zip file
and extracted to the base of the destination directory. WPT files
were extracted to a "web-platform" sub-directory. So mozinfo.json
was in a parent directory of "web-platform/meta" and was loaded
automatically.

Now that we want to run WPT out of the source directory, there is
no mozinfo.json and the source directory and no mozinfo.json can be
loaded.

This commit teaches mozinfo.json to look in a MOZINFO_PATH environment
variable for the path to mozinfo.json. This allows mozinfo.json
to exist anywhere on the filesystem. This provides a lot more
flexibility for loading the file.

MozReview-Commit-ID: 1I1cxS1IeyY

--HG--
extra : rebase_source : b06de2b53d3fb26df2c7b1c6d034644c20e47577
2016-09-26 15:51:32 -07:00
James Graham 2cbfbc0ec6 Bug 1265582 - Fix reftest structured logs to match wpt, r=ahal
This allows the logs to work with the structured reftest viewer.

MozReview-Commit-ID: CY71vSdDjLP

--HG--
extra : rebase_source : 6b83d98aff1c5e73ac0a802b5a83b8be95adf59a
2016-09-27 22:54:50 +01:00
Phil Ringnalda 3e7326c4fd Backed out 6 changesets (bug 1286900) for making wpt-7 permanently fail on Windows debug
CLOSED TREE

Backed out changeset 859457467e3c (bug 1286900)
Backed out changeset 4b08ed30e0a5 (bug 1286900)
Backed out changeset 3928e945b584 (bug 1286900)
Backed out changeset 5b0f69c86028 (bug 1286900)
Backed out changeset 01c3527edde5 (bug 1286900)
Backed out changeset 6b5f059a85ad (bug 1286900)
2016-09-27 18:24:38 -07:00
Gregory Szorc d51263ff47 Bug 1286900 - Add environment variable to define location of mozinfo.json; r=ted
As part of converting WPT to run from a source checkout in automation,
I ran into problems where mozinfo.json wasn't being loaded, causing
several tests to fail. This is because mozinfo.json is only found
from a source directory or from a parent of the WPT meta directory.

Before, mozinfo.json was provided by the "common" tests zip file
and extracted to the base of the destination directory. WPT files
were extracted to a "web-platform" sub-directory. So mozinfo.json
was in a parent directory of "web-platform/meta" and was loaded
automatically.

Now that we want to run WPT out of the source directory, there is
no mozinfo.json and the source directory and no mozinfo.json can be
loaded.

This commit teaches mozinfo.json to look in a MOZINFO_PATH environment
variable for the path to mozinfo.json. This allows mozinfo.json
to exist anywhere on the filesystem. This provides a lot more
flexibility for loading the file.

MozReview-Commit-ID: 1I1cxS1IeyY

--HG--
extra : rebase_source : 6fb60257b6a20f6bd79461f1bf1f4f5be1f28072
2016-09-26 15:51:32 -07:00
James Graham bba975bca2 Bug 1302796 - Add integration between structured logging and lints, r=ahal
MozReview-Commit-ID: K3tu0Zdg5go

--HG--
extra : rebase_source : 2b78059908c3a297b8ce7d134af20733fc082df5
2016-09-13 14:18:41 +01:00
Anjana Vakil 4168a526cd Bug 1285299 - Add pytest_mozlog plugin to mozlog; r=jgraham
Add the `pytest_mozlog` module (from https://github.com/davehunt/pytest-mozlog)
to mozbase/mozlog/mozlog, so that we can use it in the logging of the
Marionette harness tests.

Add an entry point for the plugin to mozlog/setup.py so that
when mozlog is installed, pytest will register the pytest_mozlog
plugin.py module as the plugin 'mozlog'.


Make the following modifications to pytest_mozlog/plugin.py:

- Disable stdout logging by default in pytest-mozlog

  In the pytest-mozlog plugin, disable logging to stdout by
  default when setting up the mozlog logger, so that the
  default output seen when using the plugin is just the
  Pytest terminal output. The user can specify a mozlog
  logger to write to stdout by using the '--log-* -' option,
  in which case both Pytest and pytest-mozlog will log to stdout.

- Record error msg and lineno in pytest-mozlog logs

  Extract the error message and line number for tests with failures/
  errors from the Pytest test report, and pass these to the Mozlog
  logs output by the pytest-mozlog plugin. For skipped tests,
  pass the skip reason, and for unexpected passes allow Mozlog to
  report its default message "expected FAIL".

- Report collected item count in pytest-mozlog

  Add/modify Pytest hooks in the pytest-mozlog plugin so that the
  suite_start event sent to the logger contains the correct list
  of tests to be run, i.e. items collected by Pytest, instead
  of an empty list. This allows mozlog to log the correct number
  of tests to be run.

- Log skipped/xfailed tests with corresponding status (not 'PASS')

  Log skipped tests with status 'SKIP' and expected failures
  that do indeed fail with status 'FAIL'/expected 'FAIL'
  so that these can be distinguished from true passing tests.

- Pass parsed arguments directly to mozlog.commandline.setup_logging

  Pass the entire Pytest config's argument namespace to `setup_logging`
  instead of copying over only the non-None formatters/formatter option
  arguments. Use the new `allow_unused_options` parameter to stop
  Mozlog from raising an error about options for unused formatters.

MozReview-Commit-ID: 4WpprytS5cI

--HG--
extra : rebase_source : 409de7a89e860471870e3adfd7634bc06f6e1873
2016-09-08 11:43:11 +02:00