<?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>249444</bug_id>
          
          <creation_ts>2022-12-15 18:29:54 -0800</creation_ts>
          <short_desc>WK1 tests are taking a long time to run &apos;extract-test-results&apos;</short_desc>
          <delta_ts>2022-12-22 18:30:17 -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>NEW</bug_status>
          <resolution></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>
          <dependson>249614</dependson>
    
    <dependson>249658</dependson>
    
    <dependson>249724</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Woodrow">mattwoodrow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>jbedard</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1919789</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Woodrow">mattwoodrow</who>
    <bug_when>2022-12-15 18:29:54 -0800</bug_when>
    <thetext>It looks like extracting test results is frequently taking 10+ minutes, adding up to a lot when we often run tests twice.

My build: https://ews-build.webkit.org/#/builders/73/builds/22639

Others picked at random:

https://ews-build.webkit.org/#/builders/73/builds/22631 (17 minutes!)
https://ews-build.webkit.org/#/builders/73/builds/22619</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920048</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-12-16 13:20:47 -0800</bug_when>
    <thetext>Looks like we have 35K files in the archive, most of them stderr output of this kind:

2022-12-15 18:20:33.500 DumpRenderTree[27762:191348898] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-12-15 18:20:33.500 DumpRenderTree[27762:191348898] nil host used in call to allowsAnyHTTPSCertificateForHost:

Not sure if something changed recently, but we should definitely fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920054</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-12-16 13:46:23 -0800</bug_when>
    <thetext>What&apos;s also weird is that these are not in results.html.

Are we just failing to clean the results directory between runs?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920375</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-12-18 14:25:36 -0800</bug_when>
    <thetext>No - checking the dates of -stderr.txt files on a bot, that&apos;s not what is happening, they are all recent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920476</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-12-19 08:11:47 -0800</bug_when>
    <thetext>I also was able to reproduce this problem very easily on a local build. I&apos;m going to see if I can figure out the cause of the problem with code inspection, but we might consider attempting to bisect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920547</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-12-19 12:29:56 -0800</bug_when>
    <thetext>From testing locally, looks like there are 2 problems:
1) It&apos;s somehow possible for us to get empty allowed hosts or local host aliases. I still haven&apos;t figured out _how_ that&apos;s possible, though, because according to the code, it shouldn&apos;t be possible.
2) Clearly out our database caches is racy because these caches are shared between all workers. This race seems so obvious, though, that I&apos;m unclear what I&apos;m missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920614</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-12-19 15:57:56 -0800</bug_when>
    <thetext>Not convinced https://bugs.webkit.org/show_bug.cgi?id=249614 is problem, but it does seem to be a problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920811</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-12-20 09:33:12 -0800</bug_when>
    <thetext>Turns out that these were a known bug fixed in macOS Ventura, so we should just filter out output on older OSes:

&gt; 2022-12-15 18:20:33.500 DumpRenderTree[27762:191348898] nil host used in call to allowsSpecificHTTPSCertificateForHost
&gt; 2022-12-15 18:20:33.500 DumpRenderTree[27762:191348898] nil host used in call to allowsAnyHTTPSCertificateForHost:

I didn&apos;t check if this resolves enough of the spurious logs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921580</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-22 18:30:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/103657108&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>