Skip to content
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

Merged
merged 8 commits into from Nov 30, 2021
Merged

Conversation

menghanl
Copy link
Contributor

@menghanl menghanl commented Nov 30, 2021

RELEASE NOTES: N/A

@menghanl menghanl changed the title xds/kokoro: install go 1.16, and retry go build for at most 3 times xds/kokoro: install go 1.17, and retry go build for at most 3 times Nov 30, 2021
@@ -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()
Copy link
Member

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"?

Copy link
Contributor Author

@menghanl menghanl Nov 30, 2021

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.?

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
Copy link
Member

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?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment on lines 18 to 19
sudo apt-get install -y wget
wget https://go.dev/dl/go1.17.3.linux-amd64.tar.gz
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

# 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
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@dfawley dfawley assigned menghanl and unassigned dfawley Nov 30, 2021
@menghanl menghanl changed the title xds/kokoro: install go 1.17, and retry go build for at most 3 times xds/kokoro: install go 1.17, and retry go build Nov 30, 2021
@menghanl menghanl merged commit c2bccd0 into grpc:master Nov 30, 2021
@menghanl menghanl deleted the xds_sh branch November 30, 2021 23:31
menghanl added a commit to menghanl/grpc-go that referenced this pull request Apr 1, 2022
menghanl added a commit to menghanl/grpc-go that referenced this pull request Apr 1, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants