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

fix: Upgrade go 1.22 #5990

Merged
merged 5 commits into from
Nov 8, 2024
Merged

Conversation

abhimanyu003
Copy link
Member

@abhimanyu003 abhimanyu003 commented Oct 24, 2024

What this PR does / why we need it:

This PR upgrades to

  • go1.22
  • Upgrade github action setup-go to v5.0.1 using sha 0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 because tag can be changed but she can't
  • upgrade controller-gen to v0.16.2 from 0.9.2 ( version 0.9.2 causing panic on go1.22 )

Please note that

Which issue(s) this PR fixes:

Fixes #INFRA-1151

@sakoush sakoush added the v2 label Oct 28, 2024
@@ -69,9 +69,9 @@ jobs:
node-version: 14

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.1
Copy link
Member

Choose a reason for hiding this comment

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

Could we pin to @v5 instead of the actual hash? The setup-go docs seem to reference the major version, so I would assume they would want to keep things mostly compatible within the same major version (so we wouldn't get issues with the action being updated under us, but instead we could benefit from things like security updates)

@@ -1,77 +1,77 @@
module github.com/seldonio/seldon-core/tests/integration/v2

go 1.21
go 1.22.0
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
go 1.22.0
go 1.22

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for noticing this is updated

Copy link
Member

@lc525 lc525 left a comment

Choose a reason for hiding this comment

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

lgtm, really good to be on golang 1.22

@abhimanyu003
Copy link
Member Author

Tested is using smoke test with docker ./smoke-tests.sh 5 seldon thing are looking good.

@abhimanyu003 abhimanyu003 merged commit 0ebbd19 into SeldonIO:v2 Nov 8, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants