Closed
Bug 1060302
Opened 10 years ago
Closed 10 years ago
Error summary: Display a message instead of a blank panel if log parser found nothing
Categories
(Tree Management :: Treeherder, defect, P2)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: emorley)
References
Details
Attachments
(1 file)
633 bytes,
patch
|
camd
:
review+
|
Details | Diff | Splinter Review |
At the moment, if a job failed but the log parser did not match against any error lines, in TBPL we get:
"Summary is empty."
In treeherder the Failure Summary is just empty.
In the future perhaps we can come up with some better fallback if the log parser didn't match anything (eg reporting in which job step the run failed, using the result codes) - however as a simple fix for now let's just display a message.
I'm guessing we just add an ng-if against 'suggestions', as a fallback near here:
https://github.com/mozilla/treeherder-ui/blob/19afb49efb42f0f352f074f12379d01eb949e83e/webapp/app/plugins/failure_summary/main.html#L4
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → emorley
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•10 years ago
|
||
Just checking for "suggestions.length == 0" results in "Summary empty" being seen under the spinner whilst the summary is still loading, so this waits for loading to stop.
Not sure if this is the best way to do this, or if you'd prefer a specific summary_empty variable on the controller side.
Attachment #8481233 -
Flags: review?(mdoglio)
Assignee | ||
Comment 2•10 years ago
|
||
Jonathan/Cameron, would either of you mind taking the review for this? (Didn't realise Mauro was away)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8481233 -
Attachment description: WIP → Patch v1
Attachment #8481233 -
Flags: review?(cdawson)
Comment 4•10 years ago
|
||
Comment on attachment 8481233 [details] [diff] [review]
Patch v1
Review of attachment 8481233 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me. Not sure we need the ending period, but I don't have a strong opinion about it.
Attachment #8481233 -
Flags: review?(cdawson) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Agree about the trailing period, have removed it.
https://github.com/mozilla/treeherder-ui/commit/d467a037cbada04bdb08ff36ba7c7321536c2bdc
I'm also wondering if something like "No log failure lines recognised" would be more descriptive of the actual problem - but we can save that for another time - least we have something displayed now :-)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•10 years ago
|
Attachment #8481233 -
Flags: review?(mdoglio)
Comment 6•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/cc93bef967622e819072336646d55005f58c8f74
Bug 1060302 - Display a message if the failure summary was empty
You need to log in
before you can comment on or make changes to this bug.
Description
•