Closed
Bug 1052937
Opened 10 years ago
Closed 10 years ago
Missing subtest (assertion) name in mochitest conflicts with structured logs
Categories
(Testing :: Mozbase, defect)
Testing
Mozbase
Tracking
(firefox33 fixed, firefox34 fixed)
RESOLVED
FIXED
mozilla34
People
(Reporter: akachkach, Assigned: akachkach)
Details
Attachments
(1 file, 1 obsolete file)
2.32 KB,
patch
|
ahal
:
review+
|
Details | Diff | Splinter Review |
Testing a patch for bug 1050251, I added a seeded timeout error and hit this exception in logtypes:
https://tbpl.mozilla.org/php/getParsedLog.php?id=45790129&tree=Try&full=1#error5
Comment 1•10 years ago
|
||
Do we know what the js output was when this message was hit? If not can we find out? I imagine you should see the same error locally.
Assignee | ||
Comment 2•10 years ago
|
||
I can't test mochitests locally (due to a change in Apple's headers, long story :)), but could this be caused by the fact that a test_status doesn't have a message field? (the patch slightly changed the structured logging to ignore empty strings when creating a test_status message)
Assignee | ||
Comment 3•10 years ago
|
||
This should do it (the issue was that some assertions had an undefined name, which causes the subtest field to be missing). Maybe we should have a check for missing fields in the future?
Attachment #8472501 -
Flags: review?(ahalberstadt)
Comment 4•10 years ago
|
||
Comment on attachment 8472501 [details] [diff] [review]
0001-Bug-1052937-Default-value-for-mochitest-assertions-n.patch
Review of attachment 8472501 [details] [diff] [review]:
-----------------------------------------------------------------
Lgtm!
Attachment #8472501 -
Flags: review?(ahalberstadt) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Comment 6•10 years ago
|
||
Try run looks good.
Comment 7•10 years ago
|
||
Keywords: checkin-needed
Comment 8•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Assignee | ||
Updated•10 years ago
|
Summary: TypeError: Too few arguments in logtypes.py on a mochitest run with a seeded failure → Missing subtest (assertion) name in mochitest conflicts with structured logs
Assignee | ||
Comment 9•10 years ago
|
||
athena from #devtools just reported that she was encountering the same bug in devtools test. This is because we only fixed this issue in SimpleTest instead of fixing it at the root (in the structured logger).
With this patch, this problem is also fixed for tests that do not use SimpleTest
Attachment #8472501 -
Attachment is obsolete: true
Attachment #8475006 -
Flags: review?(ahalberstadt)
Assignee | ||
Updated•10 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•10 years ago
|
Attachment #8475006 -
Flags: review?(ahalberstadt) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 10•10 years ago
|
||
Keywords: checkin-needed
Comment 11•10 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Comment 12•10 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
•