-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
xds/kokoro: install go 1.17, and retry go build #5015
Conversation
test/kokoro/xds.sh
Outdated
@@ -13,7 +13,13 @@ shopt -s extglob | |||
branch="${branch//[[:space:]]}" | |||
branch="${branch##remotes/origin/}" | |||
shopt -u extglob | |||
go build | |||
# Install go >= 1.14 for the new features, e.g. errors.Is() |
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.
This comment will be outdated eventually.
How about "Install a version of Go supported by gRPC"?
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.
Updated
Or you didn't want that e.g.
?
test/kokoro/xds.sh
Outdated
wget https://go.dev/dl/go1.17.3.linux-amd64.tar.gz | ||
sudo tar -C /usr/local -xvf go1.17.3.linux-amd64.tar.gz | ||
sudo cp /usr/local/go/bin/go /usr/bin/go | ||
# Retry go build on error, for at most 3 times |
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.
Mention why? (Downloading dependencies, presumably?)
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.
Done
test/kokoro/xds.sh
Outdated
sudo apt-get install -y wget | ||
wget https://go.dev/dl/go1.17.3.linux-amd64.tar.gz |
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.
if curl
is already in the VM, it would be preferable to use it. Otherwise this apt install
is another potential point of failure.
Also, should these things be retried for the same reason as go build
?
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.
Done
test/kokoro/xds.sh
Outdated
# errors.Is() | ||
curl --retry 3 -O -L https://go.dev/dl/go1.17.3.linux-amd64.tar.gz | ||
sudo tar -C /usr/local -xvf go1.17.3.linux-amd64.tar.gz | ||
sudo cp /usr/local/go/bin/go /usr/bin/go |
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.
sudo ln -s /usr/local/go/bin/go /usr/bin/go
? Seems like it should work, but not 100% sure.
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.
done
RELEASE NOTES: N/A