Skip to content

Currently-unknown factors can cause pytest/importlib._bootstrap to throw an "INTERNALERROR" #479

@crwood

Description

@crwood

After updating autobahn from version 22.4.2 to version 22.5.1, Windows integration tests break on GitHub Actions:

integration create: D:\a\gridsync\gridsync\.tox\integration
integration installdeps: -rD:\a\gridsync\gridsync/requirements/gridsync.txt, -rD:\a\gridsync\gridsync/requirements/pyqt6.txt, -rD:\a\gridsync\gridsync/requirements/test.txt
integration develop-inst: D:\a\gridsync\gridsync
integration installed: atomicwrites==1.4.0,attrs==21.4.0,autobahn==22.5.1,Automat==20.2.0,certifi==2022.5.18.1,cffi==1.15.0,charset-normalizer==2.0.12,click==8.1.3,colorama==0.4.4,constantly==15.1.0,coverage==6.4,cryptography==37.0.2,decorator==5.1.1,greenlet==1.1.2,-e git+https://github.com/gridsync/gridsync@b1384ca3408e869600a85d80d3da14bf29ad8d91#egg=gridsync,hkdf==0.0.3,humanize==4.1.0,hyperlink==21.0.0,idna==3.3,incremental==21.3.0,iniconfig==1.1.1,magic-wormhole==0.12.0,packaging==21.3,pluggy==1.0.0,psutil==5.9.1,py==1.11.0,pyasn1==0.4.8,pyasn1-modules==0.2.8,pycparser==2.21,PyNaCl==1.5.0,pyOpenSSL==22.0.0,pyparsing==3.0.9,PyQt6==6.3.0,PyQt6-Charts==6.3.0,PyQt6-Charts-Qt6==6.3.0,PyQt6-Qt6==6.3.0,PyQt6-sip==13.3.1,pytest==7.1.2,pytest-cov==3.0.0,pytest-qt==4.0.2,pytest-twisted==1.13.4,pytest-xvfb==2.0.0,PyVirtualDisplay==3.0,pywin32==304,PyYAML==6.0,QtPy==2.1.0,requests==2.27.1,service-identity==21.1.0,six==1.16.0,spake2==0.8,tomli==2.0.1,tqdm==4.64.0,treq==22.2.0,Twisted==22.4.0,twisted-iocpsupport==1.0.2,txaio==22.2.1,txtorcon==22.0.0,typing_extensions==4.2.0,urllib3==1.26.9,watchdog==2.1.8,zope.interface==5.4.0,zxcvbn==4.4.28
integration run-test-pre: PYTHONHASHSEED='484'
integration run-test: commands[0] | python -m pytest tests/integration
<frozen importlib._bootstrap>:97: ResourceWarning: unclosed <socket.socket fd=688, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 61703), raddr=('127.0.0.1', 61702)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
<frozen importlib._bootstrap>:97: ResourceWarning: unclosed <socket.socket fd=692, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 61702), raddr=('127.0.0.1', 61703)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "D:\a\gridsync\gridsync\.tox\integration\lib\site-packages\_pytest\main.py", line 264, in wrap_session
INTERNALERROR>     config._do_configure()
INTERNALERROR>   File "D:\a\gridsync\gridsync\.tox\integration\lib\site-packages\_pytest\config\__init__.py", line 995, in _do_configure
INTERNALERROR>     self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR>   File "D:\a\gridsync\gridsync\.tox\integration\lib\site-packages\pluggy\_hooks.py", line 277, in call_historic
INTERNALERROR>     res = self._hookexec(self.name, self.get_hookimpls(), kwargs, False)
INTERNALERROR>   File "D:\a\gridsync\gridsync\.tox\integration\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>   File "D:\a\gridsync\gridsync\.tox\integration\lib\site-packages\pluggy\_callers.py", line 60, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "D:\a\gridsync\gridsync\.tox\integration\lib\site-packages\pluggy\_result.py", line 60, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "D:\a\gridsync\gridsync\.tox\integration\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "D:\a\gridsync\gridsync\.tox\integration\lib\site-packages\_pytest\debugging.py", line 68, in pytest_configure
INTERNALERROR>     import pdb
INTERNALERROR>   File "<frozen importlib._bootstrap>", line 1004, in _find_and_load
INTERNALERROR>   File "<frozen importlib._bootstrap>", line 158, in __enter__
INTERNALERROR>   File "<frozen importlib._bootstrap>", line 110, in acquire
INTERNALERROR> KeyError: 1764
ERROR: InvocationError for command 'D:\a\gridsync\gridsync\.tox\integration\Scripts\python.EXE' -m pytest tests/integration (exited with code 3)
___________________________________ summary ___________________________________
ERROR:   integration: commands failed

More investigation is required...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions