WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
56043
Leaks Viewer should present a list of recent builds to analyze
https://bugs.webkit.org/show_bug.cgi?id=56043
Summary
Leaks Viewer should present a list of recent builds to analyze
Adam Roben (:aroben)
Reported
2011-03-09 12:18:19 PST
It would be handy if Leaks Viewer presented the user a list of recent builds to choose from when it first loads. The user would click on a build and Leaks Viewer would load the leaks output from that build. If we do this before fixing
bug 56030
, we'll need to present the user with a list of leaks files for a particular build.
Attachments
Show a list of up to 10 recent leaky builds when Leaks Viewer loads
(12.81 KB, patch)
2011-03-14 14:40 PDT
,
Adam Roben (:aroben)
joepeck
: review+
Details
Formatted Diff
Diff
screenshot
(12.95 KB, image/png)
2011-03-14 14:41 PDT
,
Adam Roben (:aroben)
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Adam Roben (:aroben)
Comment 1
2011-03-14 14:40:09 PDT
Created
attachment 85721
[details]
Show a list of up to 10 recent leaky builds when Leaks Viewer loads
Adam Roben (:aroben)
Comment 2
2011-03-14 14:41:39 PDT
Created
attachment 85722
[details]
screenshot
David Kilzer (:ddkilzer)
Comment 3
2011-03-14 14:47:22 PDT
Comment on
attachment 85721
[details]
Show a list of up to 10 recent leaky builds when Leaks Viewer loads View in context:
https://bugs.webkit.org/attachment.cgi?id=85721&action=review
r=me
> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/LeaksViewer.js:123 > + loader.start("SnowLeopard Intel Leaks", this._numberOfRecentBuildsToLoad);
Nit: I guess this is okay to hard-code. Eventually, we may want another way to pick from a list of bots?
> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/LeaksViewer.js:192 > + recentBuildsContainer.appendChild(document.createTextNode("No recent leaky builds found"));
Nit: Should say: "No recent leaky builds found. Go home." (At least consider adding a period to the existing message. :)
Adam Roben (:aroben)
Comment 4
2011-03-14 14:49:56 PDT
Comment on
attachment 85721
[details]
Show a list of up to 10 recent leaky builds when Leaks Viewer loads View in context:
https://bugs.webkit.org/attachment.cgi?id=85721&action=review
>> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/LeaksViewer.js:123 >> + loader.start("SnowLeopard Intel Leaks", this._numberOfRecentBuildsToLoad); > > Nit: I guess this is okay to hard-code. Eventually, we may want another way to pick from a list of bots?
Yeah, eventually. Right now we only have one of course.
>> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/LeaksViewer.js:192 >> + recentBuildsContainer.appendChild(document.createTextNode("No recent leaky builds found")); > > Nit: Should say: "No recent leaky builds found. Go home." (At least consider adding a period to the existing message. :)
Added a period.
Joseph Pecoraro
Comment 5
2011-03-14 14:50:19 PDT
Comment on
attachment 85721
[details]
Show a list of up to 10 recent leaky builds when Leaks Viewer loads View in context:
https://bugs.webkit.org/attachment.cgi?id=85721&action=review
Some general js comments. Nice coding style!
> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/LeaksViewer.js:178 > + link.href = document.location.href + "?url=" + build.url;
I think this should window.encodeURIComponent(build.url)
> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/RecentBuildsLoader.js:33 > + url += range(maximumNumberOfBuilds).map(function(n) { return "select=-" + (n + 1); }).join("&");
Maybe even here too (inside the map function), but this seems harmless.
> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/RecentBuildsLoader.js:57 > + buildInfo.leakCount = match[1];
Nit: optional, parseInt(match[1], 10) since it looks like you want this to be a numerical value.
Joseph Pecoraro
Comment 6
2011-03-14 15:03:33 PDT
Whoops, did my comment conflict clear the r+ flag?
Joseph Pecoraro
Comment 7
2011-03-14 15:04:19 PDT
Comment on
attachment 85721
[details]
Show a list of up to 10 recent leaky builds when Leaks Viewer loads Re-setting r+ from ddkilzer. I accidentally cleared with a comment conflict.
Adam Roben (:aroben)
Comment 8
2011-03-14 15:09:53 PDT
Comment on
attachment 85721
[details]
Show a list of up to 10 recent leaky builds when Leaks Viewer loads View in context:
https://bugs.webkit.org/attachment.cgi?id=85721&action=review
>> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/LeaksViewer.js:178 >> + link.href = document.location.href + "?url=" + build.url; > > I think this should window.encodeURIComponent(build.url)
Doing this by itself breaks the link. I need to add a decodeURIComponent call where we read this out of the URL. I've now done that.
>> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/RecentBuildsLoader.js:57 >> + buildInfo.leakCount = match[1]; > > Nit: optional, parseInt(match[1], 10) since it looks like you want this to be a numerical value.
Fixed.
Adam Roben (:aroben)
Comment 9
2011-03-14 15:23:34 PDT
Committed
r81068
: <
http://trac.webkit.org/changeset/81068
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug