[Webkit-unassigned] [Bug 226904] New: check-webkit-style failing with TypeError: cannot use a string pattern on a bytes-like object

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 10 16:23:41 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=226904

            Bug ID: 226904
           Summary: check-webkit-style failing with TypeError: cannot use
                    a string pattern on a bytes-like object
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ryanhaddad at apple.com

python3 Tools/Scripts/check-webkit-style
 in dir /Volumes/Data/worker/Style-EWS/build (timeout 1200 secs)
 watching logfiles {}
 argv: [b'python3', b'Tools/Scripts/check-webkit-style']
 using PTY: False
Traceback (most recent call last):
  File "Tools/Scripts/check-webkit-style", line 46, in <module>
    sys.exit(CheckWebKitStyle().main())
  File "/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/main.py", line 159, in main
    patch_checker.check(patch)
  File "/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/patchreader.py", line 86, in check
    self._text_file_reader.process_file(file_path=path, line_numbers=line_numbers)
  File "/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/filereader.py", line 137, in process_file
    self._processor.process(lines, file_path, **kwargs)
  File "/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/checker.py", line 1038, in process
    checker.check(lines)
  File "/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/checkers/jstest.py", line 104, in check
    self.check_js_test_functions()
  File "/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/checkers/jstest.py", line 125, in check_js_test_functions
    baseline_function_map = map_functions_to_dict(baseline_content)
  File "/Volumes/Data/worker/Style-EWS/build/Tools/Scripts/webkitpy/style/checkers/jstest.py", line 63, in map_functions_to_dict
    functions = re.split(r'^function\s+', content, flags=re.MULTILINE)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/re.py", 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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210610/5efad862/attachment-0001.htm>


More information about the webkit-unassigned mailing list