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 da94e137d7cee9468dadf98dfd2596d4a5e70a31+ff2bdc244935d5b40da6f20198b29dfc476efd7a (a14fa64a136d3b0411a89c0c1e2f85a83c94a590) 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-ssh3967584295148230738.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-ssh17832126158061112964.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-ssh10118834187410648977.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-ssh10688741767831175966.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-ssh11788378986345535164.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 Waiting for next available executor on ‘prd-centos7-docker-4c-2g-6146’ Running on prd-centos7-docker-4c-2g-6152 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-ssh5908309152277317492.key > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-sdk-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit ff2bdc244935d5b40da6f20198b29dfc476efd7a into PR head commit da94e137d7cee9468dadf98dfd2596d4a5e70a31 > 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-ssh1377407849170794610.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 > git config core.sparsecheckout # timeout=10 > git checkout -f da94e137d7cee9468dadf98dfd2596d4a5e70a31 # 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-ssh6757995681211021319.key > git merge ff2bdc244935d5b40da6f20198b29dfc476efd7a # timeout=10 Merge succeeded, producing da94e137d7cee9468dadf98dfd2596d4a5e70a31 Checking out Revision da94e137d7cee9468dadf98dfd2596d4a5e70a31 (PR-1097) > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f da94e137d7cee9468dadf98dfd2596d4a5e70a31 # 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 01:24:23 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 01:24:23 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 01:24:23 ========================================================= 01:24:23 EdgeX Global Pipelines Version Info 01:24:23 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git rev-list --no-walk 40d1c897eaa9b8b12c574efe2df53de1b20fd829 # timeout=10 01:24:24 ------------------- 01:24:24 stable info: 01:24:24 ------------------- 01:24:24 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 01:24:24 Commit SHA: efdbc04638cc485a1a2a98c60e49a0e43cac6f53 01:24:24 Message: update stable to v1.0.220 01:24:25 ------------------- 01:24:25 experimental info: 01:24:25 ------------------- 01:24:25 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 01:24:25 Commit SHA: efdbc04638cc485a1a2a98c60e49a0e43cac6f53 01:24:25 Message: update experimental to v1.0.220 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-sdk-go-settings [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar PROJECT = device-sdk-go [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = example/cmd/device-simple/Dockerfile [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-sdk-simple [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = false [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = true [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v2 [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-1097 [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-1097 [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-1097 [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = da94e137d7cee9468dadf98dfd2596d4a5e70a31 [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = da94e13 [Pipeline] echo 01:24:25 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 01:24:25 provisioning config files... 01:24:25 copy managed file [device-sdk-go-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/config3600253910314492457tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:24:25 ---> docker-login.sh 01:24:25 nexus3.edgexfoundry.org:10001 01:24:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:24:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:24:26 Configure a credential helper to remove this warning. See 01:24:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:24:26 01:24:26 Login Succeeded 01:24:26 nexus3.edgexfoundry.org:10002 01:24:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:24:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:24:26 Configure a credential helper to remove this warning. See 01:24:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:24:26 01:24:26 Login Succeeded 01:24:26 nexus3.edgexfoundry.org:10003 01:24:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:24:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:24:26 Configure a credential helper to remove this warning. See 01:24:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:24:26 01:24:26 Login Succeeded 01:24:26 nexus3.edgexfoundry.org:10004 01:24:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:24:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:24:26 Configure a credential helper to remove this warning. See 01:24:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:24:26 01:24:26 Login Succeeded 01:24:26 docker.io 01:24:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:24:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:24:27 Configure a credential helper to remove this warning. See 01:24:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:24:27 01:24:27 Login Succeeded 01:24:27 ---> docker-login.sh ends [Pipeline] } 01:24:27 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 01:24:27 + git rev-list -1 --merges da94e137d7cee9468dadf98dfd2596d4a5e70a31~1..da94e137d7cee9468dadf98dfd2596d4a5e70a31 [Pipeline] echo 01:24:27 -----------> git rev-list -1 --merges da94e137d7cee9468dadf98dfd2596d4a5e70a31~1..da94e137d7cee9468dadf98dfd2596d4a5e70a31 da94e137d7cee9468dadf98dfd2596d4a5e70a31 [false] [Pipeline] sh 01:24:27 + git log --format=format:%s -1 da94e137d7cee9468dadf98dfd2596d4a5e70a31 [Pipeline] echo 01:24:27 ========================================================= 01:24:27 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 01:24:27 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 01:24:28 + git log --format=format:%s -1 da94e137d7cee9468dadf98dfd2596d4a5e70a31 [Pipeline] echo 01:24:28 [semverPrep] GIT_COMMIT: da94e137d7cee9468dadf98dfd2596d4a5e70a31, Commit Message: feat: implement ProtocolProperties validation mechanism [Pipeline] echo 01:24:28 [semverPrep] This is not a build commit. [Pipeline] sh 01:24:28 + grep 'github.com ecdsa' /etc/ssh/ssh_known_hosts 01:24:28 + grep -v github /etc/ssh/ssh_known_hosts 01:24:28 + '[' -e /tmp/ssh_known_hosts ']' 01:24:28 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 01:24:28 + echo 'github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=' 01:24:28 + sudo tee -a /etc/ssh/ssh_known_hosts 01:24:28 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 01:24:29 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 01:24:29 01:24:29 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 01:24:29 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 01:24:29 latest: Pulling from edgex-devops/git-semver 01:24:29 a0d0a0d46f8b: Pulling fs layer 01:24:29 3e5f54012d9b: Pulling fs layer 01:24:29 4c7163046ea9: Pulling fs layer 01:24:29 0c2d73faf560: Pulling fs layer 01:24:29 0c2d73faf560: Waiting 01:24:29 3e5f54012d9b: Verifying Checksum 01:24:29 3e5f54012d9b: Download complete 01:24:29 a0d0a0d46f8b: Verifying Checksum 01:24:29 a0d0a0d46f8b: Download complete 01:24:29 4c7163046ea9: Verifying Checksum 01:24:29 4c7163046ea9: Download complete 01:24:29 0c2d73faf560: Verifying Checksum 01:24:29 0c2d73faf560: Download complete 01:24:29 a0d0a0d46f8b: Pull complete 01:24:29 3e5f54012d9b: Pull complete 01:24:30 4c7163046ea9: Pull complete 01:24:30 0c2d73faf560: Pull complete 01:24:30 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 01:24:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 01:24:30 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 01:24:30 prd-centos7-docker-4c-2g-6152 does not seem to be running inside a container 01:24:30 $ 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 01:24:30 $ docker top 02cc3bd83a61c6ae64c09760ed7d7f9ae474db1f8ada3e4e167a604a106befe2 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 01:24:31 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 01:24:31 [ssh-agent] Looking for ssh-agent implementation... 01:24:31 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 01:24:31 $ docker exec 02cc3bd83a61c6ae64c09760ed7d7f9ae474db1f8ada3e4e167a604a106befe2 ssh-agent 01:24:31 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXjLKaEG/agent.15 01:24:31 SSH_AGENT_PID=21 01:24:31 Running ssh-add (command line suppressed) 01:24:31 Identity added: /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/private_key_7638682618684040621.key (/w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/private_key_7638682618684040621.key) 01:24:31 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 01:24:31 + git tag --points-at HEAD [Pipeline] } 01:24:31 $ docker exec --env ******** --env ******** 02cc3bd83a61c6ae64c09760ed7d7f9ae474db1f8ada3e4e167a604a106befe2 ssh-agent -k 01:24:31 unset SSH_AUTH_SOCK; 01:24:31 unset SSH_AGENT_PID; 01:24:31 echo Agent pid 21 killed; 01:24:31 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 01:24:31 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 01:24:31 [ssh-agent] Looking for ssh-agent implementation... 01:24:32 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 01:24:32 $ docker exec 02cc3bd83a61c6ae64c09760ed7d7f9ae474db1f8ada3e4e167a604a106befe2 ssh-agent 01:24:32 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXeNaMkC/agent.55 01:24:32 SSH_AGENT_PID=61 01:24:32 Running ssh-add (command line suppressed) 01:24:32 Identity added: /w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/private_key_2831999940886173697.key (/w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/private_key_2831999940886173697.key) 01:24:32 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 01:24:32 + git semver init 01:24:32 # -> Open(): unable to determine branch for HEAD 01:24:32 # $GIT_DIR = /w/workspace/gexfoundry_device-sdk-go_PR-1097/.git 01:24:32 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-sdk-go_PR-1097 01:24:32 # $SEMVER_REMOTE_NAME = origin 01:24:32 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 01:24:32 # $SEMVER_USER_NAME = edgex-jenkins 01:24:32 # $SEMVER_BRANCH = PR-1097 01:24:32 # $SEMVER_TEMP = /tmp/semver-703005959 01:24:32 # git clone --branch semver git@github.com:edgexfoundry/device-sdk-go.git $SEMVER_TEMP 01:24:33 # '/tmp/semver-703005959' -> '/w/workspace/gexfoundry_device-sdk-go_PR-1097/.semver' 01:24:33 # -> Force: false 01:24:33 # $SEMVER_DIR = /w/workspace/gexfoundry_device-sdk-go_PR-1097/.semver [Pipeline] } 01:24:33 $ docker exec --env ******** --env ******** 02cc3bd83a61c6ae64c09760ed7d7f9ae474db1f8ada3e4e167a604a106befe2 ssh-agent -k 01:24:33 unset SSH_AUTH_SOCK; 01:24:33 unset SSH_AGENT_PID; 01:24:33 echo Agent pid 61 killed; 01:24:33 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 01:24:33 + git semver [Pipeline] } 01:24:33 $ docker stop --time=1 02cc3bd83a61c6ae64c09760ed7d7f9ae474db1f8ada3e4e167a604a106befe2 01:24:35 $ docker rm -f 02cc3bd83a61c6ae64c09760ed7d7f9ae474db1f8ada3e4e167a604a106befe2 [Pipeline] // withDockerContainer [Pipeline] sh 01:24:35 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 01:24:35 Stashed 1 file(s) [Pipeline] echo 01:24:35 [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 01:24:36 provisioning config files... 01:24:36 copy managed file [device-sdk-go-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/config5733538303129859932tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:24:36 ---> docker-login.sh 01:24:36 nexus3.edgexfoundry.org:10001 01:24:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:24:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:24:36 Configure a credential helper to remove this warning. See 01:24:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:24:36 01:24:36 Login Succeeded 01:24:36 nexus3.edgexfoundry.org:10002 01:24:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:24:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:24:36 Configure a credential helper to remove this warning. See 01:24:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:24:36 01:24:36 Login Succeeded 01:24:36 nexus3.edgexfoundry.org:10003 01:24:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:24:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:24:36 Configure a credential helper to remove this warning. See 01:24:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:24:36 01:24:36 Login Succeeded 01:24:36 nexus3.edgexfoundry.org:10004 01:24:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:24:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:24:36 Configure a credential helper to remove this warning. See 01:24:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:24:36 01:24:36 Login Succeeded 01:24:36 docker.io 01:24:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:24:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:24:37 Configure a credential helper to remove this warning. See 01:24:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:24:37 01:24:37 Login Succeeded 01:24:37 ---> docker-login.sh ends [Pipeline] } 01:24:37 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 01:24:37 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 01:24:37 ========================================================= 01:24:37 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 01:24:37 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 01:24:37 + 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 . 01:24:37 Sending build context to Docker daemon 9.548MB 01:24:37 Step 1/11 : ARG BASE=golang:1.17-alpine3.15 01:24:37 Step 2/11 : FROM ${BASE} AS builder 01:24:37 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 01:24:37 59bf1c3509f3: Pulling fs layer 01:24:37 666ba61612fd: Pulling fs layer 01:24:37 8ed8ca486205: Pulling fs layer 01:24:37 4fe6c5a15a65: Pulling fs layer 01:24:37 22a0e8bec74d: Pulling fs layer 01:24:37 640e595b4fbd: Pulling fs layer 01:24:37 763cafe07f6e: Pulling fs layer 01:24:37 0c0b528cf693: Pulling fs layer 01:24:37 10935f4eaf8b: Pulling fs layer 01:24:37 4fe6c5a15a65: Waiting 01:24:37 22a0e8bec74d: Waiting 01:24:37 640e595b4fbd: Waiting 01:24:37 763cafe07f6e: Waiting 01:24:37 0c0b528cf693: Waiting 01:24:37 10935f4eaf8b: Waiting 01:24:37 8ed8ca486205: Verifying Checksum 01:24:37 8ed8ca486205: Download complete 01:24:37 666ba61612fd: Download complete 01:24:37 22a0e8bec74d: Verifying Checksum 01:24:37 22a0e8bec74d: Download complete 01:24:37 640e595b4fbd: Verifying Checksum 01:24:37 640e595b4fbd: Download complete 01:24:37 59bf1c3509f3: Verifying Checksum 01:24:37 59bf1c3509f3: Download complete 01:24:37 763cafe07f6e: Verifying Checksum 01:24:37 763cafe07f6e: Download complete 01:24:37 0c0b528cf693: Verifying Checksum 01:24:37 0c0b528cf693: Download complete 01:24:38 59bf1c3509f3: Pull complete 01:24:38 666ba61612fd: Pull complete 01:24:38 8ed8ca486205: Pull complete 01:24:38 4fe6c5a15a65: Verifying Checksum 01:24:38 4fe6c5a15a65: Download complete 01:24:38 10935f4eaf8b: Verifying Checksum 01:24:38 10935f4eaf8b: Download complete 01:24:42 4fe6c5a15a65: Pull complete 01:24:42 22a0e8bec74d: Pull complete 01:24:42 640e595b4fbd: Pull complete 01:24:43 763cafe07f6e: Pull complete 01:24:43 0c0b528cf693: Pull complete 01:24:46 10935f4eaf8b: Pull complete 01:24:46 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 01:24:46 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 01:24:46 ---> 99d49a6021b9 01:24:46 Step 3/11 : ARG MAKE=make build 01:24:47 ---> Running in 94081ed659a3 01:24:47 Removing intermediate container 94081ed659a3 01:24:47 ---> a87485548605 01:24:47 Step 4/11 : WORKDIR /device-sdk-go 01:24:47 ---> Running in 5141cc8193ed 01:24:47 Removing intermediate container 5141cc8193ed 01:24:47 ---> 38d748c30d46 01:24:47 Step 5/11 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 01:24:47 ---> Running in 6ff3e0babd87 01:24:48 Removing intermediate container 6ff3e0babd87 01:24:48 ---> 4bfdd9cdada4 01:24:48 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 01:24:48 ---> Running in c92c2af09397 01:24:48 Removing intermediate container c92c2af09397 01:24:48 ---> a5697f42cd9a 01:24:48 Step 7/11 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 01:24:48 ---> Running in 71378d81a856 01:24:48 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 01:24:49 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 01:24:50 OK: 221 MiB in 52 packages 01:24:50 Removing intermediate container 71378d81a856 01:24:50 ---> 76ba54e37e9c 01:24:50 Step 8/11 : COPY go.mod vendor* ./ 01:24:50 ---> 2bb6d02d2d00 01:24:50 Step 9/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 01:24:50 ---> Running in 34015aa1d02d 01:24:50 Still waiting to schedule task 01:24:50 Waiting for next available executor on ‘prd-ubuntu18.04-docker-arm64-4c-16g-6150’ 01:25:29 Removing intermediate container 34015aa1d02d 01:25:29 ---> 8555b1086e47 01:25:29 Step 10/11 : COPY . . 01:25:29 ---> a154917a2ef2 01:25:29 Step 11/11 : RUN ${MAKE} 01:25:29 ---> Running in c9f79aec191a 01:25:29 noop 01:25:29 Removing intermediate container c9f79aec191a 01:25:29 ---> 8dcb73ab0416 01:25:29 Successfully built 8dcb73ab0416 01:25:29 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 01:25:29 + docker inspect -f . ci-base-image-x86_64 01:25:29 . [Pipeline] withDockerContainer 01:25:29 prd-centos7-docker-4c-2g-6152 does not seem to be running inside a container 01:25:29 $ 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 01:25:30 $ docker top b9185d29f8e5f7e423f7f1bf0ce9a37f8c105753908ce266cba4a730cf35e8a3 -eo pid,comm [Pipeline] { [Pipeline] sh 01:25:30 + go version 01:25:30 go version go1.17.6 linux/amd64 [Pipeline] } 01:25:30 $ docker stop --time=1 b9185d29f8e5f7e423f7f1bf0ce9a37f8c105753908ce266cba4a730cf35e8a3 01:25:31 $ docker rm -f b9185d29f8e5f7e423f7f1bf0ce9a37f8c105753908ce266cba4a730cf35e8a3 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 01:25:32 + docker inspect -f . ci-base-image-x86_64 01:25:32 . [Pipeline] withDockerContainer 01:25:32 prd-centos7-docker-4c-2g-6152 does not seem to be running inside a container 01:25:32 $ 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 01:25:32 $ docker top 3409426817ba4d5ec09aab20b4001a06561583fd270e60643e7e5e5265bb4b89 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 01:25:33 + make test 01:25:33 GO111MODULE=on go test -coverprofile=coverage.out ./... 01:25:33 ? github.com/edgexfoundry/device-sdk-go/v2 [no test files] 01:25:52 ? github.com/edgexfoundry/device-sdk-go/v2/example/cmd/device-simple [no test files] 01:25:52 ? github.com/edgexfoundry/device-sdk-go/v2/example/config [no test files] 01:25:52 ? github.com/edgexfoundry/device-sdk-go/v2/example/driver [no test files] 01:25:52 ok github.com/edgexfoundry/device-sdk-go/v2/internal/application 0.011s coverage: 23.3% of statements 01:25:52 ? github.com/edgexfoundry/device-sdk-go/v2/internal/autodiscovery [no test files] 01:25:52 ok github.com/edgexfoundry/device-sdk-go/v2/internal/autoevent 0.009s coverage: 27.6% of statements 01:25:52 ok github.com/edgexfoundry/device-sdk-go/v2/internal/cache 0.013s coverage: 78.9% of statements 01:25:52 ok github.com/edgexfoundry/device-sdk-go/v2/internal/clients 0.013s coverage: 10.8% of statements 01:25:52 ? github.com/edgexfoundry/device-sdk-go/v2/internal/common [no test files] 01:25:52 ? github.com/edgexfoundry/device-sdk-go/v2/internal/config [no test files] 01:25:52 ? github.com/edgexfoundry/device-sdk-go/v2/internal/container [no test files] 01:25:52 --- FAIL: TestRestController_Validate (0.00s) 01:25:52 --- FAIL: TestRestController_Validate/Valid_-_validation_succeed (0.00s) 01:25:52 panic: 01:25:52 assert: mock: I don't know what to return because the method call was unexpected. 01:25:52 Either do Mock.On("ValidateDevice").Return(...) first, or remove the ValidateDevice() call. 01:25:52 This method was unexpected: 01:25:52 ValidateDevice(models.Device) 01:25:52 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} 01:25:52 at: [DeviceValidator.go:17 validation.go:32 server.go:2047 validation_test.go:89] [recovered] 01:25:52 panic: 01:25:52 assert: mock: I don't know what to return because the method call was unexpected. 01:25:52 Either do Mock.On("ValidateDevice").Return(...) first, or remove the ValidateDevice() call. 01:25:52 This method was unexpected: 01:25:52 ValidateDevice(models.Device) 01:25:52 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} 01:25:52 at: [DeviceValidator.go:17 validation.go:32 server.go:2047 validation_test.go:89] 01:25:52 01:25:52 goroutine 25 [running]: 01:25:52 testing.tRunner.func1.2({0x67c7a0, 0xc000446400}) 01:25:52 /usr/local/go/src/testing/testing.go:1209 +0x24e 01:25:52 testing.tRunner.func1() 01:25:52 /usr/local/go/src/testing/testing.go:1212 +0x218 01:25:52 panic({0x67c7a0, 0xc000446400}) 01:25:52 /usr/local/go/src/runtime/panic.go:1038 +0x215 01:25:52 github.com/stretchr/testify/mock.(*Mock).fail(0xc0003fd090, {0x6f872e, 0x4}, {0xc0003bbe80, 0x1, 0x1}) 01:25:52 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:254 +0x145 01:25:52 github.com/stretchr/testify/mock.(*Mock).MethodCalled(0xc0003fd090, {0x7a55e4, 0xe}, {0xc000446280, 0x1, 0x1}) 01:25:52 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:418 +0x705 01:25:52 github.com/stretchr/testify/mock.(*Mock).Called(0x6d1d20, {0xc000446280, 0x1, 0x1}) 01:25:52 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:383 +0x149 01:25:52 github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks.(*DeviceValidator).ValidateDevice(0xc0003fd090, {{0x0, 0x0}, {0x0, 0x0}, {0xc000419e10, 0xb}, {0x0, 0x0}, {0xc000419e20, ...}, ...}) 01:25:52 /w/workspace/gexfoundry_device-sdk-go_PR-1097/pkg/models/mocks/DeviceValidator.go:17 +0xc5 01:25:52 github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http.(*RestController).ValidateDevice(0xc0003bb700, {0x749288, 0xc0003bb740}, 0xc0003ca500) 01:25:52 /w/workspace/gexfoundry_device-sdk-go_PR-1097/internal/controller/http/validation.go:32 +0x2a2 01:25:52 net/http.HandlerFunc.ServeHTTP(...) 01:25:52 /usr/local/go/src/net/http/server.go:2047 01:25:52 github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http.TestRestController_Validate.func3(0xc0003c6b60) 01:25:52 /w/workspace/gexfoundry_device-sdk-go_PR-1097/internal/controller/http/validation_test.go:89 +0x27e 01:25:52 testing.tRunner(0xc0003c6d00, 0xc00000f5a8) 01:25:52 /usr/local/go/src/testing/testing.go:1259 +0x102 01:25:52 created by testing.(*T).Run 01:25:52 /usr/local/go/src/testing/testing.go:1306 +0x35a 01:25:52 FAIL github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http 0.015s 01:25:52 ? github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http/correlation [no test files] 01:25:53 ok github.com/edgexfoundry/device-sdk-go/v2/internal/messaging 1.015s coverage: 86.1% of statements 01:25:53 ? github.com/edgexfoundry/device-sdk-go/v2/internal/provision [no test files] 01:25:53 ? github.com/edgexfoundry/device-sdk-go/v2/internal/telemetry [no test files] 01:25:53 ok github.com/edgexfoundry/device-sdk-go/v2/internal/transformer 0.014s coverage: 57.4% of statements 01:25:53 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/models 0.041s coverage: 89.2% of statements 01:25:53 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks [no test files] 01:25:54 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/service 0.009s coverage: 4.8% of statements 01:25:54 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/startup [no test files] 01:25:54 FAIL 01:25:54 make: *** [Makefile:36: unittest] Error 1 [Pipeline] } 01:25:54 $ docker stop --time=1 3409426817ba4d5ec09aab20b4001a06561583fd270e60643e7e5e5265bb4b89 01:25:55 $ docker rm -f 3409426817ba4d5ec09aab20b4001a06561583fd270e60643e7e5e5265bb4b89 [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 01:25:56 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:25:56 01:25:56 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 01:25:56 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:25:56 latest: Pulling from edgex-lftools-log-publisher 01:25:56 5eb5b503b376: Pulling fs layer 01:25:56 5c69ac0246d0: Pulling fs layer 01:25:56 ec43610c2a17: Pulling fs layer 01:25:56 3a2ae6a8a46f: Pulling fs layer 01:25:56 33b1e0a273af: Pulling fs layer 01:25:56 5d3b04190fa2: Pulling fs layer 01:25:56 2f39f015ded8: Pulling fs layer 01:25:56 3a2ae6a8a46f: Waiting 01:25:56 33b1e0a273af: Waiting 01:25:56 5d3b04190fa2: Waiting 01:25:56 2f39f015ded8: Waiting 01:25:56 5c69ac0246d0: Verifying Checksum 01:25:56 5c69ac0246d0: Download complete 01:25:56 3a2ae6a8a46f: Verifying Checksum 01:25:56 3a2ae6a8a46f: Download complete 01:25:56 33b1e0a273af: Verifying Checksum 01:25:56 33b1e0a273af: Download complete 01:25:56 ec43610c2a17: Verifying Checksum 01:25:56 ec43610c2a17: Download complete 01:25:56 5d3b04190fa2: Verifying Checksum 01:25:56 5d3b04190fa2: Download complete 01:25:56 5eb5b503b376: Verifying Checksum 01:25:56 5eb5b503b376: Download complete 01:25:57 2f39f015ded8: Verifying Checksum 01:25:57 2f39f015ded8: Download complete 01:25:58 5eb5b503b376: Pull complete 01:25:58 5c69ac0246d0: Pull complete 01:25:59 ec43610c2a17: Pull complete 01:25:59 3a2ae6a8a46f: Pull complete 01:25:59 33b1e0a273af: Pull complete 01:25:59 5d3b04190fa2: Pull complete 01:26:04 2f39f015ded8: Pull complete 01:26:04 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 01:26:04 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:26:04 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 01:26:04 prd-centos7-docker-4c-2g-6152 does not seem to be running inside a container 01:26:04 $ 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 01:26:07 $ docker top 69d97f6a8ba0301c83be6a377a106c03a946b9750ba2e7de652a0d51f11a15a1 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:26:07 ---> job-cost.sh 01:26:07 lf-activate-venv: SKIPPING 01:26:07 INFO: No Stack... 01:26:08 INFO: Retrieving Pricing Info for: v3-standard-2 01:26:08 INFO: Archiving Costs [Pipeline] sh 01:26:08 + cat /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives/cost.csv 01:26:08 + cut -d, -f6 [Pipeline] lock 01:26:08 Trying to acquire lock on [jenkins-edgexfoundry-device-sdk-go-PR-1097-9-stack-cost] 01:26:08 Resource [jenkins-edgexfoundry-device-sdk-go-PR-1097-9-stack-cost] did not exist. Created. 01:26:08 Lock acquired on [jenkins-edgexfoundry-device-sdk-go-PR-1097-9-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 01:26:09 + echo total: 0.05999999865889549 [Pipeline] stash 01:26:09 Stashed 1 file(s) [Pipeline] } 01:26:09 Lock released on resource [jenkins-edgexfoundry-device-sdk-go-PR-1097-9-stack-cost] [Pipeline] // lock [Pipeline] } 01:26:09 $ docker stop --time=1 69d97f6a8ba0301c83be6a377a106c03a946b9750ba2e7de652a0d51f11a15a1 01:26:10 $ docker rm -f 69d97f6a8ba0301c83be6a377a106c03a946b9750ba2e7de652a0d51f11a15a1 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 01:26:10 Failed in branch amd64 01:28:27 Running on prd-ubuntu18.04-docker-arm64-4c-16g-6153 in /w/workspace/gexfoundry_device-sdk-go_PR-1097 [Pipeline] { [Pipeline] ws 01:28:27 Running in /w/workspace/device-sdk-go/9 [Pipeline] { [Pipeline] checkout 01:28:27 The recommended git tool is: git 01:28:31 using credential edgex-jenkins-ssh 01:28:31 Cloning the remote Git repository 01:28:31 Cloning repository git@github.com:edgexfoundry/device-sdk-go.git 01:28:31 > git init /w/workspace/device-sdk-go/9 # timeout=10 01:28:31 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-go.git 01:28:31 > git --version # timeout=10 01:28:31 > git --version # 'git version 2.17.1' 01:28:31 using GIT_SSH to set credentials SSH Credentials for GitHub 01:28:32 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-sdk-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 01:28:33 > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 01:28:34 Merging remotes/origin/main commit ff2bdc244935d5b40da6f20198b29dfc476efd7a into PR head commit da94e137d7cee9468dadf98dfd2596d4a5e70a31 01:28:34 Merge succeeded, producing da94e137d7cee9468dadf98dfd2596d4a5e70a31 01:28:34 Checking out Revision da94e137d7cee9468dadf98dfd2596d4a5e70a31 (PR-1097) 01:28:33 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 01:28:33 > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 01:28:33 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-go.git 01:28:33 using GIT_SSH to set credentials SSH Credentials for GitHub 01:28:33 > 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 01:28:34 > git config core.sparsecheckout # timeout=10 01:28:34 > git checkout -f da94e137d7cee9468dadf98dfd2596d4a5e70a31 # timeout=10 01:28:34 > git remote # timeout=10 01:28:34 > git config --get remote.origin.url # timeout=10 01:28:34 using GIT_SSH to set credentials SSH Credentials for GitHub 01:28:34 > git merge ff2bdc244935d5b40da6f20198b29dfc476efd7a # timeout=10 01:28:34 > git rev-parse HEAD^{commit} # timeout=10 01:28:34 > git config core.sparsecheckout # timeout=10 01:28:34 > git checkout -f da94e137d7cee9468dadf98dfd2596d4a5e70a31 # timeout=10 01:28:38 Commit message: "feat: implement ProtocolProperties validation mechanism" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 01:28:39 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 01:28:39 % Total % Received % Xferd Average Speed Time Time Time Current 01:28:39 Dload Upload Total Spent Left Speed 01:28:39 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 28537 0 --:--:-- --:--:-- --:--:-- 28537 [Pipeline] sh 01:28:40 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 01:28:40 + sudo tee /etc/docker/daemon.new 01:28:40 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 01:28:40 { 01:28:40 "registry-mirrors": [ 01:28:40 "https://nexus3.edgexfoundry.org:10001" 01:28:40 ], 01:28:40 "bip": "10.250.0.254/24", 01:28:40 "hosts": [ 01:28:40 "tcp://0.0.0.0:5555", 01:28:40 "unix:///var/run/docker.sock" 01:28:40 ], 01:28:40 "mtu": 1458, 01:28:40 "selinux-enabled": true, 01:28:40 "seccomp-profile": "/etc/docker/seccomp.json" 01:28:40 } [Pipeline] sh 01:28:41 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 01:28:41 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 01:28:59 provisioning config files... 01:28:59 copy managed file [device-sdk-go-settings] to file:/w/workspace/device-sdk-go/9@tmp/config2727602933618194262tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:29:00 ---> docker-login.sh 01:29:00 nexus3.edgexfoundry.org:10001 01:29:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:29:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:29:01 Configure a credential helper to remove this warning. See 01:29:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:29:01 01:29:01 Login Succeeded 01:29:01 nexus3.edgexfoundry.org:10002 01:29:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:29:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:29:01 Configure a credential helper to remove this warning. See 01:29:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:29:01 01:29:01 Login Succeeded 01:29:01 nexus3.edgexfoundry.org:10003 01:29:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:29:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:29:01 Configure a credential helper to remove this warning. See 01:29:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:29:01 01:29:01 Login Succeeded 01:29:01 nexus3.edgexfoundry.org:10004 01:29:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:29:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:29:02 Configure a credential helper to remove this warning. See 01:29:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:29:02 01:29:02 Login Succeeded 01:29:02 docker.io 01:29:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:29:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:29:03 Configure a credential helper to remove this warning. See 01:29:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:29:03 01:29:03 Login Succeeded 01:29:03 ---> docker-login.sh ends [Pipeline] } 01:29:03 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 01:29:03 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 01:29:03 ========================================================= 01:29:03 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 01:29:03 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 01:29:04 + 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 . 01:29:04 Sending build context to Docker daemon 5.183MB 01:29:04 Step 1/11 : ARG BASE=golang:1.17-alpine3.15 01:29:04 Step 2/11 : FROM ${BASE} AS builder 01:29:04 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 01:29:04 9b3977197b4f: Pulling fs layer 01:29:04 1a89e8eeedd5: Pulling fs layer 01:29:04 94645a83ff95: Pulling fs layer 01:29:04 3f3a8bcf1eab: Pulling fs layer 01:29:04 0c92f367c5e7: Pulling fs layer 01:29:04 f7c0051592d6: Pulling fs layer 01:29:04 a227ed2f7395: Pulling fs layer 01:29:04 7b1c46037f91: Pulling fs layer 01:29:04 3f3a8bcf1eab: Waiting 01:29:04 a227ed2f7395: Waiting 01:29:04 0c92f367c5e7: Waiting 01:29:04 7b1c46037f91: Waiting 01:29:04 f7c0051592d6: Waiting 01:29:04 94645a83ff95: Download complete 01:29:04 1a89e8eeedd5: Verifying Checksum 01:29:04 1a89e8eeedd5: Download complete 01:29:04 0c92f367c5e7: Verifying Checksum 01:29:04 0c92f367c5e7: Download complete 01:29:04 f7c0051592d6: Download complete 01:29:04 9b3977197b4f: Download complete 01:29:04 a227ed2f7395: Verifying Checksum 01:29:04 a227ed2f7395: Download complete 01:29:05 9b3977197b4f: Pull complete 01:29:06 1a89e8eeedd5: Pull complete 01:29:06 94645a83ff95: Pull complete 01:29:06 7b1c46037f91: Verifying Checksum 01:29:06 7b1c46037f91: Download complete 01:29:07 3f3a8bcf1eab: Verifying Checksum 01:29:07 3f3a8bcf1eab: Download complete 01:29:19 3f3a8bcf1eab: Pull complete 01:29:19 0c92f367c5e7: Pull complete 01:29:19 f7c0051592d6: Pull complete 01:29:19 a227ed2f7395: Pull complete 01:29:24 7b1c46037f91: Pull complete 01:29:24 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 01:29:24 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 01:29:24 ---> f79e39bc4007 01:29:24 Step 3/11 : ARG MAKE=make build 01:29:25 ---> Running in 9b618b7aa508 01:29:26 Removing intermediate container 9b618b7aa508 01:29:26 ---> 66341c39b58c 01:29:26 Step 4/11 : WORKDIR /device-sdk-go 01:29:26 ---> Running in 20fa13890529 01:29:26 Removing intermediate container 20fa13890529 01:29:26 ---> 6bd4d69bc8db 01:29:26 Step 5/11 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 01:29:27 ---> Running in f206c89aabed 01:29:27 Removing intermediate container f206c89aabed 01:29:27 ---> cae199c35553 01:29:27 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 01:29:27 ---> Running in 9f1e88fd0cf6 01:29:29 Removing intermediate container 9f1e88fd0cf6 01:29:29 ---> f8927c4d45d7 01:29:29 Step 7/11 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 01:29:29 ---> Running in 425003a0d03d 01:29:30 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 01:29:31 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 01:29:32 OK: 220 MiB in 52 packages 01:29:33 Removing intermediate container 425003a0d03d 01:29:33 ---> 5540b228e210 01:29:33 Step 8/11 : COPY go.mod vendor* ./ 01:29:34 ---> 96f0da3878fd 01:29:34 Step 9/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 01:29:34 ---> Running in 234b9e724ce5 01:30:55 Removing intermediate container 234b9e724ce5 01:30:55 ---> 7e5475a80e8c 01:30:55 Step 10/11 : COPY . . 01:30:55 ---> 8232a23248f5 01:30:55 Step 11/11 : RUN ${MAKE} 01:30:55 ---> Running in 1aa4d65e317e 01:30:55 noop 01:30:55 Removing intermediate container 1aa4d65e317e 01:30:55 ---> 8c375067d97c 01:30:55 Successfully built 8c375067d97c 01:30:55 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 01:30:56 + docker inspect -f . ci-base-image-arm64 01:30:56 . [Pipeline] withDockerContainer 01:30:56 prd-ubuntu18.04-docker-arm64-4c-16g-6153 does not seem to be running inside a container 01:30:56 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-sdk-go/9 -v /w/workspace/device-sdk-go/9:/w/workspace/device-sdk-go/9:rw,z -v /w/workspace/device-sdk-go/9@tmp:/w/workspace/device-sdk-go/9@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-arm64 cat 01:30:57 $ docker top 563532da3f35b805ea186e7fa4b07234fa78640a8d15439c12398b2a32e3f511 -eo pid,comm [Pipeline] { [Pipeline] sh 01:30:58 + go version 01:30:58 go version go1.17.6 linux/arm64 [Pipeline] } 01:30:58 $ docker stop --time=1 563532da3f35b805ea186e7fa4b07234fa78640a8d15439c12398b2a32e3f511 01:31:00 $ docker rm -f 563532da3f35b805ea186e7fa4b07234fa78640a8d15439c12398b2a32e3f511 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 01:31:01 + docker inspect -f . ci-base-image-arm64 01:31:01 . [Pipeline] withDockerContainer 01:31:01 prd-ubuntu18.04-docker-arm64-4c-16g-6153 does not seem to be running inside a container 01:31:01 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-sdk-go/9 -v /w/workspace/device-sdk-go/9:/w/workspace/device-sdk-go/9:rw,z -v /w/workspace/device-sdk-go/9@tmp:/w/workspace/device-sdk-go/9@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-arm64 cat 01:31:02 $ docker top 77010b245021b81b7aae3db32ec7922fb43faa4e7dcf13316c41b7c66de5d7d8 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 01:31:03 + make test 01:31:03 GO111MODULE=on go test -coverprofile=coverage.out ./... 01:31:05 ? github.com/edgexfoundry/device-sdk-go/v2 [no test files] 01:31:52 ? github.com/edgexfoundry/device-sdk-go/v2/example/cmd/device-simple [no test files] 01:31:52 ? github.com/edgexfoundry/device-sdk-go/v2/example/config [no test files] 01:31:52 ? github.com/edgexfoundry/device-sdk-go/v2/example/driver [no test files] 01:32:02 ok github.com/edgexfoundry/device-sdk-go/v2/internal/application 0.110s coverage: 23.3% of statements 01:32:02 ? github.com/edgexfoundry/device-sdk-go/v2/internal/autodiscovery [no test files] 01:32:02 ok github.com/edgexfoundry/device-sdk-go/v2/internal/autoevent 0.103s coverage: 27.6% of statements 01:32:02 ok github.com/edgexfoundry/device-sdk-go/v2/internal/cache 0.124s coverage: 78.9% of statements 01:32:02 ok github.com/edgexfoundry/device-sdk-go/v2/internal/clients 0.053s coverage: 10.8% of statements 01:32:02 ? github.com/edgexfoundry/device-sdk-go/v2/internal/common [no test files] 01:32:02 ? github.com/edgexfoundry/device-sdk-go/v2/internal/config [no test files] 01:32:02 ? github.com/edgexfoundry/device-sdk-go/v2/internal/container [no test files] 01:32:02 --- FAIL: TestRestController_Validate (0.00s) 01:32:02 --- FAIL: TestRestController_Validate/Valid_-_validation_succeed (0.00s) 01:32:02 panic: 01:32:02 assert: mock: I don't know what to return because the method call was unexpected. 01:32:02 Either do Mock.On("ValidateDevice").Return(...) first, or remove the ValidateDevice() call. 01:32:02 This method was unexpected: 01:32:02 ValidateDevice(models.Device) 01:32:02 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} 01:32:02 at: [DeviceValidator.go:17 validation.go:32 server.go:2047 validation_test.go:89] [recovered] 01:32:02 panic: 01:32:02 assert: mock: I don't know what to return because the method call was unexpected. 01:32:02 Either do Mock.On("ValidateDevice").Return(...) first, or remove the ValidateDevice() call. 01:32:02 This method was unexpected: 01:32:02 ValidateDevice(models.Device) 01:32:02 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} 01:32:02 at: [DeviceValidator.go:17 validation.go:32 server.go:2047 validation_test.go:89] 01:32:02 01:32:02 goroutine 25 [running]: 01:32:02 testing.tRunner.func1.2({0x673080, 0x40004523e0}) 01:32:02 /usr/local/go/src/testing/testing.go:1209 +0x258 01:32:02 testing.tRunner.func1(0x40003d2d00) 01:32:02 /usr/local/go/src/testing/testing.go:1212 +0x278 01:32:02 panic({0x673080, 0x40004523e0}) 01:32:02 /usr/local/go/src/runtime/panic.go:1038 +0x224 01:32:02 github.com/stretchr/testify/mock.(*Mock).fail(0x400008b090, {0x6ed5a4, 0xc1}, {0x40003c5e80, 0x4, 0x4}) 01:32:02 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:254 +0x184 01:32:02 github.com/stretchr/testify/mock.(*Mock).MethodCalled(0x400008b090, {0x79710f, 0xe}, {0x4000452260, 0x1, 0x1}) 01:32:02 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:418 +0x7f4 01:32:02 github.com/stretchr/testify/mock.(*Mock).Called(0x400008b090, {0x4000452260, 0x1, 0x1}) 01:32:02 /go/pkg/mod/github.com/stretchr/testify@v1.7.0/mock/mock.go:383 +0x178 01:32:02 github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks.(*DeviceValidator).ValidateDevice(0x400008b090, {{0x0, 0x0}, {0x0, 0x0}, {0x4000423df0, 0xb}, {0x0, 0x0}, {0x4000423e00, ...}, ...}) 01:32:02 /w/workspace/device-sdk-go/9/pkg/models/mocks/DeviceValidator.go:17 +0xc0 01:32:02 github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http.(*RestController).ValidateDevice(0x40003c5700, {0x73df30, 0x40003c5740}, 0x4000454000) 01:32:02 /w/workspace/device-sdk-go/9/internal/controller/http/validation.go:32 +0x240 01:32:02 net/http.HandlerFunc.ServeHTTP(...) 01:32:02 /usr/local/go/src/net/http/server.go:2047 01:32:02 github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http.TestRestController_Validate.func3(0x40003d2d00) 01:32:02 /w/workspace/device-sdk-go/9/internal/controller/http/validation_test.go:89 +0x2d0 01:32:02 testing.tRunner(0x40003d2d00, 0x400000f3e0) 01:32:02 /usr/local/go/src/testing/testing.go:1259 +0xf8 01:32:02 created by testing.(*T).Run 01:32:02 /usr/local/go/src/testing/testing.go:1306 +0x350 01:32:02 FAIL github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http 0.102s 01:32:02 ? github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http/correlation [no test files] 01:32:03 ok github.com/edgexfoundry/device-sdk-go/v2/internal/messaging 1.112s coverage: 86.1% of statements 01:32:03 ? github.com/edgexfoundry/device-sdk-go/v2/internal/provision [no test files] 01:32:03 ? github.com/edgexfoundry/device-sdk-go/v2/internal/telemetry [no test files] 01:32:03 ok github.com/edgexfoundry/device-sdk-go/v2/internal/transformer 0.141s coverage: 57.4% of statements 01:32:04 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/models 0.203s coverage: 89.2% of statements 01:32:04 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks [no test files] 01:32:05 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/service 0.052s coverage: 4.8% of statements 01:32:05 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/startup [no test files] 01:32:05 FAIL 01:32:05 make: *** [Makefile:36: unittest] Error 1 [Pipeline] } 01:32:05 $ docker stop --time=1 77010b245021b81b7aae3db32ec7922fb43faa4e7dcf13316c41b7c66de5d7d8 01:32:07 $ docker rm -f 77010b245021b81b7aae3db32ec7922fb43faa4e7dcf13316c41b7c66de5d7d8 [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 01:32:08 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 01:32:08 01:32:08 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 01:32:08 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 01:32:09 arm64: Pulling from edgex-lftools-log-publisher 01:32:09 8998bd30e6a1: Pulling fs layer 01:32:09 04944245beec: Pulling fs layer 01:32:09 699f458cf7ca: Pulling fs layer 01:32:09 765212b225bb: Pulling fs layer 01:32:09 f23df028b6ca: Pulling fs layer 01:32:09 d65c8cfc05b1: Pulling fs layer 01:32:09 2437ff75d9bd: Pulling fs layer 01:32:09 f23df028b6ca: Waiting 01:32:09 d65c8cfc05b1: Waiting 01:32:09 2437ff75d9bd: Waiting 01:32:09 765212b225bb: Waiting 01:32:09 04944245beec: Verifying Checksum 01:32:09 04944245beec: Download complete 01:32:09 765212b225bb: Verifying Checksum 01:32:09 765212b225bb: Download complete 01:32:09 f23df028b6ca: Download complete 01:32:09 d65c8cfc05b1: Verifying Checksum 01:32:09 d65c8cfc05b1: Download complete 01:32:09 699f458cf7ca: Verifying Checksum 01:32:09 699f458cf7ca: Download complete 01:32:09 8998bd30e6a1: Download complete 01:32:12 2437ff75d9bd: Verifying Checksum 01:32:12 2437ff75d9bd: Download complete 01:32:13 8998bd30e6a1: Pull complete 01:32:14 04944245beec: Pull complete 01:32:15 699f458cf7ca: Pull complete 01:32:16 765212b225bb: Pull complete 01:32:17 f23df028b6ca: Pull complete 01:32:17 d65c8cfc05b1: Pull complete 01:32:32 2437ff75d9bd: Pull complete 01:32:32 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 01:32:32 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 01:32:32 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 01:32:32 prd-ubuntu18.04-docker-arm64-4c-16g-6153 does not seem to be running inside a container 01:32:32 $ 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/9 -v /w/workspace/device-sdk-go/9:/w/workspace/device-sdk-go/9:rw,z -v /w/workspace/device-sdk-go/9@tmp:/w/workspace/device-sdk-go/9@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:arm64 cat 01:32:35 $ docker top a7bbd11d74df0d2afdcbda72a1424b58e3b243ce1c82e248a0b83dd933b8be8a -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:32:36 ---> job-cost.sh 01:32:36 lf-activate-venv: SKIPPING 01:32:36 INFO: No Stack... 01:32:37 INFO: Retrieving Pricing Info for: v3-standard-4 01:32:38 INFO: Archiving Costs [Pipeline] sh 01:32:38 + cut -d, -f6 01:32:38 + cat /w/workspace/device-sdk-go/9/archives/cost.csv [Pipeline] lock 01:32:38 Trying to acquire lock on [jenkins-edgexfoundry-device-sdk-go-PR-1097-9-stack-cost] 01:32:38 Resource [jenkins-edgexfoundry-device-sdk-go-PR-1097-9-stack-cost] did not exist. Created. 01:32:38 Lock acquired on [jenkins-edgexfoundry-device-sdk-go-PR-1097-9-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 01:32:39 /w/workspace/device-sdk-go/9@tmp/durable-3a008271/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 01:32:40 + echo total: 0.10999999940395355 [Pipeline] stash 01:32:40 Warning: overwriting stash ‘stack-cost’ 01:32:40 Stashed 1 file(s) [Pipeline] } 01:32:40 Lock released on resource [jenkins-edgexfoundry-device-sdk-go-PR-1097-9-stack-cost] [Pipeline] // lock [Pipeline] } 01:32:40 $ docker stop --time=1 a7bbd11d74df0d2afdcbda72a1424b58e3b243ce1c82e248a0b83dd933b8be8a 01:32:42 $ docker rm -f a7bbd11d74df0d2afdcbda72a1424b58e3b243ce1c82e248a0b83dd933b8be8a [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } 01:32:42 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 01:32:43 + '[' -d /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives ']' 01:32:43 + ls -al /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives 01:32:43 total 8 01:32:43 drwxr-xr-x. 3 root root 34 Mar 1 01:26 . 01:32:43 drwxrwxr-x. 12 jenkins jenkins 4096 Mar 1 01:26 .. 01:32:43 drwxr-xr-x. 2 root root 6 Mar 1 01:26 cost 01:32:43 -rw-r--r--. 1 root root 85 Mar 1 01:26 cost.csv 01:32:43 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives 01:32:43 + ls -al /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives 01:32:43 total 8 01:32:43 drwxr-xr-x. 3 jenkins jenkins 34 Mar 1 01:26 . 01:32:43 drwxrwxr-x. 12 jenkins jenkins 4096 Mar 1 01:26 .. 01:32:43 drwxr-xr-x. 2 jenkins jenkins 6 Mar 1 01:26 cost 01:32:43 -rw-r--r--. 1 jenkins jenkins 85 Mar 1 01:26 cost.csv [Pipeline] libraryResource [Pipeline] sh 01:32:43 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 01:32:44 ---> package-listing.sh 01:32:44 ++ facter osfamily 01:32:44 ++ tr '[:upper:]' '[:lower:]' 01:32:44 + OS_FAMILY=redhat 01:32:44 + workspace=/w/workspace/gexfoundry_device-sdk-go_PR-1097 01:32:44 + START_PACKAGES=/tmp/packages_start.txt 01:32:44 + END_PACKAGES=/tmp/packages_end.txt 01:32:44 + DIFF_PACKAGES=/tmp/packages_diff.txt 01:32:44 + PACKAGES=/tmp/packages_start.txt 01:32:44 + '[' /w/workspace/gexfoundry_device-sdk-go_PR-1097 ']' 01:32:44 + PACKAGES=/tmp/packages_end.txt 01:32:44 + case "${OS_FAMILY}" in 01:32:44 + sort 01:32:44 + rpm -qa 01:32:45 + '[' -f /tmp/packages_start.txt ']' 01:32:45 + '[' -f /tmp/packages_end.txt ']' 01:32:45 + diff /tmp/packages_start.txt /tmp/packages_end.txt 01:32:45 + '[' /w/workspace/gexfoundry_device-sdk-go_PR-1097 ']' 01:32:45 + mkdir -p /w/workspace/gexfoundry_device-sdk-go_PR-1097/archives/ 01:32:45 + 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 01:32:45 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 01:32:45 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 01:32:45 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:32:45 . [Pipeline] withDockerContainer 01:32:46 prd-centos7-docker-4c-2g-6152 does not seem to be running inside a container 01:32:46 $ 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 01:32:46 $ docker top 927e35f8683cc69cf4a47c66aba5e4cdc3744934e70665a7fa40b75844f557cf -eo pid,comm [Pipeline] { [Pipeline] sh 01:32:46 + touch /tmp/pre-build-complete [Pipeline] sh 01:32:47 + mkdir -p /var/log/sysstat [Pipeline] sh 01:32:47 + ls /var/log/sa-host 01:32:47 + sadf -c /var/log/sa-host/sa01 01:32:47 file_magic: OK 01:32:47 HZ: Using current value: 100 01:32:47 file_header: OK 01:32:47 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 01:32:47 Statistics: 01:32:47 HRHnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu... 01:32:47 File successfully converted to sysstat format version 12.5.2 01:32:47 + sadf -c /var/log/sa-host/sa17 01:32:47 file_magic: OK 01:32:47 HZ: Using current value: 100 01:32:47 file_header: OK 01:32:47 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 01:32:47 Statistics: 01:32:47 Hnuu...uuuununununu...Hnuu...uuuununununu... 01:32:47 File successfully converted to sysstat format version 12.5.2 [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 01:32:47 provisioning config files... 01:32:47 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1097@tmp/config8546699478603345909tmp [Pipeline] { [Pipeline] echo 01:32:47 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 01:32:48 ---> create-netrc.sh [Pipeline] } 01:32:48 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 01:32:48 ---> python-tools-install.sh [Pipeline] echo 01:32:48 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 01:32:48 ---> sudo-logs.sh 01:32:48 Archiving 'sudo' log.. 01:32:48 sudo: unable to resolve host prd-centos7-docker-4c-2g-6152.novalocal: Name or service not known 01:32:48 sudo: unable to resolve host prd-centos7-docker-4c-2g-6152.novalocal: Name or service not known [Pipeline] unstash [Pipeline] echo 01:32:48 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 01:32:49 ---> job-cost.sh 01:32:49 lf-activate-venv: SKIPPING 01:32:49 DEBUG: total: 0.05999999865889549 01:32:49 INFO: Retrieving Stack Cost... 01:32:49 INFO: Retrieving Pricing Info for: v3-standard-2 01:32:49 INFO: Archiving Costs [Pipeline] echo 01:32:49 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 01:32:50 ---> logs-deploy.sh 01:32:50 lf-activate-venv: SKIPPING 01:32:50 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-sdk-go/PR-1097/9 01:32:50 INFO: archiving workspace using pattern(s): 01:32:51 Archives upload complete. 01:32:51 INFO: archiving logs to Nexus