<?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>248745</bug_id>
          
          <creation_ts>2022-12-04 10:13:01 -0800</creation_ts>
          <short_desc>In results.html, links to diffs for tests with periods in the name fail</short_desc>
          <delta_ts>2022-12-07 17:28:00 -0800</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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=238832</see_also>
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>jbedard</cc>
    
    <cc>pascoe</cc>
    
    <cc>philn</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1916598</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-12-04 10:13:01 -0800</bug_when>
    <thetext>When a test like http/wpt/service-workers/fetch-service-worker-preload-download.https.html fails, the expected, actual, diff and pretty diff links in results. html are broken. For example, they link to:
file://null/Volumes/Data/Development/system/webkit/OpenSource/WebKitBuild/Debug/layout-test-results/http/wpt/service-workers/fetch-service-worker-preload-download.https.html-pretty-diff.html
instead of:
file://null/Volumes/Data/Development/system/webkit/OpenSource/WebKitBuild/Debug/layout-test-results/http/wpt/service-workers/fetch-service-worker-preload-download.https-pretty-diff.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916600</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-12-04 10:16:50 -0800</bug_when>
    <thetext>There was an attempt to fix in bug 238832. but that broke results for SVG which has periods in folder names.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916667</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2022-12-05 03:39:53 -0800</bug_when>
    <thetext>The issue is that for this testName we end up in the &quot;Temporary fix&quot; case for which I have no context. 

    static testPrefix(testName)
    {
        let parts = Utils.splitExtension(testName);
        let prefix = parts[0];
        let remains = parts[2];
        if (remains) {
            if (remains.includes(&apos;?&apos;))
                prefix += &apos;_&apos; + remains.split(&apos;?&apos;)[1]
            else if (remains.includes(&apos;#&apos;))
                prefix += &apos;_&apos; + remains.split(&apos;#&apos;)[1]
        } else if (Utils.splitExtension(parts[0])[1].length &gt; 5) {
            // Temporary fix, also in Tools/Scripts/webkitpy/layout_tests/constrollers/test_result_writer.py, line 115.
            // FIXME: Refactor to avoid confusing reference to both test and process names.
            return testName;
        }
        return prefix;
    }

Utils.splitExtension(parts[0])[1] == &apos;.https&apos; here, so we&apos;d need an additional check, but as I lack the historical meaning of this code, I&apos;m not sure how to fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916739</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-12-05 11:36:53 -0800</bug_when>
    <thetext>It should be easy to handle both a period in the test file name, and a period in a directory name, which I think is all that&apos;s required to handle this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1917018</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-12-06 14:03:13 -0800</bug_when>
    <thetext>Figured out the problem, results.html is using `Utils.splitExtension(parts[0])[1].length &gt; 5` instead of `Utils.splitExtension(parts[0])[1].length - 1 &gt; 5`, which is what the matching Python code does. I don&apos;t have a great answer for the &quot;why&quot;, though. Probably worth the naive fix for know and sorting out the existing FixMe in the near future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1917019</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-06 14:03:26 -0800</bug_when>
    <thetext>&lt;rdar://problem/103041235&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1917021</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-12-06 14:06:08 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/7222</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1917422</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-12-07 17:27:57 -0800</bug_when>
    <thetext>Committed 257527@main (fc8aae223895): &lt;https://commits.webkit.org/257527@main&gt;

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

    </bug>

</bugzilla>