Skip to content
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

Warnings generated from hwp supervisor tests #825

Open
BrianJKoopman opened this issue Feb 6, 2025 · 0 comments
Open

Warnings generated from hwp supervisor tests #825

BrianJKoopman opened this issue Feb 6, 2025 · 0 comments
Labels
agent: hwp supervisor needs triage Cause of bug still unknown, needs investigation.

Comments

@BrianJKoopman
Copy link
Member

Noticed these while reviewing #824 (though it happens without that change too):

$ python -m pytest --cov --cov-report html integration/test_hwp_supervisor_agent_integration.py
======================================================== test session starts ========================================================
platform linux -- Python 3.11.9, pytest-8.3.4, pluggy-1.5.0
rootdir: /home/koopman/git/socs/tests
configfile: pytest.ini
plugins: order-1.3.0, dependency-0.6.0, cov-6.0.0, twisted-1.14.3, docker-3.1.2
collected 2 items

integration/test_hwp_supervisor_agent_integration.py ..                                                                       [100%]

========================================================= warnings summary ==========================================================
integration/test_hwp_supervisor_agent_integration.py::test_supervisor_grip
integration/test_hwp_supervisor_agent_integration.py::test_hwp_spinup
  /home/koopman/virtualenvs/3.11/lib/python3.11/site-packages/_pytest/threadexception.py:82: PytestUnhandledThreadExceptionWarning: Exception in thread background

  Traceback (most recent call last):
    File "/home/koopman/git/socs/socs/testing/hwp_emulator.py", line 346, in process_pcu_msg
      _, cmd, chan_str = data.split(" ")
      ^^^^^^^^^^^^^^^^
  ValueError: not enough values to unpack (expected 3, got 1)

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/home/koopman/.pyenv/versions/3.11.9/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
      self.run()
    File "/home/koopman/.pyenv/versions/3.11.9/lib/python3.11/threading.py", line 982, in run
      self._target(*self._args, **self._kwargs)
    File "/home/koopman/git/socs/socs/testing/device_emulator.py", line 205, in _read_serial
      response = self.get_response(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^
    File "/home/koopman/git/socs/socs/testing/hwp_emulator.py", line 349, in process_pcu_msg
      raise ValueError(f"Unable to parse message: {data}")
  ValueError: Unable to parse message:

    warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

---------- coverage: platform linux, python 3.11.9-final-0 -----------
Coverage HTML written to dir htmlcov

I didn't dig into them, but wanted to note them.

@BrianJKoopman BrianJKoopman added agent: hwp supervisor needs triage Cause of bug still unknown, needs investigation. labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent: hwp supervisor needs triage Cause of bug still unknown, needs investigation.
Projects
None yet
Development

No branches or pull requests

1 participant