<?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>238735</bug_id>
          
          <creation_ts>2022-04-04 07:17:59 -0700</creation_ts>
          <short_desc>WPT export broken under Python 3</short_desc>
          <delta_ts>2022-04-04 08:42:16 -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>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=238737</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 Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Sam Sneddon [:gsnedders]">gsnedders</assigned_to>
          <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>jbedard</cc>
    
    <cc>koivisto</cc>
    
    <cc>ntim</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1857840</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-04-04 07:17:59 -0700</bug_when>
    <thetext>Via Antti:

&gt; I’m getting:

Fetching: https://bugs.webkit.org/show_bug.cgi?id=238542&amp;ctype=xml&amp;excludefield=attachmentdata
Removing local branch wpt-export-for-webkit-238542
Finished
Cleaning web-platform-tests master branch
Traceback (most recent call last):
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/w3c/test_exporter.py&quot;, line 350, in create_wpt_pull_request
    pr_number = self._github.create_pr(remote_branch_name, title, body)
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/w3c/wpt_github.py&quot;, line 152, in create_pr
    response = self.request(path, method=&apos;POST&apos;, body=body)
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/w3c/wpt_github.py&quot;, line 95, in request
    response = self.host.web.request(
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/common/net/web.py&quot;, line 51, in request
    return opener.open(request)
  File &quot;.../Python.framework/Versions/3.8/lib/python3.8/urllib/request.py&quot;, line 522, in open
    req = meth(req)
  File &quot;.../Python.framework/Versions/3.8/lib/python3.8/urllib/request.py&quot;, line 1285, in do_request_
    raise TypeError(msg)
TypeError: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts//webkit-patch&quot;, line 80, in &lt;module&gt;
    main()
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts//webkit-patch&quot;, line 75, in main
    WebKitPatch(os.path.abspath(__file__)).main()
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 305, in main
    result = command.check_arguments_and_execute(options, args, self)
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 123, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/tool/commands/abstractsequencedcommand.py&quot;, line 55, in execute
    self._sequence.run_and_handle_errors(tool, options, state)
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 73, in run_and_handle_errors
    self._run(tool, options, state)
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 67, in _run
    step(tool, options).run(state)
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/tool/steps/wptchangeexport.py&quot;, line 53, in run
    test_exporter.do_export()
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/w3c/test_exporter.py&quot;, line 397, in do_export
    self.make_pull_request()
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/w3c/test_exporter.py&quot;, line 336, in make_pull_request
    pr_number = self.create_wpt_pull_request(self._wpt_fork_remote + &apos;:&apos; + self._public_branch_name, self._commit_message, description)
  File &quot;/Users/antti/webkit/OpenSource/Tools/Scripts/webkitpy/w3c/test_exporter.py&quot;, line 352, in create_wpt_pull_request
    if e.code == 422:
AttributeError: &apos;TypeError&apos; object has no attribute &apos;code&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1857843</commentid>
    <comment_count>1</comment_count>
      <attachid>456567</attachid>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-04-04 07:22:03 -0700</bug_when>
    <thetext>Created attachment 456567
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1857862</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-04-04 08:41:33 -0700</bug_when>
    <thetext>Committed r292288 (249186@main): &lt;https://commits.webkit.org/249186@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 456567.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1857863</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-04-04 08:42:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/91241469&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>456567</attachid>
            <date>2022-04-04 07:22:03 -0700</date>
            <delta_ts>2022-04-04 08:41:34 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-238735-20220404152202.patch</filename>
            <type>text/plain</type>
            <size>1205</size>
            <attacher name="Sam Sneddon [:gsnedders]">gsnedders</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjkyMjg3CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggODFiYzMzYmE3YzM1NTE5OTY2NGQ1MGJhMDUyOWNmNDY4
YTM4ZGY0YS4uYWMyNjc1Yzc0YmM0NjQxMjc3NDdlOGJlZmM5MjY5ODJmYTY2NWQzNCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEz
IEBACisyMDIyLTA0LTA0ICBTYW0gU25lZGRvbiAgPGdzbmVkZGVyc0BhcHBsZS5jb20+CisKKyAg
ICAgICAgV1BUIGV4cG9ydCBicm9rZW4gdW5kZXIgUHl0aG9uIDMKKyAgICAgICAgaHR0cHM6Ly9i
dWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTIzODczNQorCisgICAgICAgIFJldmlld2Vk
IGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogU2NyaXB0cy93ZWJraXRweS93M2Mvd3B0
X2dpdGh1Yi5weToKKyAgICAgICAgKFdQVEdpdEh1Yi5yZXF1ZXN0KTogRW5zdXJlIHdlIGhhdmUg
Ynl0ZXMsIG5vdCBzdHIuCisKIDIwMjItMDQtMDQgIEFkcmlhbiBQZXJleiBkZSBDYXN0cm8gIDxh
cGVyZXpAaWdhbGlhLmNvbT4KIAogICAgICAgICBbV1BFXVtHVEtdIFJFR1JFU1NJT04ocjI5MjI2
Myk6IENhbm5vdCBtYWtlIHJlbGVhc2UgdGFyYmFsbHMKZGlmZiAtL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