Skip to content

Console Output

+ make EXPERIMENTAL=on TEST_RESULTS_PREFIX=experimental- -f docker.Makefile TAG=jenkins-app-PR-676-4-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-676-4 .
Sending build context to Docker daemon  75.57MB

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
 ---> 2f968783d618
Step 3/18 : RUN apt-get install -y -q --no-install-recommends     coreutils     util-linux     uuid-runtime
 ---> Using cache
 ---> c111454c41c1
Step 4/18 : WORKDIR /go/src/github.com/docker/cli
 ---> Using cache
 ---> d10d13a8422e
Step 5/18 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb
 ---> Using cache
 ---> cc5683bfde71
Step 6/18 : ARG GOPROXY
 ---> Using cache
 ---> 396fdcadfdf5
Step 7/18 : RUN make binary-osx binary-windows binary &&  cp build/docker-linux-amd64 /usr/bin/docker
 ---> Using cache
 ---> 8e899d1547d7
Step 8/18 : WORKDIR /go/src/github.com/docker/app/
 ---> Using cache
 ---> 8f4e353c07ac
Step 9/18 : FROM build AS dev
 ---> 8f4e353c07ac
Step 10/18 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/
 ---> Using cache
 ---> a507fe1df653
Step 11/18 : ARG DEP_VERSION=v0.5.4
 ---> Using cache
 ---> 19fb9397f161
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
 ---> 8903a7466f54
Step 13/18 : ARG GOTESTSUM_VERSION=v0.3.4
 ---> Using cache
 ---> 2a452648a02e
Step 14/18 : ARG GOPROXY
 ---> Using cache
 ---> 33198cf4b86c
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
 ---> 12654d366366
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
 ---> b46a62eb9599
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
 ---> 879fbd75d42c
Step 18/18 : COPY . .
 ---> ffa1cd6e848f
[Warning] One or more build-args [ALPINE_VERSION COMMIT EXPERIMENTAL TAG] were not consumed
Successfully built ffa1cd6e848f
Successfully tagged docker-app-dev:jenkins-app-PR-676-4
docker run -v /var/run:/var/run:ro --name docker-app-cov-jenkins-app-PR-676-4-coverage-experimental --network="host" -t docker-app-dev:jenkins-app-PR-676-4 make COMMIT=27322179 TAG=jenkins-app-PR-676-4-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=27322179 -X github.com/docker/app/internal.Version=jenkins-app-PR-676-4-coverage-experimental -X github.com/docker/app/internal.Experimental=on -X github.com/docker/app/internal.BuildTime=2019-10-08T09:12:32Z" -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/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 (4ms)
✓  internal/commands/build (21ms)
✓  internal/commands (459ms)
✓  internal/commands/image (11ms)
✓  internal/compose (18ms)
✓  internal/formatter (9ms)
∅  internal/formatter/driver
∅  internal/formatter/json
∅  internal/formatter/yaml
✓  internal/inspect (118ms)
∅  internal/log
✓  internal/slices (2ms)
✖  internal/packager (28ms)
✓  internal/store (29ms)
✓  internal/yaml (19ms)
✓  loader (10ms)
✓  render (70ms)
✓  specification (8ms)
✓  types (19ms)
✓  types/metadata (6ms)
✓  types/parameters (4ms)

=== Failed
=== FAIL: internal/packager TestToCNAB (0.00s)
    cnab_test.go:20: assertion failed: 
        --- expected
        +++ actual
        @@ -20,26 +20,4 @@
             }
           ],
        -  "images": {
        -    "app-watcher": {
        -      "imageType": "docker",
        -      "image": "watcher",
        -      "description": "watcher"
        -    },
        -    "debug": {
        -      "imageType": "docker",
        -      "image": "busybox:latest",
        -      "description": "busybox:latest"
        -    },
        -    "front": {
        -      "imageType": "docker",
        -      "image": "nginx",
        -      "description": "nginx"
        -    },
        -    "monitor": {
        -      "imageType": "docker",
        -      "image": "busybox:latest",
        -      "description": "busybox:latest"
        -    }
        -  },
           "actions": {
             "com.docker.app.inspect": {
        

=== FAIL: internal/packager TestInitFromComposeFile (0.00s)
    init_test.go:36: assertion failed: error is not nil: unknown formatter "yaml"

=== FAIL: internal/packager TestInitFromComposeFileWithFlattenedParams (0.00s)
    init_test.go:77: assertion failed: error is not nil: failed to load Compose file: 1 error(s) decoding:
        
        * error decoding 'Ports': Invalid containerPort: ${ports.service2-9002}


DONE 225 tests, 3 failures in 102.380s
make: *** [Makefile:96: coverage-test-unit] Error 1
docker.Makefile:100: recipe for target 'coverage-run' failed
make: *** [coverage-run] Error 2
+ true