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 revive lints redefines-builtin-id #7552

Merged
merged 56 commits into from
Sep 7, 2024

Conversation

janardhanvissa
Copy link
Contributor

@janardhanvissa janardhanvissa commented Aug 22, 2024

Addresses: #7444

RELEASE NOTES: None

Copy link

codecov bot commented Aug 22, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 8 lines in your changes missing coverage. Please review.

Project coverage is 81.87%. Comparing base (70f19ee) to head (b4cf666).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...ds/internal/xdsclient/xdsresource/unmarshal_cds.go 25.00% 1 Missing and 2 partials ⚠️
xds/internal/httpfilter/rbac/rbac.go 50.00% 0 Missing and 2 partials ⚠️
xds/internal/clusterspecifier/rls/rls.go 50.00% 0 Missing and 1 partial ⚠️
xds/internal/httpfilter/fault/fault.go 50.00% 0 Missing and 1 partial ⚠️
xds/internal/httpfilter/router/router.go 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7552      +/-   ##
==========================================
+ Coverage   81.75%   81.87%   +0.12%     
==========================================
  Files         361      361              
  Lines       27813    27813              
==========================================
+ Hits        22739    22773      +34     
+ Misses       3870     3845      -25     
+ Partials     1204     1195       -9     
Files with missing lines Coverage Δ
balancer_wrapper.go 87.26% <100.00%> (ø)
internal/status/status.go 89.87% <100.00%> (ø)
internal/xds/rbac/converter.go 86.66% <100.00%> (ø)
orca/producer.go 96.20% <100.00%> (ø)
xds/internal/resolver/xds_resolver.go 80.71% <100.00%> (ø)
xds/internal/xdsclient/xdsresource/filter_chain.go 93.38% <100.00%> (-0.56%) ⬇️
xds/internal/clusterspecifier/rls/rls.go 67.56% <50.00%> (ø)
xds/internal/httpfilter/fault/fault.go 71.96% <50.00%> (ø)
xds/internal/httpfilter/router/router.go 38.23% <50.00%> (ø)
xds/internal/httpfilter/rbac/rbac.go 63.15% <50.00%> (ø)
... and 1 more

... and 22 files with indirect coverage changes

@janardhanvissa janardhanvissa mentioned this pull request Aug 22, 2024
13 tasks
@purnesh42H purnesh42H self-requested a review August 26, 2024 05:49
balancer/grpclb/grpclb_test.go Outdated Show resolved Hide resolved
balancer/rls/config.go Outdated Show resolved Hide resolved
internal/balancer/gracefulswitch/config.go Outdated Show resolved Hide resolved
internal/serviceconfig/serviceconfig.go Outdated Show resolved Hide resolved
test/channelz_test.go Outdated Show resolved Hide resolved
test/channelz_test.go Outdated Show resolved Hide resolved
balancer/grpclb/grpclb_test.go Outdated Show resolved Hide resolved
balancer/rls/config.go Outdated Show resolved Hide resolved
clientconn_test.go Outdated Show resolved Hide resolved
internal/balancer/gracefulswitch/config.go Outdated Show resolved Hide resolved
internal/serviceconfig/serviceconfig.go Outdated Show resolved Hide resolved
test/channelz_test.go Outdated Show resolved Hide resolved
test/channelz_test.go Outdated Show resolved Hide resolved
@purnesh42H
Copy link
Contributor

@janardhanvissa make sure to keep the comments upto line col 80

@janardhanvissa
Copy link
Contributor Author

@purnesh42H Updated the comments as suggested and pushed the changes. Please re-review it.

test/channelz_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@purnesh42H purnesh42H left a comment

Choose a reason for hiding this comment

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

lgtm. Please fix the grammer as suggested in 2 new comments

@purnesh42H purnesh42H changed the title Fix revive identified linter issues: redefines-builtin-id, empty-block .*: fix revive lints redefines-builtin-id, empty-block Aug 28, 2024
@purnesh42H purnesh42H added the Type: Meta Github repo, process, etc label Aug 28, 2024
@@ -506,6 +506,7 @@ func (ccw *stateRecordingCCWrapper) NewSubConn(addrs []resolver.Address, opts ba
func keepReading(conn net.Conn) {
buf := make([]byte, 1024)
for _, err := conn.Read(buf); err == nil; _, err = conn.Read(buf) {

Copy link
Contributor

Choose a reason for hiding this comment

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

@janardhanvissa revert this empty line please

orca/producer.go Outdated Show resolved Hide resolved
@purnesh42H purnesh42H added the Area: Tooling Includes anything related to Go builds, modules etc and includes Releases & Github Workflows. label Sep 6, 2024
@janardhanvissa
Copy link
Contributor Author

@purnesh42H Updated close to closeFn as mentioned above. Please re-review the changes.

@purnesh42H purnesh42H merged commit 3ffb98b into grpc:master Sep 7, 2024
14 checks passed
@arvindbr8
Copy link
Member

arvindbr8 commented Sep 9, 2024

We should have probably rebased and removed this TODO.

@purnesh42H
Copy link
Contributor

We should have probably rebased and removed this TODO.

#7575

@purnesh42H
Copy link
Contributor

We should have probably rebased and removed this TODO.

Ah yeah i will remove both after #7575

@janardhanvissa janardhanvissa deleted the linter-emtyblk-builtin-id branch September 16, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Tooling Includes anything related to Go builds, modules etc and includes Releases & Github Workflows. Type: Internal Cleanup Refactors, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants