Commit Graph

273 Commits

Author SHA1 Message Date
James Graham
18b6b7a5db Bug 1583602 - Use a real colour for printing intermittent failures, r=maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D46999

--HG--
extra : moz-landing-system : lando
2019-09-25 18:57:47 +00:00
Andrew Halberstadt
e3e6ea6d8e Bug 1567264 - [mozlog] Support log errors in the errorsummary and mach formatter r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D39547

--HG--
extra : moz-landing-system : lando
2019-07-29 15:16:22 +00:00
Andrew McCreight
d78c44314a Bug 1567541 - Fix typo "Minidump anaylsed". r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D38688

--HG--
extra : moz-landing-system : lando
2019-07-19 17:05:47 +00:00
Victor Porof
2b036e45c5 Bug 1561435 - Format testing/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : c0948f31e520ca087279cf429ca5f1db5a8341b8
2019-07-05 11:01:24 +02:00
Nikki Sharpley
cd5919d8dd Bug 1561421 - [mozlog] Update mozlog docs and version to 4.2.0 r=ahal
The mozlog documents have been updated to reflect the addition of a `known_intermittent`
parameter in `test_status` and `test_end` included in the `StructuredLogger`, and across
multiple mozlog handlers and formatters.

As this was a major change, the version has been bumped to 4.2 for the next pypi release.

Web-platform-tests will eventually require this update in order for future patches related
to `known_intermittent` statuses to merge upstream.

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

--HG--
extra : moz-landing-system : lando
2019-06-28 19:35:55 +00:00
Nikki Sharpley
4c76a56119 Bug 1554818 - [mozlog] Update StatusHandler to support known_intermittent field r=jgraham
This patch adds a `known_intermittent_statuses` attribute to the `StatusHandler`
class, allowing it to keep a count of expected intermittents for future use.
Additionally, known intermittents are not recorded as `unexpected_statuses` but
are recorded as `expected_statuses`.

testing/mozharness/mozharness/mozilla/structuredlog.py is directly affected by
this change and has been updated to also reflect `known_intermittent_statuses`.
However, it may require a test to be written to check this addition.

The `StatusHandler` test has been added to, ensuring this patch works as expected.

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

--HG--
extra : moz-landing-system : lando
2019-06-11 14:09:40 +00:00
Nikki Sharpley
9eec24a901 Bug 1554239 - [mozlog] Add new test for known_intermittent in tbpl and grouping formatters r=jgraham
This patch adds support for the known_intermittent field in the html,
and grouping formatters. Tests have been added to check the new
field in grouping and tbpl formatter tests.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 10:13:57 +00:00
Nikki Sharpley
9601163e6a Bug 1554203 - [mozlog] Move formatter tests to one location and refactor r=jgraham
As the number of tests have grown considerably, for clarity, this patch
moves the formatter tests in test_structured.py to test_formatters.py.

html.py and its corresponding test were also amended to account for
discrepancies in the way Python 2 and 3 handle strings (bytes vs text type).

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

--HG--
extra : moz-landing-system : lando
2019-05-29 17:20:28 +00:00
Nikki Sharpley
ac14a7e160 Bug 1554203 - [mozlog] Move formatter tests to one location and refactor r=jgraham
As the number of tests have grown considerably, for clarity, this patch
moves the formatter tests in test_structured.py to test_formatters.py.

I am striking an error on one of the tests since the move.
`test_base64_other`, which tests that ability to read different characters
in the HTMLformatter. It appears that whilst moving the tests, `test_end`
now returns a unicode string, which fails the assertion. Am looking into
Python 2 v 3 discrepancies, but any guidance would be most welcome. Error
message will be attached below.

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

