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

Upgrade to Golang 1.23 #8452

Merged
merged 4 commits into from
Jan 7, 2025
Merged

Upgrade to Golang 1.23 #8452

merged 4 commits into from
Jan 7, 2025

Conversation

N-o-Z
Copy link
Member

@N-o-Z N-o-Z commented Jan 1, 2025

Closes #8451

@N-o-Z N-o-Z self-assigned this Jan 1, 2025
Copy link

github-actions bot commented Jan 1, 2025

E2E Test Results - DynamoDB Local - Local Block Adapter

13 passed

Copy link

github-actions bot commented Jan 1, 2025

E2E Test Results - Quickstart

11 passed

@N-o-Z N-o-Z added the include-changelog PR description should be included in next release changelog label Jan 1, 2025
@N-o-Z N-o-Z requested a review from Isan-Rivkin January 1, 2025 23:09
@N-o-Z N-o-Z marked this pull request as ready for review January 1, 2025 23:09
Copy link
Contributor

@Isan-Rivkin Isan-Rivkin left a comment

Choose a reason for hiding this comment

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

Thanks Im very happy you took the initiative to upgrade!
I left some questions.
Got couple more here:

  1. A "meta" question I also have is are all those changes nesscearly because of the upgrade?
  2. Will fluffy repo (everest, fluffy, replication) be able to use the packages here? it's go version 1.22. If the answer is NO then it's a risk to upgrade here and leave fluffy as is.

pkg/loadtest/loader.go Show resolved Hide resolved
@@ -46,36 +46,36 @@ func marshalType(h hash.Hash, addressType AddressType) {

func MarshalBytes(h hash.Hash, v []byte) {
marshalType(h, AddressTypeBytes)
MarshalInt64(h, int64(len(v)))
Copy link
Contributor

Choose a reason for hiding this comment

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

Commenting here but it's about all the int -> uint changes in ident.go.
I don't see any test coverage for this pkg, and don't feel comfortable with this change - Also I'm not familiar with this code.

Why are you changing this in the same PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to fix the overflow warning and make the code clearer. However I had to keep the nolint comment so reverting

pkg/graveler/graveler.go Show resolved Hide resolved
@N-o-Z
Copy link
Member Author

N-o-Z commented Jan 2, 2025

Thanks Im very happy you took the initiative to upgrade! I left some questions. Got couple more here:

  1. A "meta" question I also have is are all those changes nesscearly because of the upgrade?
  2. Will fluffy repo (everest, fluffy, replication) be able to use the packages here? it's go version 1.22. If the answer is NO then it's a risk to upgrade here and leave fluffy as is.
  1. Yes - resulted in changes in the linters
  2. Since fluffy is using a fixed lakeFS version this does not affect it immediately. The next step however is to upgrade the version in fluffy (and all other repositories for that matter)

@N-o-Z N-o-Z requested a review from Isan-Rivkin January 2, 2025 14:10
Copy link
Contributor

@Isan-Rivkin Isan-Rivkin left a comment

Choose a reason for hiding this comment

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

@N-o-Z Thanks for addressing the comments, almost all resolves just this one thing!

Since fluffy is using a fixed lakeFS version this does not affect it immediately. The next step however is to upgrade the version in fluffy (and all other repositories for that matter)

I know that fluffy version is fixed, but I don't want to be blocked from upgrading fluffy and all of it's services because of go version diff.
To be clear, you're saying that it's literally your next step? There's an issue to track? because it has to be coupled.

@N-o-Z
Copy link
Member Author

N-o-Z commented Jan 6, 2025

@Isan-Rivkin I never said that it is blocking. I said that we need to upgrade the go version for all our repos.
I have opened an issue for it but I hardly think this is an urgent matter or a blocker for this PR.
Go versions needs to be updated to keep security patches and bug support

@Isan-Rivkin
Copy link
Contributor

Go versions needs to be updated to keep security patches and bug support

@N-o-Z Following that same argument - if we can't patch a security issue in fluffy repo we're in a problem.
To me this is a clear blocker.

@N-o-Z
Copy link
Member Author

N-o-Z commented Jan 6, 2025

@Isan-Rivkin if you feel that way nobody is stopping you from prioritizing this task and upgrading fluffy s go version once this is in...

@Isan-Rivkin
Copy link
Contributor

@Isan-Rivkin if you feel that way nobody is stopping you from prioritizing this task and upgrading fluffy s go version once this is in...

It doesn't make sense to now block both cloud and fluffy from upgrading, so I'm not sure how to respond to this because the way I see this it should be prioritized together or not at all (With the exception of urgent matters if there is one).

@Isan-Rivkin Isan-Rivkin self-requested a review January 7, 2025 13:56
Copy link
Contributor

@Isan-Rivkin Isan-Rivkin left a comment

Choose a reason for hiding this comment

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

I saw that were planning to upgrade all the other repos as well so that's great!
LGTM, and thank you.

@N-o-Z N-o-Z merged commit 308aaa6 into master Jan 7, 2025
39 checks passed
@N-o-Z N-o-Z deleted the task/upgrade-golang-version-8451 branch January 7, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include-changelog PR description should be included in next release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade lakeFS to Golang 1.23
2 participants