Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1937

Fix tests not starting on Windows due to the Linux subsytem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Not A Bug
    • Affects Version/s: 4.3.0
    • Fix Version/s: NoFixVersionApplicable
    • Component/s: Tests
    • Environment:
      Windows (CI)

      Description

       [INFO]      [exec] ============================= test session starts =============================
       [INFO]      [exec] platform win32 -- Python 3.7.4, pytest-5.2.1, py-1.8.0, pluggy-0.13.0
       [INFO]      [exec] rootdir: C:\Jenkins\workspace\Drive\Drive-OS-test-jobs\Drive-tests-windows-master\sources, inifile: setup.cfg
       [INFO]      [exec] plugins: cov-2.8.1, forked-1.1.3, timeout-1.3.3, xdist-1.30.0
       [INFO]      [exec] gw0 I / gw1 I / gw2 I / gw3 I
       [INFO]      [exec] gw0 [0] / gw1 [0] / gw2 [0] / gw3 [0]
       [INFO]      [exec] =================================== ERRORS ====================================
       [INFO]      [exec] ________________________ ERROR collecting test session ________________________
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\_pytest\config\__init__.py:456: in _importconftest
       [INFO]      [exec]     return self._conftestpath2mod[key]
       [INFO]      [exec] E   KeyError: WindowsPath('C:/Jenkins/workspace/Drive/Drive-OS-test-jobs/Drive-tests-windows-master/sources/tests/functional/conftest.py')
       [INFO]      [exec] During handling of the above exception, another exception occurred:
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\_pytest\config\__init__.py:462: in _importconftest
       [INFO]      [exec]     mod = conftestpath.pyimport()
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\py\_path\local.py:701: in pyimport
       [INFO]      [exec]     __import__(modname)
       [INFO]      [exec] <frozen importlib._bootstrap>:983: in _find_and_load
       [INFO]      [exec]     ???
       [INFO]      [exec] <frozen importlib._bootstrap>:967: in _find_and_load_unlocked
       [INFO]      [exec]     ???
       [INFO]      [exec] <frozen importlib._bootstrap>:677: in _load_unlocked
       [INFO]      [exec]     ???
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\_pytest\assertion\rewrite.py:142: in exec_module
       [INFO]      [exec]     exec(co, module.__dict__)
       [INFO]      [exec] tests\functional\conftest.py:11: in <module>
       [INFO]      [exec]     from nxdrive.manager import Manager
       [INFO]      [exec] nxdrive\manager.py:17: in <module>
       [INFO]      [exec]     from .autolocker import ProcessAutoLockerWorker
       [INFO]      [exec] nxdrive\autolocker.py:26: in <module>
       [INFO]      [exec]     from .osi.windows.files import get_other_opened_files
       [INFO]      [exec] nxdrive\osi\windows\files.py:6: in <module>
       [INFO]      [exec]     from win32com.client import GetActiveObject
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\win32com\client\__init__.py:11: in <module>
       [INFO]      [exec]     from . import gencache
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\win32com\client\gencache.py:660: in <module>
       [INFO]      [exec]     __init__()
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\win32com\client\gencache.py:60: in __init__
       [INFO]      [exec]     _LoadDicts()
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\win32com\client\gencache.py:113: in _LoadDicts
       [INFO]      [exec]     version = p.load()
       [INFO]      [exec] E   EOFError: Ran out of input
       [INFO]      [exec] During handling of the above exception, another exception occurred:
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\py\_path\common.py:377: in visit
       [INFO]      [exec]     for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\py\_path\common.py:429: in gen
       [INFO]      [exec]     for p in self.gen(subdir):
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\py\_path\common.py:418: in gen
       [INFO]      [exec]     dirs = self.optsort([p for p in entries
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\py\_path\common.py:419: in <listcomp>
       [INFO]      [exec]     if p.check(dir=1) and (rec is None or rec(p))])
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\_pytest\main.py:606: in _recurse
       [INFO]      [exec]     ihook = self.gethookproxy(dirpath)
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\_pytest\main.py:424: in gethookproxy
       [INFO]      [exec]     my_conftestmodules = pm._getconftestmodules(fspath)
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\_pytest\config\__init__.py:434: in _getconftestmodules
       [INFO]      [exec]     mod = self._importconftest(conftestpath)
       [INFO]      [exec] ..\deploy-dir\3.7.4\lib\site-packages\_pytest\config\__init__.py:470: in _importconftest
       [INFO]      [exec]     raise ConftestImportFailure(conftestpath, sys.exc_info())
       [INFO]      [exec] E   _pytest.config.ConftestImportFailure: (local('C:\\Jenkins\\workspace\\Drive\\Drive-OS-test-jobs\\Drive-tests-windows-master\\sources\\tests\\functional\\conftest.py'), (<class 'EOFError'>, EOFError('Ran out of input'), <traceback object at 0x03181CB0>))
      

        Attachments

          Activity

            People

            • Assignee:
              mschoentgen Mickaël Schoentgen
              Reporter:
              mschoentgen Mickaël Schoentgen
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 minute
                1m