Commit Graph
53 Commits
Author SHA1 Message Date
Andrew Halberstadt b5a0117d1b Bug 1340551 - [mozlog] Change 'tests' field in suite_start action to a dict of tests keyed by group name, r=jgraham
In suite_start, tests is currently a list of test ids. But to support a new 'test-centric' treeherder view, we need to
be able to map tests to their manifests somewhere in the structured log, and the suite_start tests field seemed like a
good spot.

Because not all test suites use manifests, this is being called a "group" so it could potentially be re-used with
directories, tags or subsuites.

MozReview-Commit-ID: 2Sc7nqJrWts
2017-02-22 11:46:09 -05:00
Andrew Halberstadt c69928b065 Bug 1333564 - [manifestparser] Add support for inline comments, r=jmaher
Previously manifestparser only supported inline comments on conditional keys, such as
skip-if, fails-if, subsuite-if, etc. But on any other key name, inline comments weren't
supported. This was a bad situation because people saw these skip-if comments, and
naturally assumed inline comments worked everywhere. Then they were surprised when things
broke in mysterious ways.

This patch removes the special-casing for skip-if and friends and allows inline comments
everywhere. A caveat to this, is that ' #' is no longer a valid substring in a value.

MozReview-Commit-ID: Hr0BIwzTgaJ
2017-01-25 12:21:31 -05:00
Andrew Halberstadt 3f9cbf87a1 Bug 1333564 - [manifestparser] Stop supporting ';' as a valid comment character, r=jmaher
It turns out there are shockingly few cases of manifestparser manifests that actually use the ';'
character as a comment. Because we will soon allow inline comments, deprecating the use of ';' will
ensure that values are allowed to have semicolons in them.

Even without inline comments, might as well enforce consistency across manifests.

MozReview-Commit-ID: AEPPQFdNXG0
2017-01-25 14:38:37 -05:00
Andrew Halberstadt 7663ee0695 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
2016-11-16 09:59:22 -05:00
Francesco Pischedda 46c0d4af68 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
2016-09-30 16:08:37 +02:00
Carsten "Tomcat" Book 5ba717bd52 Backed out changeset 200da85932e9 (bug 1230862) for valgrind perma failures 2016-02-10 11:04:50 +01:00
Julien Pagès 8c54a35567 Bug 1230862 - Remove mozhttpd. r=wlach 2016-02-09 03:26:43 +01:00
William Lachance 93f97f9c14 Bug 1230622 - Docs: Suggest people use wptserve instead of mozhttpd. r=jgraham 2015-12-04 13:18:40 -05:00
Julien Pagès 77c84d349c Bug 1226554 - [mozlog] add a ProxyLogger concept. r=jgraham 2015-11-20 12:42:51 +01:00
Dave Hunt 638628d2c8 Bug 1145680 - [mozdevice] Add reboot, move, copy, and info methods to adb.py. r=bc 2015-10-27 02:30:00 +01:00
Julien Pagès ab0213fff5 Bug 1189847 - [mozversion] mozversion requires mozdevice, it shoudn't. r=dhunt
This make the mozdevice dependency of mozversion optional.
2015-08-03 06:32:00 +02:00
Julien Pagès 3e75fd1900 Bug 1185971 - mozfile: add a mozfile.move function, and bump release 1.2. r=ahal 2015-07-23 19:11:16 +02:00
Andrew Halberstadt 5c1241cd79 Bug 1014760 - Move mozlog.structured to mozlog; Move mozlog to mozlog.unstructured, r=jgraham
Mozlog currently has two implementations. The top level package is based on the logging module and is
deprecated. The newer structured logging implementation lives in mozlog.structured. This patch swaps the
two, so the top level mozlog module contains the recommended implementation, while mozlog.unstructured
contains the old one.
2015-07-16 10:38:40 -04:00
Julien Pagès f36231df38 Bug 1112516 - [mozrunner] Update documentation for correctly using a Firefox profile. r=whimboo 2015-05-15 06:22:00 -04:00
Dave Hunt 69e80ca2b3 Bug 1156812 - [mozdevice] Support specifying alternate log buffers when retrieving or clearing the logcat. r=bclary 2015-04-23 16:42:11 -07:00
Wes Kocher 20fb018234 Backed out changeset 619f030b0d23 (bug 1156812) for android m7 orange 2015-04-23 16:26:38 -07:00
Dave Hunt 279373a528 Bug 1156812 - [mozdevice] Support specifying alternate log buffers when retrieving or clearing the logcat. r=bclary 2015-04-22 11:02:00 -04:00
Julien Pages 9c54a0cb23 Bug 1147614 - [mozdevice] The property ADBDevice.test_root does not appear in documentation. r=bclary 2015-03-31 03:17:00 -07:00
Andrew Halberstadt bbd1d50b1a Bug 1134395 - mozbuild should pass in rootdir to manifestparser to properly calculate test relpaths, r=gps 2015-02-18 17:07:55 -05:00
Anish fe58834cf9 Bug 958147 - Choose one of run-if or skip-if and get rid of the other.r=jmaher, mwargers 2015-03-03 08:46:37 -05:00
William Lachance 6685910209 Bug 1133076 - Add documentation for mozinstall. r=ahal 2015-02-17 13:48:17 -05:00
Andrew Halberstadt 8b6e0bcbcb Bug 1129495 - [mozlog] Add optional 'path' attribute to test_start, r=jgraham 2015-02-10 17:11:35 -05:00
Andrew Halberstadt a74852785a Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted
A filter is a callable that accepts an iterable of tests and a dictionary of values (e.g mozinfo.info) and returns an iterable of tests. Note filtering can mean modifying tests in addition to removing them. For example, this implements a "timeout-if" tag in the manifest:

    from manifestparser import expression
    import mozinfo

    def timeout_if(tests, values):
        for test in tests:
            if 'timeout-if' in test:
                timeout, condition = test['timeout-if'].split(',', 1)
                if expression.parse(condition, **values):
                    test['timeout'] = timeout
        yield test

    tests = mp.active_tests(filters=[timeout_if], **mozinfo.info)
