Conversation
Signed-off-by: Morgan Tocker <tocker@gmail.com>
Signed-off-by: Morgan Tocker <tocker@gmail.com>
|
Still need to confirm about gotools. |
7047042 to
d0ad751
Compare
|
I'm just running |
|
@dweitzman and I chatted on slack - and he had an alternative solution to removing The hooks can be modified to call I am going to take a look into this - please don't merge yet :-) |
d0ad751 to
59e546c
Compare
Signed-off-by: Morgan Tocker <tocker@gmail.com>
59e546c to
4d8a6a9
Compare
Signed-off-by: Morgan Tocker <tocker@gmail.com>
Signed-off-by: Morgan Tocker <tocker@gmail.com>
|
Another observation: CI/CD builds should have |
Signed-off-by: Morgan Tocker <tocker@gmail.com>
|
Since this PR changes |
Signed-off-by: Morgan Tocker <tocker@gmail.com>
33f6291 to
fb4eec3
Compare
Signed-off-by: Morgan Tocker <tocker@gmail.com>
6ccc75d to
5b111fe
Compare
|
This PR is now ready for review/merge. Just to clarify on a few suggestions from @dweitzman:
I will look at doing this in a future PR, as I revisit CI/CD. It makes sense to me.
I went with yes. This will lead to faster CI builds, at the cost of larger Docker images. The docker module cache on my system is ~1GB -- so it could be quite a bit. We have lite Docker images for now and there are other ways to slim down. I checked with @sougou and while image size increases are regrettable, better CI performance is the right tradeoff for now.
I went for 'no' for now. My thinking process was that we can see how this develops in Go 1.13, and maybe our CI tool will suggest a proxy that we should use that they maintain. The minimum is only 1.12, which we meet. Happy to reconsider if anyone feel strongly on this one. |
|
"Since this PR changes bootstrap.sh, the results of CI are inconclusive. " Build is green so any CI issues with the PR were either transient or due to other changes. |
|
Just catching up to this PR, this is great! |
Yes to delete vendor dir. You should not need to re-bootstrap though. |
This switches to use go modules instead of
govendorinbootstrap.sh. Because it modifiesbootstrap.shthe results from CI are inconclusive. Here is the result of local test:It requires a minimum of go 1.11, but we recently bumped the minimum to 1.12 in #5017
Another common issue, is that go modules may be disabled while in the
GOPATH. It might be required to move the vitess directory to another location on the system.There is another small change, in that the
go getcommand inbootstrap.shhas been moved to be with the hooks installation. This helps make a new-style bootstrap very fast (I want to make bootstrap eventually obsolete, but as a stepping stone making it run inline in the CI process should get us there faster). Here is what a python-less java-less CI runner will execute:Note: We should push new versions of the Docker images after this PR merges.