[Webkit-unassigned] [Bug 221266] New: [webkitcorepy] Autoinstaller can fail on packages containing write protected files

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 2 09:24:05 PST 2021


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

            Bug ID: 221266
           Summary: [webkitcorepy] Autoinstaller can fail on packages
                    containing write protected files
           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: don.olmstead at sony.com

This is kind of a fringe issue that I've had happen to me a few times. One of the packages, logilab.common, contains a write-protected file. Looks like if an autoinstall of a package fails the temp directory the tar is extracted to is still present. When the install is run again the tar can't be extracted because the write protected file is present and its being written to.

Traceback (most recent call last):
  File "C:\webkit\Tools\Scripts\webkitpy\test\main.py", line 321, in <module>
    sys.exit(main())
  File "C:\webkit\Tools\Scripts\webkitpy\test\main.py", line 76, in main
    return not tester.run()
  File "C:\webkit\Tools\Scripts\webkitpy\test\main.py", line 149, in run
    return self._run_tests(names)
  File "C:\webkit\Tools\Scripts\webkitpy\test\main.py", line 156, in _run_tests
    AutoInstall.install_everything()
  File "C:\webkit\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\autoinstall.py", line 512, in install_everything
    package.install()
  File "C:\webkit\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\autoinstall.py", line 241, in install
    archive.unpack(temp_location)
  File "C:\webkit\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\autoinstall.py", line 90, in unpack
    file.extractall(target)
  File "C:\Users\eolmstead\Documents\webkit-trunk\tools\python3\lib\tarfile.py", line 2034, in extractall
    self.extract(tarinfo, path, set_attrs=not tarinfo.isdir(),
  File "C:\Users\eolmstead\Documents\webkit-trunk\tools\python3\lib\tarfile.py", line 2075, in extract
    self._extract_member(tarinfo, os.path.join(path, tarinfo.name),
  File "C:\Users\eolmstead\Documents\webkit-trunk\tools\python3\lib\tarfile.py", line 2147, in _extract_member
    self.makefile(tarinfo, targetpath)
  File "C:\Users\eolmstead\Documents\webkit-trunk\tools\python3\lib\tarfile.py", line 2188, in makefile
    with bltn_open(targetpath, "wb") as target:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\EOLMST~1\\AppData\\Local\\Temp\\2\\logilab.common\\logilab-common-1.8.1\\test\\data\\write_protected_file.txt'

-- 
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/20210202/4c2a4751/attachment-0001.htm>


More information about the webkit-unassigned mailing list