Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on prd-ubuntu1804-builder-2c-2g-830 (ubuntu1804-builder-2c-2g ubuntu2004-builder-2c-2g) in workspace /w/workspace/ric-app-ad-tox-sonarqube [ssh-agent] Looking for ssh-agent implementation... [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-JGuo7NcJIRsI/agent.5650 SSH_AGENT_PID=5652 [ssh-agent] Started. Running ssh-add (command line suppressed) Identity added: /w/workspace/ric-app-ad-tox-sonarqube@tmp/private_key_1798667660489203502.key (jenkins-ssh) [ssh-agent] Using credentials jenkins (jenkins) The recommended git tool is: NONE using credential jenkins Wiping out workspace first. Cloning the remote Git repository Cloning repository ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-app/ad > git init /w/workspace/ric-app-ad-tox-sonarqube # timeout=10 Fetching upstream changes from ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-app/ad > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials jenkins > git fetch --tags --force --progress -- ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-app/ad +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-app/ad # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 4cfece2770950e9d9b5a728b7f41f44851e2f1c1 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 4cfece2770950e9d9b5a728b7f41f44851e2f1c1 # timeout=10 Commit message: "Release 1.0.1" > git rev-list --no-walk 4cfece2770950e9d9b5a728b7f41f44851e2f1c1 # timeout=10 provisioning config files... copy managed file [npmrc] to file:/home/jenkins/.npmrc copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins4342770517455044909.sh ---> python-tools-install.sh Setup pyenv: * system (set by /opt/pyenv/version) * 3.8.13 (set by /opt/pyenv/version) * 3.9.13 (set by /opt/pyenv/version) * 3.10.6 (set by /opt/pyenv/version) lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-cnBn lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-cnBn/bin to PATH Generating Requirements File Python 3.10.6 pip 23.3.1 from /tmp/venv-cnBn/lib/python3.10/site-packages/pip (python 3.10) appdirs==1.4.4 argcomplete==3.1.6 aspy.yaml==1.3.0 attrs==23.1.0 autopage==0.5.2 Babel==2.13.1 beautifulsoup4==4.12.2 boto3==1.29.6 botocore==1.32.6 bs4==0.0.1 cachetools==5.3.2 certifi==2023.11.17 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 cliff==4.4.0 cmd2==2.4.3 cryptography==3.3.2 debtcollector==2.5.0 decorator==5.1.1 defusedxml==0.7.1 Deprecated==1.2.14 distlib==0.3.7 dnspython==2.4.2 docker==4.2.2 dogpile.cache==1.2.2 email-validator==2.1.0.post1 filelock==3.13.1 future==0.18.3 gitdb==4.0.11 GitPython==3.1.40 google-auth==2.23.4 httplib2==0.22.0 identify==2.5.32 idna==3.6 importlib-metadata==6.8.0 importlib-resources==1.5.0 iso8601==2.1.0 Jinja2==3.1.2 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==2.4 jsonschema==4.20.0 jsonschema-specifications==2023.11.1 keystoneauth1==5.4.0 kubernetes==28.1.0 lftools==0.37.8 lxml==4.9.3 MarkupSafe==2.1.3 msgpack==1.0.7 multi-key-dict==2.0.3 munch==4.0.0 netaddr==0.9.0 netifaces==0.11.0 niet==1.4.2 nodeenv==1.8.0 oauth2client==4.1.3 oauthlib==3.2.2 openstacksdk==0.62.0 os-client-config==2.1.0 os-service-types==1.7.0 osc-lib==2.9.0 oslo.config==9.2.0 oslo.context==5.3.0 oslo.i18n==6.2.0 oslo.log==5.4.0 oslo.serialization==5.2.0 oslo.utils==6.3.0 packaging==23.2 pbr==6.0.0 platformdirs==4.0.0 prettytable==3.9.0 pyasn1==0.5.1 pyasn1-modules==0.3.0 pycparser==2.21 pygerrit2==2.0.15 PyGithub==2.1.1 pyinotify==0.9.6 PyJWT==2.8.0 PyNaCl==1.5.0 pyparsing==2.4.7 pyperclip==1.8.2 pyrsistent==0.20.0 python-cinderclient==9.4.0 python-dateutil==2.8.2 python-heatclient==3.3.0 python-jenkins==1.8.2 python-keystoneclient==5.2.0 python-magnumclient==4.3.0 python-novaclient==18.4.0 python-openstackclient==6.0.0 python-swiftclient==4.4.0 pytz==2023.3.post1 PyYAML==6.0.1 referencing==0.31.0 requests==2.31.0 requests-oauthlib==1.3.1 requestsexceptions==1.4.0 rfc3986==2.0.0 rpds-py==0.13.1 rsa==4.9 ruamel.yaml==0.18.5 ruamel.yaml.clib==0.2.8 s3transfer==0.7.0 simplejson==3.19.2 six==1.16.0 smmap==5.0.1 soupsieve==2.5 stevedore==5.1.0 tabulate==0.9.0 toml==0.10.2 tomlkit==0.12.3 tqdm==4.66.1 typing_extensions==4.8.0 tzdata==2023.3 urllib3==1.26.18 virtualenv==20.24.7 wcwidth==0.2.12 websocket-client==1.6.4 wrapt==1.16.0 xdg==6.0.0 xmltodict==0.13.0 yq==3.2.3 zipp==3.17.0 [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content PYTHON=python3 [EnvInject] - Variables injected successfully. [ric-app-ad-tox-sonarqube] $ /bin/bash -l /tmp/jenkins4803124363044976526.sh ---> tox-install.sh + source /home/jenkins/lf-env.sh + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 ++ mktemp -d /tmp/venv-XXXX + lf_venv=/tmp/venv-3sjD + local venv_file=/tmp/.os_lf_venv + local python=python3 + local options + local set_path=true + local install_args= ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 + true + case $1 in + venv_file=/tmp/.toxenv + shift 2 + true + case $1 in + shift + break + case $python in + local pkg_list= + [[ -d /opt/pyenv ]] + echo 'Setup pyenv:' Setup pyenv: + export PYENV_ROOT=/opt/pyenv + PYENV_ROOT=/opt/pyenv + export PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + pyenv versions system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) + command -v pyenv ++ pyenv init - --no-rehash + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); for i in ${!paths[@]}; do if [[ ${paths[i]} == "'\''/opt/pyenv/shims'\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; fi; done; echo "${paths[*]}"'\'')" export PATH="/opt/pyenv/shims:${PATH}" export PYENV_SHELL=bash source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' pyenv() { local command command="${1:-}" if [ "$#" -gt 0 ]; then shift fi case "$command" in rehash|shell) eval "$(pyenv "sh-$command" "$@")" ;; *) command pyenv "$command" "$@" ;; esac }' +++ bash --norc -ec 'IFS=:; paths=($PATH); for i in ${!paths[@]}; do if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; fi; done; echo "${paths[*]}"' ++ PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ export PYENV_SHELL=bash ++ PYENV_SHELL=bash ++ source /opt/pyenv/libexec/../completions/pyenv.bash +++ complete -F _pyenv pyenv ++ lf-pyver python3 ++ local py_version_xy=python3 ++ local py_version_xyz= ++ pyenv versions ++ local command ++ grep -E '^[0-9.]*[0-9]$' ++ command=versions ++ '[' 1 -gt 0 ']' ++ shift ++ case "$command" in ++ command pyenv versions ++ pyenv versions ++ sed 's/^[ *]* //' ++ awk '{ print $1 }' ++ [[ ! -s /tmp/.pyenv_versions ]] +++ grep '^3' /tmp/.pyenv_versions +++ tail -n 1 +++ sort -V ++ py_version_xyz=3.10.6 ++ [[ -z 3.10.6 ]] ++ echo 3.10.6 ++ return 0 + pyenv local 3.10.6 + local command + command=local + '[' 2 -gt 0 ']' + shift + case "$command" in + command pyenv local 3.10.6 + pyenv local 3.10.6 + for arg in "$@" + case $arg in + pkg_list+='tox ' + for arg in "$@" + case $arg in + pkg_list+='virtualenv ' + for arg in "$@" + case $arg in + pkg_list+='urllib3~=1.26.15 ' + [[ -f /tmp/.toxenv ]] + [[ ! -f /tmp/.toxenv ]] + [[ -n '' ]] + python3 -m venv /tmp/venv-3sjD + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-3sjD' lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-3sjD + echo /tmp/venv-3sjD + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv + /tmp/venv-3sjD/bin/python3 -m pip install --upgrade --quiet pip virtualenv + [[ -z tox virtualenv urllib3~=1.26.15 ]] + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 + /tmp/venv-3sjD/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 + type python3 + true + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-3sjD/bin to PATH' lf-activate-venv(): INFO: Adding /tmp/venv-3sjD/bin to PATH + PATH=/tmp/venv-3sjD/bin:/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + return 0 + python3 --version Python 3.10.6 + python3 -m pip --version pip 23.3.1 from /tmp/venv-3sjD/lib/python3.10/site-packages/pip (python 3.10) + python3 -m pip freeze cachetools==5.3.2 chardet==5.2.0 colorama==0.4.6 distlib==0.3.7 filelock==3.13.1 packaging==23.2 platformdirs==4.0.0 pluggy==1.3.0 pyproject-api==1.6.1 tomli==2.0.1 tox==4.11.3 urllib3==1.26.18 virtualenv==20.24.7 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins5990226853290600540.sh ---> install-deb-rmr.sh + version_file=rmr-version.yaml + [[ -f rmr-version.yaml ]] ++ grep '^repo:' rmr-version.yaml ++ cut -d: -f2 ++ xargs + repo= ++ xargs ++ cut -d: -f2 ++ grep '^version:' rmr-version.yaml + ver=4.0.5 + [[ -z 4.0.5 ]] + repo=release + for deb in "rmr_${ver}_amd64.deb" "rmr-dev_${ver}_amd64.deb" + wget -nv --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr_4.0.5_amd64.deb/download.deb 2023-11-26 00:35:36 URL:https://d28dx6y1hfq314.cloudfront.net/20756/10598/debian/package_files/1499825.deb?t=1700959236_51a6c811e211781957e4e753a96a541e364c2794 [213884/213884] -> "rmr_4.0.5_amd64.deb" [1] + sudo dpkg -i rmr_4.0.5_amd64.deb Selecting previously unselected package rmr. (Reading database ... 198606 files and directories currently installed.) Preparing to unpack rmr_4.0.5_amd64.deb ... Unpacking rmr (4.0.5) ... Setting up rmr (4.0.5) ... + rm -f rmr_4.0.5_amd64.deb + for deb in "rmr_${ver}_amd64.deb" "rmr-dev_${ver}_amd64.deb" + wget -nv --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr-dev_4.0.5_amd64.deb/download.deb 2023-11-26 00:35:39 URL:https://d28dx6y1hfq314.cloudfront.net/20756/10598/debian/package_files/1499826.deb?t=1700959238_88c19424c6c7596694ba872852c3d148e78092e6 [112642/112642] -> "rmr-dev_4.0.5_amd64.deb" [1] + sudo dpkg -i rmr-dev_4.0.5_amd64.deb Selecting previously unselected package rmr-dev. (Reading database ... 198614 files and directories currently installed.) Preparing to unpack rmr-dev_4.0.5_amd64.deb ... Unpacking rmr-dev (4.0.5) ... Setting up rmr-dev (4.0.5) ... + rm -f rmr-dev_4.0.5_amd64.deb + echo '---> install-deb-rmr.sh ends' ---> install-deb-rmr.sh ends [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content PARALLEL=False [EnvInject] - Variables injected successfully. [ric-app-ad-tox-sonarqube] $ /bin/bash -l /tmp/jenkins2339888352005659424.sh ---> tox-run.sh + PATH=/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 + ARCHIVE_TOX_DIR=/w/workspace/ric-app-ad-tox-sonarqube/archives/tox + ARCHIVE_DOC_DIR=/w/workspace/ric-app-ad-tox-sonarqube/archives/docs + mkdir -p /w/workspace/ric-app-ad-tox-sonarqube/archives/tox + cd /w/workspace/ric-app-ad-tox-sonarqube/. + source /home/jenkins/lf-env.sh + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 ++ mktemp -d /tmp/venv-XXXX + lf_venv=/tmp/venv-e9VB + local venv_file=/tmp/.os_lf_venv + local python=python3 + local options + local set_path=true + local install_args= ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 + true + case $1 in + venv_file=/tmp/.toxenv + shift 2 + true + case $1 in + shift + break + case $python in + local pkg_list= + [[ -d /opt/pyenv ]] + echo 'Setup pyenv:' Setup pyenv: + export PYENV_ROOT=/opt/pyenv + PYENV_ROOT=/opt/pyenv + export PATH=/opt/pyenv/bin:/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 + PATH=/opt/pyenv/bin:/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 + pyenv versions system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) + command -v pyenv ++ pyenv init - --no-rehash + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); for i in ${!paths[@]}; do if [[ ${paths[i]} == "'\''/opt/pyenv/shims'\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; fi; done; echo "${paths[*]}"'\'')" export PATH="/opt/pyenv/shims:${PATH}" export PYENV_SHELL=bash source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' pyenv() { local command command="${1:-}" if [ "$#" -gt 0 ]; then shift fi case "$command" in rehash|shell) eval "$(pyenv "sh-$command" "$@")" ;; *) command pyenv "$command" "$@" ;; esac }' +++ bash --norc -ec 'IFS=:; paths=($PATH); for i in ${!paths[@]}; do if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; fi; done; echo "${paths[*]}"' ++ PATH=/opt/pyenv/bin:/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 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/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 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/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 ++ export PYENV_SHELL=bash ++ PYENV_SHELL=bash ++ source /opt/pyenv/libexec/../completions/pyenv.bash +++ complete -F _pyenv pyenv ++ lf-pyver python3 ++ local py_version_xy=python3 ++ local py_version_xyz= ++ pyenv versions ++ local command ++ command=versions ++ '[' 1 -gt 0 ']' ++ shift ++ case "$command" in ++ command pyenv versions ++ pyenv versions ++ awk '{ print $1 }' ++ sed 's/^[ *]* //' ++ grep -E '^[0-9.]*[0-9]$' ++ [[ ! -s /tmp/.pyenv_versions ]] +++ grep '^3' /tmp/.pyenv_versions +++ tail -n 1 +++ sort -V ++ py_version_xyz=3.10.6 ++ [[ -z 3.10.6 ]] ++ echo 3.10.6 ++ return 0 + pyenv local 3.10.6 + local command + command=local + '[' 2 -gt 0 ']' + shift + case "$command" in + command pyenv local 3.10.6 + pyenv local 3.10.6 + for arg in "$@" + case $arg in + pkg_list+='tox ' + for arg in "$@" + case $arg in + pkg_list+='virtualenv ' + for arg in "$@" + case $arg in + pkg_list+='urllib3~=1.26.15 ' + [[ -f /tmp/.toxenv ]] ++ cat /tmp/.toxenv + lf_venv=/tmp/venv-3sjD + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-3sjD from' file:/tmp/.toxenv lf-activate-venv(): INFO: Reuse venv:/tmp/venv-3sjD from file:/tmp/.toxenv + /tmp/venv-3sjD/bin/python3 -m pip install --upgrade --quiet pip virtualenv + [[ -z tox virtualenv urllib3~=1.26.15 ]] + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 + /tmp/venv-3sjD/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 + type python3 + true + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-3sjD/bin to PATH' lf-activate-venv(): INFO: Adding /tmp/venv-3sjD/bin to PATH + PATH=/tmp/venv-3sjD/bin:/opt/pyenv/shims:/opt/pyenv/bin:/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 + return 0 + [[ -d /opt/pyenv ]] + echo '---> Setting up pyenv' ---> Setting up pyenv + export PYENV_ROOT=/opt/pyenv + PYENV_ROOT=/opt/pyenv + export PATH=/opt/pyenv/bin:/tmp/venv-3sjD/bin:/opt/pyenv/shims:/opt/pyenv/bin:/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 + PATH=/opt/pyenv/bin:/tmp/venv-3sjD/bin:/opt/pyenv/shims:/opt/pyenv/bin:/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 ++ pwd + PYTHONPATH=/w/workspace/ric-app-ad-tox-sonarqube + export PYTHONPATH + export TOX_TESTENV_PASSENV=PYTHONPATH + TOX_TESTENV_PASSENV=PYTHONPATH + tox --version 4.11.3 from /tmp/venv-3sjD/lib/python3.10/site-packages/tox/__init__.py + PARALLEL=False + TOX_OPTIONS_LIST= + [[ -n code,flake8 ]] + TOX_OPTIONS_LIST=' -e code,flake8' + case ${PARALLEL,,} in + tox -e code,flake8 + tee -a /w/workspace/ric-app-ad-tox-sonarqube/archives/tox/tox.log code: install_deps> python -I -m pip install coverage pytest pytest-cov .pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel .pkg: _optional_hooks> python /tmp/venv-3sjD/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_sdist> python /tmp/venv-3sjD/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_wheel> python /tmp/venv-3sjD/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: install_requires_for_build_wheel> python -I -m pip install wheel .pkg: freeze> python -m pip freeze --all .pkg: pip==23.3.1,setuptools==68.2.2,wheel==0.41.3 .pkg: prepare_metadata_for_build_wheel> python /tmp/venv-3sjD/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_sdist> python /tmp/venv-3sjD/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ code: install_package_deps> python -I -m pip install 'Scikit-learn>=0.18' influxdb 'joblib>=0.3.2' 'mdclogpy<=1.1.1' 'pandas>=1.1.3' 'ricxappframe<2.0.0,>=1.1.1' 'schedule>=0.0.0' code: install_package> python -I -m pip install --force-reinstall --no-deps /w/workspace/ric-app-ad-tox-sonarqube/.tox/.tmp/package/1/ad-1.0.1.tar.gz code: freeze> python -m pip freeze --all code: ad==1.0.1,async-timeout==4.0.3,certifi==2023.11.17,charset-normalizer==3.3.2,coverage==7.3.2,exceptiongroup==1.2.0,hiredis==2.2.3,idna==3.6,influxdb==5.3.1,iniconfig==2.0.0,inotify-simple==1.3.5,joblib==1.3.2,mdclogpy==1.1.1,msgpack==1.0.7,numpy==1.26.2,packaging==23.2,pandas==2.1.3,pip==23.3.1,pluggy==1.3.0,pytest==7.4.3,pytest-cov==4.1.0,python-dateutil==2.8.2,pytz==2023.3.post1,redis==5.0.1,requests==2.31.0,ricsdl==2.3.0,ricxappframe==1.6.0,schedule==1.2.1,scikit-learn==1.3.2,scipy==1.11.4,setuptools==68.2.2,six==1.16.0,threadpoolctl==3.2.0,tomli==2.0.1,tzdata==2023.3,urllib3==2.1.0,wheel==0.41.3 code: commands[0]> pytest -v --cov src --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=50 ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-7.4.3, pluggy-1.3.0 -- /w/workspace/ric-app-ad-tox-sonarqube/.tox/code/bin/python cachedir: .tox/code/.pytest_cache rootdir: /w/workspace/ric-app-ad-tox-sonarqube plugins: cov-4.1.0 collecting ... collected 4 items tests/test_ad.py::test_database_connection PASSED [ 25%] tests/test_ad.py::test_trainModel PASSED [ 50%] tests/test_ad.py::test_predict_anomaly PASSED [ 75%] tests/test_ad.py::test_msg_to_ts PASSED [100%] ---------- coverage: platform linux, python 3.10.6-final-0 ----------- Name Stmts Miss Cover Missing ------------------------------------------------- src/__init__.py 0 0 100% src/ad_model.py 66 13 80% 42-43, 50-51, 57-58, 108-110, 119, 121, 123, 127 src/ad_train.py 69 6 91% 56-58, 66-68 src/database.py 94 34 64% 64-75, 85-97, 106-110, 113-118 src/exceptions.py 4 4 0% 18-25 src/insert.py 48 48 0% 17-82 src/main.py 116 65 44% 41-46, 70-83, 106-110, 119-130, 139, 146-163, 167-170, 174-177, 181-185, 190-192 src/processing.py 44 0 100% ------------------------------------------------- TOTAL 441 170 61% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 50% reached. Total coverage: 61.45% ======================== 4 passed in 107.97s (0:01:47) ========================= code: commands[1]> coverage xml -i Wrote XML report to coverage.xml .pkg: _exit> python /tmp/venv-3sjD/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ code: OK ✔ in 2 minutes 21.41 seconds flake8: install_deps> python -I -m pip install flake8 flake8: freeze> python -m pip freeze --all flake8: ad==1.0.1,flake8==6.1.0,mccabe==0.7.0,pip==23.3.1,pycodestyle==2.11.1,pyflakes==3.1.0,setuptools==68.2.2,wheel==0.41.3 flake8: commands[0]> flake8 setup.py src tests code: OK (141.41=setup[32.36]+cmd[108.86,0.19] seconds) flake8: OK (2.60=setup[2.34]+cmd[0.26] seconds) congratulations :) (144.17 seconds) + tox_status=0 + echo '---> Completed tox runs' ---> Completed tox runs + for i in .tox/*/log ++ echo .tox/code/log ++ awk -F/ '{print $2}' + tox_env=code + cp -r .tox/code/log /w/workspace/ric-app-ad-tox-sonarqube/archives/tox/code + for i in .tox/*/log ++ echo .tox/flake8/log ++ awk -F/ '{print $2}' + tox_env=flake8 + cp -r .tox/flake8/log /w/workspace/ric-app-ad-tox-sonarqube/archives/tox/flake8 + DOC_DIR=docs/_build/html + [[ -d docs/_build/html ]] + echo '---> tox-run.sh ends' ---> tox-run.sh ends + test 0 -eq 0 Unpacking https://repo1.maven.org/maven2/org/sonarsource/scanner/cli/sonar-scanner-cli/4.6.2.2472/sonar-scanner-cli-4.6.2.2472.zip to /w/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarQube_Scanner on prd-ubuntu1804-builder-2c-2g-830 [ric-app-ad-tox-sonarqube] $ /w/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarQube_Scanner/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io/ ******** -Dsonar.projectKey=o-ran-sc_ric-app-ad -Dsonar.projectName=ric-app-ad -Dsonar.login=d9e23c28dc39b6d7531d2ecabf122ce84e6253ef -Dsonar.organization=o-ran-sc -Dsonar.sources=ad -Dsonar.python.coverage.reportPaths=coverage.xml -Dsonar.build.sourceEncoding=UTF-8 -Dsonar.projectBaseDir=/w/workspace/ric-app-ad-tox-sonarqube WARN: Property 'sonar.login' with value 'd9e23c28dc39b6d7531d2ecabf122ce84e6253ef' is overridden with value 'd9e23c28dc39b6d7531d2ecabf122ce84e6253ef' INFO: Scanner configuration file: /w/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarQube_Scanner/conf/sonar-scanner.properties INFO: Project root configuration file: NONE INFO: SonarScanner 4.6.2.2472 INFO: Java 11.0.18 Ubuntu (64-bit) INFO: Linux 5.4.0-146-generic amd64 INFO: User cache: /home/jenkins/.sonar/cache INFO: Scanner configuration file: /w/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarQube_Scanner/conf/sonar-scanner.properties INFO: Project root configuration file: NONE INFO: Analyzing on SonarCloud INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent) INFO: Load global settings INFO: Load global settings (done) | time=598ms INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu INFO: User cache: /home/jenkins/.sonar/cache INFO: Loading required plugins INFO: Load plugins index INFO: Load plugins index (done) | time=537ms INFO: Load/download plugins INFO: Load/download plugins (done) | time=1857ms INFO: Loaded core extensions: developer-scanner INFO: Found an active CI vendor: 'Jenkins' INFO: Load project settings for component key: 'o-ran-sc_ric-app-ad' INFO: Process project properties ERROR: Invalid value of sonar.sources for o-ran-sc_ric-app-ad INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ INFO: Total time: 7.921s INFO: Final Memory: 7M/27M INFO: ------------------------------------------------------------------------ ERROR: Error during SonarScanner execution ERROR: The folder 'ad' does not exist for 'o-ran-sc_ric-app-ad' (base directory = /w/workspace/ric-app-ad-tox-sonarqube) ERROR: ERROR: Re-run SonarScanner using the -X switch to enable full debug logging. WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeed? $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 5652 killed; [ssh-agent] Stopped. ERROR: SonarQube scanner exited with non-zero code: 2 [PostBuildScript] - [INFO] Executing post build scripts. [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins13713500497707264641.sh ---> sysstat.sh [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins10874440343957175929.sh ---> package-listing.sh ++ tr '[:upper:]' '[:lower:]' ++ facter osfamily + OS_FAMILY=debian + workspace=/w/workspace/ric-app-ad-tox-sonarqube + START_PACKAGES=/tmp/packages_start.txt + END_PACKAGES=/tmp/packages_end.txt + DIFF_PACKAGES=/tmp/packages_diff.txt + PACKAGES=/tmp/packages_start.txt + '[' /w/workspace/ric-app-ad-tox-sonarqube ']' + PACKAGES=/tmp/packages_end.txt + case "${OS_FAMILY}" in + dpkg -l + grep '^ii' + '[' -f /tmp/packages_start.txt ']' + '[' -f /tmp/packages_end.txt ']' + diff /tmp/packages_start.txt /tmp/packages_end.txt + true + '[' /w/workspace/ric-app-ad-tox-sonarqube ']' + mkdir -p /w/workspace/ric-app-ad-tox-sonarqube/archives/ + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/ric-app-ad-tox-sonarqube/archives/ [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins2119916562030662301.sh ---> capture-instance-metadata.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-cnBn from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-cnBn/bin to PATH INFO: Running in OpenStack, capturing instance metadata [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins14309707492022550687.sh provisioning config files... copy managed file [jenkins-log-archives-settings] to file:/w/workspace/ric-app-ad-tox-sonarqube@tmp/config11578622670318782385tmp Regular expression run condition: Expression=[^.*logs-s3.*], Label=[] Run condition [Regular expression match] preventing perform for step [Provide Configuration files] [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content SERVER_ID=logs [EnvInject] - Variables injected successfully. [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins16252994301777838295.sh ---> create-netrc.sh [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins8998042306249883375.sh ---> python-tools-install.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-cnBn from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-cnBn/bin to PATH [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins2772446121691382262.sh ---> sudo-logs.sh Archiving 'sudo' log.. [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins12344547471366963515.sh ---> job-cost.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-cnBn from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. lftools 0.37.8 requires openstacksdk<1.5.0, but you have openstacksdk 2.0.0 which is incompatible. lf-activate-venv(): INFO: Adding /tmp/venv-cnBn/bin to PATH INFO: No Stack... INFO: Retrieving Pricing Info for: v2-highcpu-2 INFO: Archiving Costs [ric-app-ad-tox-sonarqube] $ /bin/bash -l /tmp/jenkins10391883666322809950.sh ---> logs-deploy.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-cnBn from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-cnBn/bin to PATH INFO: Nexus URL https://nexus.o-ran-sc.org path production/vex-sjc-oran-jenkins-prod-1/ric-app-ad-tox-sonarqube/154 INFO: archiving workspace using pattern(s): -p **/*.log Archives upload complete. INFO: archiving logs to Nexus ---> uname -a: Linux prd-ubuntu1804-builder-2c-2g-830 5.4.0-146-generic #163-Ubuntu SMP Fri Mar 17 18:26:02 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ---> lscpu: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 40 bits physical, 48 bits virtual CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 2 NUMA node(s): 1 Vendor ID: AuthenticAMD CPU family: 23 Model: 49 Model name: AMD EPYC-Rome Processor Stepping: 0 CPU MHz: 2799.998 BogoMIPS: 5599.99 Virtualization: AMD-V Hypervisor vendor: KVM Virtualization type: full L1d cache: 64 KiB L1i cache: 64 KiB L2 cache: 1 MiB L3 cache: 32 MiB NUMA node0 CPU(s): 0,1 Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Retbleed: Vulnerable Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr wbnoinvd arat npt nrip_save umip rdpid arch_capabilities ---> nproc: 2 ---> df -h: Filesystem Size Used Avail Use% Mounted on udev 975M 0 975M 0% /dev tmpfs 199M 1.0M 198M 1% /run /dev/vda1 20G 9.2G 11G 48% / tmpfs 992M 0 992M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 992M 0 992M 0% /sys/fs/cgroup /dev/loop0 62M 62M 0 100% /snap/core20/1405 /dev/loop1 68M 68M 0 100% /snap/lxd/22753 /dev/loop2 44M 44M 0 100% /snap/snapd/15177 /dev/vda15 105M 6.1M 99M 6% /boot/efi tmpfs 199M 0 199M 0% /run/user/1001 /dev/loop3 41M 41M 0 100% /snap/snapd/20290 /dev/loop4 64M 64M 0 100% /snap/core20/2015 /dev/loop5 92M 92M 0 100% /snap/lxd/24061 ---> free -m: total used free shared buff/cache available Mem: 1983 447 170 2 1365 1341 Swap: 1023 3 1020 ---> ip addr: 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:c3:45:ef brd ff:ff:ff:ff:ff:ff inet 10.32.6.163/23 brd 10.32.7.255 scope global dynamic ens3 valid_lft 86055sec preferred_lft 86055sec inet6 fe80::f816:3eff:fec3:45ef/64 scope link valid_lft forever preferred_lft forever ---> sar -b -r -n DEV: Linux 5.4.0-146-generic (prd-ubuntu1804-builder-2c-2g-830) 11/26/23 _x86_64_ (2 CPU) 00:33:40 LINUX RESTART (2 CPU) 00:34:01 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 00:35:02 206.50 104.65 101.85 0.00 2648.58 12504.10 0.00 00:36:01 128.23 29.16 99.07 0.00 1020.98 21254.84 0.00 00:37:01 24.76 2.12 22.65 0.00 262.36 11755.64 0.00 00:38:01 1.67 0.05 1.62 0.00 1.60 50.12 0.00 00:39:01 114.12 54.32 59.80 0.00 3323.47 13149.07 0.00 Average: 94.95 38.09 56.86 0.00 1452.81 11710.92 0.00 00:34:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 00:35:02 164032 1453468 355008 17.48 54380 1310460 816044 26.50 435272 1242052 91120 00:36:01 76280 1376528 423864 20.87 68836 1288776 948684 30.81 520128 1218296 79200 00:37:01 76544 1285668 509648 25.10 73392 1188708 1128860 36.66 542628 1185804 1004 00:38:01 89480 1160568 630024 31.03 72368 1063456 1309164 42.52 633240 1087488 86516 00:39:01 205244 1465372 310416 15.29 89932 1245144 716472 23.27 415864 1185712 33620 Average: 122316 1348321 445792 21.95 71782 1219309 983845 31.95 509426 1183870 58292 00:34:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 00:35:02 ens3 72.54 65.94 922.01 7.18 0.00 0.00 0.00 0.00 00:35:02 lo 0.93 0.93 0.08 0.08 0.00 0.00 0.00 0.00 00:36:01 ens3 81.70 69.55 1631.39 13.79 0.00 0.00 0.00 0.00 00:36:01 lo 1.36 1.36 0.13 0.13 0.00 0.00 0.00 0.00 00:37:01 ens3 0.38 0.40 0.07 0.09 0.00 0.00 0.00 0.00 00:37:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 00:38:01 ens3 0.27 0.28 0.04 0.05 0.00 0.00 0.00 0.00 00:38:01 lo 3.53 3.53 0.18 0.18 0.00 0.00 0.00 0.00 00:39:01 ens3 431.90 297.07 3016.00 32.64 0.00 0.00 0.00 0.00 00:39:01 lo 1.27 1.27 0.12 0.12 0.00 0.00 0.00 0.00 Average: ens3 117.47 86.70 1112.10 10.74 0.00 0.00 0.00 0.00 Average: lo 1.42 1.42 0.10 0.10 0.00 0.00 0.00 0.00 ---> sar -P ALL: Linux 5.4.0-146-generic (prd-ubuntu1804-builder-2c-2g-830) 11/26/23 _x86_64_ (2 CPU) 00:33:40 LINUX RESTART (2 CPU) 00:34:01 CPU %user %nice %system %iowait %steal %idle 00:35:02 all 36.58 23.28 15.34 7.99 0.09 16.72 00:35:02 0 33.33 25.70 16.41 7.81 0.08 16.66 00:35:02 1 39.83 20.86 14.27 8.17 0.10 16.77 00:36:01 all 34.25 0.00 3.60 9.44 0.08 52.63 00:36:01 0 48.30 0.00 3.99 4.28 0.08 43.34 00:36:01 1 20.33 0.00 3.21 14.55 0.07 61.84 00:37:01 all 49.86 0.00 1.15 0.71 0.07 48.22 00:37:01 0 96.60 0.00 1.28 0.20 0.08 1.83 00:37:01 1 3.51 0.00 1.01 1.21 0.05 94.23 00:38:01 all 47.98 0.00 0.36 0.07 0.07 51.52 00:38:01 0 94.03 0.00 0.40 0.02 0.07 5.48 00:38:01 1 2.41 0.00 0.33 0.12 0.07 97.08 00:39:01 all 39.50 0.00 4.66 6.35 0.07 49.42 00:39:01 0 39.35 0.00 4.47 6.87 0.07 49.24 00:39:01 1 39.65 0.00 4.85 5.84 0.07 49.60 Average: all 41.68 4.63 5.00 4.88 0.07 43.73 Average: 0 62.43 5.12 5.29 3.83 0.08 23.25 Average: 1 21.04 4.15 4.71 5.94 0.07 64.09