<?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>183463</bug_id>
          
          <creation_ts>2018-03-08 11:11:36 -0800</creation_ts>
          <short_desc>[webkitpy] Bugzilla class should use NetworkTransaction for network POST requests</short_desc>
          <delta_ts>2022-02-10 09:31: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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=182420</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=183222</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></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>kokkiknamtan42</cc>
    
    <cc>lforschler</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1404813</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-03-08 11:11:36 -0800</bug_when>
    <thetext>https://bugs.webkit.org/show_bug.cgi?id=182420 added retry for network GET requests (by using NetworkTransaction). We should try to add retry to POST requests as well. Note that this might require additional testing as retrying on POST has a possibility of messing up things. 

However, it&apos;s possible that Bugzilla handle the duplicate POST requests properly. Also, the network issues we are noticing might be at the client side, and in these cases, the request might not even be reaching the server (bugzilla), so retrying might be safe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1404817</commentid>
    <comment_count>1</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-03-08 11:15:46 -0800</bug_when>
    <thetext>Typo: https://bugs.webkit.org/show_bug.cgi?id=183222 added retry on network GET requests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1404821</commentid>
    <comment_count>2</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-03-08 11:18:06 -0800</bug_when>
    <thetext>Happened in https://bugs.webkit.org/show_bug.cgi?id=183455 (https://webkit-queues.webkit.org/results/6858890)

Failed in:
File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py&quot;, line 778, in clear_attachment_flags
    self.browser.submit()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1404942</commentid>
    <comment_count>3</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-03-08 15:06:46 -0800</bug_when>
    <thetext>Another error:
  File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py&quot;, line 826, in add_cc_to_bug
    self.browser.submit()

Complete exception:
2018-03-08 13:45:36,000 - Fetching: https://bugs.webkit.org/attachment.cgi?id=335323&amp;action=edit
2018-03-08 13:45:36,271 - Fetching: https://bugs.webkit.org/show_bug.cgi?id=183467&amp;ctype=xml&amp;excludefield=attachmentdata
2018-03-08 13:45:36,509 - Adding [] to the CC list for bug 183467
Traceback (most recent call last):
  File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/tool/commands/queues.py&quot;, line 81, in _cc_watchers
    self._tool.bugs.add_cc_to_bug(bug_id, self.watchers)
  File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py&quot;, line 826, in add_cc_to_bug
    self.browser.submit()
  File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_mechanize.py&quot;, line 541, in submit
    return self.open(self.click(*args, **kwds))
  File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_mechanize.py&quot;, line 203, in open
    return self._mech_open(url, data, timeout=timeout)
  File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_mechanize.py&quot;, line 230, in _mech_open
    response = UserAgentBase.open(self, request, data)
  File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_opener.py&quot;, line 193, in open
    response = urlopen(self, req, data)
  File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_urllib2_fork.py&quot;, line 344, in _open
    &apos;_open&apos;, req)
  File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_urllib2_fork.py&quot;, line 332, in _call_chain
    result = func(*args)
  File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_urllib2_fork.py&quot;, line 1170, in https_open
    return self.do_open(conn_factory, req)
  File &quot;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_urllib2_fork.py&quot;, line 1118, in do_open
    raise URLError(err)
URLError: &lt;urlopen error [Errno 60] Operation timed out&gt;
2018-03-08 13:46:51,928 - Failed to CC watchers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1839724</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2022-02-10 09:31:00 -0800</bug_when>
    <thetext>EWS stopped using this webkitpy code (and use Bugzilla REST API directly). So, this isn&apos;t a problem/priority anymore.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>