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

Updates Go to 1.21, golangci-lint to 1.55.2 #7262

Merged
merged 4 commits into from Dec 4, 2023

Conversation

JoshVanL
Copy link
Contributor

Note that, due to the change in import and init func ordering changing in Go 1.21, the grpc proxy proto codec is no longer registered after the grpc internal proto codec definition, meaning the dapr custom definition will not be registered and will cause errors. The custom proto needs to be either re-registered at runtime, or change its name in order to fix this. This is done in the gRPC object, and handler_test.go TestMain.

closes #7228

Note that, due to the change in import and init func ordering changing
in Go 1.21, the grpc proxy proto codec is no longer registered after the
grpc internal proto codec definition, meaning the dapr custom definition
will not be registered and will cause errors. The custom proto needs to
be either re-registered at runtime, or change its name in order to fix
this. This is done in the gRPC object, and handler_test.go TestMain.

Signed-off-by: joshvanl <me@joshvanl.dev>
@ItalyPaleAle
Copy link
Contributor

ItalyPaleAle commented Nov 30, 2023

See also the changes made in contrib for the linter's config. Configuration for one linter (depguard) has changed format. There are also some new linters that you may want to disable. Ideally the config should be similar in contrib and runtime: https://github.com/dapr/components-contrib/pull/3251/files#diff-6179837f7df53a6f05c522b6b7bb566d484d5465d9894fb04910dd08bb40dcc9

Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL marked this pull request as ready for review December 1, 2023 01:05
@JoshVanL JoshVanL requested review from a team as code owners December 1, 2023 01:05
Copy link

codecov bot commented Dec 1, 2023

Codecov Report

Attention: 200 lines in your changes are missing coverage. Please review.

Comparison is base (2fd6f5b) 64.55% compared to head (b63e7e9) 64.53%.

Files Patch % Lines
pkg/grpc/api.go 67.25% 42 Missing and 14 partials ⚠️
pkg/operator/api/api.go 55.55% 12 Missing ⚠️
pkg/grpc/universalapi/api_lock.go 0.00% 11 Missing ⚠️
pkg/grpc/api_daprinternal.go 38.46% 7 Missing and 1 partial ⚠️
pkg/grpc/universalapi/api_state_query.go 0.00% 8 Missing ⚠️
pkg/grpc/universalapi/api_workflow.go 81.57% 7 Missing ⚠️
pkg/security/x509source.go 12.50% 5 Missing and 2 partials ⚠️
pkg/actors/placement/placement.go 50.00% 5 Missing and 1 partial ⚠️
pkg/messaging/v1/util.go 53.84% 5 Missing and 1 partial ⚠️
pkg/placement/placement.go 60.00% 3 Missing and 3 partials ⚠️
... and 25 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7262      +/-   ##
==========================================
- Coverage   64.55%   64.53%   -0.02%     
==========================================
  Files         225      225              
  Lines       21067    21070       +3     
==========================================
- Hits        13599    13597       -2     
- Misses       6303     6306       +3     
- Partials     1165     1167       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pkg/apis/resiliency/v1alpha1/types.go Outdated Show resolved Hide resolved
pkg/grpc/api_test.go Outdated Show resolved Hide resolved
pkg/grpc/api_daprinternal.go Outdated Show resolved Hide resolved
pkg/grpc/api_daprinternal.go Outdated Show resolved Hide resolved
pkg/messaging/v1/util.go Outdated Show resolved Hide resolved
pkg/sentry/server/server.go Outdated Show resolved Hide resolved
pkg/testing/grpc/server.go Outdated Show resolved Hide resolved
tests/apps/pubsub-subscriber-routing_grpc/app.go Outdated Show resolved Hide resolved
tests/apps/pubsub-subscriber_grpc/app.go Outdated Show resolved Hide resolved
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Copy link
Member

@daixiang0 daixiang0 left a comment

Choose a reason for hiding this comment

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

LGTM

@daixiang0 daixiang0 merged commit c11465f into dapr:master Dec 4, 2023
20 of 25 checks passed
@JoshVanL JoshVanL added this to the v1.13 milestone Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Go to 1.21
3 participants