Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integration/*: make e2e run without failure #36594

Merged
merged 1 commit into from
Mar 21, 2018

Conversation

vdemeester
Copy link
Member

… mainly by skipping if daemon is remote.

docker build -f Dockerfile.e2e -t moby-e2e .
docker run -v /var/run/docker.sock:/var/run/docker.sock \
           -e DOCKER_API_VERSION=1.36 moby-e2e
# […]
PASS
# […]

🦁

Next is the integration-cli runs: currently it's 1017 passed, 570 skipped, 38 FAILED.

cc @chris-crone

Signed-off-by: Vincent Demeester [email protected]

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not fully reviewed the changes, but just some quick things I noticed 😅

"io"
"io/ioutil"
"strings"
"testing"

"github.com/gotestyourself/gotestyourself/skip"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you group this with other imports?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙇‍♂️

@@ -5,6 +5,8 @@ import (
"fmt"
"testing"

"github.com/gotestyourself/gotestyourself/skip"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you group this with other imports?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙇‍♂️

@@ -13,8 +13,8 @@ export DOCKER_ENGINE_GOARCH=${DOCKER_ENGINE_GOARCH:-${ARCH}}
: ${TESTDEBUG:=}

integration_api_dirs=${TEST_INTEGRATION_DIR:-"$(
find ./integration -type d |
grep -vE '(^./integration($|/internal)|/testdata)')"}
find /tests/integration -type d |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit confused by this one; this forces the directory to be at the root?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that's how the e2e image is set-up.. I could change that though 😅

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think it should be flexible, and not rely on a fixed path (ideally), perhaps either an env-var, or relative to where the script is run from?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a blocker for now (this is only used for the e2e tests)

@@ -12,6 +12,8 @@ import (
"strings"
"testing"

"github.com/gotestyourself/gotestyourself/skip"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you group this with other imports?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙇‍♂️

@codecov
Copy link

codecov bot commented Mar 14, 2018

Codecov Report

Merging #36594 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #36594      +/-   ##
==========================================
- Coverage   34.85%   34.81%   -0.04%     
==========================================
  Files         612      612              
  Lines       45445    45720     +275     
==========================================
+ Hits        15838    15917      +79     
- Misses      27537    27700     +163     
- Partials     2070     2103      +33

Copy link
Member

@yongtang yongtang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

… mainly by skipping if daemon is remote.

Signed-off-by: Vincent Demeester <[email protected]>
@thaJeztah
Copy link
Member

odd one on experimental https://jenkins.dockerproject.org/job/Docker-PRs-experimental/39863/console

09:35:34 2018/03/19 09:35:34 http2: server: error reading preface from client /go/src/github.com/docker/docker/bundles/test-integration/docker.sock: bogus greeting "\x00\x00\x00\x04\x01\x00\x00\x00\x00\x00\x00L\x01\x04\x00\x00\x00\x01\x83\x86E\x9ab\x93"
09:35:34 
09:35:34 ----------------------------------------------------------------------
09:35:34 FAIL: docker_api_build_test.go:518: DockerSuite.TestBuildWithSession
09:35:34 
09:35:34 assertion failed: 
09:35:34 {int}:
09:35:34 	-: 500
09:35:34 	+: 200
09:35:34 
09:35:34 assertion failed: string "{\"message\":\"failed to copy to /var/lib/docker/builder/731e9f77f1ff3a4c44cecce0f0aea695d12aec6ecbad1acb487e095670e11b0d: rpc error: code = Internal desc = transport is closing\"}\n" does not contain "Successfully built"
09:35:34 assertion failed: 0 (int) != 4 (int)
09:35:35 

@guillaumerose
Copy link

In the Docker for Desktop CI, we have the same issue as @thaJeztah mentioned.

+ docker build -t trim_works .
    Sending build context to Docker daemon  3.584kB

    Step 1/2 : FROM alpine:3.6
    2018/03/20 11:27:34 http2: server: error reading preface from client /Users/administrator/Library/Containers/com.docker.docker/Data/s60: bogus greeting "\x00\x00\x00\x04\x01\x00\x00\x00\x00\x00\x00P\x01\x04\x00\x00\x00\x01\x83\x86E\x95bk"
    3.6: Pulling from library/alpine
    605ce1bd3f31: Pulling fs layer
    context canceled

This error appeared just after merging 18.04-ce-dev (84547b2).

We saw it already 5 times on different machines, different OSX version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants