<?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>181786</bug_id>
          
          <creation_ts>2018-01-17 22:57:10 -0800</creation_ts>
          <short_desc>Don&apos;t fetch more than two builds to check duplicity of builds in ReportProcessor</short_desc>
          <delta_ts>2018-01-18 15:02:50 -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>Perf Dashboard</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>cdumez</cc>
    
    <cc>dewei_zhu</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1390425</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-01-17 22:57:10 -0800</bug_when>
    <thetext>Right now, ReportProcessor::resolve_build_id fetches all builds that match the builder number and time.
This can result in a long delay &amp; a high memory usage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390427</commentid>
    <comment_count>1</comment_count>
      <attachid>331600</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-01-17 23:00:26 -0800</bug_when>
    <thetext>Created attachment 331600
Fixes the bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390667</commentid>
    <comment_count>2</comment_count>
      <attachid>331600</attachid>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2018-01-18 14:55:29 -0800</bug_when>
    <thetext>Comment on attachment 331600
Fixes the bug

rs=me.

I&apos;m a bit curious why the maximum limit of 2 builds is hard-coded. Is this hardware-dependent, and &quot;2&quot; is the most reasonable cap for our machines we&apos;re using to run the perf dashboard? It seems like maybe it should be configurable, but I&apos;m not familiar with this code at all :P</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390670</commentid>
    <comment_count>3</comment_count>
      <attachid>331600</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-01-18 15:01:47 -0800</bug_when>
    <thetext>Comment on attachment 331600
Fixes the bug

Clearing flags on attachment: 331600

Committed r227166: &lt;https://trac.webkit.org/changeset/227166&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390671</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-01-18 15:01:49 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390672</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-01-18 15:01:54 -0800</bug_when>
    <thetext>(In reply to Wenson Hsieh from comment #2)
&gt; Comment on attachment 331600 [details]
&gt; Fixes the bug
&gt; 
&gt; rs=me.
&gt; 
&gt; I&apos;m a bit curious why the maximum limit of 2 builds is hard-coded. Is this
&gt; hardware-dependent, and &quot;2&quot; is the most reasonable cap for our machines
&gt; we&apos;re using to run the perf dashboard? It seems like maybe it should be
&gt; configurable, but I&apos;m not familiar with this code at all :P

It&apos;s two because we&apos;re trying to check that it&apos;s unique. When there are more than two entries, we know there is at least one duplicate. We don&apos;t need to fetch all the duplicates to know that there are some duplicate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390673</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-01-18 15:02:50 -0800</bug_when>
    <thetext>&lt;rdar://problem/36635350&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>331600</attachid>
            <date>2018-01-17 23:00:26 -0800</date>
            <delta_ts>2018-01-18 15:01:47 -0800</delta_ts>
            <desc>Fixes the bug</desc>
            <filename>bug-181786-20180117230025.patch</filename>
            <type>text/plain</type>
            <size>1786</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYnNpdGVzL3BlcmYud2Via2l0Lm9yZy9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0g
V2Vic2l0ZXMvcGVyZi53ZWJraXQub3JnL0NoYW5nZUxvZwkocmV2aXNpb24gMjI3MTI3KQorKysg
V2Vic2l0ZXMvcGVyZi53ZWJraXQub3JnL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE1IEBACisyMDE4LTAxLTE3ICBSeW9zdWtlIE5pd2EgIDxybml3YUB3ZWJraXQub3JnPgor
CisgICAgICAgIERvbid0IGZldGNoIG1vcmUgdGhhbiB0d28gYnVpbGRzIHRvIGNoZWNrIGR1cGxp
Y2l0eSBvZiBidWlsZHMgaW4gUmVwb3J0UHJvY2Vzc29yCisgICAgICAgIGh0dHBzOi8vYnVncy53
ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xODE3ODYKKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICBMaW1pdCB0aGUgbnVtYmVyI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