Skip to content

Console Output

+ make -f docker.Makefile TAG=jenkins-app-PR-664-2-coverage 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-664-2 .
Sending build context to Docker daemon  73.05MB

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
 ---> 89a869dfccab
Step 3/18 : RUN apt-get install -y -q --no-install-recommends     coreutils     util-linux     uuid-runtime
 ---> Using cache
 ---> 5fdc421afed7
Step 4/18 : WORKDIR /go/src/github.com/docker/cli
 ---> Using cache
 ---> eed561e5be2b
Step 5/18 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb
 ---> Using cache
 ---> fe892aea8a0e
Step 6/18 : ARG GOPROXY
 ---> Using cache
 ---> 5a642b381d9b
Step 7/18 : RUN make binary-osx binary-windows binary &&  cp build/docker-linux-amd64 /usr/bin/docker
 ---> Using cache
 ---> b588a4375d85
Step 8/18 : WORKDIR /go/src/github.com/docker/app/
 ---> Using cache
 ---> be8d677d1b5c
Step 9/18 : FROM build AS dev
 ---> be8d677d1b5c
Step 10/18 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/
 ---> Using cache
 ---> 8c552a4c55c0
Step 11/18 : ARG DEP_VERSION=v0.5.4
 ---> Using cache
 ---> 1e887dc96b96
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
 ---> f2b5fc59f700
Step 13/18 : ARG GOTESTSUM_VERSION=v0.3.4
 ---> Using cache
 ---> 9f68adfe210c
Step 14/18 : ARG GOPROXY
 ---> Using cache
 ---> f142f0d45a3d
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
 ---> 782337f19ee8
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
 ---> 45a6806f0e70
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
 ---> de88995de7d8
Step 18/18 : COPY . .
 ---> 56a3ff416b56
[Warning] One or more build-args [ALPINE_VERSION COMMIT EXPERIMENTAL TAG] were not consumed
Successfully built 56a3ff416b56
Successfully tagged docker-app-dev:jenkins-app-PR-664-2
docker run -v /var/run:/var/run:ro --name docker-app-cov-jenkins-app-PR-664-2-coverage --network="host" -t docker-app-dev:jenkins-app-PR-664-2 make COMMIT=d1d320ee TAG=jenkins-app-PR-664-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=d1d320ee -X github.com/docker/app/internal.Version=jenkins-app-PR-664-2-coverage -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-04T13:53:37Z" -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/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/image (14ms)
✓  internal/compose (7ms)
✓  internal/formatter (2ms)
✓  internal/commands (552ms)
∅  internal/formatter/driver
∅  internal/formatter/json
∅  internal/formatter/yaml
✓  internal/inspect (53ms)
∅  internal/log
✓  internal/slices (5ms)
✓  internal/store (26ms)
✓  internal/packager (44ms)
✓  internal/yaml (7ms)
✓  loader (11ms)
✓  render (66ms)
✓  specification (8ms)
✓  types (20ms)
✓  types/metadata (8ms)
✓  types/parameters (4ms)

