SuccessConsole Output

[POL-stage_2_paas] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
✔ OK black in 18.423 seconds
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/flake8/log/flake8-0.log
================================== log start ===================================
flake8 create: /tmp/.tox/flake8
flake8 installdeps: flake8
flake8 develop-inst: /home/jenkins/jenkins_slave/workspace/POL-stage_2_paas
flake8 installed: flake8==5.0.4,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/POL.git@9dd0b6f6e5b1896d0bea3ef641ce573dc7f16997#egg=osm_policy_module,pycodestyle==2.9.1,pyflakes==2.5.0
flake8 run-test-pre: PYTHONHASHSEED='2234099838'
flake8 run-test: commands[0] | flake8 osm_policy_module/ setup.py
osm_policy_module/core/agent.py:111:13: W503 line break before binary operator
            or nslcmop["operationState"] == "PARTIALLY_COMPLETED"
            ^
osm_policy_module/core/agent.py:131:13: W503 line break before binary operator
            or nslcmop["operationState"] == "PARTIALLY_COMPLETED"
            ^
osm_policy_module/core/agent.py:152:13: W503 line break before binary operator
            or content["operationState"] == "PARTIALLY_COMPLETED"
            ^
osm_policy_module/core/agent.py:174:13: W503 line break before binary operator
            or content["operationState"] == "PARTIALLY_COMPLETED"
            ^
osm_policy_module/core/agent.py:194:13: W503 line break before binary operator
            or content["operationState"] == "PARTIALLY_COMPLETED"
            ^
osm_policy_module/alarming/service.py:87:41: W503 line break before binary operator
                                        == alarm_descriptor["alarm-id"],
                                        ^
osm_policy_module/alarming/service.py:89:41: W503 line break before binary operator
                                        == vnfr["member-vnf-index-ref"],
                                        ^
osm_policy_module/alarming/service.py:104:41: W503 line break before binary operator
                                        == alarm_descriptor["vnf-monitoring-param-ref"],
                                        ^
osm_policy_module/alarming/service.py:143:41: W503 line break before binary operator
                                        and action_type in alarm_descriptor["actions"]
                                        ^
osm_policy_module/alarming/service.py:255:96: W504 line break after binary operator
                            if ((status != "ok" or (status == "ok" and alarm.ok_ack is False)) and
                                                                                               ^
osm_policy_module/autoscaling/service.py:138:49: W503 line break before binary operator
                                                == scaling_criteria["name"],
                                                ^
osm_policy_module/autoscaling/service.py:140:49: W503 line break before binary operator
                                                == scaling_policy["name"],
                                                ^
osm_policy_module/autoscaling/service.py:171:53: W503 line break before binary operator
                                                    == scaling_aspect["name"]
                                                    ^
ERROR: InvocationError for command /tmp/.tox/flake8/bin/flake8 osm_policy_module/ setup.py (exited with code 1)

=================================== log end ====================================
✖ FAIL flake8 in 21.285 seconds
✔ OK safety in 28.083 seconds
✔ OK cover in 58.032 seconds
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/pylint/log/pylint-0.log
================================== log start ===================================
pylint create: /tmp/.tox/pylint
pylint installdeps: -r/home/jenkins/jenkins_slave/workspace/POL-stage_2_paas/requirements.txt, -r/home/jenkins/jenkins_slave/workspace/POL-stage_2_paas/requirements-dev.txt, -r/home/jenkins/jenkins_slave/workspace/POL-stage_2_paas/requirements-test.txt, pylint
pylint develop-inst: /home/jenkins/jenkins_slave/workspace/POL-stage_2_paas
pylint installed: aiokafka==0.7.2,astroid==2.12.12,cached-property==1.5.2,certifi==2022.6.15,charset-normalizer==2.0.12,click==8.1.3,coverage==6.4.1,dataclasses==0.6,dill==0.3.6,idna==3.3,isort==5.10.1,jsonschema==2.6.0,kafka-python==2.0.2,lazy-object-proxy==1.7.1,mccabe==0.7.0,mock==4.0.3,nose2==0.11.0,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@d3b582a7268d90c072bb7fbe10a25c80851f3c1e,-e git+https://osm.etsi.org/gerrit/osm/POL.git@9dd0b6f6e5b1896d0bea3ef641ce573dc7f16997#egg=osm_policy_module,peewee==3.8.2,peewee-migrate==1.1.6,platformdirs==2.5.2,pycrypto==2.6.1,pylint==2.15.5,pymongo==3.12.3,PyMySQL==0.9.3,PyYAML==5.4.1,requests==2.28.0,six==1.16.0,tomli==2.0.1,tomlkit==0.11.5,typing_extensions==4.4.0,urllib3==1.26.9,wrapt==1.14.1
pylint run-test-pre: PYTHONHASHSEED='769592974'
pylint run-test: commands[0] | pylint -E osm_policy_module
************* Module osm_policy_module.healing.service
osm_policy_module/healing/service.py:149:29: E1133: Non-iterable value HealingActionRepository.list(HealingAction.nsr_id == nsr_id) is used in an iterating context (not-an-iterable)
osm_policy_module/healing/service.py:192:29: E1133: Non-iterable value HealingActionRepository.list(HealingAction.nsr_id == nsr_id) is used in an iterating context (not-an-iterable)
osm_policy_module/healing/service.py:266:33: E1133: Non-iterable value alarms is used in an iterating context (not-an-iterable)
************* Module osm_policy_module.alarming.service
osm_policy_module/alarming/service.py:181:29: E1133: Non-iterable value VnfAlarmRepository.list(VnfAlarm.nsr_id == nsr_id) is used in an iterating context (not-an-iterable)
osm_policy_module/alarming/service.py:217:29: E1133: Non-iterable value VnfAlarmRepository.list(alarm_conditions) is used in an iterating context (not-an-iterable)
osm_policy_module/alarming/service.py:295:39: E0701: Bad except clauses order (RequestException is an ancestor class of ConnectionError) (bad-except-order)
osm_policy_module/alarming/service.py:309:35: E0701: Bad except clauses order (RequestException is an ancestor class of ConnectionError) (bad-except-order)
************* Module osm_policy_module.autoscaling.service
osm_policy_module/autoscaling/service.py:268:41: E1133: Non-iterable value ScalingGroupRepository.list(scale_conditions) is used in an iterating context (not-an-iterable)
osm_policy_module/autoscaling/service.py:302:41: E1133: Non-iterable value ScalingGroupRepository.list(ScalingGroup.nsr_id == nsr_id) is used in an iterating context (not-an-iterable)
osm_policy_module/autoscaling/service.py:385:29: E1133: Non-iterable value alarms is used in an iterating context (not-an-iterable)
ERROR: InvocationError for command /tmp/.tox/pylint/bin/pylint -E osm_policy_module (exited with code 2)

=================================== log end ====================================
✖ FAIL pylint in 1 minute, 13.04 seconds
___________________________________ summary ____________________________________
  black: commands succeeded
  cover: commands succeeded
ERROR:   flake8: parallel child exit code 1
ERROR:   pylint: parallel child exit code 1