Console Output
+ make EXPERIMENTAL=on TEST_RESULTS_PREFIX=experimental- -f docker.Makefile TAG=jenkins-app-PR-664-2-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-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
---> ac37de5b2956
Step 3/18 : RUN apt-get install -y -q --no-install-recommends coreutils util-linux uuid-runtime
---> Using cache
---> 1c96fdf43c76
Step 4/18 : WORKDIR /go/src/github.com/docker/cli
---> Using cache
---> 5cba52a4cb36
Step 5/18 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb
---> Using cache
---> 49395d80a5cf
Step 6/18 : ARG GOPROXY
---> Using cache
---> d47615751f77
Step 7/18 : RUN make binary-osx binary-windows binary && cp build/docker-linux-amd64 /usr/bin/docker
---> Using cache
---> b007bc161e89
Step 8/18 : WORKDIR /go/src/github.com/docker/app/
---> Using cache
---> eaa07ea6703f
Step 9/18 : FROM build AS dev
---> eaa07ea6703f
Step 10/18 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/
---> Using cache
---> bf8f1ec742b9
Step 11/18 : ARG DEP_VERSION=v0.5.4
---> Using cache
---> da2399cf0bbc
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
---> 66ecfc481d07
Step 13/18 : ARG GOTESTSUM_VERSION=v0.3.4
---> Using cache
---> 4b2a8b35af65
Step 14/18 : ARG GOPROXY
---> Using cache
---> 8e2a0497b0c7
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
---> 5d9abf814581
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
---> 09f8a5dedc1c
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
---> 403dd482ebbe
Step 18/18 : COPY . .
---> 96ee4d7130e1
[Warning] One or more build-args [ALPINE_VERSION COMMIT EXPERIMENTAL TAG] were not consumed
Successfully built 96ee4d7130e1
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-experimental --network="host" -t docker-app-dev:jenkins-app-PR-664-2 make COMMIT=d1d320ee TAG=jenkins-app-PR-664-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=d1d320ee -X github.com/docker/app/internal.Version=jenkins-app-PR-664-2-coverage-experimental -X github.com/docker/app/internal.Experimental=on -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
[33m∅[0m .
[33m∅[0m cmd/cnab-run
[33m∅[0m cmd/docker-app
[32m✓[0m internal (16ms)
[32m✓[0m internal/commands/image (18ms)
[32m✓[0m internal/compose (9ms)
[32m✓[0m internal/formatter (3ms)
[32m✓[0m internal/commands (405ms)
[33m∅[0m internal/formatter/driver
[33m∅[0m internal/formatter/json
[33m∅[0m internal/formatter/yaml
[32m✓[0m internal/inspect (56ms)
[33m∅[0m internal/log
[32m✓[0m internal/slices (5ms)
[32m✓[0m internal/packager (30ms)
[32m✓[0m internal/store (27ms)
[32m✓[0m internal/yaml (7ms)
[32m✓[0m loader (10ms)
[32m✓[0m render (52ms)
[32m✓[0m specification (8ms)
[32m✓[0m types (19ms)
[32m✓[0m types/metadata (6ms)
[32m✓[0m types/parameters (4ms)
DONE 215 tests in 91.461s
CGO_ENABLED=0 go test -tags=""experimental" 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-experimental -X github.com/docker/app/internal.Experimental=on -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/experimental-e2e-coverage.xml -- -tags="experimental" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=d1d320ee -X github.com/docker/app/internal.Version=jenkins-app-PR-664-2-coverage-experimental -X github.com/docker/app/internal.Experimental=on -X github.com/docker/app/internal.BuildTime=2019-10-04T13:53:37Z" -v ./e2e
=== [31mFailed[0m
=== [31mFAIL[0m: e2e TestRender/envvariables/stdout (1.56s)
--- FAIL: TestRender/envvariables/stdout (1.56s)
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
=== [31mFAIL[0m: e2e TestRender/envvariables/file (1.36s)
--- FAIL: TestRender/envvariables/file (1.36s)
commands_test.go:68: assertion failed: error is not nil: open /tmp/-490664496/actual.yaml: no such file or directory: missing '/tmp/-490664496/actual.yaml' file
=== [31mFAIL[0m: e2e TestRender/envvariables (2.92s)
--- FAIL: TestRender/envvariables (2.92s)
=== [31mFAIL[0m: e2e TestRender (2.92s)
=== [31mFAIL[0m: e2e TestRenderFormatters (1.56s)
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
- }
- }
-}
=== [31mFAIL[0m: e2e TestDockerAppLifecycle/withBindMounts (16.93s)
--- FAIL: TestDockerAppLifecycle/withBindMounts (16.93s)
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_back\nCreating network TestDockerAppLifecycle_withBindMounts_front\nCreating service TestDockerAppLifecycle_withBindMounts_web\nCreating service TestDockerAppLifecycle_withBindMounts_db\nCreating service TestDockerAppLifecycle_withBindMounts_api\n"
=== [31mFAIL[0m: e2e TestDockerAppLifecycle/withoutBindMounts (17.23s)
--- FAIL: TestDockerAppLifecycle/withoutBindMounts (17.23s)
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_api\nCreating service TestDockerAppLifecycle_withoutBindMounts_web\nCreating service TestDockerAppLifecycle_withoutBindMounts_db\n"
=== [31mFAIL[0m: e2e TestDockerAppLifecycle (34.16s)
=== [31mFAIL[0m: e2e TestCredentials/full (1.84s)
--- FAIL: TestCredentials/full (1.84s)
commands_test.go:415: assertion failed:
--- expected
+++ actual
@@ -5,4 +5,3 @@
/var/secret_three/data.txt
baz
-Application "full" installed on context "default"
=== [31mFAIL[0m: e2e TestCredentials/mixed-credstore (1.28s)
--- FAIL: TestCredentials/mixed-credstore (1.28s)
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"
=== [31mFAIL[0m: e2e TestCredentials/mixed-local-cred (1.27s)
--- FAIL: TestCredentials/mixed-local-cred (1.27s)
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"
=== [31mFAIL[0m: e2e TestCredentials (4.57s)
=== [31mFAIL[0m: e2e TestRenderWithEnvFile (1.55s)
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"
=== [31mFAIL[0m: e2e TestImageList (89.94s)
panic: runtime error: index out of range [recovered]
panic: runtime error: index out of range
goroutine 189 [running]:
testing.tRunner.func1(0xc0000a3c00)
/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(0xc0000a3c00, 0xc0001545a0, 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(0xc0002fd7f0, 0xf, 0xc0001659e0, 0xe, 0xc00020c080, 0x4, 0x4, 0x0, 0x0, 0x0, ...)
/go/src/github.com/docker/app/e2e/images_test.go:52 +0x149
github.com/docker/app/e2e.runWithDindSwarmAndRegistry(0xc0000a3c00, 0xc000357f88)
/go/src/github.com/docker/app/e2e/helper_test.go:86 +0x1791
github.com/docker/app/e2e.TestImageList(0xc0000a3c00)
/go/src/github.com/docker/app/e2e/images_test.go:47 +0x4e
testing.tRunner(0xc0000a3c00, 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 89.939s
DONE 28 tests, 14 failures in 91.511s
make: *** [Makefile:102: coverage-test-e2e] Error 1
docker.Makefile:100: recipe for target 'coverage-run' failed
make: *** [coverage-run] Error 2
+ true