DONE 215 tests in 93.618s
CGO_ENABLED=0 go test -tags=""" testrunmain" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=d1d320ee -X github.com/docker/app/internal.Version=jenkins-app-PR-664-2-coverage -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-04T13:53:37Z" -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=d1d320ee -X github.com/docker/app/internal.Version=jenkins-app-PR-664-2-coverage -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-04T13:53:37Z" -v ./e2e

=== Failed
=== FAIL: e2e TestRender/envvariables/stdout (1.85s)
        --- FAIL: TestRender/envvariables/stdout (1.85s)
            commands_test.go:63: assertion failed: 
                --- ←
                +++ →
                @@ -1,9 +1 @@
                -version: "3.4"
                -services:
                -  test:
                -    command:
                -    - bash
                -    - -c
                -    - cat bar bam
                -    image: alpine:latest
                 
                : rendering mismatch

=== FAIL: e2e TestRender/envvariables/file (1.56s)
        --- FAIL: TestRender/envvariables/file (1.56s)
            commands_test.go:68: assertion failed: error is not nil: open /tmp/-586911969/actual.yaml: no such file or directory: missing '/tmp/-586911969/actual.yaml' file

=== FAIL: e2e TestRender/envvariables (3.41s)
    --- FAIL: TestRender/envvariables (3.41s)

=== FAIL: e2e TestRender (3.41s)

=== FAIL: e2e TestRenderFormatters (1.80s)
    commands_test.go:80: assertion failed: 
        --- expected
        +++ actual
        @@ -1,79 +1 @@
        -{
        -  "networks": {
        -    "back": {
        -      "ipam": {},
        -      "external": false
        -    },
        -    "front": {
        -      "ipam": {},
        -      "external": false
        -    }
        -  },
        -  "services": {
        -    "api": {
        -      "build": {},
        -      "credential_spec": {},
        -      "deploy": {
        -        "resources": {},
        -        "placement": {}
        -      },
        -      "image": "python:3.6",
        -      "networks": {
        -        "back": null,
        -        "front": {
        -          "aliases": [
        -            "api.example.com",
        -            "example.com"
        -          ]
        -        }
        -      }
        -    },
        -    "db": {
        -      "build": {},
        -      "credential_spec": {},
        -      "deploy": {
        -        "resources": {},
        -        "placement": {}
        -      },
        -      "image": "postgres:9.3",
        -      "networks": {
        -        "back": null
        -      }
        -    },
        -    "web": {
        -      "build": {},
        -      "credential_spec": {},
        -      "deploy": {
        -        "resources": {},
        -        "placement": {}
        -      },
        -      "image": "nginx:latest",
        -      "networks": {
        -        "front": null
        -      },
        -      "ports": [
        -        {
        -          "mode": "ingress",
        -          "target": 80,
        -          "published": 8082,
        -          "protocol": "tcp"
        -        }
        -      ],
        -      "volumes": [
        -        {
        -          "type": "volume",
        -          "source": "static",
        -          "target": "/opt/data/static"
        -        }
        -      ]
        -    }
        -  },
        -  "version": "3.6",
        -  "volumes": {
        -    "static": {
        -      "name": "corp/web-static-data",
        -      "external": true
        -    }
        -  }
        -}
         
        

=== FAIL: e2e TestDockerAppLifecycle/withBindMounts (12.77s)
    --- FAIL: TestDockerAppLifecycle/withBindMounts (12.77s)
        commands_test.go:494: assertion failed: expression is false: exp.MatchString(combined): expected "WARNING: installing over previously failed installation \"TestDockerAppLifecycle_withBindMounts\"" != actual "Creating network TestDockerAppLifecycle_withBindMounts_front\nCreating network TestDockerAppLifecycle_withBindMounts_back\nCreating service TestDockerAppLifecycle_withBindMounts_api\nCreating service TestDockerAppLifecycle_withBindMounts_web\nCreating service TestDockerAppLifecycle_withBindMounts_db\n"

=== FAIL: e2e TestDockerAppLifecycle/withoutBindMounts (12.94s)
    --- FAIL: TestDockerAppLifecycle/withoutBindMounts (12.94s)
        commands_test.go:494: assertion failed: expression is false: exp.MatchString(combined): expected "WARNING: installing over previously failed installation \"TestDockerAppLifecycle_withoutBindMounts\"" != actual "Creating network TestDockerAppLifecycle_withoutBindMounts_back\nCreating network TestDockerAppLifecycle_withoutBindMounts_front\nCreating service TestDockerAppLifecycle_withoutBindMounts_web\nCreating service TestDockerAppLifecycle_withoutBindMounts_db\nCreating service TestDockerAppLifecycle_withoutBindMounts_api\n"

=== FAIL: e2e TestDockerAppLifecycle (25.71s)

=== FAIL: e2e TestCredentials/full (1.47s)
    --- FAIL: TestCredentials/full (1.47s)
        commands_test.go:415: assertion failed: 
            --- expected
            +++ actual
            @@ -5,4 +5,3 @@
             /var/secret_three/data.txt
             baz
            -Application "full" installed on context "default"
             
            

=== FAIL: e2e TestCredentials/mixed-credstore (1.50s)
    --- FAIL: TestCredentials/mixed-credstore (1.50s)
        commands_test.go:426: assertion failed: 
            --- expected
            +++ actual
            @@ -5,4 +5,3 @@
             /var/secret_three/data.txt
             xyzzy
            -Application "mixed-credstore" installed on context "default"
             
            

=== FAIL: e2e TestCredentials/mixed-local-cred (1.50s)
    --- FAIL: TestCredentials/mixed-local-cred (1.50s)
        commands_test.go:437: assertion failed: 
            --- expected
            +++ actual
            @@ -5,4 +5,3 @@
             /var/secret_three/data.txt
             xyzzy
            -Application "mixed-local-cred" installed on context "default"
             
            

=== FAIL: e2e TestCredentials (4.63s)

=== FAIL: e2e TestRenderWithEnvFile (1.74s)
    envfile_test.go:16: assertion failed: 
        Command:  docker app render testdata/envfile/envfile.dockerapp
        ExitCode: 0
        Stdout:   
        Stderr:   
        
        Failures:
        Expected stdout to contain "version: \"3.7\"\nservices:\n  db:\n    environment:\n      COMPANY: mycompany\n      SOME_FILE: /some/file\n      USER: myuser\n    image: busybox:1.30.1"

=== FAIL: e2e TestImageList (78.14s)
panic: runtime error: index out of range [recovered]
	panic: runtime error: index out of range

goroutine 174 [running]:
testing.tRunner.func1(0xc0000c1b00)
	/usr/local/go/src/testing/testing.go:830 +0x392
panic(0xa16300, 0xfdbe10)
	/usr/local/go/src/runtime/panic.go:522 +0x1b5
github.com/docker/app/e2e.insertBundles(0xc0000c1b00, 0xc000236480, 0x6, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/src/github.com/docker/app/e2e/images_test.go:26 +0xfc5
github.com/docker/app/e2e.TestImageList.func1(0xc0004ef910, 0xf, 0xc00017d9c0, 0xe, 0xc00008e680, 0x4, 0x4, 0x0, 0x0, 0x0, ...)
	/go/src/github.com/docker/app/e2e/images_test.go:52 +0x149
github.com/docker/app/e2e.runWithDindSwarmAndRegistry(0xc0000c1b00, 0xc0003bbf88)
	/go/src/github.com/docker/app/e2e/helper_test.go:86 +0x1791
github.com/docker/app/e2e.TestImageList(0xc0000c1b00)
	/go/src/github.com/docker/app/e2e/images_test.go:47 +0x4e
testing.tRunner(0xc0000c1b00, 0xae09a0)
	/usr/local/go/src/testing/testing.go:865 +0xc0
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:916 +0x35a
FAIL	github.com/docker/app/e2e	78.143s


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