<?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>216100</bug_id>
          
          <creation_ts>2020-09-02 14:52:04 -0700</creation_ts>
          <short_desc>run-webkit-tests spends 20-30 seconds &quot;building&quot; ImageDiff</short_desc>
          <delta_ts>2020-09-02 21:20:44 -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>DUPLICATE</resolution>
          <dup_id>204420</dup_id>
          
          <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="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1685009</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-09-02 14:52:04 -0700</bug_when>
    <thetext>Tools/Scripts/build-imagediff --release

takes an inordinate amount of time for a null build (20-30 seconds), and run-webkit-tests calls it on every invocation, even if you pass --no-build.

This is 40-50% of the time it takes to run-webkit-tests a single test in the iOS simulator, and thus would wildly increase the turnaround rate when developing a test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685010</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-09-02 14:52:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/68232690&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685012</commentid>
    <comment_count>2</comment_count>
      <attachid>407819</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-09-02 14:57:33 -0700</bug_when>
    <thetext>Created attachment 407819
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685018</commentid>
    <comment_count>3</comment_count>
      <attachid>407819</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2020-09-02 15:11:32 -0700</bug_when>
    <thetext>Comment on attachment 407819
Patch

Won&apos;t _path_to_image_diff (which is @memoize&apos;d) store the failure to find it in check_image_diff, and return that after we build it (thus making ImageDiff not found if it got built)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685030</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-09-02 15:38:36 -0700</bug_when>
    <thetext>(In reply to Tim Horton from comment #3)
&gt; Comment on attachment 407819 [details]
&gt; Patch
&gt; 
&gt; Won&apos;t _path_to_image_diff (which is @memoize&apos;d) store the failure to find it
&gt; in check_image_diff, and return that after we build it (thus making
&gt; ImageDiff not found if it got built)?

Likely yes, the right solution is probably to clear out the memoization, but our current @memoize doesn&apos;t support that</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685093</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-09-02 18:18:15 -0700</bug_when>
    <thetext>Isn&apos;t bug 204420 the root cause here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685094</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2020-09-02 18:22:12 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #5)
&gt; Isn&apos;t bug 204420 the root cause here?

Do you mean &quot;isn&apos;t this a dupe of that&quot;? I think the answer is &quot;yes&quot;!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685152</commentid>
    <comment_count>7</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-09-02 21:20:44 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 204420 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>407819</attachid>
            <date>2020-09-02 14:57:33 -0700</date>
            <delta_ts>2020-09-02 15:29:31 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-216100-20200902145732.patch</filename>
            <type>text/plain</type>
            <size>1369</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI2NjQ5MCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDIwLTA5LTAyICBKb25hdGhhbiBCZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNv
bT4KKworICAgICAgICBydW4td2Via2l0LXRlc3RzIHNwZW5kcyAyMC0zMCBzZWNvbmRzICJidWls
ZGluZyIgSW1hZ2VEaWZmCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVn
LmNnaT9pZD0yMTYxMDAKKyAgICAgICAgPHJkYXI6Ly9wcm9ibGVtLzY4MjMyNjkwPgorCisgICAg
ICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogU2NyaXB0cy93ZWJr
aXRweS9wb3J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AgICAgICAgaWYgbG9nZ2luZzoKICAgICAgICAgICAgICAgICBfbG9n
LmVycm9yKCJJbWFnZURpZmYgd2FzIG5vdCBmb3VuZCBhdCAlcyIgJSBpbWFnZV9kaWZmX3BhdGgp
Cg==
</data>
<flag name="review"
          id="423187"
          type_id="1"
          status="-"
          setter="thorton"
    />
          </attachment>
      

    </bug>

</bugzilla>