Skip to content

Console Output

+ make EXPERIMENTAL=on TEST_RESULTS_PREFIX=experimental- -f docker.Makefile TAG=jenkins-app-PR-534-2-coverage-experimental coverage-run
docker build --build-arg=EXPERIMENTAL=on --build-arg=TAG=jenkins-app-PR-534-2-coverage-experimental --build-arg=COMMIT=8ae76d8 --build-arg=ALPINE_VERSION=3.9.3 --target=dev -t docker-app-dev:jenkins-app-PR-534-2 .
Sending build context to Docker daemon  77.29MB

Step 1/16 : FROM dockercore/golang-cross:1.12.4@sha256:7ccd2d90d99974c7aad84660638590547495cfd3b1c78e6b5971fe944bf1ca51 AS build
sha256:7ccd2d90d99974c7aad84660638590547495cfd3b1c78e6b5971fe944bf1ca51: Pulling from dockercore/golang-cross
e79bb959ec00: Pulling fs layer
d4b7902036fe: Pulling fs layer
1b2a72d4e030: Pulling fs layer
d54db43011fd: Pulling fs layer
963c818ebafc: Pulling fs layer
9eee6e7073aa: Pulling fs layer
83e75b35417b: Pulling fs layer
7efb36014a79: Pulling fs layer
fbc9c1ac3f47: Pulling fs layer
a4f197e4f2a4: Pulling fs layer
7c4ed0b9faee: Pulling fs layer
83e75b35417b: Waiting
7efb36014a79: Waiting
fbc9c1ac3f47: Waiting
a4f197e4f2a4: Waiting
7c4ed0b9faee: Waiting
d54db43011fd: Waiting
963c818ebafc: Waiting
9eee6e7073aa: Waiting
d4b7902036fe: Verifying Checksum
d4b7902036fe: Download complete
1b2a72d4e030: Verifying Checksum
1b2a72d4e030: Download complete
e79bb959ec00: Verifying Checksum
e79bb959ec00: Download complete
963c818ebafc: Verifying Checksum
963c818ebafc: Download complete
d54db43011fd: Verifying Checksum
d54db43011fd: Download complete
83e75b35417b: Verifying Checksum
83e75b35417b: Download complete
7efb36014a79: Verifying Checksum
7efb36014a79: Download complete
a4f197e4f2a4: Verifying Checksum
a4f197e4f2a4: Download complete
9eee6e7073aa: Verifying Checksum
9eee6e7073aa: Download complete
fbc9c1ac3f47: Verifying Checksum
fbc9c1ac3f47: Download complete
7c4ed0b9faee: Verifying Checksum
7c4ed0b9faee: Download complete
e79bb959ec00: Pull complete
d4b7902036fe: Pull complete
1b2a72d4e030: Pull complete
d54db43011fd: Pull complete
963c818ebafc: Pull complete
9eee6e7073aa: Pull complete
83e75b35417b: Pull complete
7efb36014a79: Pull complete
fbc9c1ac3f47: Pull complete
a4f197e4f2a4: Pull complete
7c4ed0b9faee: Pull complete
Digest: sha256:7ccd2d90d99974c7aad84660638590547495cfd3b1c78e6b5971fe944bf1ca51
Status: Downloaded newer image for dockercore/golang-cross:1.12.4@sha256:7ccd2d90d99974c7aad84660638590547495cfd3b1c78e6b5971fe944bf1ca51
 ---> ef371a9b9a9a
Step 2/16 : ENV     DISABLE_WARN_OUTSIDE_CONTAINER=1
 ---> Running in be5cfd032918
Removing intermediate container be5cfd032918
 ---> e4a6b67ba165
Step 3/16 : RUN apt-get install -y -q --no-install-recommends     coreutils     util-linux     uuid-runtime
 ---> Running in 3e305974b75a
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 5 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 (81.9 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 3e305974b75a
 ---> cdee6d2c504e
Step 4/16 : WORKDIR /go/src/github.com/docker/cli
 ---> Running in 047ce08a85ff
Removing intermediate container 047ce08a85ff
 ---> 37a8ed099943
Step 5/16 : RUN git clone https://github.com/docker/cli . && git checkout 2432af701a7973ea582196b4b9488831156f3458
 ---> Running in 2e48122ab711
Cloning into '.'...
Note: checking out '2432af701a7973ea582196b4b9488831156f3458'.

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 2432af70... Merge pull request #1808 from martencassel/securityopt-systempaths-unconfined
Removing intermediate container 2e48122ab711
 ---> 6b667a5b1611
Step 6/16 : RUN make binary-osx binary-windows binary &&  cp build/docker-linux-amd64 /usr/bin/docker
 ---> Running in c7a86f199996
./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 c7a86f199996
 ---> c2d69f01e367
Step 7/16 : WORKDIR /go/src/github.com/docker/app/
 ---> Running in 7e89a0616960
Removing intermediate container 7e89a0616960
 ---> 28ff2ff15add
Step 8/16 : FROM build AS dev
 ---> 28ff2ff15add
Step 9/16 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/
 ---> Running in 48145d661884
Removing intermediate container 48145d661884
 ---> 6554ad70f60b
Step 10/16 : ARG DEP_VERSION=v0.5.1
 ---> Running in f62170634131
Removing intermediate container f62170634131
 ---> 59df72ef57f1
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 c15573d86118
  % 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   4785      0 --:--:-- --:--:-- --:--:--  4801

 81 10.5M   81 8759k    0     0  37.0M      0 --:--:-- --:--:-- --:--:-- 37.0M
100 10.5M  100 10.5M    0     0  41.8M      0 --:--:-- --:--:-- --:--:-- 99.2M
Removing intermediate container c15573d86118
 ---> 0e5876a48521
Step 12/16 : ARG GOTESTSUM_VERSION=v0.3.4
 ---> Running in 2f2bd7a81b96
Removing intermediate container 2f2bd7a81b96
 ---> 3d758caf14a4
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 c1344e97c13a
go: finding github.com/onsi/gomega v1.4.3
go: finding github.com/pkg/errors v0.8.0
go: finding github.com/mattn/go-isatty v0.0.3
go: finding github.com/google/go-cmp v0.2.0
go: finding github.com/sirupsen/logrus v1.0.5
go: finding github.com/mattn/go-colorable v0.0.9
go: finding github.com/fatih/color v1.6.0
go: finding golang.org/x/net v0.0.0-20181102091132-c10e9556a7bc
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding gopkg.in/airbrake/gobrake.v2 v2.0.9
go: finding github.com/onsi/ginkgo v1.8.0
go: finding golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: finding golang.org/x/crypto v0.0.0-20180426230345-b49d69b5da94
go: finding github.com/jonboulle/clockwork v0.1.0
go: finding gotest.tools v2.1.0+incompatible
go: finding github.com/hpcloud/tail v1.0.0
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding github.com/golang/protobuf v1.2.0
go: finding github.com/onsi/ginkgo v1.6.0
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: finding gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding github.com/spf13/pflag v1.0.1
go: finding github.com/stretchr/testify v1.3.0
go: finding gopkg.in/fsnotify.v1 v1.4.7
go: finding golang.org/x/text v0.3.0
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding github.com/stretchr/objx v0.1.0
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/davecgh/go-spew v1.1.0
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/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: downloading github.com/fatih/color v1.6.0
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/jonboulle/clockwork v0.1.0
go: extracting github.com/pkg/errors v0.8.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-isatty v0.0.3
go: downloading github.com/mattn/go-colorable v0.0.9
go: extracting github.com/mattn/go-isatty v0.0.3
go: extracting github.com/mattn/go-colorable v0.0.9
go: extracting golang.org/x/net v0.0.0-20181102091132-c10e9556a7bc
go: extracting golang.org/x/crypto v0.0.0-20180426230345-b49d69b5da94
go: extracting golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
Removing intermediate container c1344e97c13a
 ---> 00e062152934
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 81a598cfed0d
Removing intermediate container 81a598cfed0d
 ---> 6ef709acb9ce
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 aa88cd3ba726
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 aa88cd3ba726
 ---> 5f060bc46ea1
Step 16/16 : COPY . .
 ---> eb76c4b84880
[Warning] One or more build-args [EXPERIMENTAL TAG ALPINE_VERSION COMMIT] were not consumed
Successfully built eb76c4b84880
Successfully tagged docker-app-dev:jenkins-app-PR-534-2
docker run -v /var/run:/var/run:ro --name docker-app-cov-jenkins-app-PR-534-2-coverage-experimental --network="host" -t docker-app-dev:jenkins-app-PR-534-2 make COMMIT=8ae76d8 TAG=jenkins-app-PR-534-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=8ae76d8 -X github.com/docker/app/internal.Version=jenkins-app-PR-534-2-coverage-experimental -X github.com/docker/app/internal.Experimental=on -X github.com/docker/app/internal.BuildTime=2019-08-30T18:46:15Z" -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 (11ms)
✓  internal/compose (5ms)
✓  internal/formatter (3ms)
✓  internal/inspect (55ms)
✓  internal/commands (367ms)
∅  internal/formatter/driver
∅  internal/formatter/json
∅  internal/formatter/yaml
✓  internal/renderer (9ms)
✓  internal/renderer/gotemplate (3ms)
✓  internal/renderer/mustache (12ms)
✓  internal/packager (58ms)
∅  internal/renderer/driver
✓  internal/renderer/yatee (2ms)
✓  internal/slices (6ms)
✓  internal/store (18ms)
✓  internal/yaml (1.587s)
✓  loader (10ms)
✓  pkg/yatee (4ms)
∅  pkg/yatee/gopher
∅  pkg/yatee/samples
✓  render (41ms)
✓  specification (7ms)
✓  types/metadata (6ms)
✓  types (18ms)
✓  types/parameters (4ms)

DONE 189 tests in 89.010s
CGO_ENABLED=0 go test -tags=""experimental" testrunmain" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=8ae76d8 -X github.com/docker/app/internal.Version=jenkins-app-PR-534-2-coverage-experimental -X github.com/docker/app/internal.Experimental=on -X github.com/docker/app/internal.BuildTime=2019-08-30T18:46:15Z" -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/experimental-e2e-coverage.xml -- -tags="experimental" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=8ae76d8 -X github.com/docker/app/internal.Version=jenkins-app-PR-534-2-coverage-experimental -X github.com/docker/app/internal.Experimental=on -X github.com/docker/app/internal.BuildTime=2019-08-30T18:46:15Z" -v ./e2e
✖  e2e (1m41.424s)

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


=== Failed
=== FAIL: e2e TestRender/envvariables/stdout (0.00s)
        --- FAIL: TestRender/envvariables/stdout (0.00s)
            commands_test.go:80: assertion failed: 
                Command:  strace -s 4096 -fff -o /go/src/github.com/docker/app/_build/strace859385768/stdout docker app render testdata/render/envvariables/my.dockerapp --parameters-file testdata/render/envvariables/parameters-0.yml --set myapp.command3=bam
                ExitCode: 127
                Error:    exec: "strace": executable file not found in $PATH
                Stdout:   
                Stderr:   
                
                Failures:
                ExitCode was 127 expected 0
                Expected no error

=== FAIL: e2e TestRender/envvariables/file (0.00s)
        --- FAIL: TestRender/envvariables/file (0.00s)
            commands_test.go:97: assertion failed: 
                Command:  strace -s 4096 -fff -o /go/src/github.com/docker/app/_build/strace395215079/file docker app render testdata/render/envvariables/my.dockerapp --parameters-file testdata/render/envvariables/parameters-0.yml --set myapp.command3=bam --output=/tmp/-383898157/actual.yaml
                ExitCode: 127
                Error:    exec: "strace": executable file not found in $PATH
                Stdout:   
                Stderr:   
                
                Failures:
                ExitCode was 127 expected 0
                Expected no error

=== FAIL: e2e TestRender/envvariables (0.00s)
=== PAUSE TestRender/envvariables
=== CONT  TestRender/envvariables
    --- FAIL: TestRender/envvariables (0.00s)

=== FAIL: e2e TestRender (0.00s)

=== FAIL: e2e TestRenderFormatters/json (0.00s)
    --- FAIL: TestRenderFormatters/json (0.00s)
        commands_test.go:126: assertion failed: 
            Command:  strace -s 4096 -fff -o /go/src/github.com/docker/app/_build/strace639885339/json docker app render --formatter json testdata/simple/simple.dockerapp
            ExitCode: 127
            Error:    exec: "strace": executable file not found in $PATH
            Stdout:   
            Stderr:   
            
            Failures:
            ExitCode was 127 expected 0
            Expected no error

=== FAIL: e2e TestRenderFormatters/yaml (0.00s)
    --- FAIL: TestRenderFormatters/yaml (0.00s)
        commands_test.go:143: assertion failed: 
            Command:  strace -s 4096 -fff -o /go/src/github.com/docker/app/_build/strace721569982/yaml docker app render --formatter yaml testdata/simple/simple.dockerapp
            ExitCode: 127
            Error:    exec: "strace": executable file not found in $PATH
            Stdout:   
            Stderr:   
            
            Failures:
            ExitCode was 127 expected 0
            Expected no error

=== FAIL: e2e TestRenderFormatters (0.00s)
=== PAUSE TestRenderFormatters
=== CONT  TestRenderFormatters


DONE 26 tests, 1 skipped, 7 failures in 105.065s
Makefile:98: 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