<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>66040</bug_id>
          
          <creation_ts>2011-08-11 01:15:09 -0700</creation_ts>
          <short_desc>REGRESSION: nrwt does not use the right fallback sequence for platform-specific tests</short_desc>
          <delta_ts>2011-10-12 14:27:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>66093</dependson>
          <blocked>64491</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>andersca</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>449653</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-11 01:15:09 -0700</bug_when>
    <thetext>platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html has been failing on Snow Leopard since andersca has landed his Lion results on http://trac.webkit.org/changeset/92496.

Looking at the result.html, it appears that it&apos;s grabbing the expected result from platform/mac/ instead of platform/mac-snowleopard:
http://build.webkit.org/results/SnowLeopard%20Intel%20Debug%20(Tests)/r92823%20(1624)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449654</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-11 01:16:28 -0700</bug_when>
    <thetext>This is a serious bug as there&apos;s currently no way of putting different expected results for Lion, Snow Leopard, and Leopard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449938</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-08-11 12:40:19 -0700</bug_when>
    <thetext>I suspect NRWT just doesn&apos;t know anything about lion, and thus assumes that mac/ is Snow Leopard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449944</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-08-11 12:46:27 -0700</bug_when>
    <thetext>NRWT knows about the platform/mac-snow-leopard directory. There isn&apos;t an expected result for platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html there, so it uses the one from platform/mac. So, NRWT seems to be working correctly.

Is the complaint that a rebaselining tool isn&apos;t doing the right thing, perhaps? Or is there something else stopping someone from putting a baseline in the SL dir?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449962</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-08-11 13:04:58 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; NRWT knows about the platform/mac-snow-leopard directory. There isn&apos;t an expected result for platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html there, so it uses the one from platform/mac. So, NRWT seems to be working correctly.
&gt; 
&gt; Is the complaint that a rebaselining tool isn&apos;t doing the right thing, perhaps? Or is there something else stopping someone from putting a baseline in the SL dir?

snowleopard is snow supposed to fall back to lion before mac.

I&apos;ll change NRWT to match ORWT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449964</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-11 13:07:04 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; NRWT knows about the platform/mac-snow-leopard directory. There isn&apos;t an expected result for platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html there

There is!
http://trac.webkit.org/browser/trunk/LayoutTests/platform/mac-snowleopard/fast/text/international/Geeza-Pro-vertical-metrics-adjustment-expected.txt

&gt; so it uses the one from platform/mac. So, NRWT seems to be working correctly.

NRWT should be grabbing the result from mac-snowleopard instead of mac.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449968</commentid>
    <comment_count>6</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-11 13:10:24 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Is the complaint that a rebaselining tool isn&apos;t doing the right thing, perhaps? Or is there something else stopping someone from putting a baseline in the SL dir?
&gt; 
&gt; snowleopard is snow supposed to fall back to lion before mac.

Really?  That doesn&apos;t sound right but if that&apos;s what ORWT does then I guess NRWT can do that as well.  But I don&apos;t think that&apos;ll solve problem either because we don&apos;t have http://trac.webkit.org/browser/trunk/LayoutTests/platform/mac-lion/fast/text/international/Geeza-Pro-vertical-metrics-adjustment-expected.txt, and even if we did, it&apos;ll be Lion specific result.

The problem is that NRWT isn&apos;t looking for the expected result in mac-snowleopard before mac when the test itself is in mac.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449972</commentid>
    <comment_count>7</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-08-11 13:12:36 -0700</bug_when>
    <thetext>The SL expected result for LayoutTests/platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html would be in LayoutTests/platform/mac-snow-leopard/platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment-expected.txt (to differentiate from a test at LayoutTests/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html).

Maybe ORWT doesn&apos;t work that way?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449979</commentid>
    <comment_count>8</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-11 13:16:14 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; The SL expected result for LayoutTests/platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html would be in LayoutTests/platform/mac-snow-leopard/platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment-expected.txt (to differentiate from a test at LayoutTests/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html).
&gt; 
&gt; Maybe ORWT doesn&apos;t work that way?

ORWT assumes the expected result be in  LayoutTests/platform/mac-snow-leopard/fast/text/international/ instead of LayoutTests/platform/mac-snow-leopard/platform/mac/fast/text/international/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449984</commentid>
    <comment_count>9</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-08-11 13:23:51 -0700</bug_when>
    <thetext>Why are there results checked into platform/*/platform then?  Some of them date back as far as 2009 (pre-NRWT):

http://trac.webkit.org/changeset/45852</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449985</commentid>
    <comment_count>10</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-08-11 13:24:23 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; The SL expected result for LayoutTests/platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html would be in LayoutTests/platform/mac-snow-leopard/platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment-expected.txt (to differentiate from a test at LayoutTests/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html).
&gt; &gt; 
&gt; &gt; Maybe ORWT doesn&apos;t work that way?
&gt; 
&gt; ORWT assumes the expected result be in  LayoutTests/platform/mac-snow-leopard/fast/text/international/ instead of LayoutTests/platform/mac-snow-leopard/platform/mac/fast/text/international/

That sounds broken to me. I agree with Tony.

To further complicate things, I&apos;ll note that there is also a LayoutTests/platform/mac-snowleopard/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html file itself.

I.e., there are platform-specific tests for both mac and mac-sl with the same &quot;generic&quot; name :(. In theory, the platform/mac-snowleopard/f/t/i/G-P-v-m-a-expected.txt file could be interpreted as the &quot;generic&quot; result for that test, or be the platform-specific result for the generic f/t/i test (if it existed).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449988</commentid>
    <comment_count>11</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-11 13:25:46 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; Why are there results checked into platform/*/platform then?  Some of them date back as far as 2009 (pre-NRWT):
&gt; 
&gt; http://trac.webkit.org/changeset/45852

Huh, I might be wrong then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449999</commentid>
    <comment_count>12</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-11 13:30:21 -0700</bug_when>
    <thetext>So this bug may be invalid after all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>450013</commentid>
    <comment_count>13</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-08-11 13:54:31 -0700</bug_when>
    <thetext>I just implemented support for Lion fallback orders in bug 66093.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482710</commentid>
    <comment_count>14</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-10-12 14:26:05 -0700</bug_when>
    <thetext>Unclear if this should still be open?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>