2015-02-10 09:38:29 -05:00
Chris Manchester fe6ddbd205 Bug 1055765 - Implement log buffering as a handler in mozlog.;r=jgraham 2014-12-12 12:08:31 -05:00
William Lachance 085d99ad0b Bug 1097901 - Improve structured log example + docs;r=jgraham DONTBUILD 2014-11-13 16:45:43 -05:00
Julien Pagès 0eef3d1f38 Bug 859422 - update sphinx documentation for mozfile. r=wlach 2014-10-13 08:37:00 +02:00
Andrei Eftimie 79e3148e4a Bug 1023790 - [manifestparser] Add support for parent link. r=hskupin, r=jmaher 2014-10-02 14:23:21 +02:00
Alessio Placitelli e6664b1b9c Bug 928397 - Add the documentation for mozdebug. r=ted 2014-09-09 11:53:00 +02:00
Chris Manchester 93c1c7b80e Bug 1047429 - Remove unstructured mozlog docs to reduce risk of use in new code. r=ahal 2014-08-25 11:29:43 -04:00
Chris Manchester bc29003164 Bug 1054375 - Fix reference to tbplformatter in mozlog docs. r=wlach 2014-08-15 14:30:38 -04:00
William Lachance 8e8abf8291 Bug 1051895 - Make mozdevice docs a bit easier to navigate;r=bc DONTBUILD NPOTB 2014-08-15 12:59:02 -04:00
James Graham da02b860f5 Bug 1026181 - Make mach terminal formatter work outside mach context, r=chmanchester 2014-07-31 14:54:05 +01:00
Arnav Sharma 3fe63f450a Bug 1037532 - "mozversion should have documentation on how to use its API". r=wlachance 2014-07-16 12:56:00 +02:00
William Lachance 3b31c2fadb Bug 1036530 - Instantiate / initialize device root only when needed in mozdevice. r=bc 2014-07-11 15:29:30 -04:00
Bob Clary 2a4bf62c58 Bug 1035254 - [mozdevice] - Add ADBAndroid.get_battery_percentage(), r=wlach, DONTBUILD. 2014-07-10 06:46:23 -07:00
Bob Clary 3f462da4b4 Bug 1034406 - [mozdevice] Do not allow ADBCommand to be instantiated, r=wlach, DONTBUILD. 2014-07-07 08:19:35 -07:00
Bob Clary 3f02390f6b Bug 1012711 - Add adb.py to devicemanager package, -correcting bugnumber- r=wlach. DONTBUILD a=sheriffduty 2014-06-26 16:20:12 +02:00
Carsten "Tomcat" Book 86330795f5 Backed out changeset 1fd65e3c2f4a (bug 1012712) 2014-06-26 16:18:34 +02:00
Bob Clary 0e4aff2162 Bug 1012712 - Add adb.py to devicemanager package, r=wlach. DONTBUILD 2014-06-25 21:08:41 -07:00
Andrew Halberstadt df364bfcf8 Bug 997244 - Move emulator.py out of marionette and into mozrunner, r=wlach,mdas,jgriffin 2014-06-19 14:17:26 -04:00
Ryan VanderMeulen 9da742844e Merge m-c to inbound on a CLOSED TREE. a=merge 2014-06-12 17:32:33 -04:00
William Lachance d8f85aa772 Bug 1023883 - Update doc reference to manifestparser from manifestdestiny. r=ahal 2014-06-11 10:27:20 -04:00
William Lachance b3806074a7 Bug 1021943 - Add some additional features to mozlog.structured to help with informational level logging;r=jgraham 2014-06-12 11:28:19 -04:00
William Lachance 2e4f245a3b Bug 984528 - Rename manifestdestiny -> manifestparser. r=ahal 2014-06-10 13:20:23 -04:00
James Graham 476d7cfacb Bug 1015287 - Add complete example to mozlog.structured documentation, r=wlach 2014-05-30 17:10:26 +01:00
William Lachance f93e2af71b Bug 1016467 - Allow mozversion to support getting version info out of a fennec .apk. r=davehunt 2014-05-29 14:57:52 -04:00
James Graham b725332d3b Bug 985606 - Improve API for reading structured logs, r=ahal 2014-04-02 14:32:41 +01:00
dadadel 2227c37f88 Bug 907433 - Improve the mozprocess documentation with description and examplesi;r=wlach
DONTBUILD
2014-03-10 12:15:35 -04:00
James Graham 8bdb81da2b Bug 978108 - Update documentation for strucured logging. r=wlach 2014-02-27 19:04:45 +00:00
James Graham 6cdedf683f Bug 972939 - Add documentation for mozbase structured logging. r=wlach 2014-02-25 17:32:07 +00:00