Summary: | Dashboard: JavaScript exception when expected elements are not present in Buildbot data | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Aakash Jain <aakash_jain> | ||||
Component: | Tools / Tests | Assignee: | Aakash Jain <aakash_jain> | ||||
Status: | ASSIGNED --- | ||||||
Severity: | Normal | CC: | aakash_jain, dbates, lforschler | ||||
Priority: | P2 | ||||||
Version: | WebKit Local Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Aakash Jain
2017-07-26 13:34:50 PDT
Created attachment 316471 [details]
Proposed patch
Comment on attachment 316471 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=316471&action=review Can we write a unit test for this change? > Tools/ChangeLog:3 > + Dashboard: Don't crash when expected elements are not present in buildbot data "Crash" is not the correct terminology to use to refer to a JavaScript exception or error. > Tools/ChangeLog:9 > + (BuildbotIteration.prototype.failureLogURL): check if _firstFailedStep.logs is present before accessing Please capitalize the first letter in this sentence. > Tools/ChangeLog:11 > + (BuildbotIteration.prototype._parseData): check if data.sourceStamps is present before accessing its length. Ditto. > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:247 > + else if (data.sourceStamps) Is it possible for the version of Buildbot we use in OpenSource or internally to not have both sourceStamp and sourceStamps defined. If not, then I suggest we defer making this change until we upgrade OpenSource to the latest version. I know that the latest Buildbot does not have this property from talking with you today. |