code: install_deps> python -I -m pip install cassandra-driver coverage Flask Flask-API Flask-RESTful influxdb_client jsonpickle lru-dict mock pandas pyspark pytest pytest-cov python-dotenv PyYAML 'urllib3~=1.26.15' Werkzeug==2.2.2 code: freeze> python -m pip freeze --all code: aniso8601==9.0.1,cassandra-driver==3.29.1,certifi==2024.7.4,click==8.1.7,coverage==7.6.1,exceptiongroup==1.2.2,Flask==2.2.5,Flask-API==3.1,Flask-RESTful==0.3.10,geomet==0.2.1.post1,influxdb-client==1.45.0,iniconfig==2.0.0,itsdangerous==2.2.0,Jinja2==3.1.4,jsonpickle==3.2.2,lru-dict==1.3.0,MarkupSafe==2.1.5,mock==5.1.0,numpy==2.0.1,packaging==24.1,pandas==2.2.2,pip==24.1,pluggy==1.5.0,py4j==0.10.9.7,pyspark==3.5.2,pytest==8.3.2,pytest-cov==5.0.0,python-dateutil==2.9.0.post0,python-dotenv==1.0.1,pytz==2024.1,PyYAML==6.0.2,reactivex==4.0.4,setuptools==70.1.0,six==1.16.0,tomli==2.0.1,typing_extensions==4.12.2,tzdata==2024.1,urllib3==1.26.19,Werkzeug==2.2.2,wheel==0.43.0 code: commands[0]> pytest --cov-report term-missing --cov-report xml --cov-report html --cov-fail-under=30 --junitxml=/tmp/tests.xml --cov=/w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/dataextraction/ ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-8.3.2, pluggy-1.5.0 cachedir: .tox/code/.pytest_cache rootdir: /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube plugins: cov-5.0.0 collected 38 items test/test_DefaultSparkSource.py ... [ 7%] test/test_cassandrasink.py .. [ 13%] test/test_confighelper.py ....... [ 31%] test/test_defaultsparksink.py .. [ 36%] test/test_defaultsparktransform.py . [ 39%] test/test_influxsource.py .... [ 50%] test/test_main.py .......... [ 76%] test/test_pipeline.py ...... [ 92%] test/test_tmgr_logger.py ... [100%] =============================== warnings summary =============================== .tox/code/lib/python3.10/site-packages/flask_api/renderers.py:5 /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/.tox/code/lib/python3.10/site-packages/flask_api/renderers.py:5: DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.3. from flask.globals import _request_ctx_stack -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------------------- generated xml file: /tmp/tests.xml ---------------------- ---------- coverage: platform linux, python 3.10.6-final-0 ----------- Name Stmts Miss Cover Missing --------------------------------------------------------------------------------- dataextraction/ConfigHelper.py 142 25 82% 55, 71-73, 84-85, 99, 102-103, 114-115, 144-146, 159, 161-163, 172-173, 182-183, 213, 218-219 dataextraction/FeatureEngineeringFactory.py 70 7 90% 47-48, 68-71, 75 dataextraction/Pipeline.py 26 0 100% dataextraction/SparkHelper.py 39 13 67% 41, 58, 64-78, 84 dataextraction/exceptions_util.py 5 3 40% 42-44 dataextraction/main.py 123 18 85% 133-135, 172-183, 195-197 dataextraction/sink/Base.py 8 1 88% 31 dataextraction/sink/CassandraSink.py 78 2 97% 88-89 dataextraction/sink/DefaultSparkSink.py 23 2 91% 52-53 dataextraction/sink/__init__.py 0 0 100% dataextraction/source/Base.py 8 1 88% 31 dataextraction/source/CassandraSource.py 29 29 0% 22-76 dataextraction/source/DefaultSparkSource.py 23 2 91% 49-50 dataextraction/source/InfluxSource.py 52 1 98% 90 dataextraction/source/__init__.py 0 0 100% dataextraction/tmgr_logger.py 21 0 100% dataextraction/transform/Base.py 8 1 88% 32 dataextraction/transform/DefaultSparkTransform.py 9 0 100% dataextraction/transform/SQLTransform.py 28 8 71% 54-57, 68-71 dataextraction/transform/__init__.py 0 0 100% --------------------------------------------------------------------------------- TOTAL 692 113 84% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 30% reached. Total coverage: 83.67% ======================== 38 passed, 1 warning in 5.25s ========================= code: commands[1]> coverage xml -i Wrote XML report to coverage.xml code: OK ✔ in 1 minute 3.82 seconds docs: install_deps> python -I -m pip install lfdocs-conf recommonmark sphinx sphinx-rtd-theme sphinxcontrib-httpdomain 'urllib3~=1.26.15' docs: freeze> python -m pip freeze --all docs: alabaster==0.7.16,attrs==24.2.0,babel==2.16.0,blockdiag==3.0.0,certifi==2024.7.4,charset-normalizer==3.3.2,commonmark==0.9.1,contourpy==1.2.1,cycler==0.12.1,docutils==0.20.1,fonttools==4.53.1,funcparserlib==2.0.0a0,future==1.0.0,idna==3.7,imagesize==1.4.1,Jinja2==3.1.4,jsonschema==3.2.0,kiwisolver==1.4.5,lfdocs-conf==0.9.0,MarkupSafe==2.1.5,matplotlib==3.9.2,numpy==2.0.1,nwdiag==3.0.0,packaging==24.1,pillow==10.4.0,pip==24.1,Pygments==2.18.0,pyparsing==3.1.2,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.2,recommonmark==0.7.1,requests==2.32.3,requests-file==1.5.1,seqdiag==3.0.0,setuptools==70.1.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==7.4.7,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.4,sphinx-rtd-theme==2.0.0,sphinx-tabs==3.4.5,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==1.8.1,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.30,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,tomli==2.0.1,urllib3==1.26.19,webcolors==24.8.0,wheel==0.43.0 docs: commands[0]> sphinx-build -W -b html -n -d /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/.tox/docs/tmp/doctrees ./docs/ /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/docs/_build/html Running Sphinx v7.4.7 loading translations [en]... done making output directory... done Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`. loading intersphinx inventory 'aimlfw-dep' from https://docs.o-ran-sc.org/projects/o-ran-sc-aiml-fw-aimlfw-dep/en/latest/objects.inv... building [mo]: targets for 0 po files that are out of date writing output... building [html]: targets for 4 source files that are out of date updating environment: [new config] 4 added, 0 changed, 0 removed reading sources... [ 25%] index reading sources... [ 50%] installation-guide reading sources... [ 75%] overview reading sources... [100%] release-notes looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done copying assets... copying static files... done copying extra files... done copying assets: done writing output... [ 25%] index writing output... [ 50%] installation-guide writing output... [ 75%] overview writing output... [100%] release-notes generating indices... genindex done highlighting module code... writing additional pages... search done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in docs/_build/html. docs: commands[1]> echo 'Generated docs available in /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/docs/_build/html' Generated docs available in /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/docs/_build/html docs: OK ✔ in 28.88 seconds docs-linkcheck: install_deps> python -I -m pip install lfdocs-conf recommonmark sphinx sphinx-rtd-theme sphinxcontrib-httpdomain 'urllib3~=1.26.15' docs-linkcheck: freeze> python -m pip freeze --all docs-linkcheck: alabaster==0.7.16,attrs==24.2.0,babel==2.16.0,blockdiag==3.0.0,certifi==2024.7.4,charset-normalizer==3.3.2,commonmark==0.9.1,contourpy==1.2.1,cycler==0.12.1,docutils==0.20.1,fonttools==4.53.1,funcparserlib==2.0.0a0,future==1.0.0,idna==3.7,imagesize==1.4.1,Jinja2==3.1.4,jsonschema==3.2.0,kiwisolver==1.4.5,lfdocs-conf==0.9.0,MarkupSafe==2.1.5,matplotlib==3.9.2,numpy==2.0.1,nwdiag==3.0.0,packaging==24.1,pillow==10.4.0,pip==24.1,Pygments==2.18.0,pyparsing==3.1.2,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.2,recommonmark==0.7.1,requests==2.32.3,requests-file==1.5.1,seqdiag==3.0.0,setuptools==70.1.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==7.4.7,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.4,sphinx-rtd-theme==2.0.0,sphinx-tabs==3.4.5,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==1.8.1,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.30,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,tomli==2.0.1,urllib3==1.26.19,webcolors==24.8.0,wheel==0.43.0 docs-linkcheck: commands[0]> sphinx-build -W -b linkcheck -d /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/.tox/docs-linkcheck/tmp/doctrees ./docs/ /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/docs/_build/linkcheck Running Sphinx v7.4.7 loading translations [en]... done making output directory... done Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`. loading intersphinx inventory 'aimlfw-dep' from https://docs.o-ran-sc.org/projects/o-ran-sc-aiml-fw-aimlfw-dep/en/latest/objects.inv... building [mo]: targets for 0 po files that are out of date writing output... building [linkcheck]: targets for 4 source files that are out of date updating environment: [new config] 4 added, 0 changed, 0 removed reading sources... [ 25%] index reading sources... [ 50%] installation-guide reading sources... [ 75%] overview reading sources... [100%] release-notes looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done copying assets... copying assets: done writing output... [ 25%] index writing output... [ 50%] installation-guide writing output... [ 75%] overview writing output... [100%] release-notes (installation-guide: line 39) ok https://docs.o-ran-sc.org/projects/o-ran-sc-aiml-fw-aimlfw-dep/en/latest/index.html build succeeded. Look for any errors in the above output or in docs/_build/linkcheck/output.txt code: OK (63.82=setup[57.81]+cmd[5.80,0.22] seconds) docs: OK (28.88=setup[27.28]+cmd[1.60,0.00] seconds) docs-linkcheck: OK (18.84=setup[17.97]+cmd[0.87] seconds) congratulations :) (111.70 seconds)