<?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>176344</bug_id>
          
          <creation_ts>2017-09-04 18:16:58 -0700</creation_ts>
          <short_desc>Tools should use Bugzilla REST API</short_desc>
          <delta_ts>2025-01-16 15:38:16 -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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=283333</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=286101</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="Sam Weinig">sam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>bfan2</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>don.olmstead</cc>
    
    <cc>lforschler</cc>
    
    <cc>ross.kirsling</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1345297</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2017-09-04 18:16:58 -0700</bug_when>
    <thetext>It would be easier to work with (and probably more future proof) if we used Bugzilla&apos;s REST API for our tooling (webkit-patch / etc.) rather than Mechanize.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1345771</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-09-05 19:51:52 -0700</bug_when>
    <thetext>rdar://problem/31201903</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346162</commentid>
    <comment_count>2</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-09-06 17:02:46 -0700</bug_when>
    <thetext>Are you looking to piggy back onto a Python Bugzilla API implementation or roll your own?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346375</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2017-09-07 10:08:52 -0700</bug_when>
    <thetext>I have no real opinion on that. If we already auto install stuff for the he</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346382</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2017-09-07 10:22:02 -0700</bug_when>
    <thetext>(In reply to Sam Weinig from comment #3)
&gt; I have no real opinion on that. If we already auto install stuff for the he

I meant to say, I have no real opinion on that. If we already auto install stuff for the webkit tool, which I gather we do since we use Mechanize, we could use an existing library if it&apos;s good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346385</commentid>
    <comment_count>5</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-09-07 10:26:45 -0700</bug_when>
    <thetext>(In reply to Sam Weinig from comment #4)
&gt; (In reply to Sam Weinig from comment #3)
&gt; &gt; I have no real opinion on that. If we already auto install stuff for the he
&gt; 
&gt; I meant to say, I have no real opinion on that. If we already auto install
&gt; stuff for the webkit tool, which I gather we do since we use Mechanize, we
&gt; could use an existing library if it&apos;s good.

Ok cool. We were looking at using the Bugzilla API anyways for doing some internal tracking of our work so this bug is perfect timing.

Ross can take a look at some of the existing stuff and see how it works and we can go from there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346555</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2017-09-07 14:41:15 -0700</bug_when>
    <thetext>The main library I see for the purpose is GPL-licensed:
https://github.com/python-bugzilla/python-bugzilla

I could look into making Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py depend only on urllib2 and not Mechanize though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346643</commentid>
    <comment_count>7</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2017-09-07 16:47:57 -0700</bug_when>
    <thetext>(In reply to Ross Kirsling from comment #6)
&gt; The main library I see for the purpose is GPL-licensed:
&gt; https://github.com/python-bugzilla/python-bugzilla
&gt; 
&gt; I could look into making
&gt; Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py depend only on
&gt; urllib2 and not Mechanize though.

I believe python-bugzilla uses the old XMLRPC API (which I don&apos;t think the bugzilla folks want people using if possible).

There are other libraries, like https://github.com/AutomatedTester/Bugsy (on pypi at https://pypi.python.org/pypi/bugsy/0.10.1) that might work though. It&apos;s not too complex a surface area though, so, not sure it matters much.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>