--HG--
extra : moz-landing-system : lando
2019-05-29 14:38:05 +00:00
Nikki S
7e9e422495 Bug 1552914 - [mozlog] Update formatters to reflect new known_intermittent field. r=jgraham
The in-tree log formatters have been updated to reflect the new `known_intermittent`
field, ensuring that a status matching a `known_intermittent` status  is not logged as an
unexpected failure. A message is printed when there is a test status that matches this.
A test for known intermittents has been added to the test_formatters, following the
same testing style for pass or fail.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 13:30:13 +00:00
Nikki S
6259af5846 Bug 1066323 - [mozlog] Mozlog shouldn't propagate unremarkable defaults to the raw log r=jgraham
Currently, some of the raw JSON logs for mochitest and marionette, et al, include
empty dictionaries, None values and other unremarkable values that are marked
as optional. This fix aims to remove these unnecessary items from being
passed to the raw log.

A method has been added to the log_actions class which removes defaults if they
are marked as optional and the value is included in the default list. This is
called on the kwargs returned by the convert_known method, before being
propagated to the log_raw method for StructuredLogger.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 16:45:59 +00:00
Andreea Pavel
e544d76126 Backed out changeset 86bc425ccdbd (bug 1066323) for failing logtypes.py on a CLOSED TREE 2019-05-21 19:11:48 +03:00
Nikki S
30631bd28b Bug 1066323 - [mozlog] Mozlog shouldn't propagate unremarkable defaults to the raw log r=jgraham
Currently, some of the raw JSON logs for mochitest and marionette, et al, include
empty dictionaries, None values and other unremarkable values that are marked
as optional. This fix aims to remove these unnecessary items from being
passed to the raw log.

A method has been added to the log_actions class which removes defaults if they
are marked as optional and the value is included in the default list. This is
called on the kwargs returned by the convert_known method, before being
propagated to the log_raw method for StructuredLogger.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 15:49:51 +00:00
Nikki S
9c23b063f4 Bug 1527610 - [mozlog] Library fails after python 3 update; TypeError: vars() argument must have _dict_ attribute r=ahal
Updated from Differential D20458.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 15:04:20 +00:00
Nikki S
1a21f1c47b Bug 1552855 - [mozlog] Add new optional field to test actions for expected intermittents. r=jgraham
Added a new optional field on the test_end and test_status actions called expected_intermittents
which accepts a List of expected intermittent statuses. The default is None. As it is an optional
field, upon landing of D25081, it will only show if there is an expected intermittent.

A test was added to check that expected_intermittents are logged.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 14:17:29 +00:00
Nikki S
a4451e2014 Bug 1550565 - [mozlog] Update mozlog version number to 4.1 r=jgraham
The Mozlog version number needed to be updated to 4.1 for the new
release on PyPI. The dependencies of other libraries that require
mozlog were updated to reflect the new version. (mozversion,
mozrunner, mozprofile)

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

--HG--
extra : moz-landing-system : lando
2019-05-10 10:29:49 +00:00
Brendan Dahl
0375e3a2b7 Bug 1542354 - Fix unexpected fail mach formatter. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D26379

--HG--
extra : moz-landing-system : lando
2019-04-05 20:48:11 +00:00
Brendan Dahl
e204fc0102 Bug 1541569 - Fix terminal colors for mach formatter. r=jgraham
Restore old "FAIL" tests color to red. Restore heading of mochitest. Fix
marking of unexpected failures.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 10:42:19 +00:00
Nikki S
0a5bd934c4 [mozlog] Allow passing messages down to formatters (Bug 1534341) r=jgraham
This addition allows formatters to be configured by sending a message.

For example, the show_logs attribute has been added to the GroupingFormatter
to allow switching on/off the display of all log messages at runtime.
A generic handle_message method was added to the BaseFormatter to allow
attributes to be configured, with optional arguments for those that require
it.

An additional log(data) method has been implemented on the GroupingFormatter
that checks self.show_logs, and if True, displays all messages regardless of
failure or success, with component, level and stack.

A test may be required to ensure this is behaving as expected.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 11:54:09 +00:00
vrinda
87d12705bc Bug 1424287 - [mozlog] added color dictionary and TerminalColors class r=jgraham
The default color dictionary is implemented, to avoid formattor specifying the colors discretely

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

