Skip to content

Fix CI/CD pipeline issues

Reporters

  • Lluis Gifre (CTTC)

Description

Some components are not passing CI/CD pipeline. Review them:

BGP-LS Speaker

  • Disable CI/CD unit_test step as there is no test to execute.

Monitoring

  • Fix imports as it imports OpenConfigDriver
______________ ERROR collecting monitoring/tests/test_unitary.py _______________
ImportError while importing test module '/var/teraflow/monitoring/tests/test_unitary.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
monitoring/tests/test_unitary.py:41: in <module>
    from device.service.DeviceService import DeviceService
device/service/DeviceService.py:20: in <module>
    from .DeviceServiceServicerImpl import DeviceServiceServicerImpl
device/service/DeviceServiceServicerImpl.py:34: in <module>
    from .drivers.oc_driver.OCDriver import OCDriver
device/service/drivers/__init__.py:97: in <module>
    from .openconfig.OpenConfigDriver import OpenConfigDriver # pylint: disable=wrong-import-position
device/service/drivers/openconfig/OpenConfigDriver.py:24: in <module>
    from ncclient.manager import Manager, connect_ssh
E   ModuleNotFoundError: No module named 'ncclient'

PathComp - Frontend:

  • Fix imports and dependencies
___________ ERROR collecting pathcomp/frontend/tests/test_unitary.py ___________
ImportError while importing test module '/var/teraflow/pathcomp/frontend/tests/test_unitary.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
pathcomp/frontend/tests/test_unitary.py:57: in <module>
    from .PrepareTestScenario import ( # pylint: disable=unused-import
pathcomp/frontend/tests/PrepareTestScenario.py:21: in <module>
    from forecaster.service.ForecasterService import ForecasterService
forecaster/service/ForecasterService.py:19: in <module>
    from .ForecasterServiceServicerImpl import ForecasterServiceServicerImpl
forecaster/service/ForecasterServiceServicerImpl.py:30: in <module>
    from forecaster.Config import FORECAST_TO_HISTORY_RATIO
E   ModuleNotFoundError: No module named 'forecaster.Config'
_ ERROR collecting pathcomp/frontend/tests/test_unitary_pathcomp_forecaster.py _
ImportError while importing test module '/var/teraflow/pathcomp/frontend/tests/test_unitary_pathcomp_forecaster.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
pathcomp/frontend/tests/test_unitary_pathcomp_forecaster.py:34: in <module>
    from forecaster.tests.Tools import compose_descriptors, read_csv
E   ModuleNotFoundError: No module named 'forecaster.tests'

Slice

  • Disable CI/CD unit_test step as there is no test to execute.