vitessio / vitess-releaser

Tooling to release vitess
https://vitess.io
Apache License 2.0
4 stars 0 forks source link

Prevent Golang mismatch between vitess and vtop #109

Closed frouioui closed 4 months ago

frouioui commented 4 months ago

The Update Go version in vitess-operator step (pre-release) used to only update the Golang version used in vtop if vtop was behind by at least 1 golang major version. Since we recently changed vitess' go mod, we must be using the proper Golang version in vtop's test and docker images at all time to ensure that the tests are passing. This PR changes the mechanism and always make sure that both repositories are on the exact same Golang version, if not a PR is automatically created to update the Golang version of vtop.

In this PR I am also adding some code to change the Golang version in the buildkite pipeline, which was missed before.

Testing:

https://github.com/frouioui/vitess/issues/364 is my testing release issue, and when running the step I end up with a new PR to update the Go version of my vtop: https://github.com/frouioui/vitess-operator/pull/26