panoptes / POCS

An Observatory Control System for the PANOPTES citizen-science project designed to help find transiting exoplanets! :telescope: :stars:
https://pocs.readthedocs.io/en/latest/
MIT License
77 stars 49 forks source link

Dome slit test not working properly but reports success #240

Closed wtgee closed 6 years ago

wtgee commented 6 years ago

Running the test:

➜  POCS git:(develop) pytest -xv pocs/tests/test_astrohaven_dome.py -k "slit"
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.6.3, pytest-3.3.1, py-1.5.2, pluggy-0.6.0 -- /home/wtgee/anaconda3/bin/python
cachedir: .cache
rootdir: /storage/panoptes/POCS, inifile:
plugins: hypothesis-3.38.5
collected 4 items                                                                                                                                                                                                 

pocs/tests/test_astrohaven_dome.py::test_open_and_close_slit PASSED                                                                                                                                         [100%]

=============================================================================================== 3 tests deselected ================================================================================================
===================================================================================== 1 passed, 3 deselected in 53.14 seconds =====================================================================================

Log file showing a lot of ERRORs with timeout.

tail: '/var/panoptes/logs/pytest.log' has been replaced;  following new file
MainProcess(15737) MainThread 20171221223628 UTC     INFO            logger.py:  37:info                      ****************************** Starting PanLogger ******************************
MainProcess(15737) MainThread 20171221223628 UTC    DEBUG            logger.py:  34:debug                     Creating dome: brand=Astrohaven, driver=astrohaven
MainProcess(15737) MainThread 20171221223628 UTC    DEBUG            logger.py:  34:debug                     SerialData for astrohaven_simulator:// created
MainProcess(15737) MainThread 20171221223628 UTC    DEBUG            logger.py:  34:debug                     Opened astrohaven_simulator://, sleeping for 2.0 seconds
MainProcess(15737) MainThread 20171221223630 UTC    DEBUG            logger.py:  34:debug                     Created dome.
MainProcess(15737) MainThread 20171221223630 UTC    DEBUG            logger.py:  34:debug                     Already connected to dome
MainProcess(15737) MainThread 20171221223641 UTC    ERROR            logger.py:  43:error                     Timed out moving the dome. Check for hardware or communications problem. send=%r latest_state=%r
MainProcess(15737) MainThread 20171221223652 UTC    ERROR            logger.py:  43:error                     Timed out moving the dome. Check for hardware or communications problem. send=%r latest_state=%r
MainProcess(15737) MainThread 20171221223706 UTC    ERROR            logger.py:  43:error                     Timed out moving the dome. Check for hardware or communications problem. send=%r latest_state=%r
MainProcess(15737) MainThread 20171221223717 UTC    ERROR            logger.py:  43:error                     Timed out moving the dome. Check for hardware or communications problem. send=%r latest_state=%r
MainProcess(15737) MainThread 20171221223720 UTC    DEBUG            logger.py:  34:debug                     Closing serial port for dome
MainProcess(15737) MainThread 20171221223720 UTC    DEBUG            logger.py:  34:debug                     SerialData.disconnect called for astrohaven_simulator://
MainProcess(15737) MainThread 20171221223721 UTC    DEBUG            logger.py:  34:debug                     Closing serial port for dome
MainProcess(15737) MainThread 20171221223721 UTC    DEBUG            logger.py:  34:debug                     SerialData.disconnect called for astrohaven_simulator://
jamessynge commented 6 years ago

Looks bad! Thanks for catching that. Will investigate.