<?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>190959</bug_id>
          
          <creation_ts>2018-10-26 06:37:54 -0700</creation_ts>
          <short_desc>old EWS incorrectly parse bug id for bugs which reference another bug id in title</short_desc>
          <delta_ts>2020-03-21 06:42:45 -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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=190919</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="Aakash Jain">aakash_jain</reporter>
          <assigned_to name="Aakash Jain">aakash_jain</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>dean_johnson</cc>
    
    <cc>lforschler</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1472410</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-10-26 06:37:54 -0700</bug_when>
    <thetext>EWS incorrectly parse bug id for bugs which reference another bug id in title. This cause EWS to skip such patches.

e.g.: https://bugs.webkit.org/show_bug.cgi?id=190919  has title: &quot;Revert r237347 registered custom properties... https://bugs.webkit.org/show_bug.cgi?id=190039&quot;

This bug wasn&apos;t processed by EWS. Corresponding logs on one of the bot (bindings-ews) are:

2018-10-25 16:16:09,302 - Fetching: https://bugs.webkit.org/attachment.cgi?id=353122&amp;action=edit
2018-10-25 16:16:10,218 - Fetching: https://bugs.webkit.org/show_bug.cgi?id=190039&amp;ctype=xml&amp;excludefield=attachmentdata
2018-10-25 16:16:11,139 - Error in fetching attachment 353122, bug_id: 190039
2018-10-25 16:16:11,139 - Skip 
2018-10-25 16:16:12,216 - Releasing work item 353122 from bindings-ews


Logs indicate that after fetching patch 353122, EWS tried to fetch incorrect bug 190039 (instead of 190919).

Another old example: https://bugs.webkit.org/show_bug.cgi?id=170094 with title: &quot;Revert instrumentation from https://bugs.webkit.org/show_bug.cgi?id=170086 when no longer needed.&quot;

&lt;rdar://problem/31894087&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472411</commentid>
    <comment_count>1</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-10-26 06:40:12 -0700</bug_when>
    <thetext>The issue is in _parse_bug_id_from_attachment_page() method in:
https://trac.webkit.org/browser/webkit/trunk/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py#L514</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472412</commentid>
    <comment_count>2</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-10-26 06:48:28 -0700</bug_when>
    <thetext>Also, once EWS has incorrectly processed the patch, changing the bug title (to remove bug id), and re-clicking on &quot;Submit for EWS analysis&quot; doesn&apos;t seems to help. It&apos;s probably because EWS doesn&apos;t have the feature to re-try a patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472414</commentid>
    <comment_count>3</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-10-26 06:50:59 -0700</bug_when>
    <thetext>Workaround: change the bug title (to remove reference of other bug) and re-upload the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1632456</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-03-21 04:09:01 -0700</bug_when>
    <thetext>EWS has been re-implemented from scratch. It uses REST API instead of parsing the webpage through BeautifulSoup. REST API is much more reliable and this issue shouldn&apos;t happen in new EWS.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>