--HG--
extra : moz-landing-system : lando
2019-03-21 11:59:55 +00:00
Coroiu Cristina
d1458a807e Backed out changeset 53bd5240052b (bug 1424287) for mozabase failures at testing/mozbase/mozlog/tests/test_formatters.py 2019-03-19 18:46:09 +02:00
vrinda
ae793e05f0 Bug 1424287 - [mozlog] added color dictionary and functionality for overriding formatter r=jgraham
The default color dictionary is implemented,to avoid hardcode color information. The functionality for overridding the values in formatter, is hitherto partially
 implemented

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

--HG--
extra : moz-landing-system : lando
2019-03-19 16:23:10 +00:00
Sam Sneddon
02fae301d6 Bug 1536410 - make mozlog grouped formatter use float math for computing suite time r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D24007

--HG--
extra : moz-landing-system : lando
2019-03-19 13:35:14 +00:00
pgadige
6def09df1e Bug 1524961 - Update mozlog's license to MPL 2.0. r=raphael
Differential Revision: https://phabricator.services.mozilla.com/D23407

--HG--
extra : moz-landing-system : lando
2019-03-19 10:59:24 +00:00
Nikki S
c1eaf010be mozlog: move the capture io class from web-platform/tests to mozlog (bug 1021926) r=jgraham
The ability to capture the parent process' stdio is suggested to be a useful feature
to move from web-platform/tests into mozlog. To do so, I have created a new capture.py
file within mozlog/mozlog. This includes the CaptureIO class and its dependencies,
including the LoggingWrapper and LogThread classes. These have been removed from their
original location, to avoid duplication, and the files depending on them updated
accordingly.

It would be useful to add unittests testing the CaptureIO enter and exit methods, and
the original_stdio, logging_queue and logging_thread properties. I have begun such a
file with test_capture.py in mozlog/tests. This is a work in progress, however I may
need some guidance, please, in regards to creating appropriate mock data to assert.

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

--HG--
extra : moz-landing-system : lando
2019-03-12 10:21:12 +00:00
Asfiya
ce78b3d73a Bug 1166355 - HTML formatter generates correct link for the gecko revision to hg.mozilla.org r=jgraham
The HTML formatter now references the correct link and does not produce a 404 error

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

--HG--
extra : moz-landing-system : lando
2019-02-26 14:00:56 +00:00
Narcis Beleuzu
977db21160 Backed out changeset 615d38401d49 (bug 1166355) for flake8 failure. CLOSED TREE 2019-02-26 14:42:18 +02:00
Asfiya
5d3428aca9 Bug 1166355 - HTML formatter generates correct link for the gecko revision to hg.mozilla.org r=jgraham
The HTML formatter now references the correct link and does not produce a 404 error

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

--HG--
extra : moz-landing-system : lando
2019-02-26 11:35:23 +00:00
Pavel Slepushkin
cd08c8b222 Bug 1471648 - [mozlog] Add support for Python 3; r=raphael
Differential Revision: https://phabricator.services.mozilla.com/D18069

--HG--
extra : moz-landing-system : lando
2019-02-01 13:08:09 +00:00
Narcis Beleuzu
f9ca244530 Backed out changeset c6f5a583ce62 (bug 1471648) for awsy failures. CLOSED TREE 2019-01-31 15:55:32 +02:00
Pavel Slepushkin
3631b95796 Bug 1471648 - [mozlog] Add support for Python 3; r=raphael
Differential Revision: https://phabricator.services.mozilla.com/D18069

--HG--
extra : moz-landing-system : lando
2019-01-31 12:49:42 +00:00
Myk Melez
25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Dorel Luca
e1e5c4c775 Backed out 4 changesets (bug 1521191) for causing leaks on multiple tests
Backed out changeset 138e162d2778 (bug 1521191)
Backed out changeset 3782d011cc9f (bug 1521191)
Backed out changeset 38d3da4804d7 (bug 1521191)
Backed out changeset d6ce4b187195 (bug 1521191)
2019-01-26 03:23:40 +02:00
Andrew McCreight
16351e63ce Bug 1521191, part 2 - Ensure missing leak logs cause mozharness to fail. r=ahal
Depends on D17534

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

--HG--
extra : moz-landing-system : lando
2019-01-25 20:27:34 +00:00
James Graham
08510932b1 Bug 1521140 - Ensure reftest screenshots are followed by a newline when expected, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D17119

--HG--
extra : moz-landing-system : lando
2019-01-21 21:56:19 +00:00
Andrew McCreight
2fa8eee7f0 Bug 1518115 - Fix typo in intentional crash leak log processing. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D17007

--HG--
extra : moz-landing-system : lando
2019-01-21 10:23:27 +00:00
James Graham
299fd88dd2 Bug 1514285 - Update mozlog version number to 3.10, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D14586

--HG--
extra : moz-landing-system : lando
2018-12-17 19:08:20 +00:00
Andrew Halberstadt
ce87b08ac4 Bug 1436037 - [python] Create Windows python-test tasks, r=gps
The following python-test paths are being moved out of 'make check' and into their own task:
- python/mozlint
- testing/mozbase
- tools/lint

The following python-test paths previously did not run on Windows:
- python/mozterm
- testing/marionette
- testing/raptor
- tools/tryselect

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

--HG--
extra : moz-landing-system : lando
2018-12-05 19:20:16 +00:00
James Graham
6cfa59fd1a Bug 1352355 - Ensure leaks cause mozharness to fail, r=ahal
Depends on D12411

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

--HG--
extra : moz-landing-system : lando
2018-11-30 23:17:41 +00:00
James Graham
13499e559e Bug 1352355 - Convert mozleak to structured logging, , r=ahal,mccr8
Moves mozleak to use structured logging. The logger gets two new
actions, mozleak_object to indicate the name of an object that leaked
in a specific process and mozleak_total to indicate the total number
of bytes leaked in a process.

The output from the TBPL formatter is
expected to remain near-identical to the previous output from the
logger, so there shouldn't be any effect on the ability to fail jobs
if there are leaks.

Additional features required by web-platform-tests are also added
here; the leak thresholds are passed to the logger for mozleak_total
and a list of any objects allowed to leak are passed for
mozleak_object, so that a log consumer may decide whether a leak is
unexpected. In addition, the scope attribute is used to specify the
set of tests (or other tasks) running at the time of the leak, which
may be used to associate a leak with a specific set of files.

MozReview-Commit-ID: 19FsMxVQExH

Depends on D12408

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

--HG--
extra : moz-landing-system : lando
2018-12-04 22:18:23 +00:00
Andreea Pavel
e3299fd2db Backed out 5 changesets (bug 1498640, bug 1436037, bug 1497660, bug 1505579) for mass failures on a CLOSED TREE
Backed out changeset 914a7a899dd1 (bug 1436037)
Backed out changeset e072757bf691 (bug 1436037)
Backed out changeset b0805a8cf6eb (bug 1505579)
Backed out changeset aa32ba9e6df3 (bug 1498640)
Backed out changeset ce441b8a784c (bug 1497660)
2018-11-15 07:53:41 +02:00
Andrew Halberstadt
b03e2aa337 Bug 1436037 - [python] Create Windows python-test tasks, r=gps
The following python-test paths are being moved out of 'make check' and into their own task:
- python/mozlint
- testing/mozbase
- tools/lint

The following python-test paths previously did not run on Windows:
- python/mozterm
- testing/marionette
- testing/raptor
- tools/tryselect

MozReview-Commit-ID: C07FANaYzf7

Depends on D10758

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

--HG--
extra : moz-landing-system : lando
2018-11-15 00:49:45 +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
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
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
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