Closed Bug 1054726 Opened 10 years ago Closed 10 years ago

Add crash log formatting to StructuredFormatter

Categories

(Release Engineering :: Applications: MozharnessCore, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgraham, Assigned: jgraham)

Details

Attachments

(2 files)

The StructuredFormatter class needs to be updated for crash log handling.
Assignee: nobody → james
Status: NEW → ASSIGNED
More substantive approach in which we replace the mozharness-specific formatter with the one in mozlog. This only works for tests using structured logging; if we want mozharness itself to use structured logging it will be necessary for it to have a copy of mozlog in its tree.
Attachment #8474270 - Flags: review?(jgriffin)
Comment on attachment 8474208 [details] [diff] [review]
Add crash log formatting to StructuredFormatter

Review of attachment 8474208 [details] [diff] [review]:
-----------------------------------------------------------------

::: mozharness/mozilla/structuredlog.py
@@ +65,5 @@
> +    def format_crash(self, data):
> +        id = self.id_str(data["test"]) if "test" in data else "pid: " % data["process"]
> +
> +        rv = ["PROCESS-CRASH | %s | application crashed [%s]" % (id,
> +                                                                 data["signature"])]

Is data guaranteed to have 'process' and 'signature' keys?
Attachment #8474208 - Flags: review?(jgriffin) → review+
Comment on attachment 8474270 [details] [diff] [review]
Use the TbplFormatter from mozlog to format structured output

Review of attachment 8474270 [details] [diff] [review]:
-----------------------------------------------------------------

::: mozharness/mozilla/structuredlog.py
@@ +13,3 @@
>  
>  class StructuredOutputParser(OutputParser):
> +    # The scrip class using this must inherit the MozbaseMixin to ensure

s/scrip/script
Attachment #8474270 - Flags: review?(jgriffin) → review+
In production with reconfig on 2014-08-19 10:47 PT
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: