<?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>276428</bug_id>
          
          <creation_ts>2024-07-10 08:12:35 -0700</creation_ts>
          <short_desc>Tools/Scripts/run-webkit-tests does not recognize WPT crash tests in a crashtest directory</short_desc>
          <delta_ts>2024-09-28 04:40:22 -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>WebKit 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>276414</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>gsnedders</cc>
    
    <cc>harpsichen</cc>
    
    <cc>ntim</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2045542</commentid>
    <comment_count>0</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2024-07-10 08:12:35 -0700</bug_when>
    <thetext>I understand we somehow support WPT crashtests now:

https://web-platform-tests.org/writing-tests/crashtest.html
https://searchfox.org/wubkat/search?q=crashtests&amp;path=Tools%2FScripts&amp;case=false&amp;regexp=false

However, when running

$ Tools/Scripts/run-webkit-tests imported/w3c/web-platform-tests/mathml/crashtests

I get &quot;All tests skipped.&quot;

If instead I do

$ Tools/Scripts/run-webkit-tests imported/w3c/web-platform-tests/css/css-tables/crashtests

I get &quot;All 7 tests ran as expected.&quot;

So only 7 of the 24 crash tests are considered, apparently only those with an explicit *-crash* suffix.

$ ls LayoutTests/imported/w3c/web-platform-tests/css/css-tables/crashtests/ | wc --lines
24
$ ls LayoutTests/imported/w3c/web-platform-tests/css/css-tables/crashtests/*-crash* | wc --lines
7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2046729</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-07-17 08:13:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/131926145&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2046733</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-07-17 08:20:28 -0700</bug_when>
    <thetext>Something related but might be different - it also case with SVG crash tests and editing related test case. It can import but it does not generate &apos;expected test files&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2046746</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-07-17 09:14:38 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/blob/6eef85d192a8f02fa74fc620854c83dd0fff6fed/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder.py#L612-L620 should be handling this, but clearly isn&apos;t, unless we&apos;re somehow also ignoring them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063769</commentid>
    <comment_count>4</comment_count>
    <who name="Harry Chen">harpsichen</who>
    <bug_when>2024-09-27 08:53:18 -0700</bug_when>
    <thetext>It seems that the tests aren&apos;t running since they&apos;re listed in `resource-files.json` wrongfully -- this commit [1] was the one that added them. I believe that the importer script used was on this revision [2], since the time lines up and it would also explain why `-crash.` tests aren&apos;t in `resource-files.json` but `crashtests` tests are (since the commit only checks for `-crash.` tests).

Since it looks like the logic was fixed as part of the commit in [3], I think just removing the tests from `resource-files.json` should be good enough.

[1]: https://github.com/WebKit/WebKit/commit/a31f8e4d6253f04c8d955e42985e6e018d3a1a86
[2]: https://github.com/WebKit/WebKit/commit/d8b1589e4915042608bb1a1a55bd291bcec76d51#diff-955991178e0e7971ad17ceface65532b503e98975aec31d0fc7093e0d80c3dc5R167-R169
[3]: https://github.com/WebKit/WebKit/commit/b70287103be9d7a826cb2697e7a951536dc2a04b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063843</commentid>
    <comment_count>5</comment_count>
    <who name="Harry Chen">harpsichen</who>
    <bug_when>2024-09-27 11:59:19 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/34374</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063980</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-28 04:40:20 -0700</bug_when>
    <thetext>Committed 284409@main (5a279668079a): &lt;https://commits.webkit.org/284409@main&gt;

Reviewed commits have been landed. Closing PR #34374 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>