RESOLVED FIXED 144814
Add support to the botwatchers dashboard for a static analyzer bot
https://bugs.webkit.org/show_bug.cgi?id=144814
Summary Add support to the botwatchers dashboard for a static analyzer bot
Dana Burkart
Reported 2015-05-08 14:12:14 PDT
Add support for displaying the number of bugs a static analyzer bot has found to the dashboard. While we're at it, we might as well get rid of the performance column and merge it with the 'Other' column.
Attachments
Add support for static analyzer bots to the dashboard. (12.21 KB, patch)
2015-05-13 15:20 PDT, Dana Burkart
no flags
Add support for static analyzer bots to the dashboard. (16.87 KB, patch)
2015-05-13 15:48 PDT, Dana Burkart
ap: review+
ap: commit-queue-
Make the static analyzer builder queue show up. (61.30 KB, patch)
2015-05-26 15:11 PDT, Dana Burkart
ap: review+
ap: commit-queue-
Dana Burkart
Comment 1 2015-05-08 14:13:47 PDT
Dana Burkart
Comment 2 2015-05-13 15:20:22 PDT
Created attachment 253065 [details] Add support for static analyzer bots to the dashboard.
Dana Burkart
Comment 3 2015-05-13 15:48:57 PDT
Created attachment 253068 [details] Add support for static analyzer bots to the dashboard. Add missing class (forgot to git add)
Alexey Proskuryakov
Comment 4 2015-05-13 17:00:48 PDT
Comment on attachment 253068 [details] Add support for static analyzer bots to the dashboard. View in context: https://bugs.webkit.org/attachment.cgi?id=253068&action=review > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:90 > + "scan build" : "scan build", No need to add it to TestSteps, only BuildbotTesterQueueView uses that. > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotStaticAnalyzerQueueView.js:59 > + var url = iteration.queue.buildbot.buildPageURLForIteration(iteration); Is this the best URL that we have? No way to link directly to static analyzer output when the build succeeds with issues? > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotStaticAnalyzerQueueView.js:66 > + text = "no bugs found"; Should we call these "issues", not "bugs"? > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotStaticAnalyzerQueueView.js:69 > + } else if (!iteration.productive) { > + statusLineViewColor = StatusLineView.Status.Danger; > + } else if (iteration.failed && /failed to build/.test(iteration.text)) { WebKit style is to not have braces around single-line blocks. > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotStaticAnalyzerQueueView.js:74 > + var failedStep = iteration.failedTestSteps[0]; OK, you are adding a usage of TestSteps here, but I don't think that I like it. Seems better to get it by name. > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotStaticAnalyzerQueueView.js:77 > + var status = new StatusLineView(messageElement, statusLineViewColor, (text) ? text : "found " + failedStep.bugsCount + " bugs", failedStep.bugsCount, url); Same question about "issues". > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTestResults.js:97 > I wish we had a less generic way to identify these. > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js:158 > - header.textContent = "Performance"; > + header.textContent = "Other"; I don't understand how changes in Main.js affect the internal dashboard. Please test.
Dana Burkart
Comment 5 2015-05-13 17:16:06 PDT
Comment on attachment 253068 [details] Add support for static analyzer bots to the dashboard. View in context: https://bugs.webkit.org/attachment.cgi?id=253068&action=review >> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotStaticAnalyzerQueueView.js:59 >> + var url = iteration.queue.buildbot.buildPageURLForIteration(iteration); > > Is this the best URL that we have? No way to link directly to static analyzer output when the build succeeds with issues? That's a good point, agreed. >> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotStaticAnalyzerQueueView.js:66 >> + text = "no bugs found"; > > Should we call these "issues", not "bugs"? I don't really have a preference. To me, an "issue" and a "bug" are synonymous, at least in the context of static analysis. >> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js:158 >> + header.textContent = "Other"; > > I don't understand how changes in Main.js affect the internal dashboard. Please test. I did test, and this is the only way to change the heading. If you look in the internal index.html, you find: <script src="https://build.webkit.org/dashboard/Scripts/Main.js"></script> so if you're saying it does nothing, then we should also be removing that script tag.
Alexey Proskuryakov
Comment 6 2015-05-13 20:57:09 PDT
> I don't really have a preference. To me, an "issue" and a "bug" are synonymous, at least in the context of static analysis. Most static analyzer issues are not really bugs. Even "issue" may be to strong. That said, what terminology does Xcode use? We should just match that. > so if you're saying it does nothing, then we should also be removing that script tag. I was unclear. What I was saying was that I wasn't sure what this change will break on the internal dashboard. Main.js is definitely used everywhere.
Dana Burkart
Comment 7 2015-05-14 15:26:55 PDT
(In reply to comment #6) > > I don't really have a preference. To me, an "issue" and a "bug" are synonymous, at least in the context of static analysis. > > Most static analyzer issues are not really bugs. Even "issue" may be to > strong. > > That said, what terminology does Xcode use? We should just match that. AnalyzeShallow calls them "warnings", and the scan-build scripts refers to them as "bugs" in one place, and "analyzer issues" in another.
Alexey Proskuryakov
Comment 8 2015-05-22 23:26:11 PDT
This was landed in <http://trac.webkit.org/changeset/184804>, plus follow-up fixes.
Dana Burkart
Comment 9 2015-05-26 15:08:04 PDT
Reopening to further fix fallout from related dashboard change.
Dana Burkart
Comment 10 2015-05-26 15:11:39 PDT
Created attachment 253744 [details] Make the static analyzer builder queue show up.
Alexey Proskuryakov
Comment 11 2015-05-26 15:21:33 PDT
Comment on attachment 253744 [details] Make the static analyzer builder queue show up. View in context: https://bugs.webkit.org/attachment.cgi?id=253744&action=review I was wondering if the step name in BuildbotIteration.js is correct ("scan build"). > Tools/ChangeLog:-293 > - * MiniBrowser/efl/main.c: Code changes look good, but ChangeLog re-formatting shouldn't happen.
Dana Burkart
Comment 12 2015-05-26 15:33:30 PDT
Committed r184882.
Note You need to log in before you can comment on or make changes to this bug.