Skip to content

Console Output

+ make -f docker.Makefile TAG=jenkins-app-PR-683-6-coverage coverage-run
docker build --build-arg EXPERIMENTAL=off --build-arg TAG=jenkins-app-PR-683-6-coverage --build-arg COMMIT=df1bde76 --build-arg ALPINE_VERSION=3.10.1 --build-arg GOPROXY=direct --target=dev -t docker-app-dev:jenkins-app-PR-683-6 .
Sending build context to Docker daemon  76.09MB

Step 1/18 : FROM dockercore/golang-cross:1.12.9@sha256:3ea9dcef4dd2c46d80445c0b22d6177817f4cfce22c523cc12a5a1091cb37705 AS build
 ---> 518d5e4626aa
Step 2/18 : ENV     DISABLE_WARN_OUTSIDE_CONTAINER=1
 ---> Running in 6013516faf22
Removing intermediate container 6013516faf22
 ---> 9a297c95284a
Step 3/18 : RUN apt-get install -y -q --no-install-recommends     coreutils     util-linux     uuid-runtime
 ---> Running in 49c0e7f00f59
Reading package lists...
Building dependency tree...
Reading state information...
coreutils is already the newest version (8.30-3).
coreutils set to manually installed.
util-linux is already the newest version (2.33.1-0.1).
util-linux set to manually installed.
The following NEW packages will be installed:
  uuid-runtime
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 95.2 kB of archives.
After this operation, 211 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 uuid-runtime amd64 2.33.1-0.1 [95.2 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 95.2 kB in 0s (362 kB/s)
Selecting previously unselected package uuid-runtime.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 25419 files and directories currently installed.)
Preparing to unpack .../uuid-runtime_2.33.1-0.1_amd64.deb ...
Unpacking uuid-runtime (2.33.1-0.1) ...
Setting up uuid-runtime (2.33.1-0.1) ...
Adding group `uuidd' (GID 102) ...
Done.
Warning: The home dir /run/uuidd you specified can't be accessed: No such file or directory
Adding system user `uuidd' (UID 101) ...
Adding new user `uuidd' (UID 101) with group `uuidd' ...
Not creating home directory `/run/uuidd'.
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Removing intermediate container 49c0e7f00f59
 ---> 56bdf0e8a319
Step 4/18 : WORKDIR /go/src/github.com/docker/cli
 ---> Running in 32daec99a992
Removing intermediate container 32daec99a992
 ---> c9cc7f7d4350
Step 5/18 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb
 ---> Running in e68874fa73ed
Cloning into '.'...
Note: checking out 'a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at a1b83ffd Merge pull request #1894 from thaJeztah/19.03_backport_reduce_vendoring_impact
Removing intermediate container e68874fa73ed
 ---> 07256e6640c0
Step 6/18 : ARG GOPROXY
 ---> Running in 6e7e84bcccdc
Removing intermediate container 6e7e84bcccdc
 ---> 08722def7fc3
Step 7/18 : RUN make binary-osx binary-windows binary &&  cp build/docker-linux-amd64 /usr/bin/docker
 ---> Running in d3fe662a1452
./scripts/build/osx
Building build/docker-darwin-amd64
./scripts/build/windows
Generating windows resources
Building build/docker-windows-amd64
WARNING: binary creates a Linux executable. Use cross for macOS or Windows.
./scripts/build/binary
Building statically linked build/docker-linux-amd64
Removing intermediate container d3fe662a1452
 ---> d115e7b0a42b
Step 8/18 : WORKDIR /go/src/github.com/docker/app/
 ---> Running in 9e263210565f
Removing intermediate container 9e263210565f
 ---> a4563439906a
Step 9/18 : FROM build AS dev
 ---> a4563439906a
Step 10/18 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/
 ---> Running in da12c96e9dfe
Removing intermediate container da12c96e9dfe
 ---> f1044d12df12
Step 11/18 : ARG DEP_VERSION=v0.5.4
 ---> Running in 7271acbce049
Removing intermediate container 7271acbce049
 ---> 5ccf18e803d2
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
 ---> Running in 4a6f2e8c4325
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   605    0   605    0     0   6722      0 --:--:-- --:--:-- --:--:--  6722

100 10.5M  100 10.5M    0     0  50.8M      0 --:--:-- --:--:-- --:--:-- 50.8M
Removing intermediate container 4a6f2e8c4325
 ---> 9d223f36f4a2
Step 13/18 : ARG GOTESTSUM_VERSION=v0.3.4
 ---> Running in 96038efb7cb6
Removing intermediate container 96038efb7cb6
 ---> 7a58cbef33a5
Step 14/18 : ARG GOPROXY
 ---> Running in 8d73a2c17b18
Removing intermediate container 8d73a2c17b18
 ---> 850d66e3ce27
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
 ---> Running in d9a44e879dbc
go: finding github.com/mattn/go-colorable v0.0.9
go: finding github.com/sirupsen/logrus v1.0.5
go: finding github.com/pkg/errors v0.8.0
go: finding github.com/google/go-cmp v0.2.0
go: finding github.com/spf13/pflag v1.0.1
go: finding github.com/fatih/color v1.6.0
go: finding github.com/onsi/gomega v1.4.3
go: finding github.com/onsi/ginkgo v1.8.0
go: finding gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2
go: finding gotest.tools v2.1.0+incompatible
go: finding github.com/mattn/go-isatty v0.0.3
go: finding github.com/stretchr/testify v1.3.0
go: finding gopkg.in/airbrake/gobrake.v2 v2.0.9
go: finding github.com/onsi/ginkgo v1.6.0
go: finding github.com/jonboulle/clockwork v0.1.0
go: finding gopkg.in/fsnotify.v1 v1.4.7
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding github.com/hpcloud/tail v1.0.0
go: finding github.com/golang/protobuf v1.2.0
go: finding gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: finding golang.org/x/crypto v0.0.0-20180426230345-b49d69b5da94
go: finding golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: finding golang.org/x/net v0.0.0-20181102091132-c10e9556a7bc
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/stretchr/objx v0.1.0
go: finding golang.org/x/text v0.3.0
go: finding github.com/davecgh/go-spew v1.1.0
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: downloading gotest.tools v2.1.0+incompatible
go: extracting gotest.tools v2.1.0+incompatible
go: downloading github.com/spf13/pflag v1.0.1
go: downloading github.com/fatih/color v1.6.0
go: downloading github.com/pkg/errors v0.8.0
go: downloading github.com/sirupsen/logrus v1.0.5
go: downloading github.com/jonboulle/clockwork v0.1.0
go: downloading golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: extracting github.com/jonboulle/clockwork v0.1.0
go: extracting golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: downloading golang.org/x/net v0.0.0-20181102091132-c10e9556a7bc
go: extracting github.com/pkg/errors v0.8.0
go: extracting github.com/spf13/pflag v1.0.1
go: extracting github.com/sirupsen/logrus v1.0.5
go: downloading golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: downloading golang.org/x/crypto v0.0.0-20180426230345-b49d69b5da94
go: extracting github.com/fatih/color v1.6.0
go: downloading github.com/mattn/go-isatty v0.0.3
go: downloading github.com/mattn/go-colorable v0.0.9
go: extracting github.com/mattn/go-colorable v0.0.9
go: extracting github.com/mattn/go-isatty v0.0.3
go: extracting golang.org/x/crypto v0.0.0-20180426230345-b49d69b5da94
go: extracting golang.org/x/net v0.0.0-20181102091132-c10e9556a7bc
go: extracting golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
Removing intermediate container d9a44e879dbc
 ---> 2ca1cc898eb5
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
 ---> Running in 9eafd823e061
Removing intermediate container 9eafd823e061
 ---> 8d18b36f7917
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/*
 ---> Running in a70e94e8ffb4
golang.org/x/tools/internal/semver
github.com/pkg/errors
golang.org/x/tools/go/ast/astutil
golang.org/x/tools/go/internal/gcimporter
golang.org/x/tools/go/internal/packagesdriver
golang.org/x/tools/internal/fastwalk
golang.org/x/tools/internal/gopathwalk
golang.org/x/tools/internal/module
golang.org/x/tools/go/gcexportdata
golang.org/x/tools/go/packages
golang.org/x/tools/internal/imports
golang.org/x/tools/imports
github.com/mjibson/esc/embed
github.com/mjibson/esc
Removing intermediate container a70e94e8ffb4
 ---> b3dba178b877
Step 18/18 : COPY . .
 ---> 29d0454eed8d
[Warning] One or more build-args [TAG ALPINE_VERSION COMMIT EXPERIMENTAL] were not consumed
Successfully built 29d0454eed8d
Successfully tagged docker-app-dev:jenkins-app-PR-683-6
docker run -v /var/run:/var/run:ro --name docker-app-cov-jenkins-app-PR-683-6-coverage --network="host" -t docker-app-dev:jenkins-app-PR-683-6 make COMMIT=df1bde76 TAG=jenkins-app-PR-683-6-coverage EXPERIMENTAL=off 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=df1bde76 -X github.com/docker/app/internal.Version=jenkins-app-PR-683-6-coverage -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-15T09:12:50Z" -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 (2ms)
✓  internal/commands/build (21ms)
✓  internal/commands (544ms)
✓  internal/commands/image (12ms)
✓  internal/compose (5ms)
✓  internal/formatter (3ms)
∅  internal/formatter/driver
∅  internal/formatter/json
∅  internal/formatter/yaml
✓  internal/inspect (106ms)
∅  internal/log
✓  internal/slices (2ms)
✓  internal/packager (28ms)
✓  internal/store (45ms)
✓  internal/yaml (7ms)
✓  loader (9ms)
✓  render (61ms)
✓  specification (9ms)
✓  types (23ms)
✓  types/metadata (6ms)
✓  types/parameters (4ms)

DONE 230 tests in 102.854s
CGO_ENABLED=0 go test -tags=""" testrunmain" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=df1bde76 -X github.com/docker/app/internal.Version=jenkins-app-PR-683-6-coverage -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-15T09:12:50Z" -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=df1bde76 -X github.com/docker/app/internal.Version=jenkins-app-PR-683-6-coverage -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-15T09:12:50Z" -v ./e2e
✖  e2e (4m22.885s)

=== Failed
=== FAIL: e2e TestDockerAppLifecycle/withBindMounts (19.04s)
    --- FAIL: TestDockerAppLifecycle/withBindMounts (19.04s)
        commands_test.go:422: assertion failed: expression is false: exp.MatchString(combined): expected "\"com.docker.app.version\": \"jenkins-app-PR-683-6-coverage\"" != actual "[\n    {\n        \"ID\": \"s9y6a1i5w9di5nal0ksotli57\",\n        \"Version\": {\n            \"Index\": 29\n        },\n        \"CreatedAt\": \"2019-10-15T09:16:11.674305864Z\",\n        \"UpdatedAt\": \"2019-10-15T09:16:11.675180338Z\",\n        \"Spec\": {\n            \"Name\": \"TestDockerAppLifecycle_withBindMounts_db\",\n            \"Labels\": {\n                \"com.docker.stack.image\": \"postgres:9.3\",\n                \"com.docker.stack.namespace\": \"TestDockerAppLifecycle_withBindMounts\"\n            },\n            \"TaskTemplate\": {\n                \"ContainerSpec\": {\n                    \"Image\": \"postgres:9.3@sha256:3cd40afb5803762170a1149ade6962fe24d405b3ccf2fe499ff1428635520a17\",\n                    \"Labels\": {\n                        \"com.docker.app.namespace\": \"TestDockerAppLifecycle_withBindMounts\",\n                        \"com.docker.app.version\": \"jenkins-app-PR-683-6\",\n                        \"com.docker.stack.namespace\": \"TestDockerAppLifecycle_withBindMounts\"\n                    },\n                    \"Privileges\": {\n                        \"CredentialSpec\": null,\n                        \"SELinuxContext\": null\n                    },\n                    \"StopGracePeriod\": 10000000000,\n                    \"DNSConfig\": {},\n                    \"Isolation\": \"default\"\n                },\n                \"Resources\": {},\n                \"RestartPolicy\": {\n                    \"Condition\": \"any\",\n                    \"Delay\": 5000000000,\n                    \"MaxAttempts\": 0\n                },\n                \"Placement\": {\n                    \"Platforms\": [\n                        {\n                            \"Architecture\": \"amd64\",\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"Architecture\": \"arm64\",\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"Architecture\": \"386\",\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"Architecture\": \"ppc64le\",\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"Architecture\": \"s390x\",\n                            \"OS\": \"linux\"\n                        }\n                    ]\n                },\n                \"Networks\": [\n                    {\n                        \"Target\": \"kr7rd42yihmfajna984rb7j3q\",\n                        \"Aliases\": [\n                            \"db\"\n                        ]\n                    }\n                ],\n                \"ForceUpdate\": 0,\n                \"Runtime\": \"container\"\n            },\n            \"Mode\": {\n                \"Replicated\": {\n                    \"Replicas\": 1\n                }\n            },\n            \"UpdateConfig\": {\n                \"Parallelism\": 1,\n                \"FailureAction\": \"pause\",\n                \"Monitor\": 5000000000,\n                \"MaxFailureRatio\": 0,\n                \"Order\": \"stop-first\"\n            },\n            \"RollbackConfig\": {\n                \"Parallelism\": 1,\n                \"FailureAction\": \"pause\",\n                \"Monitor\": 5000000000,\n                \"MaxFailureRatio\": 0,\n                \"Order\": \"stop-first\"\n            },\n            \"EndpointSpec\": {\n                \"Mode\": \"vip\"\n            }\n        },\n        \"Endpoint\": {\n            \"Spec\": {\n                \"Mode\": \"vip\"\n            },\n            \"VirtualIPs\": [\n                {\n                    \"NetworkID\": \"kr7rd42yihmfajna984rb7j3q\",\n                    \"Addr\": \"10.0.1.5/24\"\n                }\n            ]\n        }\n    }\n]\n"

=== FAIL: e2e TestDockerAppLifecycle/withoutBindMounts (20.42s)
    --- FAIL: TestDockerAppLifecycle/withoutBindMounts (20.42s)
        commands_test.go:422: assertion failed: expression is false: exp.MatchString(combined): expected "\"com.docker.app.version\": \"jenkins-app-PR-683-6-coverage\"" != actual "[\n    {\n        \"ID\": \"1im25l6uloyw0y871li3mapfd\",\n        \"Version\": {\n            \"Index\": 29\n        },\n        \"CreatedAt\": \"2019-10-15T09:16:31.604034913Z\",\n        \"UpdatedAt\": \"2019-10-15T09:16:31.604801272Z\",\n        \"Spec\": {\n            \"Name\": \"TestDockerAppLifecycle_withoutBindMounts_db\",\n            \"Labels\": {\n                \"com.docker.stack.image\": \"postgres:9.3\",\n                \"com.docker.stack.namespace\": \"TestDockerAppLifecycle_withoutBindMounts\"\n            },\n            \"TaskTemplate\": {\n                \"ContainerSpec\": {\n                    \"Image\": \"postgres:9.3@sha256:3cd40afb5803762170a1149ade6962fe24d405b3ccf2fe499ff1428635520a17\",\n                    \"Labels\": {\n                        \"com.docker.app.namespace\": \"TestDockerAppLifecycle_withoutBindMounts\",\n                        \"com.docker.app.version\": \"jenkins-app-PR-683-6\",\n                        \"com.docker.stack.namespace\": \"TestDockerAppLifecycle_withoutBindMounts\"\n                    },\n                    \"Privileges\": {\n                        \"CredentialSpec\": null,\n                        \"SELinuxContext\": null\n                    },\n                    \"StopGracePeriod\": 10000000000,\n                    \"DNSConfig\": {},\n                    \"Isolation\": \"default\"\n                },\n                \"Resources\": {},\n                \"RestartPolicy\": {\n                    \"Condition\": \"any\",\n                    \"Delay\": 5000000000,\n                    \"MaxAttempts\": 0\n                },\n                \"Placement\": {\n                    \"Platforms\": [\n                        {\n                            \"Architecture\": \"amd64\",\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"Architecture\": \"arm64\",\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"Architecture\": \"386\",\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"Architecture\": \"ppc64le\",\n                            \"OS\": \"linux\"\n                        },\n                        {\n                            \"Architecture\": \"s390x\",\n                            \"OS\": \"linux\"\n                        }\n                    ]\n                },\n                \"Networks\": [\n                    {\n                        \"Target\": \"oueagmrkkkb0nbaub2ffd2sgo\",\n                        \"Aliases\": [\n                            \"db\"\n                        ]\n                    }\n                ],\n                \"ForceUpdate\": 0,\n                \"Runtime\": \"container\"\n            },\n            \"Mode\": {\n                \"Replicated\": {\n                    \"Replicas\": 1\n                }\n            },\n            \"UpdateConfig\": {\n                \"Parallelism\": 1,\n                \"FailureAction\": \"pause\",\n                \"Monitor\": 5000000000,\n                \"MaxFailureRatio\": 0,\n                \"Order\": \"stop-first\"\n            },\n            \"RollbackConfig\": {\n                \"Parallelism\": 1,\n                \"FailureAction\": \"pause\",\n                \"Monitor\": 5000000000,\n                \"MaxFailureRatio\": 0,\n                \"Order\": \"stop-first\"\n            },\n            \"EndpointSpec\": {\n                \"Mode\": \"vip\"\n            }\n        },\n        \"Endpoint\": {\n            \"Spec\": {\n                \"Mode\": \"vip\"\n            },\n            \"VirtualIPs\": [\n                {\n                    \"NetworkID\": \"oueagmrkkkb0nbaub2ffd2sgo\",\n                    \"Addr\": \"10.0.0.5/24\"\n                }\n            ]\n        }\n    }\n]\n"

=== FAIL: e2e TestDockerAppLifecycle (39.46s)


DONE 40 tests, 3 failures in 264.185s
make: *** [Makefile:102: coverage-test-e2e] Error 1
docker.Makefile:100: recipe for target 'coverage-run' failed
make: *** [coverage-run] Error 2
+ true