-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Reduce Go version duplication #12458
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
base: master
Are you sure you want to change the base?
Conversation
bd64cfb to
3d21ff3
Compare
This is the standard connectivity check used elsewhere.
This should make it easier to delete this code when the time comes.
Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial.
- Use `go_sdk.from_file` instead of repeating the version encoded in `go.mod` in `MODULE.bazel`. - Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup 248b336 PiperOrigin-RevId: 853776390
|
Yeah, the intent was just to install go to build the third party tool / the runner script (run_sample.go in this directory). This is just a test / benchmark workload...it has nothing to do with overall gVisor build / installs. I'll review this. |
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup 248b336 PiperOrigin-RevId: 853776390
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup 248b336 PiperOrigin-RevId: 853776390
|
@zkoopmans I pushed two more commits, please have a look. We now use multi-stage builds for these Go programs, which gives us version stability without requiring either |
Thanks for your perseverance @tamird, I think this is quite neat. |
zkoopmans
left a comment
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
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. - **cuda-tests: make Dockerfiles more similar** These files are *almost* identical. Go the rest of the way. Now the only difference is the invocation of `cmake`. - **Dockerfile: use golang builder images** This avoids the need for `apt-get install golang` and other shenanigans. It also makes it clear that the version of Go used need not track the version specified in `go.mod`. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup 6abf014 PiperOrigin-RevId: 853776390
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. - **cuda-tests: make Dockerfiles more similar** These files are *almost* identical. Go the rest of the way. Now the only difference is the invocation of `cmake`. - **Dockerfile: use golang builder images** This avoids the need for `apt-get install golang` and other shenanigans. It also makes it clear that the version of Go used need not track the version specified in `go.mod`. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup 6abf014 PiperOrigin-RevId: 853776390
These files are *almost* identical. Go the rest of the way. Now the only difference is the invocation of `cmake`.
|
Oops, |
c4222a8 to
6da3c38
Compare
|
Oops almost had it right, and now it is actually right. |
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. - **cuda-tests: make Dockerfiles more similar** These files are *almost* identical. Go the rest of the way. Now the only difference is the invocation of `cmake`. - **Dockerfile: use golang builder images** This avoids the need for `apt-get install golang` and other shenanigans. It also makes it clear that the version of Go used need not track the version specified in `go.mod`. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup 6abf014 PiperOrigin-RevId: 853776390
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. - **cuda-tests: make Dockerfiles more similar** These files are *almost* identical. Go the rest of the way. Now the only difference is the invocation of `cmake`. - **Dockerfile: use golang builder images** This avoids the need for `apt-get install golang` and other shenanigans. It also makes it clear that the version of Go used need not track the version specified in `go.mod`. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup 6da3c38 PiperOrigin-RevId: 853776390
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. - **cuda-tests: make Dockerfiles more similar** These files are *almost* identical. Go the rest of the way. Now the only difference is the invocation of `cmake`. - **Dockerfile: use golang builder images** This avoids the need for `apt-get install golang` and other shenanigans. It also makes it clear that the version of Go used need not track the version specified in `go.mod`. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup 6da3c38 PiperOrigin-RevId: 853776390
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. - **cuda-tests: make Dockerfiles more similar** These files are *almost* identical. Go the rest of the way. Now the only difference is the invocation of `cmake`. - **Dockerfile: use golang builder images** This avoids the need for `apt-get install golang` and other shenanigans. It also makes it clear that the version of Go used need not track the version specified in `go.mod`. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup 6da3c38 PiperOrigin-RevId: 853776390
This avoids the need for `apt-get install golang` and other shenanigans. It also makes it clear that the version of Go used need not track the version specified in `go.mod`.
|
Another buglet, this time it was |
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. - **cuda-tests: make Dockerfiles more similar** These files are *almost* identical. Go the rest of the way. Now the only difference is the invocation of `cmake`. - **Dockerfile: use golang builder images** This avoids the need for `apt-get install golang` and other shenanigans. It also makes it clear that the version of Go used need not track the version specified in `go.mod`. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup 6da3c38 PiperOrigin-RevId: 853776390
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. - **cuda-tests: make Dockerfiles more similar** These files are *almost* identical. Go the rest of the way. Now the only difference is the invocation of `cmake`. - **Dockerfile: use golang builder images** This avoids the need for `apt-get install golang` and other shenanigans. It also makes it clear that the version of Go used need not track the version specified in `go.mod`. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup ba07231 PiperOrigin-RevId: 853776390
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. - **cuda-tests: make Dockerfiles more similar** These files are *almost* identical. Go the rest of the way. Now the only difference is the invocation of `cmake`. - **Dockerfile: use golang builder images** This avoids the need for `apt-get install golang` and other shenanigans. It also makes it clear that the version of Go used need not track the version specified in `go.mod`. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup ba07231 PiperOrigin-RevId: 853776390
- **packetdrill: use docker version** This is the standard connectivity check used elsewhere. - **tools/build_cover.sh: rearrange** This should make it easier to delete this code when the time comes. - **Reduce Go version duplication** Remove `images/gpu/cuda-tests-12-8/install_go.sh`; golang is already installed via apt and the version is immaterial. - **cuda-tests: make Dockerfiles more similar** These files are *almost* identical. Go the rest of the way. Now the only difference is the invocation of `cmake`. - **Dockerfile: use golang builder images** This avoids the need for `apt-get install golang` and other shenanigans. It also makes it clear that the version of Go used need not track the version specified in `go.mod`. FUTURE_COPYBARA_INTEGRATE_REVIEW=#12458 from tamird:gpu-cleanup ba07231 PiperOrigin-RevId: 853776390
This is the standard connectivity check used elsewhere.
This should make it easier to delete this code when the time comes.
Remove
images/gpu/cuda-tests-12-8/install_go.sh; golang is alreadyinstalled via apt and the version is immaterial.
These files are almost identical. Go the rest of the way. Now the only
difference is the invocation of
cmake.This avoids the need for
apt-get install golangand other shenanigans.It also makes it clear that the version of Go used need not track the
version specified in
go.mod.