Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Build Docker images Pipeline is unstable #707

Closed
kuisathaverat opened this issue Sep 2, 2020 · 1 comment
Closed

Build Docker images Pipeline is unstable #707

kuisathaverat opened this issue Sep 2, 2020 · 1 comment
Assignees
Labels
automation bug Something isn't working ci Team:Automation Label for the Observability productivity team

Comments

@kuisathaverat
Copy link
Contributor

Screenshot 2020-09-02 at 08 58 00

[2020-09-02T05:30:17.402Z] #   Step 11/19 : RUN ./maven-package.sh "${JAVA_AGENT_BUILT_VERSION}"
[2020-09-02T05:30:17.402Z] #    ---> Running in d1e1b3d4b919
[2020-09-02T05:30:17.402Z] #   + JAVA_AGENT_BUILT_VERSION=
[2020-09-02T05:30:17.402Z] #   + ARTIFACT_ID=elastic-apm-agent
[2020-09-02T05:30:17.402Z] #   + '[' -z '' ']'
[2020-09-02T05:30:17.402Z] #   + cd /agent/apm-agent-java
[2020-09-02T05:30:17.402Z] #   + mvn -q --batch-mode install -DskipTests -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
[2020-09-02T05:30:17.402Z] #   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-java) on project apm-agent-parent: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
[2020-09-02T05:30:17.402Z] #   [ERROR] 
[2020-09-02T05:30:17.402Z] #   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[2020-09-02T05:30:17.402Z] #   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[2020-09-02T05:30:17.402Z] #   [ERROR] 
[2020-09-02T05:30:17.402Z] #   [ERROR] For more information about the errors and possible solutions, please read the following articles:
[2020-09-02T05:30:17.402Z] #   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[2020-09-02T05:30:17.402Z] #   ++ mvn -q -Dexec.executable=echo '-Dexec.args=${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec
[2020-09-02T05:30:17.402Z] #   + export JAVA_AGENT_BUILT_VERSION=1.18.1.RC1-SNAPSHOT
[2020-09-02T05:30:17.402Z] #   + JAVA_AGENT_BUILT_VERSION=1.18.1.RC1-SNAPSHOT
[2020-09-02T05:30:17.402Z] #   + cd /app
[2020-09-02T05:30:17.402Z] #   + mvn -q --batch-mode -DAGENT_API_VERSION=1.18.1.RC1-SNAPSHOT -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn package
[2020-09-02T05:30:17.402Z] #   [ERROR] Failed to execute goal on project hello-spring: Could not resolve dependencies for project org.springframework:hello-spring:jar:0.1: Could not find artifact co.elastic.apm:apm-agent-api:jar:1.18.1.RC1-SNAPSHOT -> [Help 1]
[2020-09-02T05:30:17.402Z] #   [ERROR] 
[2020-09-02T05:30:17.402Z] #   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[2020-09-02T05:30:17.402Z] #   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[2020-09-02T05:30:17.402Z] #   [ERROR] 
[2020-09-02T05:30:17.402Z] #   [ERROR] For more information about the errors and possible solutions, please read the following articles:
[2020-09-02T05:30:17.402Z] #   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[2020-09-02T05:30:17.402Z] #   + cp /root/.m2/repository/co/elastic/apm/elastic-apm-agent/1.18.1.RC1-SNAPSHOT/elastic-apm-agent-1.18.1.RC1-SNAPSHOT.jar /agent/apm-agent.jar
[2020-09-02T05:30:17.402Z] #   cp: cannot stat '/root/.m2/repository/co/elastic/apm/elastic-apm-agent/1.18.1.RC1-SNAPSHOT/elastic-apm-agent-1.18.1.RC1-SNAPSHOT.jar': No such file or directory
[2020-09-02T05:30:17.402Z] #   The command '/bin/sh -c ./maven-package.sh "${JAVA_AGENT_BUILT_VERSION}"' returned a non-zero code: 1
[2020-09-02T05:30:17.402Z] # --
[2020-09-02T05:30:17.402Z] # 
[2020-09-02T05:30:17.402Z] ok 2 java-spring - clean test containers
[2020-09-02T05:30:20.122Z] ok 3 java-spring - create test container
[2020-09-02T05:30:21.065Z] ok 4 java-spring - test container with 0 as exitcode
[2020-09-02T05:30:21.636Z] ok 5 java-spring - clean test containers afterwards
[2020-09-02T05:30:24.177Z] /usr/local/bin/tap-xunit -> /usr/local/lib/node_modules/tap-xunit/bin/tap-xunit
[2020-09-02T05:30:24.177Z] /usr/local/bin/txunit -> /usr/local/lib/node_modules/tap-xunit/bin/tap-xunit
[2020-09-02T05:30:24.177Z] + tap-xunit@2.4.1
[2020-09-02T05:30:24.177Z] added 21 packages from 21 contributors in 1.674s
[2020-09-02T05:30:24.747Z] Makefile:19: recipe for target 'test-java-spring' failed
[2020-09-02T05:34:53.300Z] Cloning repository https://github.com/elastic/apm-server.git
[2020-09-02T05:34:53.301Z]  > git init /var/lib/jenkins/workspace/apm-shared/apm-docker-images-pipeline/apm-server-images # timeout=10
[2020-09-02T05:34:53.307Z] Fetching upstream changes from https://github.com/elastic/apm-server.git
[2020-09-02T05:34:53.307Z]  > git --version # timeout=10
[2020-09-02T05:34:53.309Z]  > git --version # 'git version 2.17.1'
[2020-09-02T05:34:53.309Z]  > git fetch --tags --progress -- https://github.com/elastic/apm-server.git +refs/heads/*:refs/remotes/origin/* # timeout=10
[2020-09-02T05:34:57.593Z] Checking out Revision f3b1a84669895785148c68d9f90437c7efd5b2e3 (refs/remotes/origin/master)
[2020-09-02T05:34:57.153Z]  > git config remote.origin.url https://github.com/elastic/apm-server.git # timeout=10
[2020-09-02T05:34:57.156Z]  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
[2020-09-02T05:34:57.162Z]  > git config remote.origin.url https://github.com/elastic/apm-server.git # timeout=10
[2020-09-02T05:34:57.168Z] Fetching upstream changes from https://github.com/elastic/apm-server.git
[2020-09-02T05:34:57.168Z]  > git fetch --tags --progress -- https://github.com/elastic/apm-server.git +refs/heads/*:refs/remotes/origin/* # timeout=10
[2020-09-02T05:34:57.583Z]  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
[2020-09-02T05:34:57.588Z]  > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
[2020-09-02T05:34:57.595Z]  > git config core.sparsecheckout # timeout=10
[2020-09-02T05:34:57.598Z]  > git checkout -f f3b1a84669895785148c68d9f90437c7efd5b2e3 # timeout=10
[2020-09-02T05:34:57.843Z] Commit message: "processor/otel: set outcome from status code (#4127)"
[2020-09-02T05:34:57.741Z]  > git branch -a -v --no-abbrev # timeout=10
[2020-09-02T05:34:57.746Z]  > git checkout -b master f3b1a84669895785148c68d9f90437c7efd5b2e3 # timeout=10
[2020-09-02T05:34:58.165Z] + make -C .ci/docker all-tests
[2020-09-02T05:34:58.165Z] make: Entering directory '/var/lib/jenkins/workspace/apm-shared/apm-docker-images-pipeline/apm-server-images/.ci/docker'
[2020-09-02T05:34:58.165Z] Cloning bats-core
[2020-09-02T05:34:58.165Z] Cloning into '/var/lib/jenkins/workspace/apm-shared/apm-docker-images-pipeline/apm-server-images/.ci/docker/bats-core'...
[2020-09-02T05:34:58.735Z] Fetching origin
[2020-09-02T05:34:58.994Z] Switched to a new branch 'v1.1.0'
[2020-09-02T05:34:58.994Z] Clonning bats-assert
[2020-09-02T05:34:58.994Z] Cloning into '/var/lib/jenkins/workspace/apm-shared/apm-docker-images-pipeline/apm-server-images/.ci/docker/tests/test_helper/bats-assert'...
[2020-09-02T05:34:59.564Z] Fetching origin
[2020-09-02T05:34:59.564Z] Switched to a new branch 'v0.3.0'
[2020-09-02T05:34:59.564Z] Clonning bats-support
[2020-09-02T05:34:59.564Z] Cloning into '/var/lib/jenkins/workspace/apm-shared/apm-docker-images-pipeline/apm-server-images/.ci/docker/tests/test_helper/bats-support'...
[2020-09-02T05:35:00.134Z] Fetching origin
[2020-09-02T05:35:00.394Z] Switched to a new branch 'v0.3.0'
[2020-09-02T05:35:00.394Z] Pulling Alpine image
[2020-09-02T05:35:00.964Z] 12-alpine: Pulling from library/node
[2020-09-02T05:35:00.964Z] Digest: sha256:9623cd396644f9b2e595d833dc0188a880333674488d939338ab5fde10ef7c43
[2020-09-02T05:35:00.964Z] Status: Image is up to date for node:12-alpine
[2020-09-02T05:35:00.964Z] docker.io/library/node:12-alpine
[2020-09-02T05:35:00.964Z] cp ../../go.mod golang-mage
[2020-09-02T05:35:01.224Z] 1..5
[2020-09-02T05:35:02.605Z] not ok 1 golang-mage - build image
[2020-09-02T05:35:02.605Z] # (from function `assert_success' in file tests/test_helper/bats-assert/src/assert.bash, line 114,
[2020-09-02T05:35:02.605Z] #  in test file tests/tests.bats, line 17)
[2020-09-02T05:35:02.605Z] #   `assert_success' failed
[2020-09-02T05:35:02.605Z] # 
[2020-09-02T05:35:02.605Z] # -- command failed --
[2020-09-02T05:35:02.605Z] # status : 1
[2020-09-02T05:35:02.605Z] # output (24 lines):
[2020-09-02T05:35:02.605Z] #   Sending build context to Docker daemon   7.68kB

[2020-09-02T05:35:02.605Z] #   Step 1/11 : ARG GO_VERSION=1.13.10
[2020-09-02T05:35:02.605Z] #   Step 2/11 : FROM golang:${GO_VERSION}
[2020-09-02T05:35:02.605Z] #   1.13.10: Pulling from library/golang
[2020-09-02T05:35:02.605Z] #   90fe46dd8199: Already exists
[2020-09-02T05:35:02.605Z] #   35a4f1977689: Already exists
[2020-09-02T05:35:02.605Z] #   bbc37f14aded: Already exists
[2020-09-02T05:35:02.605Z] #   74e27dc593d4: Already exists
[2020-09-02T05:35:02.605Z] #   38b1453721cb: Already exists
[2020-09-02T05:35:02.605Z] #   fbf24695ef98: Already exists
[2020-09-02T05:35:02.605Z] #   4780acafd98c: Already exists
[2020-09-02T05:35:02.605Z] #   Digest: sha256:0be70f1c6d50dcdd25085a777078de67420d6d84a4e945561686b04ae1fd5667
[2020-09-02T05:35:02.605Z] #   Status: Downloaded newer image for golang:1.13.10
[2020-09-02T05:35:02.605Z] #    ---> 7ec6e7161786
[2020-09-02T05:35:02.605Z] #   Step 3/11 : ENV TOOLS=/tools
[2020-09-02T05:35:02.606Z] #    ---> Running in 3a701858e392
[2020-09-02T05:35:02.606Z] #   Removing intermediate container 3a701858e392
[2020-09-02T05:35:02.606Z] #    ---> 6e3bd3b310c3
[2020-09-02T05:35:02.606Z] #   Step 4/11 : WORKDIR $TOOLS
[2020-09-02T05:35:02.606Z] #    ---> Running in 5c42725c8cab
[2020-09-02T05:35:02.606Z] #   Removing intermediate container 5c42725c8cab
[2020-09-02T05:35:02.606Z] #    ---> 8131790d44f7
[2020-09-02T05:35:02.606Z] #   Step 5/11 : COPY go.mod go.sum ./
[2020-09-02T05:35:02.606Z] #   COPY failed: stat /var/lib/docker/tmp/docker-builder181942143/go.sum: no such file or directory
[2020-09-02T05:35:02.606Z] # --
[2020-09-02T05:35:02.606Z] # 
[2020-09-02T05:35:02.865Z] ok 2 golang-mage - clean test containers
[2020-09-02T05:35:03.437Z] ok 3 golang-mage - create test container
[2020-09-02T05:35:04.377Z] ok 4 golang-mage - test container with 0 as exitcode
[2020-09-02T05:35:04.638Z] ok 5 golang-mage - clean test containers afterwards
[2020-09-02T05:35:04.638Z] make[1]: Entering directory '/var/lib/jenkins/workspace/apm-shared/apm-docker-images-pipeline/apm-server-images/.ci/docker'
[2020-09-02T05:35:07.933Z] /usr/local/bin/tap-xunit -> /usr/local/lib/node_modules/tap-xunit/bin/tap-xunit
[2020-09-02T05:35:07.933Z] /usr/local/bin/txunit -> /usr/local/lib/node_modules/tap-xunit/bin/tap-xunit
[2020-09-02T05:35:07.933Z] + tap-xunit@2.4.1
[2020-09-02T05:35:07.933Z] added 21 packages from 21 contributors in 1.763s
[2020-09-02T05:35:08.193Z] Makefile:41: recipe for target 'convert-tests-results' failed
[2020-09-02T05:35:08.194Z] make[1]: *** [convert-tests-results] Error 1
[2020-09-02T05:35:08.194Z] make[1]: Leaving directory '/var/lib/jenkins/workspace/apm-shared/apm-docker-images-pipeline/apm-server-images/.ci/docker'
[2020-09-02T05:35:08.194Z] Makefile:45: recipe for target 'test-golang-mage' failed
[2020-09-02T05:35:08.194Z] make: *** [test-golang-mage] Error 2
[2020-09-02T05:35:08.194Z] make: Leaving directory '/var/lib/jenkins/workspace/apm-shared/apm-docker-images-pipeline/apm-server-images/.ci/docker'
@kuisathaverat kuisathaverat added bug Something isn't working automation ci Team:Automation Label for the Observability productivity team labels Sep 2, 2020
@v1v
Copy link
Member

v1v commented Sep 2, 2020

the fix for the apm-server images:

@v1v v1v self-assigned this Sep 2, 2020
@v1v v1v closed this as completed Sep 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automation bug Something isn't working ci Team:Automation Label for the Observability productivity team
Projects
None yet
Development

No branches or pull requests

2 participants