-
Notifications
You must be signed in to change notification settings - Fork 6.5k
chore: upgrade Go from 1.23.4 to 1.24.4 (release-2.14) #23294
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
chore: upgrade Go from 1.23.4 to 1.24.4 (release-2.14) #23294
Conversation
|
Interesting test failure: https://github.com/argoproj/argo-cd/actions/runs/15482413210/job/43590920713?pr=23294 As for linting, golangci-lint needs to be bumped to v2 and lint rules need to be updated. I updated just the linter and migrated the ruleset and it yields this: |
|
The failing TLS test actually surfaces a real issue. It affects all release branches and should be fixed. The reason why this does not happen on master or release-3.0 branches is that there's drift between the tests in I'll remove the fix commit from this branch and issue separate PRs for affected branches instead. Tests will continue to fail on this PR until rebased with the fix. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-2.14 #23294 +/- ##
================================================
- Coverage 55.36% 55.32% -0.04%
================================================
Files 339 339
Lines 57361 57374 +13
================================================
- Hits 31756 31745 -11
- Misses 22915 22936 +21
- Partials 2690 2693 +3 ☔ View full report in Codecov by Sentry. |
611aa44 to
a8e06ad
Compare
|
@thevilledev could we do separate cherry-picks for |
|
@blakepettersson I think I hit a wall with not having a Go 1.24 compatible golangci-lint version of the v1 series. I can check again. Another option I guess would be to upgrade the linter and loosen the lint rules temporarily in this PR. |
|
@thevilledev from what I can see, |
|
Yup lets do that! I'll mark this as a draft in the meanwhile |
a8e06ad to
8bf296a
Compare
Updates Go version across all workflows, Dockerfiles and go.mod Signed-off-by: Ville Vesilehto <[email protected]>
8bf296a to
c010e4c
Compare
|
Integration tests fail because #23301 is not merged in yet, but it also depends on Go 1.24. We could merge this in and rebase it. |
|
Merged the fix PR here due to circular dependency. Ready to merge I think! |
|
I see this (minor) thing in the failed action, I think that is an artifact from the previous lint PR |
|
Seems like we need to do it here too? |
|
I'll open a separate PR to fix this 👍 |
|
@blakepettersson any thoughts on upgrading mockery to the same version as the other branches? I think there's something fundamentally broken, as I get a ton of other similar errors if I keep commenting out mocks from I upgraded it to |
Upgrade mockery to latest v2 version to fix issues with Go 1.24 argoproj#23294 like: internal error: package "io" without types was imported from "github.com/argoproj/argo-cd/v2/util/io" Signed-off-by: Ville Vesilehto <[email protected]>
Signed-off-by: Ville Vesilehto <[email protected]>
a3cd12d to
149c0e8
Compare
|
I realised upgrading mockery just within the v2 series to the latest one (v2.53.4) fixes the issue with Go 1.24. I pushed it briefly to this branch just to check that the codegen tests pass. Now in #23316 so we can merge it separately. |
|
Thanks a lot @thevilledev! |
|
Any time - and thanks for the reviews! |
Manual cherry-pick #23287 for
release-2.14branch.Updates Go version across all workflows, Dockerfiles and go.mod.
See:
Also includes #23301 due to circular dependency. The fix requires Go 1.24 and this branch requires the fix to pass Go tests.
Checklist: