-
Notifications
You must be signed in to change notification settings - Fork 356
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.21 -> 1.22 #8914
Conversation
✅ Deploy Preview for determined-ui canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8914 +/- ##
==========================================
- Coverage 47.71% 47.16% -0.55%
==========================================
Files 1066 1154 +88
Lines 170435 175056 +4621
Branches 2237 2237
==========================================
+ Hits 81317 82561 +1244
- Misses 88960 92337 +3377
Partials 158 158
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is much smaller with one go mod file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these steps like this are things I think we should probably encapsulate in orbs, but maybe today isn't the day. :)
@@ -1706,6 +1706,7 @@ jobs: | |||
root: . | |||
paths: | |||
- master/coverage.out | |||
- master/internal/mocks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"go test -cover now prints coverage summaries for covered packages that do not have their own test files. Prior to Go 1.22 a go test -cover run for such a package would report"
This change prevents our coverage step to fail since the new Go version requires our mocks be present.
@@ -4,5 +4,5 @@ go install github.com/bufbuild/buf/cmd/buf@v0.42.1 | |||
go install golang.org/x/tools/cmd/goimports@v0.1.5 | |||
go install github.com/goreleaser/goreleaser@v1.14.1 | |||
go install github.com/swaggo/swag/cmd/swag@v1.8.9 | |||
go install github.com/vektra/mockery/v2@v2.20.0 | |||
go install github.com/vektra/mockery/v2@v2.42.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mockery had a panic in CI
I never got the mockery error locally though, but upgrading seems to fix it
Description
Upgrades Go from 1.21 to 1.22.
Test Plan
CI passes
Commentary (optional)
Checklist
docs/release-notes/
.See Release Note for details.
Ticket