name: code
run_id: commands[0]
env LANG: C.UTF-8
env HOME: /home/jenkins
env PATH: /w/workspace/ric-app-qp-tox-sonarqube/.tox/code/bin:/opt/pyenv/bin:/tmp/venv-H6Zz/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin
env PYTHONHASHSEED: 250024602
env PIP_DISABLE_PIP_VERSION_CHECK: 1
env PYTHONIOENCODING: utf-8
env LD_LIBRARY_PATH: /usr/local/lib/:/usr/local/lib64
env PYTHONPATH: /w/workspace/ric-app-qp-tox-sonarqube:src:/usr/lib/python3.7/site-packages/
env RMR_SEED_RT: tests/fixtures/test_local.rt
env RMR_ASYNC_CONN: 0
env USE_FAKE_SDL: 1
env TOX_ENV_NAME: code
env TOX_WORK_DIR: /w/workspace/ric-app-qp-tox-sonarqube/.tox
env TOX_ENV_DIR: /w/workspace/ric-app-qp-tox-sonarqube/.tox/code
env VIRTUAL_ENV: /w/workspace/ric-app-qp-tox-sonarqube/.tox/code
env TOX_PACKAGE: /w/workspace/ric-app-qp-tox-sonarqube/.tox/.tmp/package/1/qp-0.0.5.tar.gz
metadata pid: 2690
cwd: /w/workspace/ric-app-qp-tox-sonarqube
allow: /w/workspace/ric-app-qp-tox-sonarqube/.tox/code/bin/*
cmd: pytest -v --cov src --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=60
exit_code: 2
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-8.3.5, pluggy-1.5.0 -- /w/workspace/ric-app-qp-tox-sonarqube/.tox/code/bin/python
cachedir: .tox/code/.pytest_cache
rootdir: /w/workspace/ric-app-qp-tox-sonarqube
plugins: cov-6.0.0
collecting ... collected 0 items / 1 error

ERROR: Coverage failure: total of 3 is less than fail-under=60

==================================== ERRORS ====================================
______________________ ERROR collecting tests/test_qp.py _______________________
tests/test_qp.py:20: in <module>
    from src import main
src/main.py:31: in <module>
    from prediction import forecast
src/prediction.py:19: in <module>
    import pandas as pd
.tox/code/lib/python3.10/site-packages/pandas/__init__.py:22: in <module>
    from pandas.compat import is_numpy_dev as _is_numpy_dev  # pyright: ignore # noqa:F401
.tox/code/lib/python3.10/site-packages/pandas/compat/__init__.py:18: in <module>
    from pandas.compat.numpy import (
.tox/code/lib/python3.10/site-packages/pandas/compat/numpy/__init__.py:4: in <module>
    from pandas.util.version import Version
.tox/code/lib/python3.10/site-packages/pandas/util/__init__.py:2: in <module>
    from pandas.util._decorators import (  # noqa:F401
.tox/code/lib/python3.10/site-packages/pandas/util/_decorators.py:14: in <module>
    from pandas._libs.properties import cache_readonly
.tox/code/lib/python3.10/site-packages/pandas/_libs/__init__.py:13: in <module>
    from pandas._libs.interval import Interval
pandas/_libs/interval.pyx:1: in init pandas._libs.interval
    ???
E   ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

---------- coverage: platform linux, python 3.10.6-final-0 -----------
Name                Stmts   Miss  Cover   Missing
-------------------------------------------------
src/__init__.py         0      0   100%
src/database.py       107    107     0%   17-151
src/exceptions.py       6      6     0%   18-29
src/main.py            83     78     6%   32-169
src/prediction.py      18     15    17%   20-40
src/qptrain.py         98     98     0%   17-146
-------------------------------------------------
TOTAL                 312    304     3%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml

FAIL Required test coverage of 60% not reached. Total coverage: 2.56%
=========================== short test summary info ============================
ERROR tests/test_qp.py - ValueError: numpy.dtype size changed, may indicate b...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 1.16s ===============================

standard error:
/w/workspace/ric-app-qp-tox-sonarqube/.tox/code/lib/python3.10/site-packages/pytest_cov/plugin.py:355: CovFailUnderWarning: Coverage failure: total of 3 is less than fail-under=60
  warnings.warn(CovFailUnderWarning(message), stacklevel=1)