WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
64446
garden-o-matic should have a "rebaseline" button
https://bugs.webkit.org/show_bug.cgi?id=64446
Summary
garden-o-matic should have a "rebaseline" button
Adam Barth
Reported
2011-07-13 03:50:37 PDT
garden-o-matic should have a "rebaseline" button
Attachments
work-in-progress
(9.36 KB, patch)
2011-07-13 03:51 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch
(10.44 KB, patch)
2011-07-13 23:44 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch
(10.44 KB, patch)
2011-07-13 23:44 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch
(11.85 KB, patch)
2011-07-14 08:56 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch for landing
(11.45 KB, patch)
2011-07-14 18:53 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2011-07-13 03:51:13 PDT
Created
attachment 100651
[details]
work-in-progress
Adam Barth
Comment 2
2011-07-13 03:51:27 PDT
Needs tests. :)
Adam Barth
Comment 3
2011-07-13 23:44:04 PDT
Created
attachment 100774
[details]
Patch
Adam Barth
Comment 4
2011-07-13 23:44:29 PDT
Created
attachment 100775
[details]
Patch
Eric Seidel (no email)
Comment 5
2011-07-14 00:21:09 PDT
Comment on
attachment 100775
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=100775&action=review
> Tools/Scripts/webkitpy/tool/commands/rebaseline.py:106 > + fs = self._tool.filesystem > + fs.maybe_make_directory(fs.dirname(target_baseline)) > + fs.write_binary_file(target_baseline, data)
Eh. I think filesystem is strictly superior to "fs"
> Tools/Scripts/webkitpy/tool/servers/data/gardeningserver/results.js:134 > + case IMAGE: > + return ['png']; > + case TEXT: > + return ['txt']; > + case IMAGE_TEXT: > + return ['txt', 'png']; > + default: > + // FIXME: Add support for the rest of the result types. > + // '-expected.html', > + // '-expected-mismatch.html', > + // '-expected.wav', > + // '-actual.wav', > + // ... and possibly more. > + return [];
WebKit c++ does not indent case statements. Seems we should match in JS, no?
Adam Barth
Comment 6
2011-07-14 08:56:37 PDT
Created
attachment 100813
[details]
Patch
Ojan Vafai
Comment 7
2011-07-14 09:18:26 PDT
Comment on
attachment 100813
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=100813&action=review
> Tools/ChangeLog:17 > + 2) The baselines are not optimized for redundancy (meaning you can have > + identical baselines in both chromium-mac and chromium-win).
Koz is a checkin or two away from having a tool that does this. Then this could use that? We should see if he'd be willing to prioritize getting this done.
> Tools/Scripts/webkitpy/tool/servers/data/gardeningserver/index.html:23 > + <div class="toolbar"> > + <div class="actions"> > + <a class="rebaseline" href="#">Rebaseline</a> > + <a class="dismiss" href="#">Close</a> > + </div> > + <div class="status"></div> > + </div> > + <div class="content"></div>
indentation is off here. also, shouldn't these be 4 space indents? i realize we don't have a firm style here, but may as well be consistent on indentation size.
> Tools/Scripts/webkitpy/tool/servers/data/gardeningserver/results.js:126 > + return ['png']; > + case TEXT: > + return ['txt']; > + case IMAGE_TEXT: > + return ['txt', 'png'];
These strings should be constants IMO.
> Tools/Scripts/webkitpy/tool/servers/data/gardeningserver/results.js:144 > + for (var i= 0; i < failureTypeList.length; ++i) { > + if (results.failureTypeToExtensionList(failureTypeList[i]).length > 0) > + return true; > + } > + return false;
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some
return failureTypeList.some(function(element) { return results.failureTypeToExtensionList(failureTypeList[i]).length > 0; });
Adam Barth
Comment 8
2011-07-14 10:38:20 PDT
(In reply to
comment #7
)
> (From update of
attachment 100813
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=100813&action=review
> > > Tools/ChangeLog:17 > > + 2) The baselines are not optimized for redundancy (meaning you can have > > + identical baselines in both chromium-mac and chromium-win). > > Koz is a checkin or two away from having a tool that does this. Then this could use that? We should see if he'd be willing to prioritize getting this done.
That would be great. I haven't seen any action on that front in a while. Is he still working on this?
> > Tools/Scripts/webkitpy/tool/servers/data/gardeningserver/index.html:23 > > + <div class="toolbar"> > > + <div class="actions"> > > + <a class="rebaseline" href="#">Rebaseline</a> > > + <a class="dismiss" href="#">Close</a> > > + </div> > > + <div class="status"></div> > > + </div> > > + <div class="content"></div> > > indentation is off here. also, shouldn't these be 4 space indents? i realize we don't have a firm style here, but may as well be consistent on indentation size.
Sure.
> > Tools/Scripts/webkitpy/tool/servers/data/gardeningserver/results.js:126 > > + return ['png']; > > + case TEXT: > > + return ['txt']; > > + case IMAGE_TEXT: > > + return ['txt', 'png']; > > These strings should be constants IMO.
kk.
> > Tools/Scripts/webkitpy/tool/servers/data/gardeningserver/results.js:144 > > + for (var i= 0; i < failureTypeList.length; ++i) { > > + if (results.failureTypeToExtensionList(failureTypeList[i]).length > 0) > > + return true; > > + } > > + return false; > >
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some
> > return failureTypeList.some(function(element) { > return results.failureTypeToExtensionList(failureTypeList[i]).length > 0; > });
Yay! That's way more awesome.
Adam Barth
Comment 9
2011-07-14 18:53:58 PDT
Created
attachment 100912
[details]
Patch for landing
WebKit Review Bot
Comment 10
2011-07-14 19:06:45 PDT
Comment on
attachment 100912
[details]
Patch for landing Clearing flags on attachment: 100912 Committed
r91042
: <
http://trac.webkit.org/changeset/91042
>
WebKit Review Bot
Comment 11
2011-07-14 19:06:50 PDT
All reviewed patches have been landed. Closing bug.
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