Skip to content

Console Output

+ make -f docker.Makefile TAG=jenkins-app-PR-576-2-coverage coverage-run
docker build --build-arg=EXPERIMENTAL=off --build-arg=TAG=jenkins-app-PR-576-2-coverage --build-arg=COMMIT=76c5673 --build-arg=ALPINE_VERSION=3.10.0 --target=dev -t docker-app-dev:jenkins-app-PR-576-2 .
Sending build context to Docker daemon  79.44MB

Step 1/16 : FROM dockercore/golang-cross:1.12.6@sha256:5f4272cb7723c6f28e76abfd8b59e46d8f7264b0cf2d000ff49aee1d0577e7d0 AS build
sha256:5f4272cb7723c6f28e76abfd8b59e46d8f7264b0cf2d000ff49aee1d0577e7d0: Pulling from dockercore/golang-cross
6f2f362378c5: Pulling fs layer
494c27a8a6b8: Pulling fs layer
7596bb83081b: Pulling fs layer
372744b62d49: Pulling fs layer
0658c6765517: Pulling fs layer
fc2529ce2b56: Pulling fs layer
c9a1ca7e4a49: Pulling fs layer
9cb007b625e0: Pulling fs layer
5b77a9aeb53a: Pulling fs layer
df909c395891: Pulling fs layer
0f5c4bd299cb: Pulling fs layer
c9a1ca7e4a49: Waiting
9cb007b625e0: Waiting
5b77a9aeb53a: Waiting
df909c395891: Waiting
0f5c4bd299cb: Waiting
372744b62d49: Waiting
0658c6765517: Waiting
fc2529ce2b56: Waiting
494c27a8a6b8: Verifying Checksum
494c27a8a6b8: Download complete
7596bb83081b: Verifying Checksum
7596bb83081b: Download complete
6f2f362378c5: Verifying Checksum
6f2f362378c5: Download complete
0658c6765517: Verifying Checksum
0658c6765517: Download complete
372744b62d49: Verifying Checksum
372744b62d49: Download complete
c9a1ca7e4a49: Verifying Checksum
c9a1ca7e4a49: Download complete
9cb007b625e0: Verifying Checksum
9cb007b625e0: Download complete
df909c395891: Verifying Checksum
df909c395891: Download complete
fc2529ce2b56: Verifying Checksum
fc2529ce2b56: Download complete
5b77a9aeb53a: Verifying Checksum
5b77a9aeb53a: Download complete
6f2f362378c5: Pull complete
0f5c4bd299cb: Verifying Checksum
0f5c4bd299cb: Download complete
494c27a8a6b8: Pull complete
7596bb83081b: Pull complete
372744b62d49: Pull complete
0658c6765517: Pull complete
fc2529ce2b56: Pull complete
c9a1ca7e4a49: Pull complete
9cb007b625e0: Pull complete
5b77a9aeb53a: Pull complete
df909c395891: Pull complete
0f5c4bd299cb: Pull complete
Digest: sha256:5f4272cb7723c6f28e76abfd8b59e46d8f7264b0cf2d000ff49aee1d0577e7d0
Status: Downloaded newer image for dockercore/golang-cross:1.12.6@sha256:5f4272cb7723c6f28e76abfd8b59e46d8f7264b0cf2d000ff49aee1d0577e7d0
 ---> 7fa659e5fa69
Step 2/16 : ENV     DISABLE_WARN_OUTSIDE_CONTAINER=1
 ---> Running in eb822eb81c49
Removing intermediate container eb822eb81c49
 ---> af7d0977a0dc
Step 3/16 : RUN apt-get install -y -q --no-install-recommends     coreutils     util-linux     uuid-runtime
 ---> Running in e43c930efcb8
Reading package lists...
Building dependency tree...
Reading state information...
coreutils is already the newest version (8.26-3).
coreutils set to manually installed.
util-linux is already the newest version (2.29.2-1+deb9u1).
util-linux set to manually installed.
The following NEW packages will be installed:
  uuid-runtime
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 82.6 kB of archives.
After this operation, 160 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 uuid-runtime amd64 2.29.2-1+deb9u1 [82.6 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 82.6 kB in 1s (82.0 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 ... 24387 files and directories currently installed.)
Preparing to unpack .../uuid-runtime_2.29.2-1+deb9u1_amd64.deb ...
Unpacking uuid-runtime (2.29.2-1+deb9u1) ...
Setting up uuid-runtime (2.29.2-1+deb9u1) ...
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 e43c930efcb8
 ---> 3a9ca91a457d
Step 4/16 : WORKDIR /go/src/github.com/docker/cli
 ---> Running in 3bd314991ab7
Removing intermediate container 3bd314991ab7
 ---> 797d0edbcc6b
Step 5/16 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb
 ---> Running in 8a4625cfb7bd
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 8a4625cfb7bd
 ---> 4ea830d6227e
Step 6/16 : RUN make binary-osx binary-windows binary &&  cp build/docker-linux-amd64 /usr/bin/docker
 ---> Running in 085467d1c470
./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 085467d1c470
 ---> 20c7ec786c8f
Step 7/16 : WORKDIR /go/src/github.com/docker/app/
 ---> Running in dea514bc202e
Removing intermediate container dea514bc202e
 ---> 8f088c96f926
Step 8/16 : FROM build AS dev
 ---> 8f088c96f926
Step 9/16 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/
 ---> Running in c550f66d1f36
Removing intermediate container c550f66d1f36
 ---> 077f34f459d9
Step 10/16 : ARG DEP_VERSION=v0.5.1
 ---> Running in 27059078f73e
Removing intermediate container 27059078f73e
 ---> ba8e120f1895
Step 11/16 : 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 18b16e1150a1
  % 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   6665      0 --:--:-- --:--:-- --:--:--  6722

100 10.5M  100 10.5M    0     0  48.6M      0 --:--:-- --:--:-- --:--:-- 48.6M
Removing intermediate container 18b16e1150a1
 ---> 61fdcc3684c2
Step 12/16 : ARG GOTESTSUM_VERSION=v0.3.4
 ---> Running in 6d53291590cd
Removing intermediate container 6d53291590cd
 ---> 08af1969c3d2
Step 13/16 : 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 3891eccbe06c
go: finding github.com/pkg/errors v0.8.0
go: finding github.com/mattn/go-colorable v0.0.9
go: finding github.com/fatih/color v1.6.0
go: finding github.com/sirupsen/logrus v1.0.5
go: finding github.com/mattn/go-isatty v0.0.3
go: finding github.com/google/go-cmp v0.2.0
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding golang.org/x/crypto v0.0.0-20180426230345-b49d69b5da94
go: finding gotest.tools v2.1.0+incompatible
go: finding gopkg.in/airbrake/gobrake.v2 v2.0.9
go: finding github.com/onsi/gomega v1.4.3
go: finding github.com/onsi/ginkgo v1.8.0
go: finding github.com/spf13/pflag v1.0.1
go: finding golang.org/x/net v0.0.0-20181102091132-c10e9556a7bc
go: finding gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2
go: finding github.com/jonboulle/clockwork v0.1.0
go: finding github.com/stretchr/testify v1.3.0
go: finding gopkg.in/fsnotify.v1 v1.4.7
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding golang.org/x/text v0.3.0
go: finding gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: finding golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding github.com/stretchr/objx v0.1.0
go: finding github.com/hpcloud/tail v1.0.0
go: finding github.com/onsi/ginkgo v1.6.0
go: finding github.com/golang/protobuf v1.2.0
go: finding github.com/davecgh/go-spew v1.1.0
go: finding github.com/pmezard/go-difflib v1.0.0
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/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/spf13/pflag v1.0.1
go: downloading golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: downloading github.com/jonboulle/clockwork v0.1.0
go: extracting github.com/sirupsen/logrus v1.0.5
go: downloading golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: extracting github.com/pkg/errors v0.8.0
go: downloading golang.org/x/crypto v0.0.0-20180426230345-b49d69b5da94
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/spf13/pflag v1.0.1
go: extracting github.com/fatih/color v1.6.0
go: downloading github.com/mattn/go-colorable v0.0.9
go: downloading github.com/mattn/go-isatty v0.0.3
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 3891eccbe06c
 ---> dce89550e3ff
Step 14/16 : 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 7e76d6289350
Removing intermediate container 7e76d6289350
 ---> bb477f2e78f6
Step 15/16 : 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 d08df90d7571
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 d08df90d7571
 ---> 32a78e80d651
Step 16/16 : COPY . .
 ---> 13640df5949c
[Warning] One or more build-args [ALPINE_VERSION COMMIT EXPERIMENTAL TAG] were not consumed
Successfully built 13640df5949c
Successfully tagged docker-app-dev:jenkins-app-PR-576-2
docker run -v /var/run:/var/run:ro --name docker-app-cov-jenkins-app-PR-576-2-coverage --network="host" -t docker-app-dev:jenkins-app-PR-576-2 make COMMIT=76c5673 TAG=jenkins-app-PR-576-2-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=76c5673 -X github.com/docker/app/internal.Version=jenkins-app-PR-576-2-coverage -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-08-30T18:44:57Z" -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/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/packager github.com/docker/app/internal/renderer github.com/docker/app/internal/renderer/driver github.com/docker/app/internal/renderer/gotemplate github.com/docker/app/internal/renderer/mustache github.com/docker/app/internal/renderer/yatee 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/pkg/yatee github.com/docker/app/pkg/yatee/gopher github.com/docker/app/pkg/yatee/samples 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
∅  cmd/docker-app-standalone
✓  internal (10ms)
✓  internal/compose (9ms)
✓  internal/formatter (4ms)
✓  internal/inspect (58ms)
✓  internal/commands (368ms)
∅  internal/formatter/driver (1ms)
∅  internal/formatter/json
∅  internal/formatter/yaml
✓  internal/renderer (3ms)
✓  internal/packager (34ms)
∅  internal/renderer/driver
∅  internal/renderer/gotemplate
∅  internal/renderer/mustache
∅  internal/renderer/yatee
✓  internal/slices (2ms)
✓  internal/store (15ms)
✓  internal/yaml (1.584s)
✓  loader (13ms)
✓  pkg/yatee (5ms)
∅  pkg/yatee/gopher
∅  pkg/yatee/samples
✓  specification (13ms)
✓  render (54ms)
✓  types (20ms)
✓  types/metadata (6ms)
✓  types/parameters (4ms)

DONE 214 tests in 93.922s
CGO_ENABLED=0 go test -tags=""" testrunmain" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=76c5673 -X github.com/docker/app/internal.Version=jenkins-app-PR-576-2-coverage -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-08-30T18:44:57Z" -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=76c5673 -X github.com/docker/app/internal.Version=jenkins-app-PR-576-2-coverage -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-08-30T18:44:57Z" -v ./e2e
✖  e2e (2m38.748s)

=== Skipped
=== SKIP: e2e TestRenderTemplates (0.00s)
    commands_test.go:31: renderer templates tests


=== Failed
=== FAIL: e2e TestCredentials/full (2.29s)
    --- FAIL: TestCredentials/full (2.29s)
        commands_test.go:566: assertion failed: 
            --- expected
            +++ actual
            @@ -1,2 +1,8 @@
            +SECRET_ONE: foo
            +/var/secret_two/data.txt
            +bar
            +SECRET_THREE: baz
            +/var/secret_three/data.txt
            +baz
             SECRET_ONE: foo
             /var/secret_two/data.txt
            

=== FAIL: e2e TestCredentials (4.85s)


DONE 44 tests, 1 skipped, 2 failures in 161.698s
Makefile:103: recipe for target 'coverage-test-e2e' failed
make: *** [coverage-test-e2e] Error 1
docker.Makefile:107: recipe for target 'coverage-run' failed
make: *** [coverage-run] Error 2
+ true