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-7VVs/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: 1096833784 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: 2859 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: 0 ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-8.2.2, 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-5.0.0 collecting ... collected 5 items tests/test_qp.py::test_init_xapp PASSED [ 20%] tests/test_qp.py::test_database_connection PASSED [ 40%] tests/test_qp.py::test_training PASSED [ 60%] tests/test_qp.py::test_predict PASSED [ 80%] tests/test_qp.py::test_rmr_flow PASSED [100%] =============================== warnings summary =============================== tests/test_qp.py::test_training /w/workspace/ric-app-qp-tox-sonarqube/src/qptrain.py:60: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead. for name, column in df.iteritems(): tests/test_qp.py: 20 warnings /w/workspace/ric-app-qp-tox-sonarqube/.tox/code/lib/python3.10/site-packages/pandas/core/indexes/multi.py:643: DeprecationWarning: `cumproduct` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `cumprod` instead. codes = cartesian_product(codes) tests/test_qp.py: 40 warnings /w/workspace/ric-app-qp-tox-sonarqube/.tox/code/lib/python3.10/site-packages/pandas/core/reshape/util.py:60: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead. return [ tests/test_qp.py::test_rmr_flow /w/workspace/ric-app-qp-tox-sonarqube/.tox/code/lib/python3.10/site-packages/_pytest/threadexception.py:77: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-4 (loop) Traceback (most recent call last): File "/opt/pyenv/versions/3.10.6/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/opt/pyenv/versions/3.10.6/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/w/workspace/ric-app-qp-tox-sonarqube/.tox/code/lib/python3.10/site-packages/ricxappframe/xapp_frame.py", line 961, in loop func(self, summary, sbuf) File "/w/workspace/ric-app-qp-tox-sonarqube/src/main.py", line 67, in qp_predict_handler pred_msg = predict(summary[rmr.RMR_MS_PAYLOAD]) File "/w/workspace/ric-app-qp-tox-sonarqube/src/main.py", line 99, in predict ue_list = payload['UEPredictionSet'] TypeError: string indices must be integers warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------- coverage: platform linux, python 3.10.6-final-0 ----------- Name Stmts Miss Cover Missing ------------------------------------------------- src/__init__.py 0 0 100% src/database.py 107 48 55% 44-55, 59-73, 76-91, 94-99, 102-105, 145, 148, 151 src/exceptions.py 6 0 100% src/main.py 83 28 66% 49-50, 57-59, 68-76, 104-118, 149, 152, 169 src/prediction.py 18 13 28% 27-40 src/qptrain.py 98 18 82% 41-43, 53, 63-64, 68-75, 115-116, 139-140 ------------------------------------------------- TOTAL 312 107 66% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 60% reached. Total coverage: 65.71% ======================= 5 passed, 62 warnings in 45.98s ========================