Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-13970 RunInference V1
  3. BEAM-14359

Investigate windows Permissions Error on Jenkins Windows Unit tests

Details

    • Sub-task
    • Status: Open
    • P2
    • Resolution: Unresolved
    • None
    • None
    • sdk-py-core
    • None

    Description

      Skip tests that require temporary file open on windows. For some reason Jenkins on windows gives a permission error with tmp files.
       
      apache_beam\ml\inference\sklearn_loader.py:68: in load_model
      150 file = FileSystems.open(self._model_uri, 'rb')
      151apache_beam\io\filesystems.py:244: in open
      152 return filesystem.open(path, mime_type, compression_type)
      153apache_beam\io\localfilesystem.py:181: in open
      154 return self._path_open(path, 'rb', mime_type, compression_type)
      155_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      156
      157 def _path_open(
      158 self,
      159 path,
      160 mode,
      161 mime_type='application/octet-stream',
      162 compression_type=CompressionTypes.AUTO):
      163 """Helper functions to open a file in the provided mode.
      164 """
      165 compression_type = FileSystem._get_compression_type(path, compression_type)
      166> raw_file = io.open(path, mode)
      167E PermissionError: [Errno 13] Permission denied: 'D:\\a\\beam\\beam\\sdks\\python\\target\\.tox\\py38-win\\tmp
      tmp6zl6x438'
      168

      Attachments

        Activity

          People

            Unassigned Unassigned
            Ryan.Thompson Ryan Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: