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

build: update go to 1.16.5 #66505

Merged
merged 1 commit into from
Jun 23, 2021
Merged

build: update go to 1.16.5 #66505

merged 1 commit into from
Jun 23, 2021

Conversation

rail
Copy link
Member

@rail rail commented Jun 15, 2021

Fixes #66404

Checklist:

  • Adjust the Pebble tests to run in new version.
  • Adjust version in Docker image (source).
  • Adjust version in the TeamCity agent image (setup script)
  • Rebuild and push the Docker image (following Basic Process)
  • Bump the version in WORKSPACE under go_register_toolchains. You may need to bump rules_go.
  • Bump the version in builder.sh accordingly (source).
  • Bump the version in go-version-check.sh (source), unless bumping to a new patch release.
  • Bump the go version in go.mod. You may also need to rerun make vendor_rebuild if vendoring has changed.
  • Bump the default installed version of Go in bootstrap-debian.sh (source).
  • Replace other mentions of the older version of go (grep for golang:<old_version> and go<old_version>).
  • Update the builder.dockerImage parameter in the TeamCity Cockroach and Internal projects.
  • Ask the Developer Infrastructure team to deploy new TeamCity agent images according to packer/README.md

Release note: None

@rail rail self-assigned this Jun 15, 2021
@rail rail requested a review from a team June 15, 2021 22:21
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rail rail force-pushed the golang1.16 branch 14 times, most recently from 100cfaf to 788c0d0 Compare June 18, 2021 03:17
@otan
Copy link
Contributor

otan commented Jun 18, 2021

image

congrats! always a doozy. bazel made it worse haha

@rail
Copy link
Member Author

rail commented Jun 18, 2021

bazel made it worse haha

I'm totally fine with this, given how it improves reproducibility. \o/

@rail rail requested review from otan and rickystewart June 21, 2021 14:51
build/STRINGER.bzl Show resolved Hide resolved
pkg/cmd/urlcheck/BUILD.bazel Outdated Show resolved Hide resolved
@rail rail requested a review from rickystewart June 22, 2021 16:50
@rail
Copy link
Member Author

rail commented Jun 22, 2021

bors r=rickystewart

@craig
Copy link
Contributor

craig bot commented Jun 22, 2021

Build failed:

@rail
Copy link
Member Author

rail commented Jun 22, 2021

Flaky tests!!!

Fixes cockroachdb#66404

* Upgrade gazelle to latest version. Go 1.16 updates `go.sum` when
  gazelle calls `go download`. The new version fixes this issue. See
  bazel-contrib/bazel-gazelle#1015.
* Remove line references in `build/README.md`, because they are not
  stable.
* Set `GOPATH` in various places for bazel based builds and tests in
  order to work round the case when `go env` fails when `GOPATH` and
  `HOME` are unset. See golang/go#43938 for
  the details.
* Set `GO111MODULE=off` in `pkg/acceptance/compose/gss/psql/Dockerfile`.
  Go 1.16 requires `go.mod` in order to build and test the module
  without `GO111MODULE=off`.

Checklist:

* [x] Adjust the Pebble tests to run in new version.
* [x] Adjust version in Docker image ([source](./builder/Dockerfile)).
* [x] Adjust version in the TeamCity agent image ([setup script](./packer/teamcity-agent.sh))
* [x] Rebuild and push the Docker image (following [Basic Process](#basic-process))
* [x] Bump the version in `WORKSPACE` under `go_register_toolchains`. You may need to bump [rules_go](https://github.com/bazelbuild/rules_go/releases).
* [x] Bump the version in `builder.sh` accordingly ([source](./builder.sh#L6)).
* [x] Bump the version in `go-version-check.sh` ([source](./go-version-check.sh)), unless bumping to a new patch release.
* [x] Bump the go version in `go.mod`. You may also need to rerun `make vendor_rebuild` if vendoring has changed.
* [x] Bump the default installed version of Go in `bootstrap-debian.sh` ([source](./bootstrap/bootstrap-debian.sh)).
* [x] Replace other mentions of the older version of go (grep for `golang:<old_version>` and `go<old_version>`).
* [ ] Update the `builder.dockerImage` parameter in the TeamCity [`Cockroach`](https://teamcity.cockroachdb.com/admin/editProject.html?projectId=Cockroach&tab=projectParams) and [`Internal`](https://teamcity.cockroachdb.com/admin/editProject.html?projectId=Internal&tab=projectParams) projects.
* [ ] Ask the Developer Infrastructure team to deploy new TeamCity agent images according to [packer/README.md](./packer/README.md)

Release note: None
@rail
Copy link
Member Author

rail commented Jun 22, 2021

bors r=rickystewart

@craig
Copy link
Contributor

craig bot commented Jun 22, 2021

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jun 22, 2021

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jun 23, 2021

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build: upgrade to go1.16.5
4 participants