<?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>58625</bug_id>
          
          <creation_ts>2011-04-14 18:49:45 -0700</creation_ts>
          <short_desc>new-run-webkit-tests: runs tests in a different order than ORWT</short_desc>
          <delta_ts>2011-06-24 14:47:25 -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>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>
          <dependson>58293</dependson>
    
    <dependson>58691</dependson>
    
    <dependson>62753</dependson>
          <blocked>34984</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dirk Pranke">dpranke</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>aroben</cc>
    
    <cc>eric</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>ojan</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>386283</commentid>
    <comment_count>0</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-04-14 18:49:45 -0700</bug_when>
    <thetext>It turns out that ORWT has a fancy sort function that is aware of numeric substrings in a test name, so that test-10.html will run after test-2.html.

NRWT needs equal fanciness :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>386285</commentid>
    <comment_count>1</comment_count>
      <attachid>89717</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-04-14 18:54:02 -0700</bug_when>
    <thetext>Created attachment 89717
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>386287</commentid>
    <comment_count>2</comment_count>
      <attachid>89717</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-04-14 18:55:12 -0700</bug_when>
    <thetext>Comment on attachment 89717
Patch

Not marking this for review just yet. While I think the patch is ready for review, I may want to leave this bug open as a tracking bug as there may be other issues affecting the test run order, and additional flakiness may ensue on either the mac or chromium bots as we change the order tests are run in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>386323</commentid>
    <comment_count>3</comment_count>
      <attachid>89717</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-04-14 20:21:15 -0700</bug_when>
    <thetext>Comment on attachment 89717
Patch

Nice!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>386894</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-04-15 13:55:55 -0700</bug_when>
    <thetext>moving the numeric compare patch into a sub-bug (bug 58691).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420972</commentid>
    <comment_count>5</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-06-14 20:06:09 -0700</bug_when>
    <thetext>Okay, I&apos;ve worked out all of the issues causing us to run a different list of test in a different order than ORWT, and am filing them as dependent bugs here:


1) ORWT will run all of the tests in a directory before it descends into subdirectories. NRWT sorts things slightly differently to account for the chunking arguments (--run-chunk, --run-part, --batch-size, etc.)

2) ORWT uses &quot;natural sorting&quot; on filenames and path names

3) ORWT, for some reason, will sort directories such that &quot;inspector-enabled&quot; is run before &quot;inspector&quot;. I can&apos;t really think of a good reason for this.

4) NRWT will sort the shards by the number of tests in the shard. ORWT, since it has no real concept of sharding, just runs them in sort order

5) NRWT doesn&apos;t support webarchives, and it also has some outdated logic for feature detection and skipping (e.g., for mathml, xhtmlmp).

6) NRWT can deal with MHT tests, ORWT can&apos;t

7) NRWT can run reftests, ORWT will just skip them

8) NRWT runs the http/ tests first, ORWT runs them last

Issues (1), (2), and (3) will be addressed by the latest patch I&apos;ll post to bug 58691.

Issue (5) will be addressed by the patch in bug 58293.

I can&apos;t decide if it&apos;s really worth &quot;fixing&quot; (or at least changing) (4) and (8), but perhaps it makes sense to fix them in the nonsharded code path (what you get when you run in a single thread or in experimental fully parallel).

Presumably we&apos;re not going to fix (6) and (7), but that seems wholly unrelated to this bug and I suggest we treat them separately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>424264</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-06-20 22:22:37 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; 8) NRWT runs the http/ tests first, ORWT runs them last

This seems like an extremely user-visible issue when you have a small number of shards. I&apos;d recommend fixing this one just to give people fewer things to complain about (especially the people who are mostly interested in seeing if &quot;early&quot; tests fail).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>424678</commentid>
    <comment_count>7</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-06-21 12:45:27 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; 8) NRWT runs the http/ tests first, ORWT runs them last
&gt; 
&gt; This seems like an extremely user-visible issue when you have a small number of shards. I&apos;d recommend fixing this one just to give people fewer things to complain about (especially the people who are mostly interested in seeing if &quot;early&quot; tests fail).

I think this is much less of an issue when you are running multiple shards in parallel, in which I think you will probably still want to run the http tests as soon as possible, since they take so long.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>424828</commentid>
    <comment_count>8</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-06-21 16:03:11 -0700</bug_when>
    <thetext>I think it makes sense to special-case the single-process case to run the http tests last. If you have &gt;2 shards, not doing them first causes the tests to take longer to run.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>424830</commentid>
    <comment_count>9</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-06-21 16:05:49 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; I think it makes sense to special-case the single-process case to run the http tests last. If you have &gt;2 shards, not doing them first causes the tests to take longer to run.

We could do that, but I don&apos;t expect people to run the single-process case very often, so I&apos;m not sure if it&apos;s worth it. That said, it&apos;s probably a one-line change ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>427159</commentid>
    <comment_count>10</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-06-24 14:47:25 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; I think it makes sense to special-case the single-process case to run the http tests last. If you have &gt;2 shards, not doing them first causes the tests to take longer to run.
&gt; 
&gt; We could do that, but I don&apos;t expect people to run the single-process case very often, so I&apos;m not sure if it&apos;s worth it. That said, it&apos;s probably a one-line change ...

Okay, given the changes I&apos;ve been making so that we can run more than one http test concurrently, this isn&apos;t really a one-line change any more, if you want to run the non-http tests without holding the http lock. See the comments I&apos;ve made in the patch on bug 63112, and I&apos;m unconvinced that it&apos;s worth it.

For now, I&apos;m closing this as WONTFIX (and clearing the ownership). If anyone really thinks this needs to be fixed, please feel free to reopen.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>89717</attachid>
            <date>2011-04-14 18:54:02 -0700</date>
            <delta_ts>2011-04-15 14:07:15 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-58625-20110414185401.patch</filename>
            <type>text/plain</type>
            <size>4578</size>
            <attacher name="Dirk Pranke">dpranke</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODM4OTUKZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBi
L1Rvb2xzL0NoYW5nZUxv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sICcxJywgMSkKKyAgICAgICAg
c2VsZi5hc3NlcnRfY21wKCcxJywgJzEwJywgLTEpCisgICAgICAgIHNlbGYuYXNzZXJ0X2NtcCgn
MicsICcxMCcsIC0xKQorICAgICAgICBzZWxmLmFzc2VydF9jbXAoJ2Zvb18xLmh0bWwnLCAnZm9v
XzIuaHRtbCcsIC0xKQorICAgICAgICBzZWxmLmFzc2VydF9jbXAoJ2Zvb18xLjEuaHRtbCcsICdm
b29fMi5odG1sJywgLTEpCisgICAgICAgIHNlbGYuYXNzZXJ0X2NtcCgnZm9vXzEuaHRtbCcsICdm
b29fMTAuaHRtbCcsIC0xKQorICAgICAgICBzZWxmLmFzc2VydF9jbXAoJ2Zvb18yLmh0bWwnLCAn
Zm9vXzEwLmh0bWwnLCAtMSkKKyAgICAgICAgc2VsZi5hc3NlcnRfY21wKCdmb29fMjMuaHRtbCcs
ICdmb29fMTAuaHRtbCcsIDEpCisgICAgICAgIHNlbGYuYXNzZXJ0X2NtcCgnZm9vXzIzLmh0bWwn
LCAnZm9vXzEwMC5odG1sJywgLTEpCisKKwogaWYgX19uYW1lX18gPT0gJ19fbWFpbl9fJzoKICAg
ICB1bml0dGVzdC5tYWluKCkK
</data>

          </attachment>
      

    </bug>

</bugzilla>