Pull request #1097 updated Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of hahattan for edgexfoundry/device-sdk-go Obtained Jenkinsfile from 3714193b49de392a6f838df611226b28f75a7efc+ff2bdc244935d5b40da6f20198b29dfc476efd7a (9b993e37631ec299a058f2d2806495aebd3f78c2) Loading library edgex-global-pipelines@stable Attempting to resolve stable from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh10652672092558798268.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision efdbc04638cc485a1a2a98c60e49a0e43cac6f53 Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh12904837826793584794.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision efdbc04638cc485a1a2a98c60e49a0e43cac6f53 The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1097/workspace@libs/edgex-global-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1097/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh2088089890194948320.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision efdbc04638cc485a1a2a98c60e49a0e43cac6f53 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f efdbc04638cc485a1a2a98c60e49a0e43cac6f53 # timeout=10 Commit message: "Merge pull request #376 from ernestojeda/add-ireland-release-stream" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh14757371894083377588.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 9bc0e518fca0494fd51682b06eec2da29a326327 The recommended git tool is: NONE using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1097/workspace@libs/lf-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1097/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh12457802038635900943.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 9bc0e518fca0494fd51682b06eec2da29a326327 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 9bc0e518fca0494fd51682b06eec2da29a326327 # timeout=10 Commit message: "Merge "Fix: Make archiveArtifacts overwriteable in lfJava"" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-sdk-go, dockerImageName:device-sdk-simple, dockerFilePath:example/cmd/device-simple/Dockerfile, pushImage:false, publishSwaggerDocs:true, swaggerApiFolders:[openapi/v2]] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[centos7-docker-4c-2g, ubuntu18.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-sdk-go-settings PROJECT: device-sdk-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.17 USE_ALPINE: true DOCKER_FILE_PATH: example/cmd/device-simple/Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-sdk-simple DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: false BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: true SWAGGER_API_FOLDERS: openapi/v2 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] node Still waiting to schedule task All nodes of label ‘centos7-docker-4c-2g’ are offline Running on prd-centos7-docker-4c-2g-6232 in /w/workspace/gexfoundry_device-sdk-go_PR-1097 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-sdk-go.git > git init /w/workspace/gexfoundry_device-sdk-go_PR-1097 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-go.git > git --version # timeout=10 > git --version # 'git version 2.24.4' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/jenkins-gitclient-ssh4068208079384061180.key > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-sdk-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-go.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/jenkins-gitclient-ssh122907497598797224.key > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-sdk-go.git +refs/pull/1097/head:refs/remotes/origin/PR-1097 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit ff2bdc244935d5b40da6f20198b29dfc476efd7a into PR head commit 3714193b49de392a6f838df611226b28f75a7efc Merge succeeded, producing 3714193b49de392a6f838df611226b28f75a7efc Checking out Revision 3714193b49de392a6f838df611226b28f75a7efc (PR-1097) > git config core.sparsecheckout # timeout=10 > git checkout -f 3714193b49de392a6f838df611226b28f75a7efc # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/jenkins-gitclient-ssh8504950992431764042.key > git merge ff2bdc244935d5b40da6f20198b29dfc476efd7a # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 3714193b49de392a6f838df611226b28f75a7efc # timeout=10 Commit message: "feat: implement ProtocolProperties validation mechanism" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 03:24:21 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 03:24:21 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 03:24:21 ========================================================= 03:24:21 EdgeX Global Pipelines Version Info 03:24:21 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git rev-list --no-walk da94e137d7cee9468dadf98dfd2596d4a5e70a31 # timeout=10 03:24:23 ------------------- 03:24:23 stable info: 03:24:23 ------------------- 03:24:23 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 03:24:23 Commit SHA: efdbc04638cc485a1a2a98c60e49a0e43cac6f53 03:24:23 Message: update stable to v1.0.220 03:24:23 ------------------- 03:24:23 experimental info: 03:24:23 ------------------- 03:24:23 Commited By: **** collab-it+edgex@linuxfoundation.org 03:24:23 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 03:24:23 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-sdk-go-settings [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar PROJECT = device-sdk-go [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = example/cmd/device-simple/Dockerfile [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-sdk-simple [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = false [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 03:24:23 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = true [Pipeline] echo 03:24:24 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v2 [Pipeline] echo 03:24:24 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 03:24:24 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 03:24:24 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 03:24:24 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 03:24:24 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-1097 [Pipeline] echo 03:24:24 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-1097 [Pipeline] echo 03:24:24 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-1097 [Pipeline] echo 03:24:24 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 3714193b49de392a6f838df611226b28f75a7efc [Pipeline] echo 03:24:24 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 3714193 [Pipeline] echo 03:24:24 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:24:24 provisioning config files... 03:24:24 copy managed file [device-sdk-go-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/config5790073107783793276tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:24:24 ---> docker-login.sh 03:24:24 nexus3.edgexfoundry.org:10001 03:24:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:24:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:24:24 Configure a credential helper to remove this warning. See 03:24:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:24:24 03:24:24 Login Succeeded 03:24:24 nexus3.edgexfoundry.org:10002 03:24:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:24:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:24:24 Configure a credential helper to remove this warning. See 03:24:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:24:24 03:24:24 Login Succeeded 03:24:24 nexus3.edgexfoundry.org:10003 03:24:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:24:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:24:25 Configure a credential helper to remove this warning. See 03:24:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:24:25 03:24:25 Login Succeeded 03:24:25 nexus3.edgexfoundry.org:10004 03:24:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:24:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:24:25 Configure a credential helper to remove this warning. See 03:24:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:24:25 03:24:25 Login Succeeded 03:24:25 docker.io 03:24:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:24:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:24:25 Configure a credential helper to remove this warning. See 03:24:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:24:25 03:24:25 Login Succeeded 03:24:25 ---> docker-login.sh ends [Pipeline] } 03:24:25 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 03:24:26 + git rev-list -1 --merges 3714193b49de392a6f838df611226b28f75a7efc~1..3714193b49de392a6f838df611226b28f75a7efc [Pipeline] echo 03:24:26 -----------> git rev-list -1 --merges 3714193b49de392a6f838df611226b28f75a7efc~1..3714193b49de392a6f838df611226b28f75a7efc 3714193b49de392a6f838df611226b28f75a7efc [false] [Pipeline] sh 03:24:26 + git log --format=format:%s -1 3714193b49de392a6f838df611226b28f75a7efc [Pipeline] echo 03:24:26 ========================================================= 03:24:26 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 03:24:26 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 03:24:26 + git log --format=format:%s -1 3714193b49de392a6f838df611226b28f75a7efc [Pipeline] echo 03:24:26 [semverPrep] GIT_COMMIT: 3714193b49de392a6f838df611226b28f75a7efc, Commit Message: feat: implement ProtocolProperties validation mechanism [Pipeline] echo 03:24:26 [semverPrep] This is not a build commit. [Pipeline] sh 03:24:27 + grep 'github.com ecdsa' /etc/ssh/ssh_known_hosts 03:24:27 + grep -v github /etc/ssh/ssh_known_hosts 03:24:27 + '[' -e /tmp/ssh_known_hosts ']' 03:24:27 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 03:24:27 + sudo tee -a /etc/ssh/ssh_known_hosts 03:24:27 + echo 'github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=' 03:24:27 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 03:24:27 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 03:24:27 03:24:27 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 03:24:28 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 03:24:28 latest: Pulling from edgex-devops/git-semver 03:24:28 a0d0a0d46f8b: Pulling fs layer 03:24:28 3e5f54012d9b: Pulling fs layer 03:24:28 4c7163046ea9: Pulling fs layer 03:24:28 0c2d73faf560: Pulling fs layer 03:24:28 0c2d73faf560: Waiting 03:24:28 3e5f54012d9b: Verifying Checksum 03:24:28 3e5f54012d9b: Download complete 03:24:28 a0d0a0d46f8b: Verifying Checksum 03:24:28 a0d0a0d46f8b: Download complete 03:24:28 4c7163046ea9: Verifying Checksum 03:24:28 4c7163046ea9: Download complete 03:24:28 0c2d73faf560: Verifying Checksum 03:24:28 0c2d73faf560: Download complete 03:24:28 a0d0a0d46f8b: Pull complete 03:24:28 3e5f54012d9b: Pull complete 03:24:28 4c7163046ea9: Pull complete 03:24:28 0c2d73faf560: Pull complete 03:24:28 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 03:24:28 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 03:24:28 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 03:24:29 prd-centos7-docker-4c-2g-6232 does not seem to be running inside a container 03:24:28 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-sdk-go_PR-1097 -v /w/workspace/gexfoundry_device-sdk-go_PR-1097:/w/workspace/gexfoundry_device-sdk-go_PR-1097:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1097@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 ******** -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 ******** -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 ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 03:24:29 $ docker top 9ee9c1b1128830d5c5c92eaa1af8e2a787205562461029e63278d1582b10c4da -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 03:24:29 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 03:24:29 [ssh-agent] Looking for ssh-agent implementation... 03:24:30 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 03:24:29 $ docker exec 9ee9c1b1128830d5c5c92eaa1af8e2a787205562461029e63278d1582b10c4da ssh-agent 03:24:30 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXibdfAf/agent.14 03:24:30 SSH_AGENT_PID=20 03:24:30 Running ssh-add (command line suppressed) 03:24:30 Identity added: /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/private_key_122063944416747108.key (/w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/private_key_122063944416747108.key) 03:24:30 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 03:24:30 + git tag --points-at HEAD [Pipeline] } 03:24:30 $ docker exec --env ******** --env ******** 9ee9c1b1128830d5c5c92eaa1af8e2a787205562461029e63278d1582b10c4da ssh-agent -k 03:24:30 unset SSH_AUTH_SOCK; 03:24:30 unset SSH_AGENT_PID; 03:24:30 echo Agent pid 20 killed; 03:24:30 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 03:24:30 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 03:24:30 [ssh-agent] Looking for ssh-agent implementation... 03:24:30 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 03:24:30 $ docker exec 9ee9c1b1128830d5c5c92eaa1af8e2a787205562461029e63278d1582b10c4da ssh-agent 03:24:30 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXLBhKbD/agent.53 03:24:30 SSH_AGENT_PID=60 03:24:30 Running ssh-add (command line suppressed) 03:24:31 Identity added: /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/private_key_6634116939326598370.key (/w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/private_key_6634116939326598370.key) 03:24:31 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 03:24:31 + git semver init 03:24:31 # -> Open(): unable to determine branch for HEAD 03:24:31 # $GIT_DIR = /w/workspace/gexfoundry_device-sdk-go_PR-1097/.git 03:24:31 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-sdk-go_PR-1097 03:24:31 # $SEMVER_REMOTE_NAME = origin 03:24:31 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 03:24:31 # $SEMVER_USER_NAME = edgex-jenkins 03:24:31 # $SEMVER_BRANCH = PR-1097 03:24:31 # $SEMVER_TEMP = /tmp/semver-353029516 03:24:31 # git clone --branch semver git@github.com:edgexfoundry/device-sdk-go.git $SEMVER_TEMP 03:24:32 # '/tmp/semver-353029516' -> '/w/workspace/gexfoundry_device-sdk-go_PR-1097/.semver' 03:24:32 # -> Force: false 03:24:32 # $SEMVER_DIR = /w/workspace/gexfoundry_device-sdk-go_PR-1097/.semver [Pipeline] } 03:24:32 $ docker exec --env ******** --env ******** 9ee9c1b1128830d5c5c92eaa1af8e2a787205562461029e63278d1582b10c4da ssh-agent -k 03:24:32 unset SSH_AUTH_SOCK; 03:24:32 unset SSH_AGENT_PID; 03:24:32 echo Agent pid 60 killed; 03:24:32 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 03:24:32 + git semver [Pipeline] } 03:24:32 $ docker stop --time=1 9ee9c1b1128830d5c5c92eaa1af8e2a787205562461029e63278d1582b10c4da 03:24:34 $ docker rm -f 9ee9c1b1128830d5c5c92eaa1af8e2a787205562461029e63278d1582b10c4da [Pipeline] // withDockerContainer [Pipeline] sh 03:24:34 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 03:24:34 Stashed 1 file(s) [Pipeline] echo 03:24:34 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:24:34 provisioning config files... 03:24:34 copy managed file [device-sdk-go-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/config5671826195503646844tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:24:35 ---> docker-login.sh 03:24:35 nexus3.edgexfoundry.org:10001 03:24:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:24:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:24:35 Configure a credential helper to remove this warning. See 03:24:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:24:35 03:24:35 Login Succeeded 03:24:35 nexus3.edgexfoundry.org:10002 03:24:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:24:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:24:35 Configure a credential helper to remove this warning. See 03:24:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:24:35 03:24:35 Login Succeeded 03:24:35 nexus3.edgexfoundry.org:10003 03:24:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:24:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:24:35 Configure a credential helper to remove this warning. See 03:24:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:24:35 03:24:35 Login Succeeded 03:24:35 nexus3.edgexfoundry.org:10004 03:24:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:24:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:24:35 Configure a credential helper to remove this warning. See 03:24:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:24:35 03:24:35 Login Succeeded 03:24:35 docker.io 03:24:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:24:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:24:35 Configure a credential helper to remove this warning. See 03:24:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:24:35 03:24:35 Login Succeeded 03:24:35 ---> docker-login.sh ends [Pipeline] } 03:24:35 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 03:24:36 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 03:24:36 ========================================================= 03:24:36 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 03:24:36 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 03:24:36 + docker build -t ci-base-image-x86_64 -f example/cmd/device-simple/Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg 'MAKE=echo noop' --target=builder . 03:24:36 Sending build context to Docker daemon 9.548MB 03:24:36 Step 1/11 : ARG BASE=golang:1.17-alpine3.15 03:24:36 Step 2/11 : FROM ${BASE} AS builder 03:24:36 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 03:24:36 59bf1c3509f3: Pulling fs layer 03:24:36 666ba61612fd: Pulling fs layer 03:24:36 8ed8ca486205: Pulling fs layer 03:24:36 4fe6c5a15a65: Pulling fs layer 03:24:36 22a0e8bec74d: Pulling fs layer 03:24:36 640e595b4fbd: Pulling fs layer 03:24:36 763cafe07f6e: Pulling fs layer 03:24:36 0c0b528cf693: Pulling fs layer 03:24:36 10935f4eaf8b: Pulling fs layer 03:24:36 4fe6c5a15a65: Waiting 03:24:36 22a0e8bec74d: Waiting 03:24:36 640e595b4fbd: Waiting 03:24:36 763cafe07f6e: Waiting 03:24:36 0c0b528cf693: Waiting 03:24:36 10935f4eaf8b: Waiting 03:24:36 8ed8ca486205: Verifying Checksum 03:24:36 8ed8ca486205: Download complete 03:24:36 666ba61612fd: Verifying Checksum 03:24:36 666ba61612fd: Download complete 03:24:36 22a0e8bec74d: Verifying Checksum 03:24:36 22a0e8bec74d: Download complete 03:24:36 640e595b4fbd: Verifying Checksum 03:24:36 640e595b4fbd: Download complete 03:24:36 763cafe07f6e: Verifying Checksum 03:24:36 763cafe07f6e: Download complete 03:24:36 59bf1c3509f3: Verifying Checksum 03:24:36 59bf1c3509f3: Download complete 03:24:36 0c0b528cf693: Verifying Checksum 03:24:36 0c0b528cf693: Download complete 03:24:36 59bf1c3509f3: Pull complete 03:24:37 666ba61612fd: Pull complete 03:24:37 8ed8ca486205: Pull complete 03:24:37 4fe6c5a15a65: Verifying Checksum 03:24:37 4fe6c5a15a65: Download complete 03:24:37 10935f4eaf8b: Verifying Checksum 03:24:37 10935f4eaf8b: Download complete 03:24:41 4fe6c5a15a65: Pull complete 03:24:41 22a0e8bec74d: Pull complete 03:24:41 640e595b4fbd: Pull complete 03:24:41 763cafe07f6e: Pull complete 03:24:41 0c0b528cf693: Pull complete 03:24:44 10935f4eaf8b: Pull complete 03:24:44 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 03:24:44 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 03:24:44 ---> 99d49a6021b9 03:24:44 Step 3/11 : ARG MAKE=make build 03:24:46 ---> Running in 691bb3a20a9f 03:24:46 Removing intermediate container 691bb3a20a9f 03:24:46 ---> e65f186cd5ad 03:24:46 Step 4/11 : WORKDIR /device-sdk-go 03:24:46 ---> Running in 363dbeb2799e 03:24:46 Removing intermediate container 363dbeb2799e 03:24:46 ---> 4ea8b94a35f8 03:24:46 Step 5/11 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 03:24:46 ---> Running in 053a4168e741 03:24:46 Removing intermediate container 053a4168e741 03:24:46 ---> c762e91c1878 03:24:46 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:24:46 ---> Running in eb0591fce11c 03:24:47 Removing intermediate container eb0591fce11c 03:24:47 ---> 23ecd2b05e31 03:24:47 Step 7/11 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 03:24:47 ---> Running in d7de4db83352 03:24:47 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 03:24:48 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 03:24:48 OK: 221 MiB in 52 packages 03:24:48 Removing intermediate container d7de4db83352 03:24:48 ---> b1b2e957b518 03:24:48 Step 8/11 : COPY go.mod vendor* ./ 03:24:48 ---> fb083de88d62 03:24:48 Step 9/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:24:49 ---> Running in d9e2777c86fa 03:24:49 Still waiting to schedule task 03:24:49 All nodes of label ‘ubuntu18.04-docker-arm64-4c-16g’ are offline 03:25:28 Removing intermediate container d9e2777c86fa 03:25:28 ---> ec3a1baafff7 03:25:28 Step 10/11 : COPY . . 03:25:28 ---> acb5b9108092 03:25:28 Step 11/11 : RUN ${MAKE} 03:25:28 ---> Running in a3b59b6c6f1f 03:25:28 noop 03:25:28 Removing intermediate container a3b59b6c6f1f 03:25:28 ---> 4170b44ca286 03:25:28 Successfully built 4170b44ca286 03:25:28 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 03:25:28 + docker inspect -f . ci-base-image-x86_64 03:25:28 . [Pipeline] withDockerContainer 03:25:28 prd-centos7-docker-4c-2g-6232 does not seem to be running inside a container 03:25:28 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-sdk-go_PR-1097 -v /w/workspace/gexfoundry_device-sdk-go_PR-1097:/w/workspace/gexfoundry_device-sdk-go_PR-1097:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1097@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 ******** -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 ******** -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 ******** ci-base-image-x86_64 cat 03:25:28 $ docker top 055f9b6c8b564d21ef0aec5b09b69828674820c256a85d302126cac79fcf5101 -eo pid,comm [Pipeline] { [Pipeline] sh 03:25:29 + go version 03:25:29 go version go1.17.6 linux/amd64 [Pipeline] } 03:25:29 $ docker stop --time=1 055f9b6c8b564d21ef0aec5b09b69828674820c256a85d302126cac79fcf5101 03:25:30 $ docker rm -f 055f9b6c8b564d21ef0aec5b09b69828674820c256a85d302126cac79fcf5101 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 03:25:30 + docker inspect -f . ci-base-image-x86_64 03:25:30 . [Pipeline] withDockerContainer 03:25:30 prd-centos7-docker-4c-2g-6232 does not seem to be running inside a container 03:25:30 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-sdk-go_PR-1097 -v /w/workspace/gexfoundry_device-sdk-go_PR-1097:/w/workspace/gexfoundry_device-sdk-go_PR-1097:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1097@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 ******** -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 ******** -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 ******** ci-base-image-x86_64 cat 03:25:31 $ docker top 1708daa76ee4d4f4b04b9b006130d4fb129c1a0e9e83de20aa34693ba802546a -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 03:25:31 + make test 03:25:31 GO111MODULE=on go test -coverprofile=coverage.out ./... 03:25:31 ? github.com/edgexfoundry/device-sdk-go/v2 [no test files] 03:25:46 ? github.com/edgexfoundry/device-sdk-go/v2/example/cmd/device-simple [no test files] 03:25:46 ? github.com/edgexfoundry/device-sdk-go/v2/example/config [no test files] 03:25:46 ? github.com/edgexfoundry/device-sdk-go/v2/example/driver [no test files] 03:25:47 ok github.com/edgexfoundry/device-sdk-go/v2/internal/application 0.033s coverage: 23.3% of statements 03:25:47 ? github.com/edgexfoundry/device-sdk-go/v2/internal/autodiscovery [no test files] 03:25:47 ok github.com/edgexfoundry/device-sdk-go/v2/internal/autoevent 0.008s coverage: 27.6% of statements 03:25:47 ok github.com/edgexfoundry/device-sdk-go/v2/internal/cache 0.006s coverage: 78.9% of statements 03:25:48 ok github.com/edgexfoundry/device-sdk-go/v2/internal/clients 0.007s coverage: 10.8% of statements 03:25:48 ? github.com/edgexfoundry/device-sdk-go/v2/internal/common [no test files] 03:25:48 ? github.com/edgexfoundry/device-sdk-go/v2/internal/config [no test files] 03:25:48 ? github.com/edgexfoundry/device-sdk-go/v2/internal/container [no test files] 03:25:48 --- FAIL: TestRestController_Validate (0.00s) 03:25:48 --- FAIL: TestRestController_Validate/Valid_-_validation_succeed (0.00s) 03:25:48 panic: 03:25:48 assert: mock: I don't know what to return because the method call was unexpected. 03:25:48 Either do Mock.On("ValidateDevice").Return(...) first, or remove the ValidateDevice() call. 03:25:48 This method was unexpected: 03:25:48 ValidateDevice(models.Device) 03:25:48 0: models.Device{DBTimestamp:models.DBTimestamp{Created:0, Modified:0}, Id:"", Name:"test-device", Description:"", AdminState:"UNLOCKED", OperatingState:"UP", Protocols:map[string]models.ProtocolProperties{"valid":models.ProtocolProperties{}}, LastConnected:0, LastReported:0, Labels:[]string(nil), Location:interface {}(nil), ServiceName:"test-service", ProfileName:"test-profile", AutoEvents:[]models.AutoEvent{}, Notify:false} 03:25:48 at: [DeviceValidator.go:17 validation.go:32 server.go:2047 validation_test.go:89] [recovered] 03:25:48 panic: 03:25:48 assert: mock: I don't know what to return because the method call was unexpected. 03:25:48 Either do Mock.On("ValidateDevice").Return(...) first, or remove the ValidateDevice() call. 03:25:48 This method was unexpected: 03:25:48 ValidateDevice(models.Device) 03:25:48 0: models.Device{DBTimestamp:models.DBTimestamp{Created:0, Modified:0}, Id:"", Name:"test-device", Description:"", AdminState:"UNLOCKED", OperatingState:"UP", Protocols:map[string]models.ProtocolProperties{"valid":models.ProtocolProperties{}}, LastConnected:0, LastReported:0, Labels:[]string(nil), Location:interface {}(nil), ServiceName:"test-service", ProfileName:"test-profile", AutoEvents:[]models.AutoEvent{}, Notify:false} 03:25:48 at: [DeviceValidator.go:17 validation.go:32 server.go:2047 validation_test.go:89] 03:25:48 03:25:48 goroutine 37 [running]: 03:25:48 testing.tRunner.func1.2({0x67c7a0, 0xc0004643f0}) 03:25:48 /usr/local/go/src/testing/testing.go:1209 +0x24e 03:25:48 testing.tRunner.func1() 03:25:48 /usr/local/go/src/testing/testing.go:1212 +0x218 03:25:48 panic({0x67c7a0, 0xc0004643f0}) 03:25:48 /usr/local/go/src/runtime/panic.go:1038 +0x215 03:25:48 github.com/stretchr/testify/mock.(*Mock).fail(0xc00041b090, {0x6f872e, 0x4}, {0xc000367e40, 0x1, 0x1}) 03:25:48 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:254 +0x145 03:25:48 github.com/stretchr/testify/mock.(*Mock).MethodCalled(0xc00041b090, {0x7a55e4, 0xe}, {0xc000464270, 0x1, 0x1}) 03:25:48 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:418 +0x705 03:25:48 github.com/stretchr/testify/mock.(*Mock).Called(0x6d1d20, {0xc000464270, 0x1, 0x1}) 03:25:48 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:383 +0x149 03:25:48 github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks.(*DeviceValidator).ValidateDevice(0xc00041b090, {{0x0, 0x0}, {0x0, 0x0}, {0xc00043be00, 0xb}, {0x0, 0x0}, {0xc00043be10, ...}, ...}) 03:25:48 /w/workspace/gexfoundry_device-sdk-go_PR-1097/pkg/models/mocks/DeviceValidator.go:17 +0xc5 03:25:48 github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http.(*RestController).ValidateDevice(0xc0003676c0, {0x749288, 0xc000367700}, 0xc0003fc500) 03:25:48 /w/workspace/gexfoundry_device-sdk-go_PR-1097/internal/controller/http/validation.go:32 +0x2a2 03:25:48 net/http.HandlerFunc.ServeHTTP(...) 03:25:48 /usr/local/go/src/net/http/server.go:2047 03:25:48 github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http.TestRestController_Validate.func3(0xc0003f8b60) 03:25:48 /w/workspace/gexfoundry_device-sdk-go_PR-1097/internal/controller/http/validation_test.go:89 +0x27e 03:25:48 testing.tRunner(0xc0003f8d00, 0xc00000f0f8) 03:25:48 /usr/local/go/src/testing/testing.go:1259 +0x102 03:25:48 created by testing.(*T).Run 03:25:48 /usr/local/go/src/testing/testing.go:1306 +0x35a 03:25:48 FAIL github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http 0.012s 03:25:48 ? github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http/correlation [no test files] 03:25:49 ok github.com/edgexfoundry/device-sdk-go/v2/internal/messaging 1.011s coverage: 86.1% of statements 03:25:49 ? github.com/edgexfoundry/device-sdk-go/v2/internal/provision [no test files] 03:25:49 ? github.com/edgexfoundry/device-sdk-go/v2/internal/telemetry [no test files] 03:25:49 ok github.com/edgexfoundry/device-sdk-go/v2/internal/transformer 0.011s coverage: 57.4% of statements 03:25:49 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/models 0.029s coverage: 89.2% of statements 03:25:49 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks [no test files] 03:25:50 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/service 0.008s coverage: 4.8% of statements 03:25:50 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/startup [no test files] 03:25:50 FAIL 03:25:50 make: *** [Makefile:36: unittest] Error 1 [Pipeline] } 03:25:50 $ docker stop --time=1 1708daa76ee4d4f4b04b9b006130d4fb129c1a0e9e83de20aa34693ba802546a 03:25:51 $ docker rm -f 1708daa76ee4d4f4b04b9b006130d4fb129c1a0e9e83de20aa34693ba802546a [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) Stage "Build" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 03:25:52 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:25:52 03:25:52 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 03:25:52 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:25:52 latest: Pulling from edgex-lftools-log-publisher 03:25:52 5eb5b503b376: Pulling fs layer 03:25:52 5c69ac0246d0: Pulling fs layer 03:25:52 ec43610c2a17: Pulling fs layer 03:25:52 3a2ae6a8a46f: Pulling fs layer 03:25:52 33b1e0a273af: Pulling fs layer 03:25:52 5d3b04190fa2: Pulling fs layer 03:25:52 2f39f015ded8: Pulling fs layer 03:25:52 33b1e0a273af: Waiting 03:25:52 5d3b04190fa2: Waiting 03:25:52 2f39f015ded8: Waiting 03:25:52 3a2ae6a8a46f: Waiting 03:25:52 5c69ac0246d0: Verifying Checksum 03:25:52 5c69ac0246d0: Download complete 03:25:52 3a2ae6a8a46f: Verifying Checksum 03:25:52 3a2ae6a8a46f: Download complete 03:25:52 ec43610c2a17: Verifying Checksum 03:25:52 ec43610c2a17: Download complete 03:25:52 33b1e0a273af: Verifying Checksum 03:25:52 33b1e0a273af: Download complete 03:25:52 5d3b04190fa2: Verifying Checksum 03:25:52 5d3b04190fa2: Download complete 03:25:52 5eb5b503b376: Download complete 03:25:53 2f39f015ded8: Verifying Checksum 03:25:53 2f39f015ded8: Download complete 03:25:54 5eb5b503b376: Pull complete 03:25:54 5c69ac0246d0: Pull complete 03:25:55 ec43610c2a17: Pull complete 03:25:55 3a2ae6a8a46f: Pull complete 03:25:55 33b1e0a273af: Pull complete 03:25:55 5d3b04190fa2: Pull complete 03:26:00 2f39f015ded8: Pull complete 03:26:00 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 03:26:00 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:26:00 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 03:26:00 prd-centos7-docker-4c-2g-6232 does not seem to be running inside a container 03:26:01 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-sdk-go_PR-1097 -v /w/workspace/gexfoundry_device-sdk-go_PR-1097:/w/workspace/gexfoundry_device-sdk-go_PR-1097:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1097@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 ******** -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 ******** -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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 03:26:03 $ docker top dbe96b2a538e5a68a9d2c2d844a31a68e8158decc5b6e431d39654e65773d667 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:26:03 ---> job-cost.sh 03:26:03 lf-activate-venv: SKIPPING 03:26:03 INFO: No Stack... 03:26:03 INFO: Retrieving Pricing Info for: v3-standard-2 03:26:04 INFO: Archiving Costs [Pipeline] sh 03:26:04 + cat /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives/cost.csv 03:26:04 + cut -d, -f6 [Pipeline] lock 03:26:04 Trying to acquire lock on [jenkins-edgexfoundry-device-sdk-go-PR-1097-10-stack-cost] 03:26:04 Resource [jenkins-edgexfoundry-device-sdk-go-PR-1097-10-stack-cost] did not exist. Created. 03:26:04 Lock acquired on [jenkins-edgexfoundry-device-sdk-go-PR-1097-10-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 03:26:05 + echo total: 0.05999999865889549 [Pipeline] stash 03:26:05 Stashed 1 file(s) [Pipeline] } 03:26:05 Lock released on resource [jenkins-edgexfoundry-device-sdk-go-PR-1097-10-stack-cost] [Pipeline] // lock [Pipeline] } 03:26:05 $ docker stop --time=1 dbe96b2a538e5a68a9d2c2d844a31a68e8158decc5b6e431d39654e65773d667 03:26:06 $ docker rm -f dbe96b2a538e5a68a9d2c2d844a31a68e8158decc5b6e431d39654e65773d667 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 03:26:06 Failed in branch amd64 03:26:18 Running on prd-ubuntu18.04-docker-arm64-4c-16g-6233 in /w/workspace/gexfoundry_device-sdk-go_PR-1097 [Pipeline] { [Pipeline] ws 03:26:18 Running in /w/workspace/device-sdk-go/10 [Pipeline] { [Pipeline] checkout 03:26:18 The recommended git tool is: git 03:26:23 using credential edgex-jenkins-ssh 03:26:23 Cloning the remote Git repository 03:26:23 Cloning repository git@github.com:edgexfoundry/device-sdk-go.git 03:26:23 > git init /w/workspace/device-sdk-go/10 # timeout=10 03:26:23 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-go.git 03:26:23 > git --version # timeout=10 03:26:23 > git --version # 'git version 2.17.1' 03:26:23 using GIT_SSH to set credentials SSH Credentials for GitHub 03:26:23 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-sdk-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 03:26:25 > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 03:26:25 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 03:26:25 > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 03:26:25 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-go.git 03:26:25 using GIT_SSH to set credentials SSH Credentials for GitHub 03:26:25 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-sdk-go.git +refs/pull/1097/head:refs/remotes/origin/PR-1097 +refs/heads/main:refs/remotes/origin/main # timeout=10 03:26:26 Merging remotes/origin/main commit ff2bdc244935d5b40da6f20198b29dfc476efd7a into PR head commit 3714193b49de392a6f838df611226b28f75a7efc 03:26:26 Merge succeeded, producing 3714193b49de392a6f838df611226b28f75a7efc 03:26:26 Checking out Revision 3714193b49de392a6f838df611226b28f75a7efc (PR-1097) 03:26:26 > git config core.sparsecheckout # timeout=10 03:26:26 > git checkout -f 3714193b49de392a6f838df611226b28f75a7efc # timeout=10 03:26:26 > git remote # timeout=10 03:26:26 > git config --get remote.origin.url # timeout=10 03:26:26 using GIT_SSH to set credentials SSH Credentials for GitHub 03:26:26 > git merge ff2bdc244935d5b40da6f20198b29dfc476efd7a # timeout=10 03:26:26 > git rev-parse HEAD^{commit} # timeout=10 03:26:26 > git config core.sparsecheckout # timeout=10 03:26:26 > git checkout -f 3714193b49de392a6f838df611226b28f75a7efc # timeout=10 03:26:30 Commit message: "feat: implement ProtocolProperties validation mechanism" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 03:26:34 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 03:26:34 % Total % Received % Xferd Average Speed Time Time Time Current 03:26:34 Dload Upload Total Spent Left Speed 03:26:34 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 46996 0 --:--:-- --:--:-- --:--:-- 46810 [Pipeline] sh 03:26:34 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 03:26:35 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 03:26:35 + sudo tee /etc/docker/daemon.new 03:26:35 { 03:26:35 "registry-mirrors": [ 03:26:35 "https://nexus3.edgexfoundry.org:10001" 03:26:35 ], 03:26:35 "bip": "10.250.0.254/24", 03:26:35 "hosts": [ 03:26:35 "tcp://0.0.0.0:5555", 03:26:35 "unix:///var/run/docker.sock" 03:26:35 ], 03:26:35 "mtu": 1458, 03:26:35 "selinux-enabled": true, 03:26:35 "seccomp-profile": "/etc/docker/seccomp.json" 03:26:35 } [Pipeline] sh 03:26:35 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 03:26:35 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:26:54 provisioning config files... 03:26:54 copy managed file [device-sdk-go-settings] to file:/w/workspace/device-sdk-go/10@tmp/config672693797277168950tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:26:54 ---> docker-login.sh 03:26:54 nexus3.edgexfoundry.org:10001 03:26:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:26:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:26:55 Configure a credential helper to remove this warning. See 03:26:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:26:55 03:26:55 Login Succeeded 03:26:55 nexus3.edgexfoundry.org:10002 03:26:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:26:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:26:55 Configure a credential helper to remove this warning. See 03:26:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:26:55 03:26:55 Login Succeeded 03:26:55 nexus3.edgexfoundry.org:10003 03:26:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:26:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:26:56 Configure a credential helper to remove this warning. See 03:26:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:26:56 03:26:56 Login Succeeded 03:26:56 nexus3.edgexfoundry.org:10004 03:26:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:26:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:26:56 Configure a credential helper to remove this warning. See 03:26:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:26:56 03:26:56 Login Succeeded 03:26:56 docker.io 03:26:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:26:57 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:26:57 Configure a credential helper to remove this warning. See 03:26:57 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:26:57 03:26:57 Login Succeeded 03:26:57 ---> docker-login.sh ends [Pipeline] } 03:26:57 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 03:26:57 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 03:26:57 ========================================================= 03:26:57 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 03:26:57 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 03:26:58 + docker build -t ci-base-image-arm64 -f example/cmd/device-simple/Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine --build-arg MAKE=echo noop --target=builder . 03:26:58 Sending build context to Docker daemon 5.184MB 03:26:58 Step 1/11 : ARG BASE=golang:1.17-alpine3.15 03:26:58 Step 2/11 : FROM ${BASE} AS builder 03:26:58 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 03:26:58 9b3977197b4f: Pulling fs layer 03:26:58 1a89e8eeedd5: Pulling fs layer 03:26:58 94645a83ff95: Pulling fs layer 03:26:58 3f3a8bcf1eab: Pulling fs layer 03:26:58 0c92f367c5e7: Pulling fs layer 03:26:58 f7c0051592d6: Pulling fs layer 03:26:58 a227ed2f7395: Pulling fs layer 03:26:58 7b1c46037f91: Pulling fs layer 03:26:58 f7c0051592d6: Waiting 03:26:58 a227ed2f7395: Waiting 03:26:58 7b1c46037f91: Waiting 03:26:58 3f3a8bcf1eab: Waiting 03:26:58 0c92f367c5e7: Waiting 03:26:58 94645a83ff95: Verifying Checksum 03:26:58 94645a83ff95: Download complete 03:26:58 1a89e8eeedd5: Verifying Checksum 03:26:58 1a89e8eeedd5: Download complete 03:26:58 0c92f367c5e7: Verifying Checksum 03:26:58 0c92f367c5e7: Download complete 03:26:59 f7c0051592d6: Verifying Checksum 03:26:59 f7c0051592d6: Download complete 03:26:59 9b3977197b4f: Verifying Checksum 03:26:59 9b3977197b4f: Download complete 03:26:59 a227ed2f7395: Verifying Checksum 03:26:59 a227ed2f7395: Download complete 03:26:59 9b3977197b4f: Pull complete 03:27:00 1a89e8eeedd5: Pull complete 03:27:00 94645a83ff95: Pull complete 03:27:00 7b1c46037f91: Verifying Checksum 03:27:00 7b1c46037f91: Download complete 03:27:01 3f3a8bcf1eab: Verifying Checksum 03:27:01 3f3a8bcf1eab: Download complete 03:27:13 3f3a8bcf1eab: Pull complete 03:27:13 0c92f367c5e7: Pull complete 03:27:13 f7c0051592d6: Pull complete 03:27:13 a227ed2f7395: Pull complete 03:27:20 7b1c46037f91: Pull complete 03:27:20 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 03:27:20 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 03:27:20 ---> f79e39bc4007 03:27:20 Step 3/11 : ARG MAKE=make build 03:27:21 ---> Running in 7ea3c6e2378b 03:27:21 Removing intermediate container 7ea3c6e2378b 03:27:21 ---> 3cbb0a84ec16 03:27:21 Step 4/11 : WORKDIR /device-sdk-go 03:27:21 ---> Running in 9a851d2916a7 03:27:21 Removing intermediate container 9a851d2916a7 03:27:21 ---> 87eaa149156f 03:27:21 Step 5/11 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 03:27:21 ---> Running in 6c787b8a1cf4 03:27:22 Removing intermediate container 6c787b8a1cf4 03:27:22 ---> ffbbcf8ab92e 03:27:22 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:27:22 ---> Running in 10456366639d 03:27:24 Removing intermediate container 10456366639d 03:27:24 ---> cf09692ea1da 03:27:24 Step 7/11 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 03:27:24 ---> Running in 2f3f5b71f32a 03:27:25 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 03:27:26 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 03:27:27 OK: 220 MiB in 52 packages 03:27:28 Removing intermediate container 2f3f5b71f32a 03:27:28 ---> 8dc14ead0e37 03:27:28 Step 8/11 : COPY go.mod vendor* ./ 03:27:28 ---> 6e6c73b6cfb6 03:27:28 Step 9/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:27:28 ---> Running in 5dbbb8265375 03:28:50 Removing intermediate container 5dbbb8265375 03:28:50 ---> 5699fa360492 03:28:50 Step 10/11 : COPY . . 03:28:50 ---> bb3f321da8c7 03:28:50 Step 11/11 : RUN ${MAKE} 03:28:50 ---> Running in 3c5da87fe84a 03:28:50 noop 03:28:50 Removing intermediate container 3c5da87fe84a 03:28:50 ---> 761dcef4f4f1 03:28:50 Successfully built 761dcef4f4f1 03:28:50 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 03:28:50 + docker inspect -f . ci-base-image-arm64 03:28:50 . [Pipeline] withDockerContainer 03:28:50 prd-ubuntu18.04-docker-arm64-4c-16g-6233 does not seem to be running inside a container 03:28:51 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-sdk-go/10 -v /w/workspace/device-sdk-go/10:/w/workspace/device-sdk-go/10:rw,z -v /w/workspace/device-sdk-go/10@tmp:/w/workspace/device-sdk-go/10@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 ******** -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 ******** -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 ******** -e ******** ci-base-image-arm64 cat 03:28:52 $ docker top cb344a11aacd45b33874054f7186a7e043fba1da59bba37dd4b720b0d07a08f4 -eo pid,comm [Pipeline] { [Pipeline] sh 03:28:53 + go version 03:28:53 go version go1.17.6 linux/arm64 [Pipeline] } 03:28:53 $ docker stop --time=1 cb344a11aacd45b33874054f7186a7e043fba1da59bba37dd4b720b0d07a08f4 03:28:54 $ docker rm -f cb344a11aacd45b33874054f7186a7e043fba1da59bba37dd4b720b0d07a08f4 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 03:28:55 + docker inspect -f . ci-base-image-arm64 03:28:55 . [Pipeline] withDockerContainer 03:28:55 prd-ubuntu18.04-docker-arm64-4c-16g-6233 does not seem to be running inside a container 03:28:55 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-sdk-go/10 -v /w/workspace/device-sdk-go/10:/w/workspace/device-sdk-go/10:rw,z -v /w/workspace/device-sdk-go/10@tmp:/w/workspace/device-sdk-go/10@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 ******** -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 ******** -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 ******** -e ******** ci-base-image-arm64 cat 03:28:57 $ docker top 3c7ad3a8893dd174f74d4bfaf3ce595c2159c46eb439ceec6fed76bd1759ca7b -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 03:28:58 + make test 03:28:58 GO111MODULE=on go test -coverprofile=coverage.out ./... 03:28:59 ? github.com/edgexfoundry/device-sdk-go/v2 [no test files] 03:29:46 ? github.com/edgexfoundry/device-sdk-go/v2/example/cmd/device-simple [no test files] 03:29:46 ? github.com/edgexfoundry/device-sdk-go/v2/example/config [no test files] 03:29:46 ? github.com/edgexfoundry/device-sdk-go/v2/example/driver [no test files] 03:29:51 ok github.com/edgexfoundry/device-sdk-go/v2/internal/application 0.098s coverage: 23.3% of statements 03:29:51 ? github.com/edgexfoundry/device-sdk-go/v2/internal/autodiscovery [no test files] 03:29:51 ok github.com/edgexfoundry/device-sdk-go/v2/internal/autoevent 0.059s coverage: 27.6% of statements 03:29:51 ok github.com/edgexfoundry/device-sdk-go/v2/internal/cache 0.078s coverage: 78.9% of statements 03:29:51 ok github.com/edgexfoundry/device-sdk-go/v2/internal/clients 0.185s coverage: 10.8% of statements 03:29:51 ? github.com/edgexfoundry/device-sdk-go/v2/internal/common [no test files] 03:29:51 ? github.com/edgexfoundry/device-sdk-go/v2/internal/config [no test files] 03:29:51 ? github.com/edgexfoundry/device-sdk-go/v2/internal/container [no test files] 03:29:53 --- FAIL: TestRestController_Validate (0.00s) 03:29:53 --- FAIL: TestRestController_Validate/Valid_-_validation_succeed (0.00s) 03:29:53 panic: 03:29:53 assert: mock: I don't know what to return because the method call was unexpected. 03:29:53 Either do Mock.On("ValidateDevice").Return(...) first, or remove the ValidateDevice() call. 03:29:53 This method was unexpected: 03:29:53 ValidateDevice(models.Device) 03:29:53 0: models.Device{DBTimestamp:models.DBTimestamp{Created:0, Modified:0}, Id:"", Name:"test-device", Description:"", AdminState:"UNLOCKED", OperatingState:"UP", Protocols:map[string]models.ProtocolProperties{"valid":models.ProtocolProperties{}}, LastConnected:0, LastReported:0, Labels:[]string(nil), Location:interface {}(nil), ServiceName:"test-service", ProfileName:"test-profile", AutoEvents:[]models.AutoEvent{}, Notify:false} 03:29:53 at: [DeviceValidator.go:17 validation.go:32 server.go:2047 validation_test.go:89] [recovered] 03:29:53 panic: 03:29:53 assert: mock: I don't know what to return because the method call was unexpected. 03:29:53 Either do Mock.On("ValidateDevice").Return(...) first, or remove the ValidateDevice() call. 03:29:53 This method was unexpected: 03:29:53 ValidateDevice(models.Device) 03:29:53 0: models.Device{DBTimestamp:models.DBTimestamp{Created:0, Modified:0}, Id:"", Name:"test-device", Description:"", AdminState:"UNLOCKED", OperatingState:"UP", Protocols:map[string]models.ProtocolProperties{"valid":models.ProtocolProperties{}}, LastConnected:0, LastReported:0, Labels:[]string(nil), Location:interface {}(nil), ServiceName:"test-service", ProfileName:"test-profile", AutoEvents:[]models.AutoEvent{}, Notify:false} 03:29:53 at: [DeviceValidator.go:17 validation.go:32 server.go:2047 validation_test.go:89] 03:29:53 03:29:53 goroutine 35 [running]: 03:29:53 testing.tRunner.func1.2({0x673080, 0x40004f73c0}) 03:29:53 /usr/local/go/src/testing/testing.go:1209 +0x258 03:29:53 testing.tRunner.func1(0x40000b7860) 03:29:53 /usr/local/go/src/testing/testing.go:1212 +0x278 03:29:53 panic({0x673080, 0x40004f73c0}) 03:29:53 /usr/local/go/src/runtime/panic.go:1038 +0x224 03:29:53 github.com/stretchr/testify/mock.(*Mock).fail(0x4000101090, {0x6ed5a4, 0xc1}, {0x400049b9c0, 0x4, 0x4}) 03:29:53 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:254 +0x184 03:29:53 github.com/stretchr/testify/mock.(*Mock).MethodCalled(0x4000101090, {0x79710f, 0xe}, {0x40004f7240, 0x1, 0x1}) 03:29:53 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:418 +0x7f4 03:29:53 github.com/stretchr/testify/mock.(*Mock).Called(0x4000101090, {0x40004f7240, 0x1, 0x1}) 03:29:53 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:383 +0x178 03:29:53 github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks.(*DeviceValidator).ValidateDevice(0x4000101090, {{0x0, 0x0}, {0x0, 0x0}, {0x40005204a0, 0xb}, {0x0, 0x0}, {0x40005204b0, ...}, ...}) 03:29:53 /w/workspace/device-sdk-go/10/pkg/models/mocks/DeviceValidator.go:17 +0xc0 03:29:53 github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http.(*RestController).ValidateDevice(0x400049b240, {0x73df30, 0x400049b280}, 0x4000484d00) 03:29:53 /w/workspace/device-sdk-go/10/internal/controller/http/validation.go:32 +0x240 03:29:53 net/http.HandlerFunc.ServeHTTP(...) 03:29:53 /usr/local/go/src/net/http/server.go:2047 03:29:53 github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http.TestRestController_Validate.func3(0x40000b7860) 03:29:53 /w/workspace/device-sdk-go/10/internal/controller/http/validation_test.go:89 +0x2d0 03:29:53 testing.tRunner(0x40000b7860, 0x40000bed38) 03:29:53 /usr/local/go/src/testing/testing.go:1259 +0xf8 03:29:53 created by testing.(*T).Run 03:29:53 /usr/local/go/src/testing/testing.go:1306 +0x350 03:29:53 FAIL github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http 0.111s 03:29:53 ? github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http/correlation [no test files] 03:29:54 ok github.com/edgexfoundry/device-sdk-go/v2/internal/messaging 1.070s coverage: 86.1% of statements 03:29:54 ? github.com/edgexfoundry/device-sdk-go/v2/internal/provision [no test files] 03:29:54 ? github.com/edgexfoundry/device-sdk-go/v2/internal/telemetry [no test files] 03:29:54 ok github.com/edgexfoundry/device-sdk-go/v2/internal/transformer 0.122s coverage: 57.4% of statements 03:29:54 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/models 0.199s coverage: 89.2% of statements 03:29:54 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks [no test files] 03:29:56 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/service 0.051s coverage: 4.8% of statements 03:29:56 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/startup [no test files] 03:29:56 FAIL 03:29:56 make: *** [Makefile:36: unittest] Error 1 [Pipeline] } 03:29:56 $ docker stop --time=1 3c7ad3a8893dd174f74d4bfaf3ce595c2159c46eb439ceec6fed76bd1759ca7b 03:29:58 $ docker rm -f 3c7ad3a8893dd174f74d4bfaf3ce595c2159c46eb439ceec6fed76bd1759ca7b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) Stage "Build" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 03:29:59 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 03:29:59 03:29:59 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 03:29:59 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 03:30:00 arm64: Pulling from edgex-lftools-log-publisher 03:30:00 8998bd30e6a1: Pulling fs layer 03:30:00 04944245beec: Pulling fs layer 03:30:00 699f458cf7ca: Pulling fs layer 03:30:00 765212b225bb: Pulling fs layer 03:30:00 f23df028b6ca: Pulling fs layer 03:30:00 d65c8cfc05b1: Pulling fs layer 03:30:00 2437ff75d9bd: Pulling fs layer 03:30:00 765212b225bb: Waiting 03:30:00 d65c8cfc05b1: Waiting 03:30:00 2437ff75d9bd: Waiting 03:30:00 f23df028b6ca: Waiting 03:30:00 04944245beec: Verifying Checksum 03:30:00 04944245beec: Download complete 03:30:00 765212b225bb: Verifying Checksum 03:30:00 765212b225bb: Download complete 03:30:00 f23df028b6ca: Verifying Checksum 03:30:00 f23df028b6ca: Download complete 03:30:00 d65c8cfc05b1: Verifying Checksum 03:30:00 d65c8cfc05b1: Download complete 03:30:00 699f458cf7ca: Verifying Checksum 03:30:00 699f458cf7ca: Download complete 03:30:00 8998bd30e6a1: Download complete 03:30:02 2437ff75d9bd: Verifying Checksum 03:30:02 2437ff75d9bd: Download complete 03:30:04 8998bd30e6a1: Pull complete 03:30:05 04944245beec: Pull complete 03:30:06 699f458cf7ca: Pull complete 03:30:07 765212b225bb: Pull complete 03:30:07 f23df028b6ca: Pull complete 03:30:07 d65c8cfc05b1: Pull complete 03:30:22 2437ff75d9bd: Pull complete 03:30:22 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 03:30:22 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 03:30:22 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 03:30:23 prd-ubuntu18.04-docker-arm64-4c-16g-6233 does not seem to be running inside a container 03:30:23 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-sdk-go/10 -v /w/workspace/device-sdk-go/10:/w/workspace/device-sdk-go/10:rw,z -v /w/workspace/device-sdk-go/10@tmp:/w/workspace/device-sdk-go/10@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 ******** -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 ******** -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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 03:30:25 $ docker top b38d58b5fe70b561555a6360eca3dfc9c2e6cb6ec07c6ac4bde7bc49a226bd1f -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:30:26 ---> job-cost.sh 03:30:26 lf-activate-venv: SKIPPING 03:30:26 INFO: No Stack... 03:30:26 INFO: Retrieving Pricing Info for: v3-standard-4 03:30:27 INFO: Archiving Costs [Pipeline] sh 03:30:28 + cat /w/workspace/device-sdk-go/10/archives/cost.csv 03:30:28 + cut -d, -f6 [Pipeline] lock 03:30:28 Trying to acquire lock on [jenkins-edgexfoundry-device-sdk-go-PR-1097-10-stack-cost] 03:30:28 Resource [jenkins-edgexfoundry-device-sdk-go-PR-1097-10-stack-cost] did not exist. Created. 03:30:28 Lock acquired on [jenkins-edgexfoundry-device-sdk-go-PR-1097-10-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 03:30:29 /w/workspace/device-sdk-go/10@tmp/durable-9cb379b0/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 03:30:30 + echo total: 0.10999999940395355 [Pipeline] stash 03:30:30 Warning: overwriting stash ‘stack-cost’ 03:30:30 Stashed 1 file(s) [Pipeline] } 03:30:30 Lock released on resource [jenkins-edgexfoundry-device-sdk-go-PR-1097-10-stack-cost] [Pipeline] // lock [Pipeline] } 03:30:30 $ docker stop --time=1 b38d58b5fe70b561555a6360eca3dfc9c2e6cb6ec07c6ac4bde7bc49a226bd1f 03:30:32 $ docker rm -f b38d58b5fe70b561555a6360eca3dfc9c2e6cb6ec07c6ac4bde7bc49a226bd1f [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } 03:30:32 Failed in branch arm64 [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) Stage "CodeCov" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to earlier failure(s) [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 03:30:33 + '[' -d /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives ']' 03:30:33 + ls -al /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives 03:30:33 total 8 03:30:33 drwxr-xr-x. 3 root root 34 Mar 2 03:26 . 03:30:33 drwxrwxr-x. 12 jenkins jenkins 4096 Mar 2 03:26 .. 03:30:33 drwxr-xr-x. 2 root root 6 Mar 2 03:26 cost 03:30:33 -rw-r--r--. 1 root root 86 Mar 2 03:26 cost.csv 03:30:33 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives 03:30:33 + ls -al /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives 03:30:33 total 8 03:30:33 drwxr-xr-x. 3 jenkins jenkins 34 Mar 2 03:26 . 03:30:33 drwxrwxr-x. 12 jenkins jenkins 4096 Mar 2 03:26 .. 03:30:33 drwxr-xr-x. 2 jenkins jenkins 6 Mar 2 03:26 cost 03:30:33 -rw-r--r--. 1 jenkins jenkins 86 Mar 2 03:26 cost.csv [Pipeline] libraryResource [Pipeline] sh 03:30:33 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 03:30:33 ---> package-listing.sh 03:30:33 ++ facter osfamily 03:30:33 ++ tr '[:upper:]' '[:lower:]' 03:30:34 + OS_FAMILY=redhat 03:30:34 + workspace=/w/workspace/gexfoundry_device-sdk-go_PR-1097 03:30:34 + START_PACKAGES=/tmp/packages_start.txt 03:30:34 + END_PACKAGES=/tmp/packages_end.txt 03:30:34 + DIFF_PACKAGES=/tmp/packages_diff.txt 03:30:34 + PACKAGES=/tmp/packages_start.txt 03:30:34 + '[' /w/workspace/gexfoundry_device-sdk-go_PR-1097 ']' 03:30:34 + PACKAGES=/tmp/packages_end.txt 03:30:34 + case "${OS_FAMILY}" in 03:30:34 + sort 03:30:34 + rpm -qa 03:30:34 + '[' -f /tmp/packages_start.txt ']' 03:30:34 + '[' -f /tmp/packages_end.txt ']' 03:30:34 + diff /tmp/packages_start.txt /tmp/packages_end.txt 03:30:34 + '[' /w/workspace/gexfoundry_device-sdk-go_PR-1097 ']' 03:30:34 + mkdir -p /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives/ 03:30:34 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives/ [Pipeline] echo 03:30:35 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sa:/var/log/sa-host -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-sdk-go_PR-1097/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 03:30:35 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 03:30:35 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:30:35 . [Pipeline] withDockerContainer 03:30:35 prd-centos7-docker-4c-2g-6232 does not seem to be running inside a container 03:30:35 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sa:/var/log/sa-host -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-sdk-go_PR-1097/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-sdk-go_PR-1097 -v /w/workspace/gexfoundry_device-sdk-go_PR-1097:/w/workspace/gexfoundry_device-sdk-go_PR-1097:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1097@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 ******** -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 ******** -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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 03:30:36 $ docker top ac6c0f233a1dc575867e5e4a4030e6d8b8897f96b46d9eeece7b259cd6cc965a -eo pid,comm [Pipeline] { [Pipeline] sh 03:30:36 + touch /tmp/pre-build-complete [Pipeline] sh 03:30:36 + mkdir -p /var/log/sysstat [Pipeline] sh 03:30:37 + ls /var/log/sa-host 03:30:37 + sadf -c /var/log/sa-host/sa02 03:30:37 file_magic: OK 03:30:37 HZ: Using current value: 100 03:30:37 file_header: OK 03:30:37 file_activity: A_CPU A_PCSW A_SWAP A_PAGE A_IO A_MEMORY A_HUGE A_KTABLES A_QUEUE A_SERIAL A_DISK A_NET_DEV A_NET_EDEV A_NET_NFS A_NET_NFSD A_NET_SOCK OK 03:30:37 Statistics: 03:30:37 HRHnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu... 03:30:37 File successfully converted to sysstat format version 12.5.2 03:30:37 + sadf -c /var/log/sa-host/sa17 03:30:37 file_magic: OK 03:30:37 HZ: Using current value: 100 03:30:37 file_header: OK 03:30:37 file_activity: A_CPU A_PCSW A_SWAP A_PAGE A_IO A_MEMORY A_HUGE A_KTABLES A_QUEUE A_SERIAL A_DISK A_NET_DEV A_NET_EDEV A_NET_NFS A_NET_NFSD A_NET_SOCK OK 03:30:37 Statistics: 03:30:37 Hnuu...uuuununununu...Hnuu...uuuununununu... 03:30:37 File successfully converted to sysstat format version 12.5.2 [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:30:37 provisioning config files... 03:30:37 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/config5533855567414350581tmp [Pipeline] { [Pipeline] echo 03:30:37 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 03:30:37 ---> create-netrc.sh [Pipeline] } 03:30:37 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 03:30:38 ---> python-tools-install.sh [Pipeline] echo 03:30:38 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 03:30:38 ---> sudo-logs.sh 03:30:38 Archiving 'sudo' log.. 03:30:38 sudo: unable to resolve host prd-centos7-docker-4c-2g-6232.novalocal: Name or service not known 03:30:38 sudo: unable to resolve host prd-centos7-docker-4c-2g-6232.novalocal: Name or service not known [Pipeline] unstash [Pipeline] echo 03:30:38 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 03:30:38 ---> job-cost.sh 03:30:38 lf-activate-venv: SKIPPING 03:30:38 DEBUG: total: 0.05999999865889549 03:30:38 INFO: Retrieving Stack Cost... 03:30:38 INFO: Retrieving Pricing Info for: v3-standard-2 03:30:39 INFO: Archiving Costs [Pipeline] echo 03:30:39 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 03:30:39 ---> logs-deploy.sh 03:30:39 lf-activate-venv: SKIPPING 03:30:39 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-sdk-go/PR-1097/10 03:30:39 INFO: archiving workspace using pattern(s): 03:30:40 Archives upload complete. 03:30:40 INFO: archiving logs to Nexus 03:30:41 ---> uname -a: 03:30:41 Linux prd-centos7-docker-4c-2g-6232.novalocal 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 GNU/Linux 03:30:41 03:30:41 03:30:41 ---> lscpu: 03:30:41 Architecture: x86_64 03:30:41 CPU op-mode(s): 32-bit, 64-bit 03:30:41 Byte Order: Little Endian 03:30:41 Address sizes: 40 bits physical, 48 bits virtual 03:30:41 CPU(s): 2 03:30:41 On-line CPU(s) list: 0,1 03:30:41 Thread(s) per core: 1 03:30:41 Core(s) per socket: 1 03:30:41 Socket(s): 2 03:30:41 NUMA node(s): 1 03:30:41 Vendor ID: AuthenticAMD 03:30:41 CPU family: 23 03:30:41 Model: 49 03:30:41 Model name: AMD EPYC-Rome Processor 03:30:41 Stepping: 0 03:30:41 CPU MHz: 2800.000 03:30:41 BogoMIPS: 5600.00 03:30:41 Virtualization: AMD-V 03:30:41 Hypervisor vendor: KVM 03:30:41 Virtualization type: full 03:30:41 L1d cache: 64 KiB 03:30:41 L1i cache: 64 KiB 03:30:41 L2 cache: 1 MiB 03:30:41 L3 cache: 32 MiB 03:30:41 NUMA node0 CPU(s): 0,1 03:30:41 Vulnerability Itlb multihit: Not affected 03:30:41 Vulnerability L1tf: Not affected 03:30:41 Vulnerability Mds: Not affected 03:30:41 Vulnerability Meltdown: Not affected 03:30:41 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 03:30:41 Vulnerability Spectre v1: Mitigation; Load fences, usercopy/swapgs barriers and __user pointer sanitization 03:30:41 Vulnerability Spectre v2: Mitigation; Full retpoline, IBPB 03:30:41 Vulnerability Srbds: Not affected 03:30:41 Vulnerability Tsx async abort: Not affected 03:30:41 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 art rep_good nopl extd_apicid eagerfpu 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 retpoline_amd ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr arat npt nrip_save umip spec_ctrl intel_stibp arch_capabilities 03:30:41 03:30:41 03:30:41 ---> nproc: 03:30:41 2 03:30:41 03:30:41 03:30:41 ---> df -h: 03:30:41 Filesystem Size Used Avail Use% Mounted on 03:30:41 overlay 40G 9.0G 32G 23% / 03:30:41 tmpfs 64M 0 64M 0% /dev 03:30:41 tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup 03:30:41 shm 64M 0 64M 0% /dev/shm 03:30:41 /dev/vda1 40G 9.0G 32G 23% /facter-os 03:30:41 03:30:41 03:30:41 ---> sar -b -r -n DEV: 03:30:41 Linux 3.10.0-1160.45.1.el7.x86_64 (centos-7-docker-61956895-6fad-6945-99d6-2040f50c295e.novalocal) 03/02/22 _x86_64_ (2 CPU) 03:30:41 03:30:41 03:23:49 LINUX RESTART (2 CPU) 03:30:41 03:30:41 03:24:01 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 03:30:41 03:25:01 230.10 45.37 184.74 0.00 6327.97 60433.58 0.00 03:30:41 03:26:01 286.63 0.05 286.58 0.00 1.07 63869.58 0.00 03:30:41 03:27:01 41.95 0.00 41.95 0.00 0.00 13054.49 0.00 03:30:41 03:28:01 0.20 0.00 0.20 0.00 0.00 3.75 0.00 03:30:41 03:29:01 0.27 0.00 0.27 0.00 0.00 3.35 0.00 03:30:41 03:30:01 0.27 0.00 0.27 0.00 0.00 4.11 0.00 03:30:41 Average: 93.26 7.57 85.69 0.00 1055.57 22902.15 0.00 03:30:41 03:30:41 03:24:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 03:30:41 03:25:01 4810908 0 774164 9.67 2620 2421248 1607592 17.75 718788 2154484 123656 03:30:41 03:26:01 3502272 0 997064 12.45 2620 3506984 1384408 15.28 924388 3054108 326404 03:30:41 03:27:01 3515416 0 983904 12.29 2620 3507000 1211224 13.37 923288 3047232 20 03:30:41 03:28:01 3518964 0 980352 12.24 2620 3507004 1173176 12.95 921456 3047232 16 03:30:41 03:29:01 3519424 0 979888 12.23 2620 3507008 1173176 12.95 921360 3047232 8 03:30:41 03:30:01 3517968 0 981336 12.25 2620 3507016 1173272 12.95 922856 3047232 8 03:30:41 Average: 3730825 0 949451 11.85 2620 3326043 1287141 14.21 888689 2899587 75019 03:30:41 03:30:41 03:24:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 03:30:41 03:25:01 veth349e209 104.66 135.13 10.08 595.73 0.00 0.00 0.00 0.00 03:30:41 03:25:01 eth0 689.20 410.83 5088.48 97.03 0.00 0.00 0.00 0.00 03:30:41 03:25:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:41 03:25:01 docker0 126.91 150.79 11.55 701.00 0.00 0.00 0.00 0.00 03:30:41 03:26:01 eth0 225.00 154.47 3979.16 25.31 0.00 0.00 0.00 0.00 03:30:41 03:26:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:41 03:26:01 docker0 84.36 110.84 6.89 1442.62 0.00 0.00 0.00 0.00 03:30:41 03:27:01 eth0 8.76 5.91 8.32 3.07 0.00 0.00 0.00 0.00 03:30:41 03:27:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:41 03:27:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:41 03:28:01 eth0 0.13 0.10 0.01 0.01 0.00 0.00 0.00 0.00 03:30:41 03:28:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:41 03:28:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:41 03:29:01 eth0 0.12 0.10 0.01 0.01 0.00 0.00 0.00 0.00 03:30:41 03:29:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:41 03:29:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:41 03:30:01 eth0 0.23 0.20 0.08 0.07 0.00 0.00 0.00 0.00 03:30:41 03:30:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:41 03:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:41 Average: eth0 153.99 95.32 1513.28 20.93 0.00 0.00 0.00 0.00 03:30:41 Average: lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:41 Average: docker0 35.23 43.62 3.07 357.36 0.00 0.00 0.00 0.00 03:30:41 03:30:41 03:30:41 ---> sar -P ALL: 03:30:41 Linux 3.10.0-1160.45.1.el7.x86_64 (centos-7-docker-61956895-6fad-6945-99d6-2040f50c295e.novalocal) 03/02/22 _x86_64_ (2 CPU) 03:30:41 03:30:41 03:23:49 LINUX RESTART (2 CPU) 03:30:41 03:30:41 03:24:01 CPU %user %nice %system %iowait %steal %idle 03:30:41 03:25:01 all 29.77 0.00 11.86 6.81 0.12 51.44 03:30:41 03:25:01 0 30.70 0.00 12.49 7.27 0.12 49.41 03:30:41 03:25:01 1 28.83 0.00 11.22 6.35 0.12 53.47 03:30:41 03:26:01 all 44.95 0.00 13.64 2.20 0.12 39.10 03:30:41 03:26:01 0 44.63 0.00 14.16 2.27 0.11 38.83 03:30:41 03:26:01 1 45.26 0.00 13.11 2.13 0.13 39.36 03:30:41 03:27:01 all 0.67 0.00 0.62 0.35 0.02 98.34 03:30:41 03:27:01 0 0.77 0.00 0.57 0.37 0.02 98.27 03:30:41 03:27:01 1 0.57 0.00 0.67 0.33 0.02 98.41 03:30:41 03:28:01 all 0.22 0.00 0.05 0.00 0.01 99.72 03:30:41 03:28:01 0 0.37 0.00 0.07 0.00 0.00 99.57 03:30:41 03:28:01 1 0.07 0.00 0.03 0.00 0.02 99.88 03:30:41 03:29:01 all 0.23 0.00 0.04 0.00 0.02 99.72 03:30:41 03:29:01 0 0.32 0.00 0.03 0.00 0.02 99.63 03:30:41 03:29:01 1 0.13 0.00 0.05 0.00 0.02 99.80 03:30:41 03:30:01 all 0.24 0.00 0.04 0.00 0.01 99.71 03:30:41 03:30:01 0 0.05 0.00 0.03 0.00 0.00 99.92 03:30:41 03:30:01 1 0.43 0.00 0.05 0.00 0.02 99.50 03:30:41 Average: all 12.05 0.00 4.17 1.50 0.05 82.24 03:30:41 Average: 0 12.18 0.00 4.34 1.59 0.04 81.85 03:30:41 Average: 1 11.92 0.00 3.99 1.41 0.05 82.63 03:30:41 03:30:41 03:30:41