FailedConsole Output

[POL-stage_2-merge_v10.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
✔ OK black in 14.143 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/workspace/POL-stage_2-merge_v10.0
flake8 installed: flake8==6.1.0,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/POL.git@0da53f18e775d99a104ea70ee1657010e779ce0e#egg=osm_policy_module,pycodestyle==2.11.1,pyflakes==3.1.0
flake8 run-test-pre: PYTHONHASHSEED='2528665297'
flake8 run-test: commands[0] | flake8 osm_policy_module/ setup.py
osm_policy_module/alarming/service.py:79:41: W503 line break before binary operator
                                        == alarm_descriptor["alarm-id"],
                                        ^
osm_policy_module/alarming/service.py:81:41: W503 line break before binary operator
                                        == vnfr["member-vnf-index-ref"],
                                        ^
osm_policy_module/alarming/service.py:96:41: W503 line break before binary operator
                                        == alarm_descriptor["vnf-monitoring-param-ref"],
                                        ^
osm_policy_module/alarming/service.py:131:41: W503 line break before binary operator
                                        and action_type in alarm_descriptor["actions"]
                                        ^
osm_policy_module/autoscaling/service.py:130:49: W503 line break before binary operator
                                                == scaling_criteria["name"],
                                                ^
osm_policy_module/autoscaling/service.py:132:49: W503 line break before binary operator
                                                == scaling_policy["name"],
                                                ^
osm_policy_module/autoscaling/service.py:163:53: W503 line break before binary operator
                                                    == scaling_aspect["name"]
                                                    ^
osm_policy_module/core/agent.py:102:13: W503 line break before binary operator
            or nslcmop["operationState"] == "PARTIALLY_COMPLETED"
            ^
osm_policy_module/core/agent.py:121:13: W503 line break before binary operator
            or nslcmop["operationState"] == "PARTIALLY_COMPLETED"
            ^
osm_policy_module/core/agent.py:140:13: W503 line break before binary operator
            or content["operationState"] == "PARTIALLY_COMPLETED"
            ^
ERROR: InvocationError for command /tmp/.tox/flake8/bin/flake8 osm_policy_module/ setup.py (exited with code 1)

=================================== log end ====================================
✖ FAIL flake8 in 17.926 seconds
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/safety/log/safety-0.log
================================== log start ===================================
safety create: /tmp/.tox/safety
safety installdeps: -r/home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt, safety
ERROR: invocation failed (exit code 2), logfile: /tmp/.tox/safety/log/safety-2.log
================================== log start ===================================
Collecting safety
  Downloading safety-2.3.5-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.5/57.5 kB 607.3 kB/s eta 0:00:00
Collecting aiokafka==0.7.2 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 17))
  Downloading aiokafka-0.7.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 8.7 MB/s eta 0:00:00
Collecting cached-property==1.5.2 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 19))
  Downloading cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting certifi==2021.10.8 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 21))
  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.2/149.2 kB 980.7 kB/s eta 0:00:00
Collecting charset-normalizer==2.0.10 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 23))
  Downloading charset_normalizer-2.0.10-py3-none-any.whl (39 kB)
Collecting click==8.0.3 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 25))
  Downloading click-8.0.3-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.5/97.5 kB 250.7 kB/s eta 0:00:00
Collecting idna==3.3 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 27))
  Downloading idna-3.3-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 2.5 MB/s eta 0:00:00
Collecting jsonschema==2.6.0 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 29))
  Downloading jsonschema-2.6.0-py2.py3-none-any.whl (39 kB)
Collecting kafka-python==2.0.2 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 31))
  Downloading kafka_python-2.0.2-py2.py3-none-any.whl (246 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 246.5/246.5 kB 1.0 MB/s eta 0:00:00
Collecting mock==4.0.3 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 33))
  Downloading mock-4.0.3-py3-none-any.whl (28 kB)
Collecting peewee==3.8.2 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 35))
  Downloading peewee-3.8.2.tar.gz (816 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 816.6/816.6 kB 23.1 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting peewee-migrate==1.1.6 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 39))
  Downloading peewee_migrate-1.1.6-py2.py3-none-any.whl (16 kB)
Collecting pymysql==0.9.3 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 41))
  Downloading PyMySQL-0.9.3-py2.py3-none-any.whl (47 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.7/47.7 kB 148.5 kB/s eta 0:00:00
Collecting pyyaml==5.4.1 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 43))
  Downloading PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl (662 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 662.4/662.4 kB 1.9 MB/s eta 0:00:00
Collecting requests==2.27.1 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 45))
  Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.1/63.1 kB 2.1 MB/s eta 0:00:00
Collecting urllib3==1.26.8 (from -r /home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt (line 47))
  Using cached urllib3-1.26.8-py2.py3-none-any.whl (138 kB)
Requirement already satisfied: setuptools>=19.3 in /tmp/.tox/safety/lib/python3.8/site-packages (from safety) (69.0.2)
Collecting packaging<22.0,>=21.0 (from safety)
  Downloading packaging-21.3-py3-none-any.whl (40 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.8/40.8 kB 1.5 MB/s eta 0:00:00
Collecting dparse>=0.6.2 (from safety)
  Downloading dparse-0.6.3-py3-none-any.whl.metadata (7.4 kB)
Collecting ruamel.yaml>=0.17.21 (from safety)
  Downloading ruamel.yaml-0.18.5-py3devops-stages/stage-test.sh: 20: printf: %r: invalid directive
-none-any.whl.metadata (23 kB)
Collecting tomli (from dparse>=0.6.2->safety)
  Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting pyparsing!=3.0.5,>=2.0.2 (from packaging<22.0,>=21.0->safety)
  Downloading pyparsing-3.1.1-py3-none-any.whl.metadata (5.1 kB)
Collecting ruamel.yaml.clib>=0.2.7 (from ruamel.yaml>=0.17.21->safety)
  Downloading ruamel.yaml.clib-0.2.8-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.metadata (2.2 kB)
Downloading dparse-0.6.3-py3-none-any.whl (12 kB)
Downloading ruamel.yaml-0.18.5-py3-none-any.whl (116 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 116.4/116.4 kB 5.3 MB/s eta 0:00:00
Downloading pyparsing-3.1.1-py3-none-any.whl (103 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.1/103.1 kB 4.3 MB/s eta 0:00:00
Downloading ruamel.yaml.clib-0.2.8-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (596 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.0/596.0 kB 14.6 MB/s eta 0:00:00
Building wheels for collected packages: peewee
  Building wheel for peewee (setup.py): started
  Building wheel for peewee (setup.py): finished with status 'done'
  Created wheel for peewee: filename=peewee-3.8.2-cp38-cp38-linux_x86_64.whl size=156201 sha256=339fda1bc7b12efc0c69d7252ba6b2db61936f96f48deb1b382e6c0019ff44f9
  Stored in directory: /home/jenkins/workspace/POL-stage_2-merge_v10.0/.cache/pip/wheels/f0/11/74/d5c4df68a1514aeeae7914a7c2aecba0d3fe36df8c1d272bc5
Successfully built peewee
Installing collected packages: pymysql, peewee, kafka-python, jsonschema, certifi, cached-property, urllib3, tomli, ruamel.yaml.clib, pyyaml, pyparsing, mock, idna, click, charset-normalizer, aiokafka, ruamel.yaml, requests, peewee-migrate, packaging, dparse, safety
ERROR: Exception:
Traceback (most recent call last):
  File "/tmp/.tox/safety/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
  File "/tmp/.tox/safety/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
    return func(self, options, args)
  File "/tmp/.tox/safety/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 452, in run
    installed = install_given_reqs(
  File "/tmp/.tox/safety/lib/python3.8/site-packages/pip/_internal/req/__init__.py", line 72, in install_given_reqs
    requirement.install(
  File "/tmp/.tox/safety/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 847, in install
    install_wheel(
  File "/tmp/.tox/safety/lib/python3.8/site-packages/pip/_internal/operations/install/wheel.py", line 731, in install_wheel
    _install_wheel(
  File "/tmp/.tox/safety/lib/python3.8/site-packages/pip/_internal/operations/install/wheel.py", line 591, in _install_wheel
    file.save()
  File "/tmp/.tox/safety/lib/python3.8/site-packages/pip/_internal/operations/install/wheel.py", line 390, in save
    shutil.copyfileobj(f, dest)
  File "/usr/lib/python3.8/shutil.py", line 205, in copyfileobj
    buf = fsrc_read(length)
  File "/usr/lib/python3.8/zipfile.py", line 940, in read
    data = self._read1(n)
  File "/usr/lib/python3.8/zipfile.py", line 1030, in _read1
    self._update_crc(data)
  File "/usr/lib/python3.8/zipfile.py", line 958, in _update_crc