Bug 90204

Summary: Fix rebaselining for Qt and Apple ports
Product: WebKit Reporter: Ojan Vafai <ojan>
Component: New BugsAssignee: Ojan Vafai <ojan>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dpranke, jberlin, lforschler, ossy, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch dpranke: review+

Description Ojan Vafai 2012-06-28 14:09:33 PDT
Fix rebaselining for Qt and Apple ports
Comment 1 Ojan Vafai 2012-06-28 14:11:07 PDT
Created attachment 150011 [details]
Patch
Comment 2 Ojan Vafai 2012-06-28 14:12:11 PDT
With this patch, I think the rebaseline tool will work for all ports. We'll need some real-world experience to flush out edge cases I didn't think of.
Comment 3 Adam Barth 2012-06-28 14:16:05 PDT
Comment on attachment 150011 [details]
Patch

baseline_path_for_rebaseline makes sense as a concept.  I'm not 100% sure about the details for each port.
Comment 4 Ojan Vafai 2012-06-28 14:18:15 PDT
(In reply to comment #3)
> (From update of attachment 150011 [details])
> baseline_path_for_rebaseline makes sense as a concept.  I'm not 100% sure about the details for each port.

Yeah, I tried to do a best guess based off what I see with the existing bots and platform directories.
Comment 5 Ojan Vafai 2012-06-28 15:58:04 PDT
Created attachment 150033 [details]
Patch
Comment 6 Dirk Pranke 2012-06-28 16:57:02 PDT
Comment on attachment 150033 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=150033&action=review

r+ w/ nits/questions.

> Tools/Scripts/webkitpy/layout_tests/port/builders.py:61
> +    "Apple Win XP Debug (Tests)": {"port_name": "win-xp", "specifiers": set(["win", "debug"]), "rebaseline_override_dir": "win"},

shouldn't this be win-xp?

> Tools/Scripts/webkitpy/tool/commands/rebaseline.py:94
>          return port.baseline_path()

nit: can you change port.baseline_path() to port.baseline_version_dir() while you're at it?

> Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py:49
> +        self.assertEqual(command._baseline_directory("Apple Win XP Debug (Tests)"), "/mock-checkout/LayoutTests/platform/win")

same comment re: -xp.
Comment 7 Ojan Vafai 2012-06-28 17:53:02 PDT
Comment on attachment 150033 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=150033&action=review

>> Tools/Scripts/webkitpy/layout_tests/port/builders.py:61
>> +    "Apple Win XP Debug (Tests)": {"port_name": "win-xp", "specifiers": set(["win", "debug"]), "rebaseline_override_dir": "win"},
> 
> shouldn't this be win-xp?

lol-whoops. yes.
Comment 8 Ojan Vafai 2012-06-29 11:28:43 PDT
Committed r121577: <http://trac.webkit.org/changeset/121577>