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

chore: upgrade Go from 1.21 -> 1.22 #8914

Merged
merged 3 commits into from
Feb 28, 2024
Merged

chore: upgrade Go from 1.21 -> 1.22 #8914

merged 3 commits into from
Feb 28, 2024

Conversation

NicholasBlaskey
Copy link
Contributor

@NicholasBlaskey NicholasBlaskey commented Feb 28, 2024

Description

Upgrades Go from 1.21 to 1.22.

Test Plan

CI passes

Commentary (optional)

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

Ticket

@cla-bot cla-bot bot added the cla-signed label Feb 28, 2024
@determined-ci determined-ci requested a review from a team February 28, 2024 14:21
@determined-ci determined-ci added the documentation Improvements or additions to documentation label Feb 28, 2024
Copy link

netlify bot commented Feb 28, 2024

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit 94c4c18
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/65df475d8385bd0008a5c1c6

Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.16%. Comparing base (ad94c17) to head (94c4c18).

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              
Flag Coverage Δ
backend 42.24% <ø> (-1.92%) ⬇️
harness 63.69% <ø> (-0.01%) ⬇️
web 42.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 92 files with indirect coverage changes

@NicholasBlaskey NicholasBlaskey marked this pull request as ready for review February 28, 2024 15:04
@NicholasBlaskey NicholasBlaskey requested review from a team as code owners February 28, 2024 15:04
Copy link
Contributor

@stoksc stoksc left a 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

Copy link
Member

@dannysauer dannysauer left a 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. :)

https://circleci.com/developer/orbs/orb/circleci/go

@@ -1706,6 +1706,7 @@ jobs:
root: .
paths:
- master/coverage.out
- master/internal/mocks
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@NicholasBlaskey NicholasBlaskey merged commit 4c50601 into main Feb 28, 2024
72 of 84 checks passed
@NicholasBlaskey NicholasBlaskey deleted the do_go_upgrade_122 branch February 28, 2024 16:11
maxrussell pushed a commit that referenced this pull request Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants