Console Output
+ make EXPERIMENTAL=on TEST_RESULTS_PREFIX=experimental- -f docker.Makefile TAG=jenkins-app-PR-671-2-coverage-experimental coverage-run
docker build --build-arg=EXPERIMENTAL --build-arg=TAG --build-arg=COMMIT --build-arg=ALPINE_VERSION --build-arg=GOPROXY --target=dev -t docker-app-dev:jenkins-app-PR-671-2 .
Sending build context to Docker daemon 73.05MB
Step 1/18 : FROM dockercore/golang-cross:1.12.9@sha256:3ea9dcef4dd2c46d80445c0b22d6177817f4cfce22c523cc12a5a1091cb37705 AS build
---> 518d5e4626aa
Step 2/18 : ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
---> Using cache
---> bcdb8210e5b2
Step 3/18 : RUN apt-get install -y -q --no-install-recommends coreutils util-linux uuid-runtime
---> Using cache
---> 76e299c9a0a4
Step 4/18 : WORKDIR /go/src/github.com/docker/cli
---> Using cache
---> b0b16344aa82
Step 5/18 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb
---> Using cache
---> fe1d79ff4813
Step 6/18 : ARG GOPROXY
---> Using cache
---> b09c38d5f93a
Step 7/18 : RUN make binary-osx binary-windows binary && cp build/docker-linux-amd64 /usr/bin/docker
---> Using cache
---> 44fbba368e5e
Step 8/18 : WORKDIR /go/src/github.com/docker/app/
---> Using cache
---> fd63af863d19
Step 9/18 : FROM build AS dev
---> fd63af863d19
Step 10/18 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/
---> Using cache
---> fca679c3c089
Step 11/18 : ARG DEP_VERSION=v0.5.4
---> Using cache
---> 5a3e74205eee
Step 12/18 : RUN curl -o /usr/bin/dep -L https://github.com/golang/dep/releases/download/${DEP_VERSION}/dep-linux-amd64 && chmod +x /usr/bin/dep
---> Using cache
---> b9db0444f291
Step 13/18 : ARG GOTESTSUM_VERSION=v0.3.4
---> Using cache
---> c6bbf28ee2da
Step 14/18 : ARG GOPROXY
---> Using cache
---> c256e20e639e
Step 15/18 : RUN mkdir $GOPATH/src/gotest.tools && git clone -q https://github.com/gotestyourself/gotestsum $GOPATH/src/gotest.tools/gotestsum && cd $GOPATH/src/gotest.tools/gotestsum && git -C $GOPATH/src/gotest.tools/gotestsum checkout -q $GOTESTSUM_VERSION && GO111MODULE=on GOOS=linux go build -o /usr/local/bin/gotestsum-linux gotest.tools/gotestsum && GO111MODULE=on GOOS=darwin go build -o /usr/local/bin/gotestsum-darwin gotest.tools/gotestsum && GO111MODULE=on GOOS=windows go build -o /usr/local/bin/gotestsum-windows.exe gotest.tools/gotestsum && ln -s gotestsum-linux /usr/local/bin/gotestsum
---> Using cache
---> 5f9168b2dd4d
Step 16/18 : RUN GOOS=linux go build -o /usr/local/bin/test2json-linux cmd/test2json && GOOS=darwin go build -o /usr/local/bin/test2json-darwin cmd/test2json && GOOS=windows go build -o /usr/local/bin/test2json-windows.exe cmd/test2json
---> Using cache
---> 7457c071c731
Step 17/18 : RUN go get -d gopkg.in/mjibson/esc.v0 && cd /go/src/github.com/mjibson/esc && go build -v -o /usr/bin/esc . && rm -rf /go/src/* /go/pkg/* /go/bin/*
---> Using cache
---> 18567652b9ef
Step 18/18 : COPY . .
---> f6db2194dde2
[Warning] One or more build-args [TAG ALPINE_VERSION COMMIT EXPERIMENTAL] were not consumed
Successfully built f6db2194dde2
Successfully tagged docker-app-dev:jenkins-app-PR-671-2
docker run -v /var/run:/var/run:ro --name docker-app-cov-jenkins-app-PR-671-2-coverage-experimental --network="host" -t docker-app-dev:jenkins-app-PR-671-2 make COMMIT=c8d3cb0c TAG=jenkins-app-PR-671-2-coverage-experimental EXPERIMENTAL=on TEST_RESULTS_PREFIX=experimental- coverage
Running unit tests (coverage)...
CGO_ENABLED=0 gotestsum --junitfile _build/test-results/experimental-unit-coverage.xml -- -tags="experimental" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=c8d3cb0c -X github.com/docker/app/internal.Version=jenkins-app-PR-671-2-coverage-experimental -X github.com/docker/app/internal.Experimental=on -X github.com/docker/app/internal.BuildTime=2019-10-04T13:29:47Z" -cover -test.coverprofile=_build/cov/unit.out github.com/docker/app github.com/docker/app/cmd/cnab-run github.com/docker/app/cmd/docker-app github.com/docker/app/cmd/docker-app-standalone github.com/docker/app/internal github.com/docker/app/internal/commands github.com/docker/app/internal/commands/image github.com/docker/app/internal/compose github.com/docker/app/internal/formatter github.com/docker/app/internal/formatter/driver github.com/docker/app/internal/formatter/json github.com/docker/app/internal/formatter/yaml github.com/docker/app/internal/inspect github.com/docker/app/internal/log github.com/docker/app/internal/packager github.com/docker/app/internal/slices github.com/docker/app/internal/store github.com/docker/app/internal/yaml github.com/docker/app/loader github.com/docker/app/render github.com/docker/app/specification github.com/docker/app/types github.com/docker/app/types/metadata github.com/docker/app/types/parameters github.com/docker/app/types/secrets
[33m∅[0m .
[33m∅[0m cmd/cnab-run
[33m∅[0m cmd/docker-app
[33m∅[0m cmd/docker-app-standalone
[32m✓[0m internal (3ms)
[32m✓[0m internal/commands/image (16ms)
[32m✓[0m internal/compose (8ms)
[32m✓[0m internal/formatter (12ms)
[32m✓[0m internal/commands (528ms)
[33m∅[0m internal/formatter/driver
[33m∅[0m internal/formatter/json
[33m∅[0m internal/formatter/yaml
[31m✖[0m internal/inspect (71ms)
[33m∅[0m internal/log
[32m✓[0m internal/slices (3ms)
[32m✓[0m internal/store (24ms)
[31m✖[0m internal/packager (42ms)
[32m✓[0m internal/yaml (15ms)
[32m✓[0m loader (15ms)
[31m✖[0m render (51ms)
[32m✓[0m specification (8ms)
[32m✓[0m types (36ms)
[32m✓[0m types/metadata (21ms)
[32m✓[0m types/parameters (4ms)
[33m∅[0m types/secrets
=== [31mFailed[0m
=== [31mFAIL[0m: internal/inspect TestInspect/overridden (0.00s)
--- FAIL: TestInspect/overridden (0.00s)
inspect_test.go:121: assertion failed: error is not nil: 1 error(s) decoding:
* error decoding 'Ports': Invalid hostPort: ${web.port}
=== [31mFAIL[0m: internal/inspect TestInspect (0.05s)
=== [31mFAIL[0m: internal/packager TestToCNAB (0.01s)
cnab_test.go:15: assertion failed: error is not nil: services.front.deploy.replicas must be a integer
=== [31mFAIL[0m: internal/packager TestPackInvocationImageContext (0.01s)
packing_test.go:18: assertion failed: error is not nil: services.front.deploy.replicas must be a integer
=== [31mFAIL[0m: render TestRenderFailOnDefaultParamValueInCompose (0.00s)
render_test.go:70: assertion failed: error is not nil: 1 error(s) decoding:
* error decoding 'Ports': Invalid ip address: ${front.port
=== [31mFAIL[0m: render TestRenderUserParameters (0.00s)
render_test.go:225: assertion failed: error is not nil: services.front.deploy.replicas must be a integer
=== [31mFAIL[0m: render TestRenderWithoutDefaultParameters (0.00s)
render_test.go:270: assertion failed: error is not nil: services.front.deploy.replicas must be a integer
=== [31mFAIL[0m: render TestValidateBrokenComposeFile (0.01s)
render_test.go:296: assertion failed: error is not nil: unknown-property Additional property unknown-property is not allowed
=== [31mFAIL[0m: render TestValidateRenderedApplication (0.00s)
render_test.go:316: assertion failed: error is not nil: 1 error(s) decoding:
* error decoding 'Ports': Invalid containerPort: ${port}
DONE 213 tests, 9 failures in 93.728s
make: *** [Makefile:106: coverage-test-unit] Error 1
docker.Makefile:106: recipe for target 'coverage-run' failed
make: *** [coverage-run] Error 2
+ true