Closed
Bug 1055679
Opened 11 years ago
Closed 11 years ago
Moztest's unittest adapter should log stacks and messages separately
Categories
(Testing :: Mozbase, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla34
People
(Reporter: chmanchester, Assigned: chmanchester)
References
Details
Attachments
(2 files, 2 obsolete files)
|
3.27 KB,
patch
|
jgraham
:
review+
|
Details | Diff | Splinter Review |
|
7.20 KB,
patch
|
jgraham
:
review+
|
Details | Diff | Splinter Review |
This will make formatting in a tbpl starrable way less brittle and make marionette's special formatter obsolete.
| Assignee | ||
Comment 1•11 years ago
|
||
Try (seeded failures):
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=71f776088afb
I think I'm ending up with too many newlines somewhere.
| Assignee | ||
Comment 2•11 years ago
|
||
This makes the tbpl and mach formatters include stacks in test_end.
Attachment #8475458 -
Flags: review?(james)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → cmanchester
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•11 years ago
|
||
This modifies the unittest adapter to log messages and stack seperately. The traceback api is a little cryptic, but this seems to produce the expected output.
Attachment #8475461 -
Flags: review?(james)
| Assignee | ||
Comment 4•11 years ago
|
||
Finally, this removes the one off formatter from marionette altogether.
Attachment #8475463 -
Flags: review?(james)
Updated•11 years ago
|
Attachment #8475458 -
Flags: review?(james) → review+
Updated•11 years ago
|
Attachment #8475461 -
Flags: review?(james) → review+
Updated•11 years ago
|
Attachment #8475463 -
Flags: review?(james) → review+
Comment 5•11 years ago
|
||
This looks good to me. I briefly looked at the output in treeherder and it seemed OK, but I assume you will post a corrected patch if you spot any problems I missed.
| Assignee | ||
Comment 6•11 years ago
|
||
This is the mozlog/moztest patches folded together, the marionette part is unchanged and might need to land after. Two details I noticed and fixed:
I was missing the "Traceback (most recent call last):" header we all know and love.
The idea of putting the message before the stacktrace is specific to the tbplformatter, the stack before the message gets us what I think we want in the machformatter.
The treeherder output looked mostly fine before, but here's a before/after for good measure:
Before: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=8f25c9674672
After: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=c175c76d9bee
Attachment #8476188 -
Flags: review?(james)
| Assignee | ||
Updated•11 years ago
|
Attachment #8475461 -
Attachment is obsolete: true
| Assignee | ||
Updated•11 years ago
|
Attachment #8475458 -
Attachment is obsolete: true
Updated•11 years ago
|
Attachment #8476188 -
Flags: review?(james) → review+
| Assignee | ||
Comment 7•11 years ago
|
||
The moztest/mozlog changes:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fa5716c4f18e
| Assignee | ||
Updated•11 years ago
|
Keywords: leave-open
| Assignee | ||
Comment 9•11 years ago
|
||
Keywords: leave-open
Comment 10•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•