Started by upstream project "buildall-stage_2-merge-v10" build number 305 originally caused by: Started by timer > git rev-parse --is-inside-work-tree # timeout=10 Setting origin to https://osm.etsi.org/gerrit/osm/common.git > git config remote.origin.url https://osm.etsi.org/gerrit/osm/common.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git config --get remote.origin.url # timeout=10 > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* Seen branch in repository origin/bug1511 Seen branch in repository origin/feature5837 Seen branch in repository origin/feature7106 Seen branch in repository origin/feature7928 Seen branch in repository origin/master Seen branch in repository origin/netslice Seen branch in repository origin/ng-ro-refactor Seen branch in repository origin/paas Seen branch in repository origin/sol006 Seen branch in repository origin/sol006v331 Seen branch in repository origin/v10.0 Seen branch in repository origin/v11.0 Seen branch in repository origin/v12.0 Seen branch in repository origin/v13.0 Seen branch in repository origin/v14.0 Seen branch in repository origin/v15.0 Seen branch in repository origin/v3.1 Seen branch in repository origin/v4.0 Seen branch in repository origin/v5.0 Seen branch in repository origin/v6.0 Seen branch in repository origin/v7.0 Seen branch in repository origin/v8.0 Seen branch in repository origin/v9.0 Seen 23 remote branches Obtained Jenkinsfile from 7ddcf697a6a19d03211cf78bc653cc3974594b1e Running in Durability level: MAX_SURVIVABILITY [Pipeline] properties [Pipeline] node Running on osm-cicd-2 in /home/jenkins/workspace/common-stage_2-merge_v10.0 [Pipeline] { [Pipeline] checkout No credentials specified > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://osm.etsi.org/gerrit/osm/common.git # timeout=10 Fetching without tags Fetching upstream changes from https://osm.etsi.org/gerrit/osm/common.git > git --version # timeout=10 > git fetch --no-tags --force --progress https://osm.etsi.org/gerrit/osm/common.git +refs/heads/*:refs/remotes/origin/* Checking out Revision 7ddcf697a6a19d03211cf78bc653cc3974594b1e (v10.0) > git config core.sparsecheckout # timeout=10 > git checkout -f 7ddcf697a6a19d03211cf78bc653cc3974594b1e Commit message: "Pinning version of flake8" > git rev-list --no-walk 7ddcf697a6a19d03211cf78bc653cc3974594b1e # timeout=10 [Pipeline] dir Running in /home/jenkins/workspace/common-stage_2-merge_v10.0/devops [Pipeline] { [Pipeline] git No credentials specified > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://osm.etsi.org/gerrit/osm/devops # timeout=10 Fetching upstream changes from https://osm.etsi.org/gerrit/osm/devops > git --version # timeout=10 > git fetch --tags --force --progress https://osm.etsi.org/gerrit/osm/devops +refs/heads/*:refs/remotes/origin/* > git rev-parse refs/remotes/origin/v10.0^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/v10.0^{commit} # timeout=10 Checking out Revision f92f3137aeecbc88d221f44b7e992af1f5e116aa (refs/remotes/origin/v10.0) > git config core.sparsecheckout # timeout=10 > git checkout -f f92f3137aeecbc88d221f44b7e992af1f5e116aa > git branch -a -v --no-abbrev # timeout=10 > git branch -D v10.0 # timeout=10 > git checkout -b v10.0 f92f3137aeecbc88d221f44b7e992af1f5e116aa Commit message: "Changing charmed installer to use 10.0/stable Fixing black error in keystone charm" > git rev-list --no-walk f92f3137aeecbc88d221f44b7e992af1f5e116aa # timeout=10 [Pipeline] } [Pipeline] // dir [Pipeline] load [Pipeline] { (devops/jenkins/ci-pipelines/ci_stage_2.groovy) [Pipeline] } [Pipeline] // load [Pipeline] echo do_stage_3= false [Pipeline] load [Pipeline] { (devops/jenkins/ci-pipelines/ci_helper.groovy) [Pipeline] } [Pipeline] // load [Pipeline] stage [Pipeline] { (Prepare) [common-stage_2-merge_v10.0] Running shell script [Pipeline] sh + env JENKINS_HOME=/var/lib/jenkins SSH_CLIENT=212.234.161.1 51943 22 USER=jenkins RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/common-stage_2-merge/job/v10.0/350/display/redirect?page=changes GERRIT_PROJECT=osm/common XDG_SESSION_TYPE=tty SHLVL=0 NODE_LABELS=docker osm-cicd-2 osm2 pipeline stage_2 HUDSON_URL=https://osm.etsi.org/jenkins/ MOTD_SHOWN=pam OLDPWD=/home/jenkins HOME=/home/jenkins BUILD_URL=https://osm.etsi.org/jenkins/job/common-stage_2-merge/job/v10.0/350/ HUDSON_COOKIE=e849be31-a33c-4b44-a2c2-adf07ae11e50 JENKINS_SERVER_COOKIE=durable-13b3f5a7d83395efbd83863093cf9540 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus GERRIT_PATCHSET_REVISION=7ddcf697a6a19d03211cf78bc653cc3974594b1e WORKSPACE=/home/jenkins/workspace/common-stage_2-merge_v10.0 LOGNAME=jenkins NODE_NAME=osm-cicd-2 GERRIT_BRANCH=v10.0 _=/usr/bin/java RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/common-stage_2-merge/job/v10.0/350/display/redirect?page=artifacts XDG_SESSION_CLASS=user EXECUTOR_NUMBER=0 XDG_SESSION_ID=144 RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/common-stage_2-merge/job/v10.0/350/display/redirect?page=tests BUILD_DISPLAY_NAME=#350 PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit HUDSON_HOME=/var/lib/jenkins JOB_BASE_NAME=v10.0 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin BUILD_ID=350 XDG_RUNTIME_DIR=/run/user/1001 BUILD_TAG=jenkins-common-stage_2-merge-v10.0-350 JENKINS_URL=https://osm.etsi.org/jenkins/ LANG=C.UTF-8 JOB_URL=https://osm.etsi.org/jenkins/job/common-stage_2-merge/job/v10.0/ BUILD_NUMBER=350 SHELL=/bin/bash RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/common-stage_2-merge/job/v10.0/350/display/redirect ARTIFACTORY_SERVER=artifactory-osm GERRIT_REFSPEC=refs/changes/12/13812/1 HUDSON_SERVER_COOKIE=6d3295a483c3e6d5 JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/common-stage_2-merge/job/v10.0/display/redirect JOB_NAME=common-stage_2-merge/v10.0 TEST_INSTALL=false PWD=/home/jenkins/workspace/common-stage_2-merge_v10.0 SSH_CONNECTION=212.234.161.1 51943 172.21.249.2 22 BRANCH_NAME=v10.0 [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Checkout) [common-stage_2-merge_v10.0] Running shell script [Pipeline] sh + git fetch --tags [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + git fetch origin refs/changes/12/13812/1 From https://osm.etsi.org/gerrit/osm/common * branch refs/changes/12/13812/1 -> FETCH_HEAD [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + git checkout -f 7ddcf697a6a19d03211cf78bc653cc3974594b1e HEAD is now at 7ddcf69 Pinning version of flake8 [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + sudo git clean -dfx Removing .cache/ Removing .coverage Removing .local/ Removing .safety/ Removing build.env Removing changelog/ Removing cover/ Removing coverage.xml Removing deb_dist/ Removing dist/ Removing dists/ Removing nosetests.xml Removing osm_common-10.1.5.post3+g7ddcf69.tar.gz Removing osm_common.egg-info/ Removing pool/ [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (License Scan) [Pipeline] echo skip the scan for merge [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Release Note Check) [Pipeline] fileExists [Pipeline] echo No releasenote check present [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker-Build) [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + docker build -t osm/common-v10.0 . Sending build context to Docker daemon 52.35MB Step 1/8 : FROM ubuntu:20.04 ---> f78909c2b360 Step 2/8 : ARG APT_PROXY ---> Using cache ---> ad00a18b3e37 Step 3/8 : RUN if [ ! -z $APT_PROXY ] ; then echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ; echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ; fi ---> Using cache ---> 55e644c707a2 Step 4/8 : RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install debhelper dh-python git python3 python3-all python3-dev python3-setuptools ---> Using cache ---> a0f39ec4f70d Step 5/8 : RUN python3 -m easy_install pip==21.3.1 ---> Using cache ---> f5c9de6befb7 Step 6/8 : RUN pip install tox==3.24.5 ---> Using cache ---> 0a34de9e5230 Step 7/8 : ENV LC_ALL C.UTF-8 ---> Using cache ---> 3acd1eae6382 Step 8/8 : ENV LANG C.UTF-8 ---> Using cache ---> 6c056474d27f Successfully built 6c056474d27f Successfully tagged osm/common-v10.0:latest [Pipeline] } [Pipeline] // stage [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + id -u [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + id -g [Pipeline] withDockerContainer osm-cicd-2 does not seem to be running inside a container $ docker run -t -d -u 1001:1001 -u root -w /home/jenkins/workspace/common-stage_2-merge_v10.0 -v /home/jenkins/workspace/common-stage_2-merge_v10.0:/home/jenkins/workspace/common-stage_2-merge_v10.0:rw,z -v /home/jenkins/workspace/common-stage_2-merge_v10.0@tmp:/home/jenkins/workspace/common-stage_2-merge_v10.0@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat osm/common-v10.0 [Pipeline] { [Pipeline] stage [Pipeline] { (Test) [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + groupadd -o -g 1001 -r jenkins [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + pwd + useradd -o -u 1001 -d /home/jenkins/workspace/common-stage_2-merge_v10.0 -r -g jenkins jenkins [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + echo #! /bin/sh [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + chmod 755 /usr/bin/mesg [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + runuser jenkins -c devops-stages/stage-test.sh ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/flake8/log/flake8-0.log ================================== log start =================================== flake8 create: /tmp/.tox/flake8 flake8 installdeps: flake8==6.0.0, flake8-import-order flake8 develop-inst: /home/jenkins/workspace/common-stage_2-merge_v10.0 flake8 installed: flake8==6.0.0,flake8-import-order==0.18.2,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/common.git@7ddcf697a6a19d03211cf78bc653cc3974594b1e#egg=osm_common,pycodestyle==2.10.0,pyflakes==3.0.1 flake8 run-test-pre: PYTHONHASHSEED='2013249178' flake8 run-test: commands[0] | flake8 osm_common/ setup.py osm_common/dbbase.py:19:1: I100 Import statements are in the wrong order. 'import logging' should be before 'import yaml' and in a different group. import logging ^ osm_common/dbbase.py:19:1: I201 Missing newline between import groups. 'import logging' is identified as Stdlib and 'import yaml' is identified as Third Party. import logging ^ osm_common/dbbase.py:22:1: I100 Import statements are in the wrong order. 'from copy import deepcopy' should be before 'from http import HTTPStatus' from copy import deepcopy ^ osm_common/dbbase.py:23:1: I201 Missing newline between import groups. 'from Crypto.Cipher import AES' is identified as Third Party and 'from copy import deepcopy' is identified as Stdlib. from Crypto.Cipher import AES ^ osm_common/dbbase.py:24:1: I100 Import statements are in the wrong order. 'from base64 import b64decode, b64encode' should be before 'from Crypto.Cipher import AES' and in a different group. from base64 import b64decode, b64encode ^ osm_common/dbbase.py:24:1: I201 Missing newline between import groups. 'from base64 import b64decode, b64encode' is identified as Stdlib and 'from Crypto.Cipher import AES' is identified as Third Party. from base64 import b64decode, b64encode ^ osm_common/dbbase.py:25:1: I201 Missing newline between import groups. 'from osm_common.common_utils import FakeLock' is identified as Third Party and 'from base64 import b64decode, b64encode' is identified as Stdlib. from osm_common.common_utils import FakeLock ^ osm_common/dbbase.py:26:1: I100 Import statements are in the wrong order. 'from threading import Lock' should be before 'from osm_common.common_utils import FakeLock' and in a different group. from threading import Lock ^ osm_common/dbbase.py:26:1: I201 Missing newline between import groups. 'from threading import Lock' is identified as Stdlib and 'from osm_common.common_utils import FakeLock' is identified as Third Party. from threading import Lock ^ osm_common/dbmemory.py:19:1: I101 Imported names are in the wrong order. Should be DbBase, DbException from osm_common.dbbase import DbException, DbBase ^ osm_common/dbmemory.py:19:1: I201 Missing newline between import groups. 'from osm_common.dbbase import DbException, DbBase' is identified as Third Party and 'import logging' is identified as Stdlib. from osm_common.dbbase import DbException, DbBase ^ osm_common/dbmemory.py:21:1: I100 Import statements are in the wrong order. 'from http import HTTPStatus' should be before 'from osm_common.dbmongo import deep_update' and in a different group. from http import HTTPStatus ^ osm_common/dbmemory.py:21:1: I201 Missing newline between import groups. 'from http import HTTPStatus' is identified as Stdlib and 'from osm_common.dbmongo import deep_update' is identified as Third Party. from http import HTTPStatus ^ osm_common/dbmemory.py:23:1: I100 Import statements are in the wrong order. 'from copy import deepcopy' should be before 'from uuid import uuid4' from copy import deepcopy ^ osm_common/dbmongo.py:20:1: I201 Missing newline between import groups. 'from pymongo import MongoClient, errors' is identified as Third Party and 'import logging' is identified as Stdlib. from pymongo import MongoClient, errors ^ osm_common/dbmongo.py:21:1: I101 Imported names are in the wrong order. Should be DbBase, DbException from osm_common.dbbase import DbException, DbBase ^ osm_common/dbmongo.py:21:1: I100 Import statements are in the wrong order. 'from osm_common.dbbase import DbException, DbBase' should be before 'from pymongo import MongoClient, errors' and in a different group. from osm_common.dbbase import DbException, DbBase ^ osm_common/dbmongo.py:21:1: I201 Missing newline between import groups. 'from osm_common.dbbase import DbException, DbBase' is identified as Third Party and 'from pymongo import MongoClient, errors' is identified as Third Party. from osm_common.dbbase import DbException, DbBase ^ osm_common/dbmongo.py:22:1: I100 Import statements are in the wrong order. 'from http import HTTPStatus' should be before 'from osm_common.dbbase import DbException, DbBase' and in a different group. from http import HTTPStatus ^ osm_common/dbmongo.py:22:1: I201 Missing newline between import groups. 'from http import HTTPStatus' is identified as Stdlib and 'from osm_common.dbbase import DbException, DbBase' is identified as Third Party. from http import HTTPStatus ^ osm_common/dbmongo.py:23:1: I101 Imported names are in the wrong order. Should be sleep, time from time import time, sleep ^ osm_common/dbmongo.py:24:1: I100 Import statements are in the wrong order. 'from copy import deepcopy' should be before 'from time import time, sleep' from copy import deepcopy ^ osm_common/dbmongo.py:25:1: I100 Import statements are in the wrong order. 'from base64 import b64decode' should be before 'from copy import deepcopy' from base64 import b64decode ^ osm_common/fsbase.py:21:1: I201 Missing newline between import groups. 'from osm_common.common_utils import FakeLock' is identified as Third Party and 'from http import HTTPStatus' is identified as Stdlib. from osm_common.common_utils import FakeLock ^ osm_common/fsbase.py:22:1: I100 Import statements are in the wrong order. 'from threading import Lock' should be before 'from osm_common.common_utils import FakeLock' and in a different group. from threading import Lock ^ osm_common/fsbase.py:22:1: I201 Missing newline between import groups. 'from threading import Lock' is identified as Stdlib and 'from osm_common.common_utils import FakeLock' is identified as Third Party. from threading import Lock ^ osm_common/fslocal.py:19:1: I100 Import statements are in the wrong order. 'import logging' should be before 'import os' import logging ^ osm_common/fslocal.py:22:1: I202 Additional newline in a group of imports. 'from http import HTTPStatus' is identified as Stdlib and 'import logging' is identified as Stdlib. from http import HTTPStatus ^ osm_common/fslocal.py:24:1: I201 Missing newline between import groups. 'from osm_common.fsbase import FsBase, FsException' is identified as Third Party and 'from shutil import rmtree' is identified as Stdlib. from osm_common.fsbase import FsBase, FsException ^ osm_common/fsmongo.py:22:1: I100 Import statements are in the wrong order. 'import logging' should be before 'from io import BytesIO, StringIO' import logging ^ osm_common/fsmongo.py:24:1: I100 Import statements are in the wrong order. 'import datetime' should be before 'import os' import datetime ^ osm_common/fsmongo.py:27:1: I201 Missing newline between import groups. 'from osm_common.fsbase import FsBase, FsException' is identified as Third Party and 'from gridfs import GridFSBucket, errors' is identified as Third Party. from osm_common.fsbase import FsBase, FsException ^ osm_common/fsmongo.py:28:1: I201 Missing newline between import groups. 'from pymongo import MongoClient' is identified as Third Party and 'from osm_common.fsbase import FsBase, FsException' is identified as Third Party. from pymongo import MongoClient ^ osm_common/msgbase.py:20:1: I201 Missing newline between import groups. 'from osm_common.common_utils import FakeLock' is identified as Third Party and 'from http import HTTPStatus' is identified as Stdlib. from osm_common.common_utils import FakeLock ^ osm_common/msgbase.py:21:1: I100 Import statements are in the wrong order. 'from threading import Lock' should be before 'from osm_common.common_utils import FakeLock' and in a different group. from threading import Lock ^ osm_common/msgbase.py:21:1: I201 Missing newline between import groups. 'from threading import Lock' is identified as Stdlib and 'from osm_common.common_utils import FakeLock' is identified as Third Party. from threading import Lock ^ osm_common/msgkafka.py:17:1: I100 Import statements are in the wrong order. 'import asyncio' should be before 'import logging' import asyncio ^ osm_common/msgkafka.py:18:1: I201 Missing newline between import groups. 'import yaml' is identified as Third Party and 'import asyncio' is identified as Stdlib. import yaml ^ osm_common/msgkafka.py:19:1: I100 Import statements are in the wrong order. 'from aiokafka import AIOKafkaConsumer' should be before 'import yaml' and in a different group. from aiokafka import AIOKafkaConsumer ^ osm_common/msgkafka.py:19:1: I201 Missing newline between import groups. 'from aiokafka import AIOKafkaConsumer' is identified as Third Party and 'import yaml' is identified as Third Party. from aiokafka import AIOKafkaConsumer ^ osm_common/msgkafka.py:22:1: I201 Missing newline between import groups. 'from osm_common.msgbase import MsgBase, MsgException' is identified as Third Party and 'from aiokafka.errors import KafkaError' is identified as Third Party. from osm_common.msgbase import MsgBase, MsgException ^ osm_common/msglocal.py:20:1: I201 Missing newline between import groups. 'import yaml' is identified as Third Party and 'import os' is identified as Stdlib. import yaml ^ osm_common/msglocal.py:21:1: I100 Import statements are in the wrong order. 'import asyncio' should be before 'import yaml' and in a different group. import asyncio ^ osm_common/msglocal.py:21:1: I201 Missing newline between import groups. 'import asyncio' is identified as Stdlib and 'import yaml' is identified as Third Party. import asyncio ^ osm_common/msglocal.py:22:1: I201 Missing newline between import groups. 'from osm_common.msgbase import MsgBase, MsgException' is identified as Third Party and 'import asyncio' is identified as Stdlib. from osm_common.msgbase import MsgBase, MsgException ^ osm_common/msglocal.py:23:1: I100 Import statements are in the wrong order. 'from time import sleep' should be before 'from osm_common.msgbase import MsgBase, MsgException' and in a different group. from time import sleep ^ osm_common/msglocal.py:23:1: I201 Missing newline between import groups. 'from time import sleep' is identified as Stdlib and 'from osm_common.msgbase import MsgBase, MsgException' is identified as Third Party. from time import sleep ^ osm_common/msglocal.py:24:1: I100 Import statements are in the wrong order. 'from http import HTTPStatus' should be before 'from time import sleep' from http import HTTPStatus ^ osm_common/sol004_package.py:59:1: I100 Import statements are in the wrong order. 'import os' should be before 'import yaml' and in a different group. import os ^ osm_common/sol004_package.py:59:1: I201 Missing newline between import groups. 'import os' is identified as Stdlib and 'import yaml' is identified as Third Party. import os ^ osm_common/sol004_package.py:60:1: I100 Import statements are in the wrong order. 'import hashlib' should be before 'import os' import hashlib ^ osm_common/tests/packages/invalid_package_vnf/Scripts/charms/simple/src/charm.py:20:1: I100 Import statements are in the wrong order. 'import subprocess' should be before 'import sys' import subprocess ^ osm_common/tests/packages/native_charm_with_metadata_dir_vnf/Scripts/charms/simple/src/charm.py:20:1: I100 Import statements are in the wrong order. 'import subprocess' should be before 'import sys' import subprocess ^ osm_common/tests/packages/native_charm_without_metadata_dir_vnf/Scripts/charms/simple/src/charm.py:20:1: I100 Import statements are in the wrong order. 'import subprocess' should be before 'import sys' import subprocess ^ osm_common/tests/test_dbbase.py:21:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import http' is identified as Stdlib. import pytest ^ osm_common/tests/test_dbbase.py:22:1: I100 Import statements are in the wrong order. 'import unittest' should be before 'import pytest' and in a different group. import unittest ^ osm_common/tests/test_dbbase.py:22:1: I201 Missing newline between import groups. 'import unittest' is identified as Stdlib and 'import pytest' is identified as Third Party. import unittest ^ osm_common/tests/test_dbbase.py:23:1: I201 Missing newline between import groups. 'from osm_common.dbbase import DbBase, DbException, deep_update' is identified as Third Party and 'import unittest' is identified as Stdlib. from osm_common.dbbase import DbBase, DbException, deep_update ^ osm_common/tests/test_dbbase.py:24:1: I100 Import statements are in the wrong order. 'from os import urandom' should be before 'from osm_common.dbbase import DbBase, DbException, deep_update' and in a different group. from os import urandom ^ osm_common/tests/test_dbbase.py:24:1: I201 Missing newline between import groups. 'from os import urandom' is identified as Stdlib and 'from osm_common.dbbase import DbBase, DbException, deep_update' is identified as Third Party. from os import urandom ^ osm_common/tests/test_dbbase.py:25:1: I100 Import statements are in the wrong order. 'from http import HTTPStatus' should be before 'from os import urandom' from http import HTTPStatus ^ osm_common/tests/test_dbmemory.py:22:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import logging' is identified as Stdlib. import pytest ^ osm_common/tests/test_dbmemory.py:23:1: I100 Import statements are in the wrong order. 'import unittest' should be before 'import pytest' and in a different group. import unittest ^ osm_common/tests/test_dbmemory.py:23:1: I201 Missing newline between import groups. 'import unittest' is identified as Stdlib and 'import pytest' is identified as Third Party. import unittest ^ osm_common/tests/test_dbmemory.py:26:1: I100 Import statements are in the wrong order. 'from unittest.mock import MagicMock' should be before 'from unittest.mock import Mock' from unittest.mock import MagicMock ^ osm_common/tests/test_dbmemory.py:26:1: I202 Additional newline in a group of imports. 'from unittest.mock import MagicMock' is identified as Stdlib and 'from unittest.mock import Mock' is identified as Stdlib. from unittest.mock import MagicMock ^ osm_common/tests/test_dbmemory.py:27:1: I201 Missing newline between import groups. 'from osm_common.dbbase import DbException' is identified as Third Party and 'from unittest.mock import MagicMock' is identified as Stdlib. from osm_common.dbbase import DbException ^ osm_common/tests/test_dbmemory.py:29:1: I100 Import statements are in the wrong order. 'from copy import deepcopy' should be before 'from osm_common.dbmemory import DbMemory' and in a different group. from copy import deepcopy ^ osm_common/tests/test_dbmemory.py:29:1: I201 Missing newline between import groups. 'from copy import deepcopy' is identified as Stdlib and 'from osm_common.dbmemory import DbMemory' is identified as Third Party. from copy import deepcopy ^ osm_common/tests/test_fsbase.py:21:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import http' is identified as Stdlib. import pytest ^ osm_common/tests/test_fsbase.py:23:1: I100 Import statements are in the wrong order. 'from osm_common.fsbase import FsBase, FsException' should be before 'import pytest' and in a different group. from osm_common.fsbase import FsBase, FsException ^ osm_common/tests/test_fslocal.py:22:1: I100 Import statements are in the wrong order. 'import http' should be before 'import logging' import http ^ osm_common/tests/test_fslocal.py:24:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import os' is identified as Stdlib. import pytest ^ osm_common/tests/test_fslocal.py:25:1: I100 Import statements are in the wrong order. 'import tarfile' should be before 'import pytest' and in a different group. import tarfile ^ osm_common/tests/test_fslocal.py:25:1: I201 Missing newline between import groups. 'import tarfile' is identified as Stdlib and 'import pytest' is identified as Third Party. import tarfile ^ osm_common/tests/test_fslocal.py:28:1: I100 Import statements are in the wrong order. 'import shutil' should be before 'import uuid' import shutil ^ osm_common/tests/test_fsmongo.py:20:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import logging' is identified as Stdlib. import pytest ^ osm_common/tests/test_fsmongo.py:21:1: I100 Import statements are in the wrong order. 'import tempfile' should be before 'import pytest' and in a different group. import tempfile ^ osm_common/tests/test_fsmongo.py:21:1: I201 Missing newline between import groups. 'import tempfile' is identified as Stdlib and 'import pytest' is identified as Third Party. import tempfile ^ osm_common/tests/test_fsmongo.py:22:1: I100 Import statements are in the wrong order. 'import tarfile' should be before 'import tempfile' import tarfile ^ osm_common/tests/test_fsmongo.py:23:1: I100 Import statements are in the wrong order. 'import os' should be before 'import tarfile' import os ^ osm_common/tests/test_fsmongo.py:27:1: I100 Import statements are in the wrong order. 'from gridfs import GridFSBucket' should be before 'from pymongo import MongoClient' and in a different group. from gridfs import GridFSBucket ^ osm_common/tests/test_fsmongo.py:27:1: I201 Missing newline between import groups. 'from gridfs import GridFSBucket' is identified as Third Party and 'from pymongo import MongoClient' is identified as Third Party. from gridfs import GridFSBucket ^ osm_common/tests/test_fsmongo.py:29:1: I100 Import statements are in the wrong order. 'from io import BytesIO' should be before 'from gridfs import GridFSBucket' and in a different group. from io import BytesIO ^ osm_common/tests/test_fsmongo.py:31:1: I202 Additional newline in a group of imports. 'from unittest.mock import Mock' is identified as Stdlib and 'from io import BytesIO' is identified as Stdlib. from unittest.mock import Mock ^ osm_common/tests/test_fsmongo.py:35:1: I100 Import statements are in the wrong order. 'from pathlib import Path' should be before 'from osm_common.fsmongo import FsMongo' and in a different group. from pathlib import Path ^ osm_common/tests/test_fsmongo.py:35:1: I201 Missing newline between import groups. 'from pathlib import Path' is identified as Stdlib and 'from osm_common.fsmongo import FsMongo' is identified as Third Party. from pathlib import Path ^ osm_common/tests/test_msgbase.py:21:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import http' is identified as Stdlib. import pytest ^ osm_common/tests/test_msgbase.py:23:1: I100 Import statements are in the wrong order. 'from osm_common.msgbase import MsgBase, MsgException' should be before 'import pytest' and in a different group. from osm_common.msgbase import MsgBase, MsgException ^ osm_common/tests/test_msglocal.py:22:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import logging' is identified as Stdlib. import pytest ^ osm_common/tests/test_msglocal.py:23:1: I100 Import statements are in the wrong order. 'import tempfile' should be before 'import pytest' and in a different group. import tempfile ^ osm_common/tests/test_msglocal.py:23:1: I201 Missing newline between import groups. 'import tempfile' is identified as Stdlib and 'import pytest' is identified as Third Party. import tempfile ^ osm_common/tests/test_msglocal.py:24:1: I100 Import statements are in the wrong order. 'import shutil' should be before 'import tempfile' import shutil ^ osm_common/tests/test_msglocal.py:26:1: I100 Import statements are in the wrong order. 'import os' should be before 'import uuid' import os ^ osm_common/tests/test_msglocal.py:27:1: I201 Missing newline between import groups. 'import yaml' is identified as Third Party and 'import os' is identified as Stdlib. import yaml ^ osm_common/tests/test_msglocal.py:28:1: I100 Import statements are in the wrong order. 'import time' should be before 'import yaml' and in a different group. import time ^ osm_common/tests/test_msglocal.py:28:1: I201 Missing newline between import groups. 'import time' is identified as Stdlib and 'import yaml' is identified as Third Party. import time ^ osm_common/tests/test_msglocal.py:29:1: I100 Import statements are in the wrong order. 'import threading' should be before 'import time' import threading ^ osm_common/tests/test_msglocal.py:31:1: I202 Additional newline in a group of imports. 'from unittest.mock import MagicMock' is identified as Stdlib and 'import threading' is identified as Stdlib. from unittest.mock import MagicMock ^ osm_common/tests/test_msglocal.py:32:1: I201 Missing newline between import groups. 'from osm_common.msgbase import MsgException' is identified as Third Party and 'from unittest.mock import MagicMock' is identified as Stdlib. from osm_common.msgbase import MsgException ^ osm_common/tests/test_sol004_package.py:26:1: I100 Import statements are in the wrong order. 'import unittest' should be before 'from osm_common.sol004_package import SOL004Package, SOL004PackageException' and in a different group. import unittest ^ osm_common/tests/test_sol004_package.py:26:1: I201 Missing newline between import groups. 'import unittest' is identified as Stdlib and 'from osm_common.sol004_package import SOL004Package, SOL004PackageException' is identified as Third Party. import unittest ^ setup.py:21:1: I201 Missing newline between import groups. 'from setuptools import setup' is identified as Third Party and 'import os' is identified as Stdlib. from setuptools import setup ^ ERROR: InvocationError for command /tmp/.tox/flake8/bin/flake8 osm_common/ setup.py (exited with code 1) =================================== log end ==================================== ✖ FAIL flake8 in 14.126 seconds ✔ OK black in 14.939 seconds ✔ OK cover in 35.277 seconds ✔ OK safety in 43.278 seconds ✔ OK pylint in 45.243 seconds ___________________________________ summary ____________________________________ black: commands succeeded cover: commands succeeded ERROR: flake8: parallel child exit code 1 pylint: commands succeeded safety: commands succeeded[Pipeline] fileExists [Pipeline] step [Cobertura] Publishing Cobertura coverage report... [Cobertura] Publishing Cobertura coverage results... [Cobertura] Cobertura coverage report found. [Pipeline] fileExists [Pipeline] junit Recording test results [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + runuser jenkins -c devops-stages/stage-build.sh [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive) [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + runuser jenkins -c mkdir -p changelog [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + runuser jenkins -c devops/tools/generatechangelog-pipeline.sh > changelog/changelog-common.html [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + runuser jenkins -c devops-stages/stage-archive.sh devops-stages/stage-archive.sh: 22: apt-ftparchive: not found [Pipeline] getArtifactoryServer [Pipeline] newBuildInfo [Pipeline] artifactoryUpload [consumer_0] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-common/v10.0/350/dists/unstable/common/binary-amd64/Packages.gz [consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-common/v10.0/350/dists/unstable/common/binary-amd64/Packages [consumer_2] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-common/v10.0/350/pool/common/python3-osm-common_10.1.5.post3%2Bg7ddcf69-1_all.deb [consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-common/v10.0/350/changelog/changelog-common.html [Pipeline] publishBuildInfo Deploying build info to: https://artifactory-osm.etsi.org/artifactory/api/build Deploying build descriptor to: https://artifactory-osm.etsi.org/artifactory/api/build Build successfully deployed. Browse it in Artifactory under https://artifactory-osm.etsi.org/artifactory/webapp/builds/common-stage_2-merge%20::%20v10.0/350 [Pipeline] sh [common-stage_2-merge_v10.0] Running shell script + env [Pipeline] step Archiving artifacts Recording fingerprints [Pipeline] } [Pipeline] // stage [Pipeline] } $ docker stop --time=1 4207307dab99b7d80ec1e058ea9f3754f2d3b8c532c97f1de35f75513cde0cc9 $ docker rm -f 4207307dab99b7d80ec1e058ea9f3754f2d3b8c532c97f1de35f75513cde0cc9 [Pipeline] // withDockerContainer [Pipeline] fileExists [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS