FailedConsole Output

Started by upstream project "NBI-stage_1" build number 2220
originally caused by:
 Triggered by Gerrit: https://osm.etsi.org/gerrit/14388
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://osm.etsi.org/gerrit/osm/NBI.git
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/NBI.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 --force --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/new-pipeline
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 24 remote branches
Obtained Jenkinsfile from 48683b8ca543c63a03c8d594a768d48d4a1a87b9
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm-cicd-3 in /home/jenkins/workspace/NBI-stage_2_master
[Pipeline] {
No credentials specified
[Pipeline] checkout
 > 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/NBI.git # timeout=10
Fetching without tags
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/NBI.git
 > git --version # timeout=10
 > git fetch --no-tags --force --progress https://osm.etsi.org/gerrit/osm/NBI.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 48683b8ca543c63a03c8d594a768d48d4a1a87b9 (master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 48683b8ca543c63a03c8d594a768d48d4a1a87b9
Commit message: "Bug 1830 fixed: maps completed operations to original operation types"
 > git rev-list --no-walk 48683b8ca543c63a03c8d594a768d48d4a1a87b9 # timeout=10
[Pipeline] dir
Running in /home/jenkins/workspace/NBI-stage_2_master/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/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 18582e9176d2d4a07d4628fc0db7c6221613c4f2 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 18582e9176d2d4a07d4628fc0db7c6221613c4f2
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D master # timeout=10
 > git checkout -b master 18582e9176d2d4a07d4628fc0db7c6221613c4f2
Commit message: "Feature 11037 Installation of ingress controller in OSM community installer"
 > git rev-list --no-walk 18582e9176d2d4a07d4628fc0db7c6221613c4f2 # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] load
[Pipeline] { (devops/jenkins/ci-pipelines/ci_stage_2.groovy)
[Pipeline] }
[Pipeline] // load
[Pipeline] echo
do_stage_3= true
[Pipeline] load
[Pipeline] { (devops/jenkins/ci-pipelines/ci_helper.groovy)
[Pipeline] }
[Pipeline] // load
[Pipeline] stage
[Pipeline] { (Prepare)
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
SSH_CLIENT=212.234.161.1 24503 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2/job/master/1747/display/redirect?page=changes
GERRIT_PROJECT=osm/NBI
XDG_SESSION_TYPE=tty
SHLVL=0
NODE_LABELS=osm-cicd-3 osm3 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/NBI-stage_2/job/master/1747/
HUDSON_COOKIE=1b65f1f5-34d4-4042-9d46-da12400a4fe9
JENKINS_SERVER_COOKIE=durable-d8d7305aeac25fa5b36f8c4b2ff99b07
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
GERRIT_PATCHSET_REVISION=7c0dead7f9a4bfe93dadd542f27b0111135bd0ae
WORKSPACE=/home/jenkins/workspace/NBI-stage_2_master
LOGNAME=jenkins
NODE_NAME=osm-cicd-3
GERRIT_BRANCH=master
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2/job/master/1747/display/redirect?page=artifacts
XDG_SESSION_CLASS=user
EXECUTOR_NUMBER=5
XDG_SESSION_ID=3541
RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2/job/master/1747/display/redirect?page=tests
BUILD_DISPLAY_NAME=#1747
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=master
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
BUILD_ID=1747
XDG_RUNTIME_DIR=/run/user/1001
BUILD_TAG=jenkins-NBI-stage_2-master-1747
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=C.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2/job/master/
BUILD_NUMBER=1747
SHELL=/bin/bash
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2/job/master/1747/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/88/14388/1
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2/job/master/display/redirect
JOB_NAME=NBI-stage_2/master
TEST_INSTALL=true
PWD=/home/jenkins/workspace/NBI-stage_2_master
SSH_CONNECTION=212.234.161.1 24503 172.21.249.3 22
BRANCH_NAME=master
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ git fetch --tags
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ git fetch origin refs/changes/88/14388/1
From https://osm.etsi.org/gerrit/osm/NBI
 * branch            refs/changes/88/14388/1 -> FETCH_HEAD
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ git checkout -f 7c0dead7f9a4bfe93dadd542f27b0111135bd0ae
Previous HEAD position was 48683b8 Bug 1830 fixed: maps completed operations to original operation types
HEAD is now at 7c0dead Feature 11038: Enhancement of Vertical Scale Feature and merge in update API
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ sudo git clean -dfx
Removing .cache/
Removing .coverage
Removing .local/
Removing .safety/
Removing .wget-hsts
Removing build.env
Removing changelog/
Removing cover/
Removing coverage.xml
Removing deb_dist/
Removing dist/
Removing nosetests.xml
Removing osm_nbi-9.0.0.post118+gbd08d61.tar.gz
Removing osm_nbi.egg-info/
Removing pool/
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (License Scan)
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ devops/tools/license_scan.sh
osm_nbi/instance_topics.py is text
osm_nbi/instance_topics.py Apache-2.0
osm_nbi/nbi.py is text
osm_nbi/nbi.py Apache-2.0
osm_nbi/validation.py is text
osm_nbi/validation.py Apache-2.0
[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
[NBI-stage_2_master] Running shell script
+ docker build --build-arg APT_PROXY=http://172.21.1.1:3142 -t osm/nbi-master .
Sending build context to Docker daemon  155.8MB

Step 1/7 : FROM ubuntu:22.04
 ---> 52882761a72a
Step 2/7 : ARG APT_PROXY
 ---> Using cache
 ---> d8be122d3e42
Step 3/7 : 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
 ---> 80bcbdac0f70
Step 4/7 : 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         python3-pip         tox
 ---> Using cache
 ---> 48099a4425a1
Step 5/7 : ENV LC_ALL C.UTF-8
 ---> Using cache
 ---> 45d36c1e4798
Step 6/7 : ENV LANG C.UTF-8
 ---> Using cache
 ---> a582202f7242
Step 7/7 : RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget
 ---> Using cache
 ---> 391c0eed410a
Successfully built 391c0eed410a
Successfully tagged osm/nbi-master:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ id -u
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ id -g
[Pipeline] withDockerContainer
osm-cicd-3 does not seem to be running inside a container
$ docker run -t -d -u 1001:1001 -u root -w /home/jenkins/workspace/NBI-stage_2_master -v /home/jenkins/workspace/NBI-stage_2_master:/home/jenkins/workspace/NBI-stage_2_master:rw,z -v /home/jenkins/workspace/NBI-stage_2_master@tmp:/home/jenkins/workspace/NBI-stage_2_master@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/nbi-master
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ groupadd -o -g 1001 -r jenkins
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ pwd
+ useradd -o -u 1001 -d /home/jenkins/workspace/NBI-stage_2_master -r -g jenkins jenkins
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ chmod 755 /usr/bin/mesg
[Pipeline] sh
[NBI-stage_2_master] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
Launching tox
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/black/log/black-0.log
================================== log start ===================================
black create: /tmp/.tox/black
black installdeps: black==23.12.1
black installed: black==23.12.1,click==8.1.7,mypy-extensions==1.0.0,packaging==24.0,pathspec==0.12.1,platformdirs==4.2.2,tomli==2.0.1,typing_extensions==4.12.0
black run-test-pre: PYTHONHASHSEED='1013223439'
black run-test: commands[0] | black --check --diff osm_nbi/
--- /home/jenkins/workspace/NBI-stage_2_master/osm_nbi/validation.py	2024-05-24 09:11:28.499795+00:00
+++ /home/jenkins/workspace/NBI-stage_2_master/osm_nbi/validation.py	2024-05-24 09:11:46.222137+00:00
@@ -491,11 +491,11 @@
                 "vnfdId": id_schema,
                 "vduId": name_schema,
                 "countIndex": integer0_schema,
             },
             "required": ["vnfInstanceId", "vnfdId", "vduId"],
-        }
+        },
     },
     "required": ["updateType"],
     "additionalProperties": False,
 }
 
would reformat /home/jenkins/workspace/NBI-stage_2_master/osm_nbi/validation.py

Oh no! ๐Ÿ’ฅ ๐Ÿ’” ๐Ÿ’ฅ
1 file would be reformatted, 33 files would be left unchanged.
ERROR: InvocationError for command /tmp/.tox/black/bin/black --check --diff osm_nbi/ (exited with code 1)

=================================== log end ====================================
โœ– FAIL black in 7.013 seconds
โœ” OK flake8 in 10.148 seconds
โœ” OK safety in 43.869 seconds
โœ” OK cover in 1 minute, 30.648 seconds
โœ” OK pylint in 1 minute, 51.242 seconds
___________________________________ summary ____________________________________
ERROR:   black: parallel child exit code 1
  cover: commands succeeded
  flake8: commands succeeded
  pylint: commands succeeded
  safety: commands succeeded
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 96db62cd25bab554b9a7bb593b53a5a6d01b5119da52b600bcf06cbfc2fe42be
$ docker rm -f 96db62cd25bab554b9a7bb593b53a5a6d01b5119da52b600bcf06cbfc2fe42be
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE