-
Notifications
You must be signed in to change notification settings - Fork 680
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
Use go mod #1144
Use go mod #1144
Conversation
Hey @xychu, TravisCI finished with status TravisBuddy Request Identifier: 6f9f7120-681a-11ea-bf55-7111d60dbb66 |
Hey @xychu, TravisCI finished with status TravisBuddy Request Identifier: f43565c0-681a-11ea-bf55-7111d60dbb66 |
Travis tests have failedHey @xychu, 1st Buildgo build -o tf-operator.v1 github.com/kubeflow/tf-operator/cmd/tf-operator.v1
golangci-lint run ./...
goveralls -service=travis-ci -v -package ./pkg/... -ignore "pkg/client/*/*.go,pkg/client/*/*/*.go,pkg/client/*/*/*/*.go,pkg/client/*/*/*/*/*.go,pkg/client/*/*/*/*/*/*.go,pkg/client/*/*/*/*/*/*/*.go,pkg/util/*.go,pkg/util/*/*.go,pkg/apis/tensorflow/*/zz_generated.*.go,pkg/apis/tensorflow/*/*_generated.go,pkg/apis/common/*/zz_generated.*.go,pkg/apis/common/*/*_generated.go"
TravisBuddy Request Identifier: b6593da0-6822-11ea-bf55-7111d60dbb66 |
Travis tests have failedHey @xychu, 1st Buildgo build -o tf-operator.v1 github.com/kubeflow/tf-operator/cmd/tf-operator.v1
golangci-lint run ./...
goveralls -service=travis-ci -v -package ./pkg/... -ignore "pkg/client/*/*.go,pkg/client/*/*/*.go,pkg/client/*/*/*/*.go,pkg/client/*/*/*/*/*.go,pkg/client/*/*/*/*/*/*.go,pkg/client/*/*/*/*/*/*/*.go,pkg/util/*.go,pkg/util/*/*.go,pkg/apis/tensorflow/*/zz_generated.*.go,pkg/apis/tensorflow/*/*_generated.go,pkg/apis/common/*/zz_generated.*.go,pkg/apis/common/*/*_generated.go"
TravisBuddy Request Identifier: 5f0182a0-6823-11ea-bf55-7111d60dbb66 |
.travis.yml
Outdated
|
||
script: | ||
- hack/verify-codegen.sh |
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 we should keep the verify script.
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.
Sure, will add it back later after the code-gen related dependencies get fixed.
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.
OK, thanks for the PR
/retest |
@xychu is this PR ready to merge? If so, please assign an approver |
@stpabhi Not yet. |
@xychu I don’t see any reason not upgrading to 1.15+ kubeflow/common and kubeflow/mpi-operator use 1.15.10 |
@xychu any progress on 1.15? We are moving to kubeflow/common in next few weeks and go module support for tf-operator is a prerequisite step. If you still work on this PR, please help upgrade to 1.15.x or 1.16.x (latest kubeflow/common uses 1.16.x). |
@Jeffwan great to know kubeflow/common v0.3.1 out, will start to upgrade to 1.16.x |
Update kubeflow/commmon
Also update some files with correct version
Hey @xychu, TravisCI finished with status TravisBuddy Request Identifier: 04555100-98ee-11ea-860e-87b20eb63714 |
Hey @xychu, TravisCI finished with status TravisBuddy Request Identifier: 9e378e10-98f2-11ea-860e-87b20eb63714 |
Hey @xychu, TravisCI finished with status TravisBuddy Request Identifier: 04fca5d0-98f4-11ea-860e-87b20eb63714 |
Hey @xychu, TravisCI finished with status TravisBuddy Request Identifier: 1d845510-98f6-11ea-860e-87b20eb63714 |
// file from being included in builds. | ||
|
||
import ( | ||
_ "k8s.io/code-generator" |
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.
minor: I would suggest to put into some pkg build util.go etc rather than a separate vendor file outside.
|
||
go_import_path: github.com/kubeflow/tf-operator | ||
|
||
install: | ||
# get coveralls.io support | ||
- go get github.com/mattn/goveralls | ||
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.18.0 | ||
- go mod vendor |
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.
Any reason to vendor dependencies since this PR moves to go modules
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.
Just thought maybe easier to go build with vendor dir, if this is not needed, I'll delete it.
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 am fine to keep it now. Not a concern at this moment.
/lgtm |
@gaocegege @ChanYiLin plz have a look when you got time. I've updated tf-operator to use k8s 1.16.x and |
Thanks for the PR. Once this merged, I will plan to do some more common migration, more on the controller implementation. |
@gaocegege @ChanYiLin Any comments on the PR? I think PR mainly upgrade kubernetes version, also upgrade kubeflow/common version to latest. (still using API but not implementation) Overall it looks good to me. |
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.
/approve
Thanks for your contribution! 🎉 👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaocegege The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Try migrating to use go mod.
Including:
Note: all changes are made by "go mod" tools, have not checked the versions of all the dependencies one by one.
This change is