Skip to content

Failed to execute pytest. #939

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dabao1990 opened this issue Apr 15, 2025 · 2 comments
Open

Failed to execute pytest. #939

dabao1990 opened this issue Apr 15, 2025 · 2 comments

Comments

@dabao1990
Copy link

dabao1990 commented Apr 15, 2025

  1. spack install --overwrite --keep-stage --no-checksum -y [email protected]
  2. cd ipyparallel/tests
  3. pytes -s -v

============================
cat /etc/os-release
NAME="openEuler"
VERSION="22.03 (LTS-SP3)"
ID="openEuler"
VERSION_ID="22.03"
PRETTY_NAME="openEuler 22.03 (LTS-SP3)"
ANSI_COLOR="0;31"

===========================
The error information is as follows:


self = <ipyparallel.tests.test_client.TestClient object at 0xffff8d2892b0>

    @pytest.mark.skipif(os.name == 'nt', reason='timing out on Windows')
    def test_shutdown(self):
        ids = self.client.ids
        id0 = ids[-1]
        pid = self.client[id0].apply_sync(os.getpid)
>       self.client.shutdown(id0, block=True)

test_client.py:239:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client/client.py:1802: in shutdown
    f.wait()
../client/futures.py:30: in wait
    return self._evt.wait(timeout)
/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/python-3.8.8-kk3hqlp6z5u7ycjvcfcaqugvlbfxjxo6/lib/python3.8/threading.py:558: in wait
    signaled = self._cond.wait(timeout)
/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/python-3.8.8-kk3hqlp6z5u7ycjvcfcaqugvlbfxjxo6/lib/python3.8/threading.py:302: in wait
    waiter.acquire()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

sig = 14
frame = <frame at 0x3b741af0, file '/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/python-3.8.8-kk3hqlp6z5u7ycjvcfcaqugvlbfxjxo6/lib/python3.8/threading.py', line 316, code wait>

    def _sigalarm(sig, frame):
>       raise TimeoutError(
            f"test did not finish in {self.test_timeout} seconds"
        )
E       TimeoutError: test did not finish in 30 seconds

clienttest.py:180: TimeoutError
FAILED test_client.py::TestClient::test_shutdown - TimeoutError: test did not finish in 30 seconds

Can you analyze it for me?

@minrk
Copy link
Member

minrk commented Apr 16, 2025

Sorry, I'm afraid I don't have enough information. There should be logs from the engine and/or controller which might hint at what's going wrong. It's always a good idea include a full environment with a bug report (e.g. output of pip list --format=freeze)

@dabao1990
Copy link
Author

Sorry, I'm afraid I don't have enough information. There should be logs from the engine and/or controller which might hint at what's going wrong. It's always a good idea include a full environment with a bug report (e.g. output of pip list --format=freeze)

pip list --format=freeze
anyio==4.6.2
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
asttokens==2.4.1
async-lru==2.0.4
attrs==25.3.0
babel==2.17.0
backcall==0.2.0
beautifulsoup4==4.13.4
bleach==6.1.0
certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
comm==0.2.2
coverage==7.6.1
debugpy==1.8.9
decorator==5.1.1
defusedxml==0.7.1
exceptiongroup==1.2.2
executing==2.1.0
fastjsonschema==2.21.1
h11==0.14.0
httpcore==1.0.8
httpx==0.28.1
idna==3.10
importlib-metadata==8.5.0
importlib-resources==6.4.5
iniconfig==2.1.0
ipykernel==6.29.5
ipyparallel==9.0.0
ipython==8.12.0
ipywidgets==8.1.6
jedi==0.19.2
jinja2==3.1.6
json5==0.12.0
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
jupyter==1.1.1
jupyter-client==8.6.3
jupyter-console==6.6.3
jupyter-core==5.7.2
jupyter-events==0.10.0
jupyter-lsp==2.2.5
jupyter-server==2.14.2
jupyter-server-terminals==0.5.3
jupyterlab==4.3.6
jupyterlab-pygments==0.3.0
jupyterlab-server==2.27.3
jupyterlab-widgets==3.0.14
MarkupSafe==2.1.5
matplotlib-inline==0.1.7
mistune==3.1.3
nbclient==0.10.1
nbconvert==7.16.6
nbformat==5.10.4
nest-asyncio==1.6.0
notebook==7.4.0
notebook-shim==0.2.4
overrides==7.7.0
packaging==24.2
pandocfilters==1.5.1
parso==0.8.4
pexpect==4.9.0
pickleshare==0.7.5
pip==20.2
pkgutil-resolve-name==1.3.10
platformdirs==4.3.6
pluggy==1.5.0
prometheus-client==0.21.1
prompt-toolkit==3.0.48
psutil==6.1.0
ptyprocess==0.7.0
pure-eval==0.2.3
pycparser==2.22
pygments==2.18.0
pytest==8.3.0
pytest-asyncio==0.24.0
pytest-cov==5.0.0
python-dateutil==2.9.0.post0
python-json-logger==3.3.0
pytz==2025.2
PyYAML==6.0.2
pyzmq==26.2.0
referencing==0.35.1
requests==2.32.3
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rpds-py==0.20.1
Send2Trash==1.8.3
setuptools==50.3.2
six==1.16.0
sniffio==1.3.1
soupsieve==2.6
stack-data==0.6.3
terminado==0.18.1
testpath==0.6.0
tinycss2==1.2.1
tomli==2.2.1
tornado==6.4.2
tqdm==4.67.1
traitlets==5.14.3
typing-extensions==4.12.2
urllib3==2.2.3
wcwidth==0.2.13
webencodings==0.5.1
websocket-client==1.8.0
widgetsnbextension==4.0.14
zipp==3.20.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants