<?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>226904</bug_id>
          
          <creation_ts>2021-06-10 16:23:41 -0700</creation_ts>
          <short_desc>check-webkit-style failing with TypeError: cannot use a string pattern on a bytes-like object</short_desc>
          <delta_ts>2021-06-11 20:08:34 -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>DUPLICATE</resolution>
          <dup_id>226925</dup_id>
          
          <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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>jbedard</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1768800</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2021-06-10 16:23:41 -0700</bug_when>
    <thetext>python3 Tools/Scripts/check-webkit-style
 in dir /Volumes/Data/worker/Style-EWS/build (timeout 1200 secs)
 watching logfiles {}
 argv: [b&apos;python3&apos;, b&apos;Tools/Scripts/check-webkit-style&apos;]
 using PTY: False
Traceback (most recent call last):
  File &quot;Tools/Scripts/check-webkit-style&quot;, line 46, in &lt;module&gt;
    sys.exit(CheckWebKitStyle().main())
  File &quot;/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/main.py&quot;, line 159, in main
    patch_checker.check(patch)
  File &quot;/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/patchreader.py&quot;, line 86, in check
    self._text_file_reader.process_file(file_path=path, line_numbers=line_numbers)
  File &quot;/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/filereader.py&quot;, line 137, in process_file
    self._processor.process(lines, file_path, **kwargs)
  File &quot;/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/checker.py&quot;, line 1038, in process
    checker.check(lines)
  File &quot;/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/checkers/jstest.py&quot;, line 104, in check
    self.check_js_test_functions()
  File &quot;/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/checkers/jstest.py&quot;, line 125, in check_js_test_functions
    baseline_function_map = map_functions_to_dict(baseline_content)
  File &quot;/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/checkers/jstest.py&quot;, line 63, in map_functions_to_dict
    functions = re.split(r&apos;^function\s+&apos;, content, flags=re.MULTILINE)
  File &quot;/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/re.py&quot;, line 213, in split
    return _compile(pattern, flags).split(string, maxsplit)
TypeError: cannot use a string pattern on a bytes-like object


Seen on https://ews-build.webkit.org/#/builders/6/builds/49707, which was testing the patch for https://bugs.webkit.org/show_bug.cgi?id=226902</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1768801</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2021-06-10 16:24:00 -0700</bug_when>
    <thetext>rdar://79166108</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1768822</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-06-10 17:03:20 -0700</bug_when>
    <thetext>Probably need to change some of these regexes to byte regex</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1769170</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-06-11 19:50:06 -0700</bug_when>
    <thetext>Did this get fixed via bug 226925?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1769173</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2021-06-11 20:08:34 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #3)
&gt; Did this get fixed via bug 226925?
Yep, I guess Jonathan used that bug instead.

*** This bug has been marked as a duplicate of bug 226925 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>