11:32:02 Started by timer 11:32:02 Running as SYSTEM 11:32:02 [EnvInject] - Loading node environment variables. 11:32:02 Building remotely on prd-ubuntu1804-builder-2c-2g-3 (ubuntu1804-builder-2c-2g) in workspace /w/workspace/ric-app-ad-tox-sonarqube 11:32:02 [ssh-agent] Looking for ssh-agent implementation... 11:32:03 $ ssh-agent 11:32:03 SSH_AUTH_SOCK=/tmp/ssh-8aEnOm2ARiva/agent.1656 11:32:03 SSH_AGENT_PID=1658 11:32:03 [ssh-agent] Started. 11:32:03 Running ssh-add (command line suppressed) 11:32:03 Identity added: /w/workspace/ric-app-ad-tox-sonarqube@tmp/private_key_14218872136450088211.key (jenkins-ssh) 11:32:03 [ssh-agent] Using credentials jenkins (jenkins) 11:32:03 The recommended git tool is: NONE 11:32:07 using credential jenkins 11:32:07 Wiping out workspace first. 11:32:07 Cloning the remote Git repository 11:32:07 Cloning repository ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-app/ad 11:32:08 > git init /w/workspace/ric-app-ad-tox-sonarqube # timeout=10 11:32:08 Fetching upstream changes from ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-app/ad 11:32:08 > git --version # timeout=10 11:32:08 > git --version # 'git version 2.17.1' 11:32:08 using GIT_SSH to set credentials jenkins 11:32:08 > git fetch --tags --progress -- ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-app/ad +refs/heads/*:refs/remotes/origin/* # timeout=10 11:32:10 > git config remote.origin.url ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-app/ad # timeout=10 11:32:10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 11:32:11 Avoid second fetch 11:32:11 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 11:32:11 Checking out Revision f9f97b8c682d890395e3de5a56450ebb04a5630b (refs/remotes/origin/master) 11:32:11 > git config core.sparsecheckout # timeout=10 11:32:11 > git checkout -f f9f97b8c682d890395e3de5a56450ebb04a5630b # timeout=10 11:32:12 Commit message: "Merge "CI: Add merge workflow that runs SonarCloud scan"" 11:32:12 > git rev-list --no-walk 588acf17f5f14399b2bad62bda8106fef7dac063 # timeout=10 11:32:16 provisioning config files... 11:32:16 copy managed file [npmrc] to file:/home/jenkins/.npmrc 11:32:16 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 11:32:16 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins216668457620913802.sh 11:32:16 ---> python-tools-install.sh 11:32:16 Setup pyenv: 11:32:16 * system (set by /opt/pyenv/version) 11:32:16 * 3.8.13 (set by /opt/pyenv/version) 11:32:17 * 3.9.13 (set by /opt/pyenv/version) 11:32:17 * 3.10.6 (set by /opt/pyenv/version) 11:32:27 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-b1WM 11:32:27 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 11:32:37 lf-activate-venv(): INFO: Installing: lftools 11:33:30 lf-activate-venv(): INFO: Adding /tmp/venv-b1WM/bin to PATH 11:33:30 Generating Requirements File 11:34:18 Python 3.10.6 11:34:18 pip 25.2 from /tmp/venv-b1WM/lib/python3.10/site-packages/pip (python 3.10) 11:34:19 appdirs==1.4.4 11:34:19 argcomplete==3.6.2 11:34:19 aspy.yaml==1.3.0 11:34:19 attrs==25.3.0 11:34:19 autopage==0.5.2 11:34:19 beautifulsoup4==4.13.4 11:34:19 boto3==1.40.1 11:34:19 botocore==1.40.1 11:34:19 bs4==0.0.2 11:34:19 cachetools==5.5.2 11:34:19 certifi==2025.8.3 11:34:19 cffi==1.17.1 11:34:19 cfgv==3.4.0 11:34:19 chardet==5.2.0 11:34:19 charset-normalizer==3.4.2 11:34:19 click==8.2.1 11:34:19 cliff==4.10.0 11:34:19 cmd2==2.7.0 11:34:19 cryptography==3.3.2 11:34:19 debtcollector==3.0.0 11:34:19 decorator==5.2.1 11:34:19 defusedxml==0.7.1 11:34:19 Deprecated==1.2.18 11:34:19 distlib==0.4.0 11:34:19 dnspython==2.7.0 11:34:19 docker==7.1.0 11:34:19 dogpile.cache==1.4.0 11:34:19 durationpy==0.10 11:34:19 email_validator==2.2.0 11:34:19 filelock==3.18.0 11:34:19 future==1.0.0 11:34:19 gitdb==4.0.12 11:34:19 GitPython==3.1.45 11:34:19 google-auth==2.40.3 11:34:19 httplib2==0.22.0 11:34:19 identify==2.6.12 11:34:19 idna==3.10 11:34:19 importlib-resources==1.5.0 11:34:19 iso8601==2.1.0 11:34:19 Jinja2==3.1.6 11:34:19 jmespath==1.0.1 11:34:19 jsonpatch==1.33 11:34:19 jsonpointer==3.0.0 11:34:19 jsonschema==4.25.0 11:34:19 jsonschema-specifications==2025.4.1 11:34:19 keystoneauth1==5.11.1 11:34:19 kubernetes==33.1.0 11:34:19 lftools==0.37.13 11:34:19 lxml==6.0.0 11:34:19 markdown-it-py==3.0.0 11:34:19 MarkupSafe==3.0.2 11:34:19 mdurl==0.1.2 11:34:19 msgpack==1.1.1 11:34:19 multi_key_dict==2.0.3 11:34:19 munch==4.0.0 11:34:19 netaddr==1.3.0 11:34:19 niet==1.4.2 11:34:19 nodeenv==1.9.1 11:34:19 oauth2client==4.1.3 11:34:19 oauthlib==3.3.1 11:34:19 openstacksdk==4.6.0 11:34:19 os-client-config==2.3.0 11:34:19 os-service-types==1.8.0 11:34:19 osc-lib==4.1.0 11:34:19 oslo.config==10.0.0 11:34:19 oslo.context==6.0.0 11:34:19 oslo.i18n==6.5.1 11:34:19 oslo.log==7.2.0 11:34:19 oslo.serialization==5.7.0 11:34:19 oslo.utils==9.0.0 11:34:19 packaging==25.0 11:34:19 pbr==6.1.1 11:34:19 platformdirs==4.3.8 11:34:19 prettytable==3.16.0 11:34:19 psutil==7.0.0 11:34:19 pyasn1==0.6.1 11:34:19 pyasn1_modules==0.4.2 11:34:19 pycparser==2.22 11:34:19 pygerrit2==2.0.15 11:34:19 PyGithub==2.7.0 11:34:19 Pygments==2.19.2 11:34:19 PyJWT==2.10.1 11:34:19 PyNaCl==1.5.0 11:34:19 pyparsing==2.4.7 11:34:19 pyperclip==1.9.0 11:34:19 pyrsistent==0.20.0 11:34:19 python-cinderclient==9.7.0 11:34:19 python-dateutil==2.9.0.post0 11:34:19 python-heatclient==4.3.0 11:34:19 python-jenkins==1.8.2 11:34:19 python-keystoneclient==5.6.0 11:34:19 python-magnumclient==4.8.1 11:34:19 python-openstackclient==8.1.0 11:34:19 python-swiftclient==4.8.0 11:34:19 PyYAML==6.0.2 11:34:19 referencing==0.36.2 11:34:19 requests==2.32.4 11:34:19 requests-oauthlib==2.0.0 11:34:19 requestsexceptions==1.4.0 11:34:19 rfc3986==2.0.0 11:34:19 rich==14.1.0 11:34:19 rich-argparse==1.7.1 11:34:19 rpds-py==0.26.0 11:34:19 rsa==4.9.1 11:34:19 ruamel.yaml==0.18.14 11:34:19 ruamel.yaml.clib==0.2.12 11:34:19 s3transfer==0.13.1 11:34:19 simplejson==3.20.1 11:34:19 six==1.17.0 11:34:19 smmap==5.0.2 11:34:19 soupsieve==2.7 11:34:19 stevedore==5.4.1 11:34:19 tabulate==0.9.0 11:34:19 toml==0.10.2 11:34:19 tomlkit==0.13.3 11:34:19 tqdm==4.67.1 11:34:19 typing_extensions==4.14.1 11:34:19 tzdata==2025.2 11:34:19 urllib3==1.26.20 11:34:19 virtualenv==20.32.0 11:34:19 wcwidth==0.2.13 11:34:19 websocket-client==1.8.0 11:34:19 wrapt==1.17.2 11:34:19 xdg==6.0.0 11:34:19 xmltodict==0.14.2 11:34:19 yq==3.4.3 11:34:19 [EnvInject] - Injecting environment variables from a build step. 11:34:19 [EnvInject] - Injecting as environment variables the properties content 11:34:19 SET_JDK_VERSION=openjdk17 11:34:19 GIT_URL="ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418" 11:34:19 11:34:19 [EnvInject] - Variables injected successfully. 11:34:19 [ric-app-ad-tox-sonarqube] $ /bin/sh /tmp/jenkins5759460979230908440.sh 11:34:19 ---> update-java-alternatives.sh 11:34:19 ---> Updating Java version 11:34:20 ---> Ubuntu/Debian system detected 11:34:20 update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/java to provide /usr/bin/java (java) in manual mode 11:34:20 update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in manual mode 11:34:20 update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64 to provide /usr/lib/jvm/java-openjdk (java_sdk_openjdk) in manual mode 11:34:21 openjdk version "17.0.7" 2023-04-18 11:34:21 OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu118.04) 11:34:21 OpenJDK 64-Bit Server VM (build 17.0.7+7-Ubuntu-0ubuntu118.04, mixed mode, sharing) 11:34:21 JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 11:34:21 [EnvInject] - Injecting environment variables from a build step. 11:34:21 [EnvInject] - Injecting as environment variables the properties file path '/tmp/java.env' 11:34:21 [EnvInject] - Variables injected successfully. 11:34:21 [EnvInject] - Injecting environment variables from a build step. 11:34:21 [EnvInject] - Injecting as environment variables the properties content 11:34:21 PYTHON=python3 11:34:21 11:34:21 [EnvInject] - Variables injected successfully. 11:34:21 [ric-app-ad-tox-sonarqube] $ /bin/bash -l /tmp/jenkins7330926048417501004.sh 11:34:21 ---> tox-install.sh 11:34:21 + source /home/jenkins/lf-env.sh 11:34:21 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 11:34:21 ++ mktemp -d /tmp/venv-XXXX 11:34:21 + lf_venv=/tmp/venv-zfe1 11:34:21 + local venv_file=/tmp/.os_lf_venv 11:34:21 + local python=python3 11:34:21 + local options 11:34:21 + local set_path=true 11:34:21 + local install_args= 11:34:21 ++ 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 11:34:21 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 11:34:21 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 11:34:21 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 11:34:21 + true 11:34:21 + case $1 in 11:34:21 + venv_file=/tmp/.toxenv 11:34:21 + shift 2 11:34:21 + true 11:34:21 + case $1 in 11:34:21 + shift 11:34:21 + break 11:34:21 + case $python in 11:34:21 + local pkg_list= 11:34:21 + [[ -d /opt/pyenv ]] 11:34:21 + echo 'Setup pyenv:' 11:34:21 Setup pyenv: 11:34:21 + export PYENV_ROOT=/opt/pyenv 11:34:21 + PYENV_ROOT=/opt/pyenv 11:34:21 + 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 11:34:21 + 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 11:34:21 + pyenv versions 11:34:21 system 11:34:21 3.8.13 11:34:21 3.9.13 11:34:21 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) 11:34:21 + command -v pyenv 11:34:21 ++ pyenv init - --no-rehash 11:34:21 + 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[*]}"'\'')" 11:34:21 export PATH="/opt/pyenv/shims:${PATH}" 11:34:21 export PYENV_SHELL=bash 11:34:21 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 11:34:21 pyenv() { 11:34:21 local command 11:34:21 command="${1:-}" 11:34:21 if [ "$#" -gt 0 ]; then 11:34:21 shift 11:34:21 fi 11:34:21 11:34:21 case "$command" in 11:34:21 rehash|shell) 11:34:21 eval "$(pyenv "sh-$command" "$@")" 11:34:21 ;; 11:34:21 *) 11:34:21 command pyenv "$command" "$@" 11:34:21 ;; 11:34:21 esac 11:34:21 }' 11:34:21 +++ 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[*]}"' 11:34:21 ++ 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 11:34:21 ++ 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 11:34:21 ++ 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 11:34:21 ++ export PYENV_SHELL=bash 11:34:21 ++ PYENV_SHELL=bash 11:34:21 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 11:34:21 +++ complete -F _pyenv pyenv 11:34:21 ++ lf-pyver python3 11:34:21 ++ local py_version_xy=python3 11:34:21 ++ local py_version_xyz= 11:34:21 ++ awk '{ print $1 }' 11:34:21 ++ pyenv versions 11:34:21 ++ local command 11:34:21 ++ command=versions 11:34:21 ++ '[' 1 -gt 0 ']' 11:34:21 ++ shift 11:34:21 ++ case "$command" in 11:34:21 ++ command pyenv versions 11:34:21 ++ pyenv versions 11:34:21 ++ grep -E '^[0-9.]*[0-9]$' 11:34:21 ++ sed 's/^[ *]* //' 11:34:21 ++ [[ ! -s /tmp/.pyenv_versions ]] 11:34:21 +++ tail -n 1 11:34:21 +++ sort -V 11:34:21 +++ grep '^3' /tmp/.pyenv_versions 11:34:21 ++ py_version_xyz=3.10.6 11:34:21 ++ [[ -z 3.10.6 ]] 11:34:21 ++ echo 3.10.6 11:34:21 ++ return 0 11:34:21 + pyenv local 3.10.6 11:34:21 + local command 11:34:21 + command=local 11:34:21 + '[' 2 -gt 0 ']' 11:34:21 + shift 11:34:21 + case "$command" in 11:34:21 + command pyenv local 3.10.6 11:34:21 + pyenv local 3.10.6 11:34:21 + for arg in "$@" 11:34:21 + case $arg in 11:34:21 + pkg_list+='tox ' 11:34:21 + for arg in "$@" 11:34:21 + case $arg in 11:34:21 + pkg_list+='virtualenv ' 11:34:21 + for arg in "$@" 11:34:21 + case $arg in 11:34:21 + pkg_list+='urllib3~=1.26.15 ' 11:34:21 + [[ -f /tmp/.toxenv ]] 11:34:21 + [[ ! -f /tmp/.toxenv ]] 11:34:21 + [[ -n '' ]] 11:34:21 + python3 -m venv /tmp/venv-zfe1 11:34:29 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-zfe1' 11:34:29 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-zfe1 11:34:29 + echo /tmp/venv-zfe1 11:34:29 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 11:34:29 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 11:34:29 + /tmp/venv-zfe1/bin/python3 -m pip install --upgrade --quiet pip 'setuptools<66' virtualenv 11:34:37 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 11:34:37 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 11:34:37 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 11:34:37 + /tmp/venv-zfe1/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 11:34:43 + type python3 11:34:43 + true 11:34:43 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-zfe1/bin to PATH' 11:34:43 lf-activate-venv(): INFO: Adding /tmp/venv-zfe1/bin to PATH 11:34:43 + PATH=/tmp/venv-zfe1/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 11:34:43 + return 0 11:34:43 + python3 --version 11:34:43 Python 3.10.6 11:34:43 + python3 -m pip --version 11:34:44 pip 25.2 from /tmp/venv-zfe1/lib/python3.10/site-packages/pip (python 3.10) 11:34:44 + python3 -m pip freeze 11:34:44 cachetools==6.1.0 11:34:44 chardet==5.2.0 11:34:44 colorama==0.4.6 11:34:44 distlib==0.4.0 11:34:44 filelock==3.18.0 11:34:44 packaging==25.0 11:34:44 platformdirs==4.3.8 11:34:44 pluggy==1.6.0 11:34:44 pyproject-api==1.9.1 11:34:44 tomli==2.2.1 11:34:44 tox==4.28.4 11:34:44 typing_extensions==4.14.1 11:34:44 urllib3==1.26.20 11:34:44 virtualenv==20.32.0 11:34:44 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins6614378075236684330.sh 11:34:44 ---> install-deb-rmr.sh 11:34:44 + version_file=rmr-version.yaml 11:34:44 + '[' -f rmr-version.yaml ']' 11:34:44 ++ xargs 11:34:44 ++ cut -d: -f2 11:34:44 ++ grep '^repo:' rmr-version.yaml 11:34:44 + repo= 11:34:44 ++ cut -d: -f2 11:34:44 ++ grep '^version:' rmr-version.yaml 11:34:44 ++ xargs 11:34:44 + ver=4.9.0 11:34:44 + '[' -z 4.9.0 ']' 11:34:44 + repo=release 11:34:44 + for deb in "rmr_${ver}_amd64.deb" "rmr-dev_${ver}_amd64.deb" 11:34:44 + wget -nv --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr_4.9.0_amd64.deb/download.deb 11:34:44 2025-08-03 11:34:44 URL:https://d3fo0g5hm7lbuv.cloudfront.net/20756/10598/debian/package_files/4069581.deb?Expires=1754221784&Signature=WL0hqrHHSg95jZYUcL9YVgxj5Y1DKOWWHMEo4tVTaXqI1qEXhE9KkeBDQDHQFaEz9srouz5j8GM0pAPwK9IY3XV~FMOQujBNoHVx4XMQpvv7hSYmDuJE1xG9Pe-g8PBx6-oE-D2JCEWiORvCn4IMEiFm0yQWCLQTVSXER8psBPKklrzDF6MpHrUTJRJJsy7TSNF9w-NcK1LvKtSliTiwYvPyopGJ7ZODdK970e4rL4ahP~zKBRYdYUrQR-67UcxH5ATXUY1mV~vNw8TINNZA752CuLrDyH~COH~AvNPxek3~IJnYgQGI7Y7ukkMOSVDl-lVx0-lLrqXVLbowba0IQg__&Key-Pair-Id=K1ZMSF1EKC3AZL [242746/242746] -> "rmr_4.9.0_amd64.deb" [1] 11:34:44 + sudo dpkg -i rmr_4.9.0_amd64.deb 11:34:45 Selecting previously unselected package rmr. 11:34:47 (Reading database ... 188029 files and directories currently installed.) 11:34:47 Preparing to unpack rmr_4.9.0_amd64.deb ... 11:34:47 Unpacking rmr (4.9.0) ... 11:34:47 Setting up rmr (4.9.0) ... 11:34:47 + rm -f rmr_4.9.0_amd64.deb 11:34:47 + for deb in "rmr_${ver}_amd64.deb" "rmr-dev_${ver}_amd64.deb" 11:34:47 + wget -nv --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr-dev_4.9.0_amd64.deb/download.deb 11:34:47 2025-08-03 11:34:47 URL:https://d3fo0g5hm7lbuv.cloudfront.net/20756/10598/debian/package_files/4069580.deb?Expires=1754221787&Signature=IKsFKpqez56DrA1lmjmhtPotkX32GgLninJMPIMrEt6-BNU5bPEqdTHr2oW9USCfv8JvAAJib3iKGHQPX2tzn57nnCohnIr7teMqxRD4Zl8jCFhb27o1d9aKzJ2jJCx~HQe3YX1vgHQua4tQSUVABsXl4GEdKE7GYEpV7Q69M-xvxpoJWEYotG9dU5S2z2AlyiOK~5m1SOlT2A1ihXQft-JF1qgQVU9P~-O08iwcb~0gClHh3fCIGT7hbsfBIuct1W9TxQebhyEHAW~To7NAaxO6Lf4gv-brfsUooFikwuBjI2F0Kht2rtKW04jktnGz2YMPiBdHQMzU-sT7Jv8FDg__&Key-Pair-Id=K1ZMSF1EKC3AZL [126094/126094] -> "rmr-dev_4.9.0_amd64.deb" [1] 11:34:47 + sudo dpkg -i rmr-dev_4.9.0_amd64.deb 11:34:47 Selecting previously unselected package rmr-dev. 11:34:47 (Reading database ... 188037 files and directories currently installed.) 11:34:47 Preparing to unpack rmr-dev_4.9.0_amd64.deb ... 11:34:47 Unpacking rmr-dev (4.9.0) ... 11:34:47 Setting up rmr-dev (4.9.0) ... 11:34:47 + rm -f rmr-dev_4.9.0_amd64.deb 11:34:47 + echo '---> install-deb-rmr.sh ends' 11:34:47 ---> install-deb-rmr.sh ends 11:34:47 [EnvInject] - Injecting environment variables from a build step. 11:34:47 [EnvInject] - Injecting as environment variables the properties content 11:34:47 PARALLEL=False 11:34:47 11:34:47 [EnvInject] - Variables injected successfully. 11:34:47 [ric-app-ad-tox-sonarqube] $ /bin/bash -l /tmp/jenkins14510308354260703171.sh 11:34:47 ---> tox-run.sh 11:34:47 + PATH=/home/jenkins/.local/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 11:34:47 + ARCHIVE_TOX_DIR=/w/workspace/ric-app-ad-tox-sonarqube/archives/tox 11:34:47 + ARCHIVE_DOC_DIR=/w/workspace/ric-app-ad-tox-sonarqube/archives/docs 11:34:47 + mkdir -p /w/workspace/ric-app-ad-tox-sonarqube/archives/tox 11:34:47 + cd /w/workspace/ric-app-ad-tox-sonarqube/. 11:34:47 + source /home/jenkins/lf-env.sh 11:34:47 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 11:34:47 ++ mktemp -d /tmp/venv-XXXX 11:34:47 + lf_venv=/tmp/venv-m0aw 11:34:47 + local venv_file=/tmp/.os_lf_venv 11:34:47 + local python=python3 11:34:47 + local options 11:34:47 + local set_path=true 11:34:47 + local install_args= 11:34:47 ++ 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 11:34:47 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 11:34:47 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 11:34:47 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 11:34:47 + true 11:34:47 + case $1 in 11:34:47 + venv_file=/tmp/.toxenv 11:34:47 + shift 2 11:34:47 + true 11:34:47 + case $1 in 11:34:47 + shift 11:34:47 + break 11:34:47 + case $python in 11:34:47 + local pkg_list= 11:34:47 + [[ -d /opt/pyenv ]] 11:34:47 + echo 'Setup pyenv:' 11:34:47 Setup pyenv: 11:34:47 + export PYENV_ROOT=/opt/pyenv 11:34:47 + PYENV_ROOT=/opt/pyenv 11:34:47 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/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 11:34:47 + PATH=/opt/pyenv/bin:/home/jenkins/.local/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 11:34:47 + pyenv versions 11:34:47 system 11:34:47 3.8.13 11:34:47 3.9.13 11:34:47 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) 11:34:47 + command -v pyenv 11:34:47 ++ pyenv init - --no-rehash 11:34:47 + 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[*]}"'\'')" 11:34:47 export PATH="/opt/pyenv/shims:${PATH}" 11:34:47 export PYENV_SHELL=bash 11:34:47 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 11:34:47 pyenv() { 11:34:47 local command 11:34:47 command="${1:-}" 11:34:47 if [ "$#" -gt 0 ]; then 11:34:47 shift 11:34:47 fi 11:34:47 11:34:47 case "$command" in 11:34:47 rehash|shell) 11:34:47 eval "$(pyenv "sh-$command" "$@")" 11:34:47 ;; 11:34:47 *) 11:34:47 command pyenv "$command" "$@" 11:34:47 ;; 11:34:47 esac 11:34:47 }' 11:34:47 +++ 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[*]}"' 11:34:48 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/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 11:34:48 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/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 11:34:48 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/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 11:34:48 ++ export PYENV_SHELL=bash 11:34:48 ++ PYENV_SHELL=bash 11:34:48 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 11:34:48 +++ complete -F _pyenv pyenv 11:34:48 ++ lf-pyver python3 11:34:48 ++ local py_version_xy=python3 11:34:48 ++ local py_version_xyz= 11:34:48 ++ sed 's/^[ *]* //' 11:34:48 ++ pyenv versions 11:34:48 ++ local command 11:34:48 ++ command=versions 11:34:48 ++ '[' 1 -gt 0 ']' 11:34:48 ++ shift 11:34:48 ++ case "$command" in 11:34:48 ++ command pyenv versions 11:34:48 ++ pyenv versions 11:34:48 ++ awk '{ print $1 }' 11:34:48 ++ grep -E '^[0-9.]*[0-9]$' 11:34:48 ++ [[ ! -s /tmp/.pyenv_versions ]] 11:34:48 +++ grep '^3' /tmp/.pyenv_versions 11:34:48 +++ sort -V 11:34:48 +++ tail -n 1 11:34:48 ++ py_version_xyz=3.10.6 11:34:48 ++ [[ -z 3.10.6 ]] 11:34:48 ++ echo 3.10.6 11:34:48 ++ return 0 11:34:48 + pyenv local 3.10.6 11:34:48 + local command 11:34:48 + command=local 11:34:48 + '[' 2 -gt 0 ']' 11:34:48 + shift 11:34:48 + case "$command" in 11:34:48 + command pyenv local 3.10.6 11:34:48 + pyenv local 3.10.6 11:34:48 + for arg in "$@" 11:34:48 + case $arg in 11:34:48 + pkg_list+='tox ' 11:34:48 + for arg in "$@" 11:34:48 + case $arg in 11:34:48 + pkg_list+='virtualenv ' 11:34:48 + for arg in "$@" 11:34:48 + case $arg in 11:34:48 + pkg_list+='urllib3~=1.26.15 ' 11:34:48 + [[ -f /tmp/.toxenv ]] 11:34:48 ++ cat /tmp/.toxenv 11:34:48 + lf_venv=/tmp/venv-zfe1 11:34:48 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-zfe1 from' file:/tmp/.toxenv 11:34:48 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-zfe1 from file:/tmp/.toxenv 11:34:48 + /tmp/venv-zfe1/bin/python3 -m pip install --upgrade --quiet pip 'setuptools<66' virtualenv 11:34:50 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 11:34:50 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 11:34:50 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 11:34:50 + /tmp/venv-zfe1/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 11:34:52 + type python3 11:34:52 + true 11:34:52 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-zfe1/bin to PATH' 11:34:52 lf-activate-venv(): INFO: Adding /tmp/venv-zfe1/bin to PATH 11:34:52 + PATH=/tmp/venv-zfe1/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/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 11:34:52 + return 0 11:34:52 + [[ -d /opt/pyenv ]] 11:34:52 + echo '---> Setting up pyenv' 11:34:52 ---> Setting up pyenv 11:34:52 + export PYENV_ROOT=/opt/pyenv 11:34:52 + PYENV_ROOT=/opt/pyenv 11:34:52 + export PATH=/opt/pyenv/bin:/tmp/venv-zfe1/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/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 11:34:52 + PATH=/opt/pyenv/bin:/tmp/venv-zfe1/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/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 11:34:52 ++ pwd 11:34:52 + PYTHONPATH=/w/workspace/ric-app-ad-tox-sonarqube 11:34:52 + export PYTHONPATH 11:34:52 + export TOX_TESTENV_PASSENV=PYTHONPATH 11:34:52 + TOX_TESTENV_PASSENV=PYTHONPATH 11:34:52 + tox --version 11:34:53 4.28.4 from /tmp/venv-zfe1/lib/python3.10/site-packages/tox/__init__.py 11:34:53 + PARALLEL=False 11:34:53 + TOX_OPTIONS_LIST= 11:34:53 + [[ -n code,flake8 ]] 11:34:53 + TOX_OPTIONS_LIST=' -e code,flake8' 11:34:53 + case ${PARALLEL,,} in 11:34:53 + tee -a /w/workspace/ric-app-ad-tox-sonarqube/archives/tox/tox.log 11:34:53 + tox -e code,flake8 11:34:56 code: install_deps> python -I -m pip install coverage pytest pytest-cov 11:35:05 .pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' 11:35:07 .pkg: _optional_hooks> python /tmp/venv-zfe1/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ 11:35:08 .pkg: get_requires_for_build_sdist> python /tmp/venv-zfe1/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ 11:35:08 .pkg: get_requires_for_build_wheel> python /tmp/venv-zfe1/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ 11:35:09 .pkg: freeze> python -m pip freeze --all 11:35:10 .pkg: pip==25.1.1,setuptools==80.9.0 11:35:10 .pkg: prepare_metadata_for_build_wheel> python /tmp/venv-zfe1/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ 11:35:10 .pkg: build_sdist> python /tmp/venv-zfe1/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ 11:35:11 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==3.2.2 'schedule>=0.0.0' 11:36:12 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 11:36:16 code: freeze> python -m pip freeze --all 11:36:17 code: ad==1.0.1,async-timeout==5.0.1,build==1.3.0,certifi==2025.8.3,charset-normalizer==3.4.2,coverage==7.10.1,exceptiongroup==1.3.0,hiredis==2.0.0,idna==3.10,influxdb==5.3.2,iniconfig==2.1.0,inotify==0.2.12,inotify_simple==1.3.5,joblib==1.5.1,mdclogpy==1.1.1,msgpack==1.1.1,numpy==2.2.6,packaging==25.0,pandas==2.3.1,pip==25.1.1,pluggy==1.6.0,protobuf==3.20.3,Pygments==2.19.2,pyproject_hooks==1.2.0,pytest==8.4.1,pytest-cov==6.2.1,python-dateutil==2.9.0.post0,pytz==2025.2,redis==4.3.6,requests==2.32.4,ricsdl==3.1.3,ricxappframe==3.2.2,schedule==1.2.2,scikit-learn==1.7.1,scipy==1.15.3,setuptools==80.9.0,six==1.17.0,threadpoolctl==3.6.0,tomli==2.2.1,typing_extensions==4.14.1,tzdata==2025.2,urllib3==2.5.0 11:36:17 code: commands[0]> pytest -v --cov src --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=50 11:36:19 ============================= test session starts ============================== 11:36:19 platform linux -- Python 3.10.6, pytest-8.4.1, pluggy-1.6.0 -- /w/workspace/ric-app-ad-tox-sonarqube/.tox/code/bin/python 11:36:19 cachedir: .tox/code/.pytest_cache 11:36:19 rootdir: /w/workspace/ric-app-ad-tox-sonarqube 11:36:19 plugins: cov-6.2.1 11:36:19 collecting ... collected 4 items 11:36:21 11:36:21 tests/test_ad.py::test_database_connection PASSED [ 25%] 11:36:21 tests/test_ad.py::test_trainModel FAILED [ 50%] 11:36:22 tests/test_ad.py::test_predict_anomaly FAILED [ 75%] 11:36:22 tests/test_ad.py::test_msg_to_ts PASSED [100%] 11:36:38 11:36:38 =================================== FAILURES =================================== 11:36:38 _______________________________ test_trainModel ________________________________ 11:36:38 11:36:38 monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff9e1421a80> 11:36:38 11:36:38 def test_trainModel(monkeypatch): 11:36:38 > main.train_model() 11:36:38 11:36:38 tests/test_ad.py:28: 11:36:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:36:38 src/main.py:62: in train_model 11:36:38 mt.train() 11:36:38 src/ad_train.py:122: in train 11:36:38 f1, model = self.isoforest() 11:36:38 src/ad_train.py:89: in isoforest 11:36:38 md = model.fit(self.train_data.values) 11:36:38 .tox/code/lib/python3.10/site-packages/sklearn/base.py:1365: in wrapper 11:36:38 return fit_method(estimator, *args, **kwargs) 11:36:38 .tox/code/lib/python3.10/site-packages/sklearn/model_selection/_search.py:1051: in fit 11:36:38 self._run_search(evaluate_candidates) 11:36:38 .tox/code/lib/python3.10/site-packages/sklearn/model_selection/_search.py:1992: in _run_search 11:36:38 evaluate_candidates( 11:36:38 .tox/code/lib/python3.10/site-packages/sklearn/model_selection/_search.py:997: in evaluate_candidates 11:36:38 out = parallel( 11:36:38 .tox/code/lib/python3.10/site-packages/sklearn/utils/parallel.py:82: in __call__ 11:36:38 return super().__call__(iterable_with_config_and_warning_filters) 11:36:38 .tox/code/lib/python3.10/site-packages/joblib/parallel.py:1986: in __call__ 11:36:38 return output if self.return_generator else list(output) 11:36:38 .tox/code/lib/python3.10/site-packages/joblib/parallel.py:1914: in _get_sequential_output 11:36:38 res = func(*args, **kwargs) 11:36:38 .tox/code/lib/python3.10/site-packages/sklearn/utils/parallel.py:147: in __call__ 11:36:38 return self.function(*args, **kwargs) 11:36:38 .tox/code/lib/python3.10/site-packages/sklearn/model_selection/_validation.py:851: in _fit_and_score 11:36:38 X_train, y_train = _safe_split(estimator, X, y, train) 11:36:38 .tox/code/lib/python3.10/site-packages/sklearn/utils/metaestimators.py:156: in _safe_split 11:36:38 X_subset = _safe_indexing(X, indices) 11:36:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:36:38 11:36:38 X = array([[ 3.77292128e-01, 2.86786711e-02, 1.11735082e-04, ..., 11:36:38 -3.75802327e-01, -4.02027834e-03, 1.21858569e...0016081e-02, 7.00032162e-05, ..., 11:36:38 -5.88727048e-01, -2.85562268e-02, 1.17085036e-02]], 11:36:38 shape=(10000, 7)) 11:36:38 indices = array(slice(None, None, None), dtype=object) 11:36:38 11:36:38 def _safe_indexing(X, indices, *, axis=0): 11:36:38 """Return rows, items or columns of X using indices. 11:36:38 11:36:38 .. warning:: 11:36:38 11:36:38 This utility is documented, but **private**. This means that 11:36:38 backward compatibility might be broken without any deprecation 11:36:38 cycle. 11:36:38 11:36:38 Parameters 11:36:38 ---------- 11:36:38 X : array-like, sparse-matrix, list, pandas.DataFrame, pandas.Series 11:36:38 Data from which to sample rows, items or columns. `list` are only 11:36:38 supported when `axis=0`. 11:36:38 indices : bool, int, str, slice, array-like 11:36:38 - If `axis=0`, boolean and integer array-like, integer slice, 11:36:38 and scalar integer are supported. 11:36:38 - If `axis=1`: 11:36:38 - to select a single column, `indices` can be of `int` type for 11:36:38 all `X` types and `str` only for dataframe. The selected subset 11:36:38 will be 1D, unless `X` is a sparse matrix in which case it will 11:36:38 be 2D. 11:36:38 - to select multiples columns, `indices` can be one of the 11:36:38 following: `list`, `array`, `slice`. The type used in 11:36:38 these containers can be one of the following: `int`, 'bool' and 11:36:38 `str`. However, `str` is only supported when `X` is a dataframe. 11:36:38 The selected subset will be 2D. 11:36:38 axis : int, default=0 11:36:38 The axis along which `X` will be subsampled. `axis=0` will select 11:36:38 rows while `axis=1` will select columns. 11:36:38 11:36:38 Returns 11:36:38 ------- 11:36:38 subset 11:36:38 Subset of X on axis 0 or 1. 11:36:38 11:36:38 Notes 11:36:38 ----- 11:36:38 CSR, CSC, and LIL sparse matrices are supported. COO sparse matrices are 11:36:38 not supported. 11:36:38 11:36:38 Examples 11:36:38 -------- 11:36:38 >>> import numpy as np 11:36:38 >>> from sklearn.utils import _safe_indexing 11:36:38 >>> data = np.array([[1, 2], [3, 4], [5, 6]]) 11:36:38 >>> _safe_indexing(data, 0, axis=0) # select the first row 11:36:38 array([1, 2]) 11:36:38 >>> _safe_indexing(data, 0, axis=1) # select the first column 11:36:38 array([1, 3, 5]) 11:36:38 """ 11:36:38 if indices is None: 11:36:38 return X 11:36:38 11:36:38 if axis not in (0, 1): 11:36:38 raise ValueError( 11:36:38 "'axis' should be either 0 (to index rows) or 1 (to index " 11:36:38 " column). Got {} instead.".format(axis) 11:36:38 ) 11:36:38 11:36:38 indices_dtype = _determine_key_type(indices) 11:36:38 11:36:38 if axis == 0 and indices_dtype == "str": 11:36:38 > raise ValueError("String indexing is not supported with 'axis=0'") 11:36:38 E ValueError: String indexing is not supported with 'axis=0' 11:36:38 11:36:38 .tox/code/lib/python3.10/site-packages/sklearn/utils/_indexing.py:305: ValueError 11:36:38 ----------------------------- Captured stdout call ----------------------------- 11:36:38 {"ts": 1754220981388, "crit": "DEBUG", "id": "ad_train", "mdc": {}, "msg": "Training on 10000 Samples"} 11:36:38 {"ts": 1754220981405, "crit": "DEBUG", "id": "ad_train", "mdc": {}, "msg": "Validation on 10000 Samples"} 11:36:38 {"ts": 1754220981406, "crit": "DEBUG", "id": "ad_train", "mdc": {}, "msg": "Training Starts"} 11:36:38 {"ts": 1754220981479, "crit": "INFO", "id": "ad_train", "mdc": {}, "msg": "Training Isolation Forest"} 11:36:38 _____________________________ test_predict_anomaly _____________________________ 11:36:38 11:36:38 monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff9d3439240> 11:36:38 ad_ue = du-id ServingCellId RRU.PrbUsedDl ... x y measTimeStampRf 11:36:38 0 1002 c2/B13 8 ... -882 -959 2021-05-12 07:43:51.652 11:36:38 11:36:38 [1 rows x 12 columns] 11:36:38 11:36:38 def test_predict_anomaly(monkeypatch, ad_ue): 11:36:38 main.load_model() 11:36:38 > main.predict_anomaly(monkeypatch, ad_ue) 11:36:38 11:36:38 tests/test_ad.py:33: 11:36:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:36:38 src/main.py:99: in predict_anomaly 11:36:38 df['Anomaly'] = md.predict(df) 11:36:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:36:38 11:36:38 self = 11:36:38 df = du-id ServingCellId RRU.PrbUsedDl ... x y measTimeStampRf 11:36:38 0 1002 c2/B13 8 ... -882 -959 2021-05-12 07:43:51.652 11:36:38 11:36:38 [1 rows x 12 columns] 11:36:38 11:36:38 def predict(self, df): 11:36:38 """ Load the saved model and return predicted result. 11:36:38 Parameters 11:36:38 ......... 11:36:38 name:str 11:36:38 name of model 11:36:38 11:36:38 Return 11:36:38 ...... 11:36:38 pred:int 11:36:38 predict label on a given sample 11:36:38 11:36:38 """ 11:36:38 self.data = df.loc[:, self.num] 11:36:38 self.transformation() 11:36:38 > pred = self.model.predict(self.data) 11:36:38 E AttributeError: 'modelling' object has no attribute 'model' 11:36:38 11:36:38 src/ad_model.py:78: AttributeError 11:36:38 ----------------------------- Captured stdout call ----------------------------- 11:36:38 {"ts": 1754220982269, "crit": "ERROR", "id": "ad_model", "mdc": {}, "msg": "Model Does not exsist"} 11:36:38 {"ts": 1754220982271, "crit": "INFO", "id": "src.main", "mdc": {}, "msg": "throughput threshold parameter is set as 70% (default)"} 11:36:38 =============================== warnings summary =============================== 11:36:38 tests/test_ad.py::test_trainModel 11:36:38 tests/test_ad.py::test_trainModel 11:36:39 /w/workspace/ric-app-ad-tox-sonarqube/src/processing.py:52: FutureWarning: ChainedAssignmentError: behaviour will change in pandas 3.0! 11:36:39 You are setting values through chained assignment. Currently this works in certain cases, but when using Copy-on-Write (which will become the default behaviour in pandas 3.0) this will never work to update the original DataFrame or Series, because the intermediate object on which we are setting values will behave as a copy. 11:36:39 A typical example is when you are setting values in a column of a DataFrame, like: 11:36:39 11:36:39 df["col"][row_indexer] = value 11:36:39 11:36:39 Use `df.loc[row_indexer, "col"] = values` instead, to perform the assignment in a single step and ensure this keeps updating the original `df`. 11:36:39 11:36:39 See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy 11:36:39 11:36:39 self.data.iloc[:]['DRB.UEThpDl'] = self.data['DRB.UEThpDl'].apply(lambda x: x*1024) 11:36:39 11:36:39 -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 11:36:39 ================================ tests coverage ================================ 11:36:39 _______________ coverage: platform linux, python 3.10.6-final-0 ________________ 11:36:39 11:36:39 Name Stmts Miss Cover Missing 11:36:39 ------------------------------------------------- 11:36:39 src/__init__.py 0 0 100% 11:36:39 src/ad_model.py 67 34 49% 41, 50-51, 57-58, 79-80, 98-115, 119-130 11:36:39 src/ad_train.py 69 22 68% 56-58, 66-68, 90-91, 94-101, 123-129 11:36:39 src/database.py 94 36 62% 64-75, 85-97, 106-110, 113-118, 161, 164 11:36:39 src/exceptions.py 4 4 0% 18-25 11:36:39 src/insert.py 50 50 0% 21-84 11:36:39 src/main.py 116 75 35% 41-46, 70-83, 100-114, 119-130, 139, 146-163, 167-170, 174-177, 181-185, 190-192 11:36:39 src/processing.py 44 0 100% 11:36:39 ------------------------------------------------- 11:36:39 TOTAL 444 221 50% 11:36:39 Coverage HTML written to dir htmlcov 11:36:39 Coverage XML written to file coverage.xml 11:36:39 Required test coverage of 50% reached. Total coverage: 50.23% 11:36:39 =========================== short test summary info ============================ 11:36:39 FAILED tests/test_ad.py::test_trainModel - ValueError: String indexing is not... 11:36:39 FAILED tests/test_ad.py::test_predict_anomaly - AttributeError: 'modelling' o... 11:36:39 =================== 2 failed, 2 passed, 2 warnings in 19.29s =================== 11:36:39 code: exit 1 (22.08 seconds) /w/workspace/ric-app-ad-tox-sonarqube> pytest -v --cov src --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=50 pid=2605 11:36:39 code: FAIL ✖ in 1 minute 45.13 seconds 11:36:39 flake8: install_deps> python -I -m pip install flake8 11:36:43 flake8: freeze> python -m pip freeze --all 11:36:43 flake8: ad==1.0.1,flake8==7.3.0,mccabe==0.7.0,pip==25.1.1,pycodestyle==2.14.0,pyflakes==3.4.0,setuptools==80.9.0 11:36:43 flake8: commands[0]> flake8 setup.py src tests 11:36:44 code: FAIL code 1 (105.13=setup[83.05]+cmd[22.08] seconds) 11:36:44 flake8: OK (4.70=setup[4.15]+cmd[0.55] seconds) 11:36:44 evaluation failed :( (110.29 seconds) 11:36:44 + tox_status=255 11:36:44 + echo '---> Completed tox runs' 11:36:44 ---> Completed tox runs 11:36:44 + for i in .tox/*/log 11:36:44 ++ awk -F/ '{print $2}' 11:36:44 ++ echo .tox/code/log 11:36:44 + tox_env=code 11:36:44 + cp -r .tox/code/log /w/workspace/ric-app-ad-tox-sonarqube/archives/tox/code 11:36:44 + for i in .tox/*/log 11:36:44 ++ echo .tox/flake8/log 11:36:44 ++ awk -F/ '{print $2}' 11:36:44 + tox_env=flake8 11:36:44 + cp -r .tox/flake8/log /w/workspace/ric-app-ad-tox-sonarqube/archives/tox/flake8 11:36:44 + DOC_DIR=docs/_build/html 11:36:44 + [[ -d docs/_build/html ]] 11:36:44 + echo '---> tox-run.sh ends' 11:36:44 ---> tox-run.sh ends 11:36:44 + test 255 -eq 0 11:36:44 + exit 255 11:36:44 ++ '[' 2 = 1 ']' 11:36:44 Build step 'Execute shell' marked build as failure 11:36:44 $ ssh-agent -k 11:36:44 unset SSH_AUTH_SOCK; 11:36:44 unset SSH_AGENT_PID; 11:36:44 echo Agent pid 1658 killed; 11:36:44 [ssh-agent] Stopped. 11:36:44 [PostBuildScript] - [INFO] Executing post build scripts. 11:36:44 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins16136071106327831664.sh 11:36:44 ---> sysstat.sh 11:36:45 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins4004207509681160829.sh 11:36:45 ---> package-listing.sh 11:36:45 ++ tr '[:upper:]' '[:lower:]' 11:36:45 ++ facter osfamily 11:36:46 + OS_FAMILY=debian 11:36:46 + workspace=/w/workspace/ric-app-ad-tox-sonarqube 11:36:46 + START_PACKAGES=/tmp/packages_start.txt 11:36:46 + END_PACKAGES=/tmp/packages_end.txt 11:36:46 + DIFF_PACKAGES=/tmp/packages_diff.txt 11:36:46 + PACKAGES=/tmp/packages_start.txt 11:36:46 + '[' /w/workspace/ric-app-ad-tox-sonarqube ']' 11:36:46 + PACKAGES=/tmp/packages_end.txt 11:36:46 + case "${OS_FAMILY}" in 11:36:46 + dpkg -l 11:36:46 + grep '^ii' 11:36:46 + '[' -f /tmp/packages_start.txt ']' 11:36:46 + '[' -f /tmp/packages_end.txt ']' 11:36:46 + diff /tmp/packages_start.txt /tmp/packages_end.txt 11:36:46 + true 11:36:46 + '[' /w/workspace/ric-app-ad-tox-sonarqube ']' 11:36:46 + mkdir -p /w/workspace/ric-app-ad-tox-sonarqube/archives/ 11:36:46 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/ric-app-ad-tox-sonarqube/archives/ 11:36:46 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins8371341728288623036.sh 11:36:46 ---> capture-instance-metadata.sh 11:36:46 Setup pyenv: 11:36:46 system 11:36:46 3.8.13 11:36:46 3.9.13 11:36:46 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) 11:36:46 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-b1WM from file:/tmp/.os_lf_venv 11:36:50 lf-activate-venv(): INFO: Installing: lftools 11:37:11 lf-activate-venv(): INFO: Adding /tmp/venv-b1WM/bin to PATH 11:37:11 INFO: Running in OpenStack, capturing instance metadata 11:37:12 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins792966606801049828.sh 11:37:12 provisioning config files... 11:37:12 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/ric-app-ad-tox-sonarqube@tmp/config37664530146956327tmp 11:37:12 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[] 11:37:12 Run condition [Regular expression match] preventing perform for step [Provide Configuration files] 11:37:12 [EnvInject] - Injecting environment variables from a build step. 11:37:12 [EnvInject] - Injecting as environment variables the properties content 11:37:12 SERVER_ID=logs 11:37:12 11:37:12 [EnvInject] - Variables injected successfully. 11:37:12 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins11506434097182110079.sh 11:37:12 ---> create-netrc.sh 11:37:12 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins2145174552842352514.sh 11:37:12 ---> python-tools-install.sh 11:37:12 Setup pyenv: 11:37:12 system 11:37:12 3.8.13 11:37:12 3.9.13 11:37:12 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) 11:37:13 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-b1WM from file:/tmp/.os_lf_venv 11:37:16 lf-activate-venv(): INFO: Installing: lftools 11:37:36 lf-activate-venv(): INFO: Adding /tmp/venv-b1WM/bin to PATH 11:37:36 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins3267882709384505971.sh 11:37:36 ---> sudo-logs.sh 11:37:36 Archiving 'sudo' log.. 11:37:37 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins5871907164871042930.sh 11:37:37 ---> job-cost.sh 11:37:37 Setup pyenv: 11:37:37 system 11:37:37 3.8.13 11:37:37 3.9.13 11:37:37 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) 11:37:37 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-b1WM from file:/tmp/.os_lf_venv 11:37:41 lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 11:37:53 lf-activate-venv(): INFO: Adding /tmp/venv-b1WM/bin to PATH 11:37:53 INFO: No Stack... 11:37:53 INFO: Retrieving Pricing Info for: v3-starter-2 11:37:53 INFO: Archiving Costs 11:37:53 [ric-app-ad-tox-sonarqube] $ /bin/bash -l /tmp/jenkins5551399543104672573.sh 11:37:53 ---> logs-deploy.sh 11:37:53 Setup pyenv: 11:37:53 system 11:37:53 3.8.13 11:37:53 3.9.13 11:37:53 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) 11:37:54 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-b1WM from file:/tmp/.os_lf_venv 11:37:58 lf-activate-venv(): INFO: Installing: lftools 11:38:18 lf-activate-venv(): INFO: Adding /tmp/venv-b1WM/bin to PATH 11:38:18 INFO: Nexus URL https://nexus.o-ran-sc.org path production/vex-sjc-oran-jenkins-prod-1/ric-app-ad-tox-sonarqube/242 11:38:18 INFO: archiving workspace using pattern(s): -p **/*.log 11:38:22 Archives upload complete. 11:38:22 INFO: archiving logs to Nexus 11:38:24 ---> uname -a: 11:38:24 Linux prd-ubuntu1804-builder-2c-2g-3 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux 11:38:24 11:38:24 11:38:24 ---> lscpu: 11:38:24 Architecture: x86_64 11:38:24 CPU op-mode(s): 32-bit, 64-bit 11:38:24 Byte Order: Little Endian 11:38:24 CPU(s): 2 11:38:24 On-line CPU(s) list: 0,1 11:38:24 Thread(s) per core: 1 11:38:24 Core(s) per socket: 1 11:38:24 Socket(s): 2 11:38:24 NUMA node(s): 1 11:38:24 Vendor ID: AuthenticAMD 11:38:24 CPU family: 23 11:38:24 Model: 49 11:38:24 Model name: AMD EPYC-Rome Processor 11:38:24 Stepping: 0 11:38:24 CPU MHz: 2800.000 11:38:24 BogoMIPS: 5600.00 11:38:24 Virtualization: AMD-V 11:38:24 Hypervisor vendor: KVM 11:38:24 Virtualization type: full 11:38:24 L1d cache: 32K 11:38:24 L1i cache: 32K 11:38:24 L2 cache: 512K 11:38:24 L3 cache: 16384K 11:38:24 NUMA node0 CPU(s): 0,1 11:38:24 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 xtopology 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 arat npt nrip_save umip rdpid arch_capabilities 11:38:24 11:38:24 11:38:24 ---> nproc: 11:38:24 2 11:38:24 11:38:24 11:38:24 ---> df -h: 11:38:24 Filesystem Size Used Avail Use% Mounted on 11:38:24 udev 2.0G 0 2.0G 0% /dev 11:38:24 tmpfs 395M 668K 394M 1% /run 11:38:24 /dev/vda1 20G 7.7G 12G 41% / 11:38:24 tmpfs 2.0G 0 2.0G 0% /dev/shm 11:38:24 tmpfs 5.0M 0 5.0M 0% /run/lock 11:38:24 tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup 11:38:24 /dev/vda15 105M 5.3M 100M 5% /boot/efi 11:38:24 tmpfs 395M 0 395M 0% /run/user/1001 11:38:24 11:38:24 11:38:24 ---> free -m: 11:38:24 total used free shared buff/cache available 11:38:24 Mem: 3944 341 1013 0 2589 3322 11:38:24 Swap: 1023 0 1023 11:38:24 11:38:24 11:38:24 ---> ip addr: 11:38:24 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 11:38:24 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 11:38:24 inet 127.0.0.1/8 scope host lo 11:38:24 valid_lft forever preferred_lft forever 11:38:24 inet6 ::1/128 scope host 11:38:24 valid_lft forever preferred_lft forever 11:38:24 2: ens3: mtu 1450 qdisc fq_codel state UP group default qlen 1000 11:38:24 link/ether fa:16:3e:cf:f2:7b brd ff:ff:ff:ff:ff:ff 11:38:24 inet 10.32.7.15/23 brd 10.32.7.255 scope global dynamic ens3 11:38:24 valid_lft 85988sec preferred_lft 85988sec 11:38:24 inet6 fe80::f816:3eff:fecf:f27b/64 scope link 11:38:24 valid_lft forever preferred_lft forever 11:38:24 11:38:24 11:38:24 ---> sar -b -r -n DEV: 11:38:24 Linux 4.15.0-213-generic (prd-ubuntu1804-builder-2c-2g-3) 08/03/25 _x86_64_ (2 CPU) 11:38:24 11:38:24 11:31:36 LINUX RESTART (2 CPU) 11:38:24 11:38:24 11:32:01 tps rtps wtps bread/s bwrtn/s 11:38:24 11:33:02 74.10 22.25 51.86 869.06 3693.52 11:38:24 11:34:01 51.77 0.19 51.58 26.83 9157.38 11:38:24 11:35:01 79.04 38.11 40.93 1636.52 6131.47 11:38:24 11:36:01 49.63 11.18 38.44 949.31 10028.46 11:38:24 11:37:01 36.03 1.93 34.10 81.56 12417.39 11:38:24 11:38:01 25.00 0.67 24.33 77.72 2060.19 11:38:24 Average: 52.60 12.42 40.18 608.44 7243.08 11:38:24 11:38:24 11:32:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 11:38:24 11:33:02 1987756 3432596 2051304 50.79 36920 1573988 592392 11.64 480932 1430032 64820 11:38:24 11:34:01 1810152 3438204 2228908 55.18 52288 1731456 578204 11.36 481296 1586612 54364 11:38:24 11:35:01 1586456 3405680 2452604 60.72 64572 1898344 635448 12.49 542896 1723496 67912 11:38:24 11:36:01 941644 3342516 3097416 76.69 77100 2447996 688804 13.54 718628 2152524 325524 11:38:24 11:37:01 1030404 3387672 3008656 74.49 80672 2400128 596072 11.72 601768 2180432 34712 11:38:24 11:38:01 1064884 3426908 2974176 73.64 82276 2403228 563888 11.08 568312 2178936 10312 11:38:24 Average: 1403549 3405596 2635511 65.25 65638 2075857 609135 11.97 565639 1875339 92941 11:38:24 11:38:24 11:32:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 11:38:24 11:33:02 lo 0.73 0.73 0.07 0.07 0.00 0.00 0.00 0.00 11:38:24 11:33:02 ens3 171.20 105.48 1030.89 47.67 0.00 0.00 0.00 0.00 11:38:24 11:34:01 lo 0.54 0.54 0.04 0.04 0.00 0.00 0.00 0.00 11:38:24 11:34:01 ens3 38.88 28.97 542.71 4.13 0.00 0.00 0.00 0.00 11:38:24 11:35:01 lo 1.73 1.73 0.17 0.17 0.00 0.00 0.00 0.00 11:38:24 11:35:01 ens3 18.97 15.19 42.83 4.55 0.00 0.00 0.00 0.00 11:38:24 11:36:01 lo 0.40 0.40 0.03 0.03 0.00 0.00 0.00 0.00 11:38:24 11:36:01 ens3 52.29 34.43 1312.17 3.21 0.00 0.00 0.00 0.00 11:38:24 11:37:01 lo 3.73 3.73 0.20 0.20 0.00 0.00 0.00 0.00 11:38:24 11:37:01 ens3 8.53 7.68 8.66 3.43 0.00 0.00 0.00 0.00 11:38:24 11:38:01 lo 0.93 0.93 0.08 0.08 0.00 0.00 0.00 0.00 11:38:24 11:38:01 ens3 10.46 11.50 9.52 5.25 0.00 0.00 0.00 0.00 11:38:24 Average: lo 1.35 1.35 0.10 0.10 0.00 0.00 0.00 0.00 11:38:24 Average: ens3 50.08 33.89 490.94 11.39 0.00 0.00 0.00 0.00 11:38:24 11:38:24 11:38:24 ---> sar -P ALL: 11:38:24 Linux 4.15.0-213-generic (prd-ubuntu1804-builder-2c-2g-3) 08/03/25 _x86_64_ (2 CPU) 11:38:24 11:38:24 11:31:36 LINUX RESTART (2 CPU) 11:38:24 11:38:24 11:32:01 CPU %user %nice %system %iowait %steal %idle 11:38:24 11:33:02 all 30.78 0.00 2.80 6.16 13.07 47.19 11:38:24 11:33:02 0 24.08 0.00 2.62 8.41 12.24 52.64 11:38:24 11:33:02 1 37.60 0.00 2.96 3.88 13.90 41.67 11:38:24 11:34:01 all 31.99 0.00 2.28 4.52 9.24 51.97 11:38:24 11:34:01 0 37.70 0.00 2.55 7.54 11.11 41.11 11:38:24 11:34:01 1 26.25 0.00 2.01 1.46 7.38 62.90 11:38:24 11:35:01 all 31.09 0.00 2.91 5.81 12.32 47.87 11:38:24 11:35:01 0 31.55 0.00 2.65 4.70 12.61 48.49 11:38:24 11:35:01 1 30.62 0.00 3.17 6.93 12.03 47.25 11:38:24 11:36:01 all 30.49 0.00 2.68 2.93 12.03 51.86 11:38:24 11:36:01 0 19.36 0.00 2.32 3.41 10.26 64.65 11:38:24 11:36:01 1 41.56 0.00 3.05 2.46 13.78 39.15 11:38:24 11:37:01 all 27.54 0.00 1.94 1.80 9.02 59.69 11:38:24 11:37:01 0 21.60 0.00 2.24 3.31 7.93 64.93 11:38:24 11:37:01 1 33.49 0.00 1.62 0.31 10.14 54.45 11:38:24 11:38:01 all 36.52 0.00 2.11 1.88 8.61 50.88 11:38:24 11:38:01 0 14.55 0.00 1.81 2.15 5.59 75.90 11:38:24 11:38:01 1 58.41 0.00 2.42 1.61 11.61 25.95 11:38:24 Average: all 31.39 0.00 2.45 3.86 10.73 51.57 11:38:24 Average: 0 24.80 0.00 2.37 4.93 9.97 57.94 11:38:24 Average: 1 38.00 0.00 2.54 2.78 11.49 45.20 11:38:24 11:38:24 11:38:24