Closed
Bug 1349464
Opened 8 years ago
Closed 8 years ago
Bug filer fails to open sometimes from autoclassify panel.
Categories
(Tree Management :: Treeherder, defect)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: KWierso, Assigned: KWierso)
References
Details
Attachments
(1 file)
Some jobs[1] don't have a log file ending in "_json", so https://github.com/mozilla/treeherder/blob/8e56de8590f9a085d2e77ba2279f243dfdbad1a5/ui/plugins/auto_classification/controller.js#L151 sometimes silently throws an error trying to access the first item in an empty array, causing the bug filer to fail to open.
1. Like these https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&bugfiler&fromchange=0e6b4d237ef6732d19240dde3b4fa9ac1d1d61aa&filter-searchStr=en-us&selectedJob=85253723
Comment 1•8 years ago
|
||
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → wkocher
| Assignee | ||
Comment 2•8 years ago
|
||
Comment on attachment 8849876 [details] [review]
[treeherder] KWierso:autoclassifyfiler > mozilla:master
This should hopefully catch the previously failing case and just take the first log from the ctrl.thJob.logs array, regardless of it ending in _json.
This ends up being the same log that is used for this property from the failure summary panel, so no huge loss in using it.
Attachment #8849876 -
Flags: review?(james)
Comment 3•8 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/9abb507d4d30f4c70c04c222b32b754127196579
Bug 1349464 - Deal with jobs that don't have _json-ending logs (#2282) r=jgraham
| Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Attachment #8849876 -
Flags: review?(james) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•