Closed
Bug 1057666
Opened 10 years ago
Closed 10 years ago
No line break on structured logging failure messages with tbplformatter
Categories
(Testing :: Mozbase, defect)
Testing
Mozbase
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla34
People
(Reporter: akachkach, Assigned: jgraham)
References
Details
Attachments
(1 file)
2.98 KB,
patch
|
chmanchester
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Comment 1•10 years ago
|
||
Submitted this a bit too soon :) So, I'm filing this because this run has weird formatting for errors: https://tbpl.mozilla.org/php/getParsedLog.php?id=46605945&tree=Try&full=1#error0 Failures do not have a line break at the end, which causes the following messages to be appended at the end of the line. There's a scenario where this seems possible in the code (when the "expected" field == "PASS") but it doesn't seem to be the case here.
OS: Mac OS X → All
Hardware: x86 → All
Reporter | ||
Updated•10 years ago
|
Summary: No line break on structured logging failure messages → No line break on structured logging failure messages with tbplformatter
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8477842 -
Flags: review?(cmanchester)
Assignee | ||
Comment 3•10 years ago
|
||
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=1be1fd7ca9e4
Updated•10 years ago
|
Attachment #8477842 -
Flags: review?(cmanchester) → review+
Reporter | ||
Comment 4•10 years ago
|
||
Comment on attachment 8477842 [details] [diff] [review] Ensure that only one log message is printed per line, r=chmanchester Review of attachment 8477842 [details] [diff] [review]: ----------------------------------------------------------------- ::: testing/mozbase/mozlog/mozlog/structured/formatters/tbplformatter.py @@ +70,5 @@ > message = "- " + data["message"] if "message" in data else "" > if "stack" in data: > message += "\n%s" % data["stack"] > + if message and message[-1] == "\n": > + message = message[:-1] Maybe we could use "message = message.rstrip('\n')" ?
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/fb0fdf7c9a10
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/fb0fdf7c9a10
Assignee: nobody → james
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•