Bug 42339

Summary: WebKit needs a rebaselining tool (finally)
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: New BugsAssignee: Eric Seidel (no email) <eric>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, jamesr, mrobinson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
none
Patch abarth: review+, abarth: commit-queue+

Eric Seidel (no email)
Reported 2010-07-14 23:19:58 PDT
WebKit needs a rebaselining tool (finally)
Attachments
Patch (7.63 KB, patch)
2010-07-14 23:21 PDT, Eric Seidel (no email)
no flags
Patch (11.47 KB, patch)
2010-07-14 23:54 PDT, Eric Seidel (no email)
abarth: review+
abarth: commit-queue+
Eric Seidel (no email)
Comment 1 2010-07-14 23:21:36 PDT
Eric Seidel (no email)
Comment 2 2010-07-14 23:23:05 PDT
This is a very rough approximation. But it works. :) I looked at bending rebaseline-chromium-webkit-tests to my will, but that effort failed. This code could be cleaner. Some of this code needs to be moved to shared locations. For now just posting this for others enjoyment. I will look at cleaning it up for landing later this week.
Adam Barth
Comment 3 2010-07-14 23:28:49 PDT
Comment on attachment 61610 [details] Patch WebKitTools/Scripts/webkitpy/tool/commands/rebaseline.py:43 + help_text = "Foo" Should have some real text here. WebKitTools/Scripts/webkitpy/tool/commands/rebaseline.py:76 + chosen_name = User.prompt_with_list("Which builder to pull results from:", builder_choices) self.tool.user for testability. WebKitTools/Scripts/webkitpy/tool/commands/rebaseline.py:83 + (downloaded_file, headers) = urllib.urlretrieve(remote_file) Does this throw exceptions? Maybe add a FIXME? WebKitTools/Scripts/webkitpy/tool/commands/rebaseline.py:84 + shutil.move(downloaded_file, local_file) We should svn add the file in case it's new.
Adam Barth
Comment 4 2010-07-14 23:29:19 PDT
I think we could land it as a first draft if we do those things. Need iteration, of course.
Eric Seidel (no email)
Comment 5 2010-07-14 23:54:54 PDT
Adam Barth
Comment 6 2010-07-14 23:58:28 PDT
Comment on attachment 61612 [details] Patch Ok. This is a good start. We'll need to refactor this into some of the lower layers at some point. WebKitTools/Scripts/webkitpy/tool/commands/rebaseline.py:97 + actual_path = test_base + "-actual.txt" This knowledge probably shouldn't be here.
Eric Seidel (no email)
Comment 7 2010-07-15 00:02:11 PDT
Note You need to log in before you can comment on or make changes to this bug.