<?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>96149</bug_id>
          
          <creation_ts>2012-09-07 14:17:42 -0700</creation_ts>
          <short_desc>Handle non-existant TestExpectations files gracefully</short_desc>
          <delta_ts>2012-09-10 16:10:35 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ojan Vafai">ojan</reporter>
          <assigned_to name="Ojan Vafai">ojan</assigned_to>
          <cc>abarth</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>tony</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>714973</commentid>
    <comment_count>0</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-09-07 14:17:42 -0700</bug_when>
    <thetext>Handle non-existant TestExpectations files gracefully</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>714976</commentid>
    <comment_count>1</comment_count>
      <attachid>162868</attachid>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-09-07 14:18:54 -0700</bug_when>
    <thetext>Created attachment 162868
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>714988</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-09-07 14:30:55 -0700</bug_when>
    <thetext>I&apos;m not sure what this is for?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>714994</commentid>
    <comment_count>3</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-09-07 14:35:04 -0700</bug_when>
    <thetext>Right now, running &quot;run-webkit-tests --lint-test-files&quot; throws a stack halfway through because LayoutTests/platform/win-7sp0/TestExpectations doesn&apos;t exist. I&apos;d rather make this code change than create a dummy file, especially as we don&apos;t use nrwt on Apple Windows still, e.g. see LayoutTests/platform/win/TestExpectations, which has a comment at the top saying the file is unused, but people still add lines to it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>714995</commentid>
    <comment_count>4</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-09-07 14:36:51 -0700</bug_when>
    <thetext>I suppose the plan is to get rid of Skipped files and just have TestExpectations in the end, but I still don&apos;t think we need to require one such file for each subdirectory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>714997</commentid>
    <comment_count>5</comment_count>
      <attachid>162868</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-09-07 14:41:03 -0700</bug_when>
    <thetext>Comment on attachment 162868
Patch

OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>715031</commentid>
    <comment_count>6</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-09-07 15:06:07 -0700</bug_when>
    <thetext>Committed r127925: &lt;http://trac.webkit.org/changeset/127925&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>716564</commentid>
    <comment_count>7</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-09-10 15:04:29 -0700</bug_when>
    <thetext>I&apos;m not a huge fan of this solution; it seems like an error to me to say that you are using a TestExpectations file and then not have it actually exist. I think we should either modify expectatation_files() to not return files that don&apos;t exist, or just create a stub file (like I&apos;ve done on the other ports); the latter seems preferable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>716571</commentid>
    <comment_count>8</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-09-10 15:10:11 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; I&apos;m not a huge fan of this solution; it seems like an error to me to say that you are using a TestExpectations file and then not have it actually exist. I think we should either modify expectatation_files() to not return files that don&apos;t exist, or just create a stub file (like I&apos;ve done on the other ports); the latter seems preferable.

FWIW, I suggested this because the stub file doesn&apos;t prevent people from adding lines.  See http://trac.webkit.org/changeset/127927#file7 .

In practice, you would only accidentally not have a TestExpectations file when creating a new port. I think you would end up needing to create the file immediately, so I&apos;m not sure there&apos;s any fear about someone forgetting to create TestExpectations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>716597</commentid>
    <comment_count>9</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-09-10 15:24:00 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; I&apos;m not a huge fan of this solution; it seems like an error to me to say that you are using a TestExpectations file and then not have it actually exist. I think we should either modify expectatation_files() to not return files that don&apos;t exist, or just create a stub file (like I&apos;ve done on the other ports); the latter seems preferable.
&gt; 
&gt; FWIW, I suggested this because the stub file doesn&apos;t prevent people from adding lines.  See http://trac.webkit.org/changeset/127927#file7 .
&gt; 

This is true. I&apos;m not sure that this is a huge problem in practice, but then, I&apos;m not sure how big an issue missing files are either (assuming code returning the list of files that are actually expected to exist). To me, the biggest problem is that this patch seems like a hack - one routine is returning something it shouldn&apos;t and we&apos;re working around it. We should fix the real problem.

&gt; In practice, you would only accidentally not have a TestExpectations file when creating a new port. I think you would end up needing to create the file immediately, so I&apos;m not sure there&apos;s any fear about someone forgetting to create TestExpectations.

I&apos;m not sure what you&apos;re getting at here? Are you agreeing with me that missing files should be treated as errors, or saying something else?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>716636</commentid>
    <comment_count>10</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-09-10 16:10:35 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; I&apos;m not sure what you&apos;re getting at here? Are you agreeing with me that missing files should be treated as errors, or saying something else?

I&apos;m saying that missing files should not be treated as errors.  Modifying expectatation_files() to not return files that don&apos;t exist is also fine with me.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>162868</attachid>
            <date>2012-09-07 14:18:54 -0700</date>
            <delta_ts>2012-09-07 14:41:03 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-96149-20120907211833.patch</filename>
            <type>text/plain</type>
            <size>2907</size>
            <attacher name="Ojan Vafai">ojan</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTI3OTE3CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggNjk3MDVkM2U4MWY5NWIzMTE5NDE5OWYyNzJiODNjOTJk
YzUxYTJjYy4uZGRkNDU3MDZhMTdmMzczMGU1MTQ4MGIxODQ5NzI1YjdhNGMyZTVjZCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE5
IEBACisyMDEyLTA5LTA3ICBPamFuIFZhZmFpICA8b2phbkBjaHJvbWl1bS5vcmc+CisKKyAgICAg
ICAgSGFuZGxlIG5vbi1leGlzdGFudCBUZXN0RXhwZWN0YXRpb25zIGZpbGVzIGdyYWNlZnVsbHkK
KyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTk2MTQ5CisK
KyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgRXZlbiB3aGVu
IHdlIGdldCByaWQg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
a2VfcG9ydChwb3J0X25hbWU9J2ZvbycpCiAgICAgICAgIHBvcnQucG9ydF9uYW1lID0gJ2ZvbycK
</data>
<flag name="review"
          id="174112"
          type_id="1"
          status="+"
          setter="eric"
    />
    <flag name="commit-queue"
          id="174119"
          type_id="3"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>