-
Notifications
You must be signed in to change notification settings - Fork 41
Fixing Travis CI and use go 1.10 and later versions #11
base: 17.06.x
Are you sure you want to change the base?
Conversation
@@ -58,7 +59,7 @@ func (cs *ContainerdSuite) TestBusyboxTopExecEcho(t *check.C) { | |||
t.Assert(*e, checker.Equals, evt) | |||
} | |||
|
|||
t.Assert(echop.io.stdoutBuffer.String(), checker.Equals, "Ay Caramba!") | |||
t.Assert(strings.TrimRight(echop.io.stdoutBuffer.String(), string('\x00')), checker.Equals, "Ay Caramba!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this due to a change in Go 1.10?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
@@ -4,8 +4,7 @@ sudo: required | |||
language: go | |||
|
|||
go: | |||
- 1.8.x | |||
- tip | |||
- 1.10.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think docker 17.06 ee is currently built with Go 1.12.x, so it may be good to have that version in this list at least (but given that Go 1.12.x will reach EOL soon, probably have 1.13.x in there as well).
Any reason to remove tip
?
8b3ac4a
to
ad69426
Compare
could you either squash the first two commits, or swap their order? If the second commit is needed to fix CI for changes due to updating to Go 1.10, it should either be there first commit, or go together with the actual change to update to Go 1.10 (otherwise Git bisect would be broken) |
faee65b
to
b861a22
Compare
To fix "go get -u github.com/golang/lint/golint" error. golang/lint#421 Also fix integratinon test when using golang 1.10.x In AddProcessToContainer(), the returned stdout buffer has x00 padded, after it is converted to string, it still has padded zeros. This commit trims the padded zeros in string. Replace "github.com/golang/lint/golint" with "golang.org/x/lint/golint" from below error message: (this is needed for golang 1.12 or later) ``` package github.com/golang/lint/golint: code in directory /home/travis/gopath/src/github.com/golang/lint/golint expects import "golang.org/x/lint/golint" ``` Signed-off-by: Xinfeng Liu <[email protected]>
b861a22
to
d7736dd
Compare
@thaJeztah , thanks. I squshed the commits.
Without |
The culprit is |
b785f46
to
255766e
Compare
255766e
to
ebd5100
Compare
Also fixed `make test` failure in go 1.12 and 1.13 by removing 'github.com/containerd/containerd/api/http/pprof' from 'go test -bench'. Set parallel to 1 in `make integration-test` Signed-off-by: Xinfeng Liu <[email protected]>
ebd5100
to
6bab739
Compare
Two failures on I kicked CI once more to see if it was just an intermittent failure
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
kicked CI again, but I guess we can merge after that completes (and ignore tip for now)
Need to upgrade go 1.10 and later to fix "go get -u github.com/golang/lint/golint" error in travis CI.
See: go get golint failed with golang 1.8 on Travis golang/lint#421
Also modify integration test code to make it pass the CI when using golang 1.10.x.
Replace "github.com/golang/lint/golint" with "golang.org/x/lint/golint" (This is needed for golang 1.12 or later)
Modify
Makefile
to fixmake test
error when using go 1.12 or later.Signed-off-by: Xinfeng Liu [email protected]