Closed
Bug 1034267
Opened 11 years ago
Closed 11 years ago
Structured Logging for robocop tests
Categories
(Testing :: Mozbase, defect)
Tracking
(firefox33 fixed, firefox34 fixed)
RESOLVED
FIXED
mozilla34
People
(Reporter: chmanchester, Assigned: akachkach)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 5 obsolete files)
19.18 KB,
patch
|
akachkach
:
review+
|
Details | Diff | Splinter Review |
Bug 886570 gets us most much of the way there, but we need to emit structured messages from java (bug 1034236).
Reporter | ||
Comment 1•11 years ago
|
||
Robocop generates unstructured log messages here: http://hg.mozilla.org/mozilla-central/annotate/0dd44135ac32/build/mobile/robocop/FennecMochitestAssert.java#l85
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → akachkach
Assignee | ||
Comment 2•11 years ago
|
||
WIP.
(relies on bug 1034236)
Assignee | ||
Comment 3•11 years ago
|
||
Updated, seems to be working (https://tbpl.mozilla.org/?tree=Try&rev=097966857df3).
Wondering how I should handle dumpLog with a Throwable? I just concatenated the message with the String representation of the error for now.
Attachment #8453463 -
Attachment is obsolete: true
Attachment #8462007 -
Flags: review?(gbrown)
Reporter | ||
Comment 4•11 years ago
|
||
The logs in the try run result in multiple suite_end messages. This is ok with respect to the issue in bug 1043485 but will not be compatible with consumers of the structured log.
![]() |
||
Comment 5•11 years ago
|
||
The logs in the try run of Comment 3 look wrong to me. As an example, compare testAddonManager in https://tbpl.mozilla.org/php/getParsedLog.php?id=44545888&tree=Try&full=1 to a current log like https://tbpl.mozilla.org/php/getParsedLog.php?id=44565603&tree=Mozilla-Central&full=1.
Assignee | ||
Comment 6•11 years ago
|
||
Deactivating buffering seem to have fixed this issue (see this try run: https://tbpl.mozilla.org/?rev=d74d7bb327fc&tree=Try)
I'm also trying to get rid of the multiple SUITE-END messages, waiting for a try run with the submitted patch (that should hopefully fix it).
If the logs are valid, we should try to land this before the workaround in bug 1043485.
Attachment #8462007 -
Attachment is obsolete: true
Attachment #8462007 -
Flags: review?(gbrown)
Attachment #8462859 -
Flags: review?(gbrown)
Assignee | ||
Comment 7•11 years ago
|
||
Small change to the patch (to remove multiple suite_end messages).
Try run: https://tbpl.mozilla.org/?tree=Try&rev=18f40cf430b8
Attachment #8462859 -
Attachment is obsolete: true
Attachment #8462859 -
Flags: review?(gbrown)
Attachment #8462917 -
Flags: review?(gbrown)
![]() |
||
Comment 8•11 years ago
|
||
Comment on attachment 8462917 [details] [diff] [review]
0001-Bug-1034267-Structured-Logging-for-robocop-r-gbrown.patch
Review of attachment 8462917 [details] [diff] [review]:
-----------------------------------------------------------------
::: build/mobile/robocop/FennecMochitestAssert.java
@@ +89,5 @@
> }
>
> }
>
> + private void _logMochitestResult(testInfo test, String passStatus, String passExpected, String failStatus, String failExpected) {
I would like to see a comment here explaining what the parameters mean.
@@ +117,5 @@
> junit.framework.Assert.fail(message);
> }
> }
>
> +
There is an extra line here - remove it.
Attachment #8462917 -
Flags: review?(gbrown) → review+
Assignee | ||
Comment 9•11 years ago
|
||
fixed nits; carry r+ forward
Attachment #8462917 -
Attachment is obsolete: true
Attachment #8463486 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 10•11 years ago
|
||
New try push: https://tbpl.mozilla.org/?tree=Try&rev=c98b4306f905
Comment 11•11 years ago
|
||
hi, do you know if the repeated mochitest 1 error on b2g are related to this push ?
Keywords: checkin-needed
Assignee | ||
Comment 12•11 years ago
|
||
I'll rebase and do another push to make sure!
Assignee | ||
Comment 13•11 years ago
|
||
Carry r+ forward
The B2G-desktop error was caused by a missing call to suite_end and buffer messages dumping. Fixed now!
Try run: https://tbpl.mozilla.org/?tree=Try&rev=c2b0a8fbed01
Attachment #8463486 -
Attachment is obsolete: true
Attachment #8464268 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 14•11 years ago
|
||
Keywords: checkin-needed
Comment 15•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Comment 16•11 years ago
|
||
status-firefox33:
--- → fixed
status-firefox34:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•