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

[release-17.0] Upgrade go from 1.20.13 to 1.20.14 #15652

Conversation

GrahamCampbell
Copy link
Contributor

Description

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported to release branches
  • If this change is to be back-ported to previous releases, a justification is included in the PR description
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on CI?
  • Documentation was added or is not required

Deployment Notes

Copy link
Contributor

vitess-bot bot commented Apr 4, 2024

Review Checklist

Hello reviewers! 👋 Please follow this checklist when reviewing this Pull Request.

General

  • Ensure that the Pull Request has a descriptive title.
  • Ensure there is a link to an issue (except for internal cleanup and flaky test fixes), new features should have an RFC that documents use cases and test cases.

Tests

  • Bug fixes should have at least one unit or end-to-end test, enhancement and new features should have a sufficient number of tests.

Documentation

  • Apply the release notes (needs details) label if users need to know about this change.
  • New features should be documented.
  • There should be some code comments as to why things are implemented the way they are.
  • There should be a comment at the top of each new or modified test to explain what the test does.

New flags

  • Is this flag really necessary?
  • Flag names must be clear and intuitive, use dashes (-), and have a clear help text.

If a workflow is added or modified:

  • Each item in Jobs should be named in order to mark it as required.
  • If the workflow needs to be marked as required, the maintainer team must be notified.

Backward compatibility

  • Protobuf changes should be wire-compatible.
  • Changes to _vt tables and RPCs need to be backward compatible.
  • RPC changes should be compatible with vitess-operator
  • If a flag is removed, then it should also be removed from vitess-operator and arewefastyet, if used there.
  • vtctl command output order should be stable and awk-able.

@vitess-bot vitess-bot bot added NeedsBackportReason If backport labels have been applied to a PR, a justification is required NeedsDescriptionUpdate The description is not clear or comprehensive enough, and needs work NeedsIssue A linked issue is missing for this Pull Request NeedsWebsiteDocsUpdate What it says labels Apr 4, 2024
@github-actions github-actions bot added this to the v17.0.7 milestone Apr 4, 2024
@systay systay added Type: Internal Cleanup Component: General Changes throughout the code base and removed NeedsDescriptionUpdate The description is not clear or comprehensive enough, and needs work NeedsWebsiteDocsUpdate What it says NeedsIssue A linked issue is missing for this Pull Request NeedsBackportReason If backport labels have been applied to a PR, a justification is required labels Apr 4, 2024
@systay
Copy link
Collaborator

systay commented Apr 4, 2024

Thanks for this @GrahamCampbell!

You need to sign the commit for this to go through. That's what the DCO CI step is complaining about.

git commit --amend --no-edit -s

and the git push -f

@shlomi-noach
Copy link
Contributor

@GrahamCampbell thank you -- can you please clarify the specific purpose of this version upgrade? As mentioned in #15650 (comment) the golang security fix was not made in 1.20. So I'm just checking, other than the good practice of staying up-to-date, is there a particular thing to look out for in this upgrade?

@GrahamCampbell
Copy link
Contributor Author

There was a security fix, but not the same fix from this month. It was a fix from the round of golang releases before that.

Signed-off-by: Graham Campbell <[email protected]>
@GrahamCampbell GrahamCampbell force-pushed the release-17.0-golang-upgrade branch from 4982dd7 to 443ccb6 Compare April 4, 2024 12:59
@dbussink
Copy link
Contributor

dbussink commented Apr 4, 2024

There was a security fix, but not the same fix from this month. It was a fix from the round of golang releases before that.

Right, we still need to look into if we need to upgrade to Go 1.21 here for example to address the latest issues.

@dbussink
Copy link
Contributor

dbussink commented Apr 4, 2024

This also doesn't update the base images which is a separate process, so it's not going to be complete.

Copy link
Member

@frouioui frouioui left a comment

Choose a reason for hiding this comment

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

Hello @GrahamCampbell, thank you for taking the time to think about doing this and creating the PR. We are still unsure whether or not to merge this or to directly upgrade to go1.21, we are going to talk about it.

In the meantime, upgrading the Golang version is little bit more involved than that. Refer to #15639 to see an example of how it is done. We need to bump the golang version used by vitess/bootstrap (as you did), and increment the minor version of the vitess/bootstrap by one, and then build and push the docker image.

Won't approve this for now as we are still reviewing with the rest of the maintainers.

@GrahamCampbell
Copy link
Contributor Author

and increment the minor version of the vitess/bootstrap by one, and then build and push the docker image.

Right. That's not something I can do. ;)

@frouioui
Copy link
Member

frouioui commented Apr 4, 2024

Right. That's not something I can do. ;)

You could change the bootstrap_version though.

@GrahamCampbell
Copy link
Contributor Author

I can if you would like, but I though I'd leave that to whoever is going to do the rebuilding, if it's decided that this PR will be accepted at all.

@frouioui
Copy link
Member

frouioui commented Apr 4, 2024

I am closing this Pull Request in favor of #15669, which upgrades to the next minor major version of Go.

Thank you @GrahamCampbell 🙇🏻

@frouioui frouioui closed this Apr 4, 2024
@GrahamCampbell GrahamCampbell deleted the release-17.0-golang-upgrade branch April 4, 2024 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants