Skip to content

Console Output

+ make -f docker.Makefile TAG=jenkins-app-PR-704-15-coverage coverage-run
docker build --build-arg TAG=jenkins-app-PR-704-15-coverage --build-arg COMMIT=3f7fd942 --build-arg ALPINE_VERSION=3.10.1 --build-arg GOPROXY=direct --target=dev -t docker-app-dev:jenkins-app-PR-704-15 .
Sending build context to Docker daemon  76.19MB

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
 ---> 999ebbc0d4bd
Step 3/18 : RUN apt-get install -y -q --no-install-recommends   coreutils   util-linux   uuid-runtime
 ---> Using cache
 ---> fe02ce633692
Step 4/18 : WORKDIR /go/src/github.com/docker/cli
 ---> Using cache
 ---> 1e108e98a151
Step 5/18 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb
 ---> Using cache
 ---> e08c0944a175
Step 6/18 : ARG GOPROXY
 ---> Using cache
 ---> ee69720b8ed5
Step 7/18 : RUN make binary-osx binary-windows binary &&   cp build/docker-linux-amd64 /usr/bin/docker
 ---> Using cache
 ---> 640d6fbcdac1
Step 8/18 : WORKDIR /go/src/github.com/docker/app/
 ---> Using cache
 ---> 6dedda1f6ffd
Step 9/18 : FROM build AS dev
 ---> 6dedda1f6ffd
Step 10/18 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/
 ---> Using cache
 ---> 30e341946e98
Step 11/18 : ARG DEP_VERSION=v0.5.4
 ---> Using cache
 ---> 7780175eadd7
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
 ---> 7d56ce7f9e86
Step 13/18 : ARG GOTESTSUM_VERSION=v0.3.4
 ---> Using cache
 ---> ce45873a2fc2
Step 14/18 : ARG GOPROXY
 ---> Using cache
 ---> a4c7d20ffd80
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
 ---> 361786ea2894
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
 ---> b8c679977c33
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
 ---> 1d001e4ad668
Step 18/18 : COPY . .
 ---> 588bd02e351f
[Warning] One or more build-args [ALPINE_VERSION COMMIT TAG] were not consumed
Successfully built 588bd02e351f
Successfully tagged docker-app-dev:jenkins-app-PR-704-15
docker run -v /var/run:/var/run:ro --name docker-app-cov-jenkins-app-PR-704-15-coverage --network="host" -t docker-app-dev:jenkins-app-PR-704-15 make COMMIT=3f7fd942 TAG=jenkins-app-PR-704-15-coverage TEST_RESULTS_PREFIX= coverage
Running unit tests (coverage)...
CGO_ENABLED=0 gotestsum --junitfile _build/test-results/unit-coverage.xml -- -tags= -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=3f7fd942 -X github.com/docker/app/internal.Version=jenkins-app-PR-704-15-coverage -X github.com/docker/app/internal.BuildTime=2019-10-24T11:35:31Z" -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/internal github.com/docker/app/internal/cnab github.com/docker/app/internal/commands github.com/docker/app/internal/commands/build 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
∅  .
∅  cmd/cnab-run
∅  cmd/docker-app
✓  internal (40ms)
✓  internal/cnab (49ms)
✓  internal/commands/build (20ms)
✓  internal/commands (1.865s)
✓  internal/compose (5ms)
✓  internal/formatter (6ms)
✓  internal/commands/image (36ms)
∅  internal/formatter/driver
∅  internal/formatter/json
∅  internal/formatter/yaml
✓  internal/inspect (123ms)
∅  internal/log
✓  internal/packager (56ms)
✓  internal/slices (2ms)
✓  internal/yaml (12ms)
✓  internal/store (23ms)
✓  loader (27ms)
✓  render (105ms)
✓  specification (9ms)
✓  types (49ms)
✓  types/metadata (23ms)
✓  types/parameters (4ms)

DONE 231 tests in 125.964s
CGO_ENABLED=0 go test -tags=" testrunmain" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=3f7fd942 -X github.com/docker/app/internal.Version=jenkins-app-PR-704-15-coverage -X github.com/docker/app/internal.BuildTime=2019-10-24T11:35:31Z" -coverpkg="./..." -c -o _build/docker-app.cov ./cmd/docker-app
Running e2e tests (coverage)...
DOCKERAPP_BINARY=../e2e/coverage-bin CGO_ENABLED=0 gotestsum --junitfile _build/test-results/e2e-coverage.xml -- -tags= -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=3f7fd942 -X github.com/docker/app/internal.Version=jenkins-app-PR-704-15-coverage -X github.com/docker/app/internal.BuildTime=2019-10-24T11:35:31Z" -v ./e2e
✖  e2e (5m49.536s)

=== Failed
=== FAIL: e2e TestRunOnlyOne (0.16s)
    commands_test.go:191: assertion failed: 
        Command:  docker app run --cnab-bundle-json bundle.json myapp
        ExitCode: 1
        Error:    exit status 1
        Stdout:   
        Stderr:   "docker app run" cannot run a bundle and an App image
        
        
        Failures:
        Expected stderr to contain "\"docker app run\" cannot run a bundle and an app image"


DONE 45 tests, 1 failure in 353.606s
make: *** [Makefile:96: coverage-test-e2e] Error 1
docker.Makefile:100: recipe for target 'coverage-run' failed
make: *** [coverage-run] Error 2